#| -*-Scheme-*-
-$Id: arith.scm,v 1.6 1999/01/02 06:06:43 cph Exp $
+$Id: arith.scm,v 1.7 2001/12/20 21:29:22 cph Exp $
-Copyright (c) 1989-1999 Massachusetts Institute of Technology
+Copyright (c) 1989-1999, 2001 Massachusetts Institute of Technology
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
|#
;;;; Scheme Arithmetic for 6.001
(let-syntax
((define-standard-unary
- (macro (name flo:op int:op)
+ (lambda (name flo:op int:op)
`(DEFINE (,name X)
(IF (FLONUM? X)
(,flo:op X)
\f
(let-syntax
((define-standard-binary
- (macro (name flo:op int:op)
+ (lambda (name flo:op int:op)
`(DEFINE (,name X Y)
(IF (FLONUM? X)
(IF (FLONUM? Y)
(let-syntax
((define-integer-binary
- (macro (name operator)
+ (lambda (name operator)
`(DEFINE (,name N M)
(IF (FLONUM? N)
(INT:->FLONUM
(let-syntax
((define-transcendental-unary
- (macro (name hole? hole-value function)
+ (lambda (name hole? hole-value function)
`(DEFINE (,name X)
(IF (,hole? X)
,hole-value
;;; -*-Scheme-*-
;;;
-;;; $Id: buffer.scm,v 1.182 2001/06/07 17:43:21 cph Exp $
+;;; $Id: buffer.scm,v 1.183 2001/12/20 21:27:52 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-2001 Massachusetts Institute of Technology
;;;
(let-syntax
((rename
- (macro (slot-name)
+ (lambda (slot-name)
`(DEFINE-INTEGRABLE ,(symbol-append 'BUFFER- slot-name)
,(symbol-append 'BUFFER-% slot-name)))))
(rename name)
;;; -*-Scheme-*-
;;;
-;;; $Id: calias.scm,v 1.21 2001/09/25 03:15:15 cph Exp $
+;;; $Id: calias.scm,v 1.22 2001/12/20 21:27:55 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-2001 Massachusetts Institute of Technology
;;;
;; Predefined special keys
(let-syntax ((make-key
- (macro (name)
+ (lambda (name)
`(DEFINE ,name (INTERN-SPECIAL-KEY ',name 0)))))
(make-key backspace)
(make-key stop)
;;; -*-Scheme-*-
;;;
-;;; $Id: dosproc.scm,v 1.5 2000/10/26 02:28:04 cph Exp $
+;;; $Id: dosproc.scm,v 1.6 2001/12/20 21:27:57 cph Exp $
;;;
-;;; Copyright (c) 1992-2000 Massachusetts Institute of Technology
+;;; Copyright (c) 1992-2001 Massachusetts Institute of Technology
;;;
;;; This program is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU General Public License as
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with this program; if not, write to the Free Software
-;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+;;; 02111-1307, USA.
;;;; Dummy subprocess support
;; package: (edwin process)
(editor-error "Processes not implemented" name process)))
(let-syntax ((define-process-operation
- (macro (name)
+ (lambda (name)
`(define ,name (process-operation ',name)))))
(define-process-operation delete-process))
;;; -*-Scheme-*-
;;;
-;;; $Id: schmod.scm,v 1.57 2001/12/20 18:01:59 cph Exp $
+;;; $Id: schmod.scm,v 1.58 2001/12/20 21:28:00 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-2001 Massachusetts Institute of Technology
;;;
(FLUID-LET . 1)
(LET-SYNTAX . 1)
(LOCAL-DECLARE . 1)
- (MACRO . 1)
(NAMED-LAMBDA . 1)
(CALL-WITH-APPEND-FILE . 1)
;;; -*-Scheme-*-
;;;
-;;;$Id: search.scm,v 1.151 2001/12/20 20:51:16 cph Exp $
+;;;$Id: search.scm,v 1.152 2001/12/20 21:28:02 cph Exp $
;;;
-;;; Copyright (c) 1986, 1989-1999 Massachusetts Institute of Technology
+;;; Copyright (c) 1986, 1989-1999, 2001 Massachusetts Institute of Technology
;;;
;;; This program is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU General Public License as
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with this program; if not, write to the Free Software
-;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+;;; 02111-1307, USA.
;;;; Search/Match Primitives
\f
(let-syntax
((define-forward-search
- (macro (name find-next)
+ (lambda (name find-next)
`(DEFINE (,name GROUP START END CHAR)
;; Assume (FIX:<= START END)
(AND (NOT (FIX:= START END))
(let-syntax
((define-backward-search
- (macro (name find-previous)
+ (lambda (name find-previous)
`(DEFINE (,name GROUP START END CHAR)
;; Assume (FIX:<= START END)
(AND (NOT (FIX:= START END))
#| -*-Scheme-*-
-$Id: tterm.scm,v 1.30 1999/02/18 04:14:36 cph Exp $
+$Id: tterm.scm,v 1.31 2001/12/20 21:28:04 cph Exp $
-Copyright (c) 1990-1999 Massachusetts Institute of Technology
+Copyright (c) 1990-1999, 2001 Massachusetts Institute of Technology
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
|#
;;;; Termcap(3) Screen Implementation
(key-table false))
(let-syntax ((define-accessor
- (macro (name)
+ (lambda (name)
`(DEFINE-INTEGRABLE (,(symbol-append 'SCREEN- name) SCREEN)
(,(symbol-append 'TERMINAL-STATE/ name)
(SCREEN-STATE SCREEN)))))
(define-updater
- (macro (name)
+ (lambda (name)
`(DEFINE-INTEGRABLE
(,(symbol-append 'SET-SCREEN- name '!) SCREEN ,name)
(,(symbol-append 'SET-TERMINAL-STATE/ name '!)
#| -*-Scheme-*-
-$Id: apply.scm,v 1.2 1999/01/02 06:11:34 cph Exp $
+$Id: apply.scm,v 1.3 2001/12/20 21:22:05 cph Exp $
-Copyright (c) 1992, 1999 Massachusetts Institute of Technology
+Copyright (c) 1992, 1999, 2001 Massachusetts Institute of Technology
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
|#
;;;; Definition of APPLY
(error "apply: Improper argument list" a0))
(let-syntax ((apply-dispatch&bind
- (macro (var clause . clauses)
+ (lambda (var clause . clauses)
(if (null? clauses)
(cadr clause)
(let walk ((lv var)
#| -*-Scheme-*-
-$Id: arith.scm,v 1.46 2001/12/20 20:51:16 cph Exp $
+$Id: arith.scm,v 1.47 2001/12/20 21:22:31 cph Exp $
Copyright (c) 1989-1999, 2001 Massachusetts Institute of Technology
(let-syntax
((commutative
- (macro (name generic-binary identity primitive-binary)
+ (lambda (name generic-binary identity primitive-binary)
`(SET! ,name
(MAKE-ENTITY
(NAMED-LAMBDA (,name SELF . ZS)
(let-syntax
((non-commutative
- (macro (name generic-unary generic-binary
+ (lambda (name generic-unary generic-binary
generic-inverse inverse-identity primitive-binary)
`(SET! ,name
(MAKE-ENTITY
\f
(let-syntax
((relational
- (macro (name generic-binary primitive-binary correct-type? negated?)
+ (lambda (name generic-binary primitive-binary correct-type? negated?)
`(SET! ,name
(MAKE-ENTITY
(NAMED-LAMBDA (,name SELF . ZS)
(let-syntax
((max/min
- (macro (name generic-binary)
+ (lambda (name generic-binary)
`(SET! ,name
(MAKE-ENTITY
(NAMED-LAMBDA (,name SELF X . XS)
(let-syntax
((define-addition-operator
- (macro (name int:op)
+ (lambda (name int:op)
`(define (,name u/u* v/v*)
(rat:binary-operator u/u* v/v*
,int:op
(let-syntax
((define-integer-coercion
- (macro (name operation-name coercion)
+ (lambda (name operation-name coercion)
`(DEFINE (,name Q)
(COND ((RATNUM? Q)
(,coercion (RATNUM-NUMERATOR Q) (RATNUM-DENOMINATOR Q)))
(let-syntax
((define-standard-unary
- (macro (name flo:op rat:op)
+ (lambda (name flo:op rat:op)
`(DEFINE (,name X)
(IF (FLONUM? X)
(,flo:op X)
\f
(let-syntax
((define-standard-binary
- (macro (name flo:op rat:op)
+ (lambda (name flo:op rat:op)
`(DEFINE (,name X Y)
(IF (FLONUM? X)
(IF (FLONUM? Y)
(let-syntax
((define-integer-binary
- (macro (name operator-name operator)
+ (lambda (name operator-name operator)
(let ((flo->int
(lambda (n)
`(IF (FLO:INTEGER? ,n)
(let-syntax
((define-rational-unary
- (macro (name operator)
+ (lambda (name operator)
`(DEFINE (,name Q)
(IF (FLONUM? Q)
(RAT:->INEXACT (,operator (FLO:->RATIONAL Q)))
\f
(let-syntax
((define-transcendental-unary
- (macro (name hole? hole-value function)
+ (lambda (name hole? hole-value function)
`(DEFINE (,name X)
(IF (,hole? X)
,hole-value
#| -*-Scheme-*-
-$Id: graphics.scm,v 1.17 1999/01/02 06:11:34 cph Exp $
+$Id: graphics.scm,v 1.18 2001/12/20 21:22:55 cph Exp $
-Copyright (c) 1989-1999 Massachusetts Institute of Technology
+Copyright (c) 1989-1999, 2001 Massachusetts Institute of Technology
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
|#
;;;; Graphics Operations
(let-syntax
((define-graphics-operation
- (macro (name)
+ (lambda (name)
`(DEFINE-INTEGRABLE
(,(symbol-append 'GRAPHICS-DEVICE/OPERATION/ name) DEVICE)
(,(symbol-append 'GRAPHICS-DEVICE-TYPE/OPERATION/ name)
#| -*-Scheme-*-
-$Id: infstr.scm,v 1.11 2001/08/10 17:09:18 cph Exp $
+$Id: infstr.scm,v 1.12 2001/12/20 21:23:14 cph Exp $
Copyright (c) 1988-2001 Massachusetts Institute of Technology
(let-syntax
((dbg-block-name
- (macro (name)
+ (lambda (name)
(let ((symbol (symbol-append 'DBG-BLOCK-NAME/ name)))
`(DEFINE-INTEGRABLE ,symbol
',((ucode-primitive string->symbol)
#| -*-Scheme-*-
-$Id: list.scm,v 14.27 2001/11/02 03:27:50 cph Exp $
+$Id: list.scm,v 14.28 2001/12/20 21:23:31 cph Exp $
Copyright (c) 1988-2001 Massachusetts Institute of Technology
\f
(let-syntax
((mapping-procedure
- (macro (name combiner initial-value procedure first rest)
+ (lambda (name combiner initial-value procedure first rest)
`(BEGIN
(DEFINE (MAP-1 L)
(COND ((PAIR? L)
#| -*-Scheme-*-
-$Id: scomb.scm,v 14.16 1999/01/02 06:19:10 cph Exp $
+$Id: scomb.scm,v 14.17 2001/12/20 21:24:08 cph Exp $
-Copyright (c) 1988-1999 Massachusetts Institute of Technology
+Copyright (c) 1988-1999, 2001 Massachusetts Institute of Technology
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
|#
;;;; SCode Combinator Abstractions
\f
(let-syntax
((combination-dispatch
- (macro (name combination case-0 case-1 case-2 case-n)
+ (lambda (name combination case-0 case-1 case-2 case-n)
`(COND ((OBJECT-TYPE? (UCODE-TYPE PRIMITIVE-COMBINATION-0)
,combination)
,case-0)
#| -*-Scheme-*-
-$Id: starbase.scm,v 1.13 1999/01/02 06:19:10 cph Exp $
+$Id: starbase.scm,v 1.14 2001/12/20 21:24:28 cph Exp $
-Copyright (c) 1989-1999 Massachusetts Institute of Technology
+Copyright (c) 1989-1999, 2001 Massachusetts Institute of Technology
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
-Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+02111-1307, USA.
|#
;;;; Starbase Graphics Interface
(let-syntax
((define-accessors-and-mutators
- (macro (name)
+ (lambda (name)
`(BEGIN
(DEFINE (,(symbol-append 'STARBASE-DEVICE/ name) DEVICE)
(,(symbol-append 'STARBASE-GRAPHICS-DESCRIPTOR/ name)
#| -*-Scheme-*-
-$Id: syntax.scm,v 14.45 2001/12/20 20:51:16 cph Exp $
+$Id: syntax.scm,v 14.46 2001/12/20 21:28:41 cph Exp $
Copyright (c) 1988-2001 Massachusetts Institute of Technology
;; Syntax extensions
(DEFINE-SYNTAX ,syntax/define-syntax)
(LET-SYNTAX ,syntax/let-syntax)
- (MACRO ,syntax/lambda)
;; Environment extensions
(ACCESS ,syntax/access)
#| -*-Scheme-*-
-$Id: vector.scm,v 14.17 2001/12/18 18:40:07 cph Exp $
+$Id: vector.scm,v 14.18 2001/12/20 21:23:45 cph Exp $
Copyright (c) 1988-2001 Massachusetts Institute of Technology
(let-syntax
((iref
- (macro (name index)
+ (lambda (name index)
`(DEFINE-INTEGRABLE (,name VECTOR)
(GUARANTEE-VECTOR VECTOR 'SAFE-VECTOR-REF)
(VECTOR-REF VECTOR ,index)))))
#| -*-Scheme-*-
-$Id: object.scm,v 4.10 2001/12/20 16:28:23 cph Exp $
+$Id: object.scm,v 4.11 2001/12/20 21:24:54 cph Exp $
Copyright (c) 1987-1999, 2001 Massachusetts Institute of Technology
(let-syntax
((define-enumeration
- (macro (enumeration-name enumerand-names)
+ (lambda (enumeration-name enumerand-names)
`(BEGIN
(DEFINE ,enumeration-name
(ENUMERATION/MAKE ',enumerand-names))
(let-syntax
((define-simple-type
- (macro (name slots #!optional scode?)
+ (lambda (name slots #!optional scode?)
`(DEFINE-STRUCTURE (,name (TYPE VECTOR)
(NAMED ,(symbol-append name '/ENUMERAND))
(CONC-NAME ,(symbol-append name '/))
(let-syntax
((define-flag
- (macro (name tester setter)
+ (lambda (name tester setter)
`(BEGIN
(DEFINE (,tester VARIABLE)
(MEMQ ',name (VARIABLE/FLAGS VARIABLE)))
;;; -*-Scheme-*-
;;;
-;;; $Id: class.scm,v 1.9 1999/01/02 06:19:10 cph Exp $
+;;; $Id: class.scm,v 1.10 2001/12/20 21:25:19 cph Exp $
;;;
-;;; Copyright (c) 1995-1999 Massachusetts Institute of Technology
+;;; Copyright (c) 1995-1999, 2001 Massachusetts Institute of Technology
;;;
;;; This program is free software; you can redistribute it and/or
;;; modify it under the terms of the GNU General Public License as
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with this program; if not, write to the Free Software
-;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
+;;; 02111-1307, USA.
;;;; Classes
(let-syntax
((define-primitive-class
- (macro (name . superclasses)
+ (lambda (name . superclasses)
`(DEFINE ,name (MAKE-CLASS ',name (LIST ,@superclasses) '())))))
(define-primitive-class <boolean> <object>)
(define (record-free-pointer trace)
(if allow-free-trace?
(let-syntax ((ucode-primitive
- (macro arguments
+ (lambda arguments
(apply make-primitive-procedure arguments))))
(vector-set! (cdr trace)
(car trace)
(restart-thread uitk-thread #T (lambda () (initial-thread-state 'go))))
(let-syntax ((last-reference
- (macro (variable)
+ (lambda (variable)
`(let ((foo ,variable))
(set! ,variable #F)
foo))))
(DECLARE (USUAL-INTEGRATIONS)) ; MIT Scheme-ism: promise not to redefine prims
-;;; $Id: test-wabbit.scm,v 1.1 1995/07/14 04:04:42 ziggy Exp $
+;;; $Id: test-wabbit.scm,v 1.2 2001/12/20 21:26:00 cph Exp $
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
;; - Document dependencies
;; - [SCREWS] see last page
\f
-;;; $Id: test-wabbit.scm,v 1.1 1995/07/14 04:04:42 ziggy Exp $
+;;; $Id: test-wabbit.scm,v 1.2 2001/12/20 21:26:00 cph Exp $
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;;
(access %entity-extra/apply-hook? (->environment '(runtime procedure))))
|#
-(let-syntax ((ucode-type (macro (name) (microcode-type name))))
+(let-syntax ((ucode-type (lambda (name) (microcode-type name))))
(define apply-hook-tag
(access apply-hook-tag (->environment '(runtime procedure))))