#| -*-Scheme-*-
-$Id: arith.scm,v 1.49 2002/02/03 03:38:55 cph Exp $
+$Id: arith.scm,v 1.50 2002/02/09 06:09:39 cph Exp $
Copyright (c) 1989-1999, 2001, 2002 Massachusetts Institute of Technology
(lambda (form environment)
(let ((name (list-ref form 1))
(identity (close-syntax (list-ref form 3) environment)))
- `(SET! ,name
+ `(SET! ,(close-syntax name environment)
(MAKE-ENTITY
(NAMED-LAMBDA (,name SELF . ZS)
SELF ; ignored
(sc-macro-transformer
(lambda (form environment)
(let ((name (list-ref form 1)))
- `(SET! ,name
+ `(SET! ,(close-syntax name environment)
(MAKE-ENTITY
(NAMED-LAMBDA (,name SELF Z1 . ZS)
SELF ; ignored
(lambda (form environment)
(let ((name (list-ref form 1))
(type (list-ref form 4)))
- `(SET! ,name
+ `(SET! ,(close-syntax name environment)
(MAKE-ENTITY
(NAMED-LAMBDA (,name SELF . ZS)
SELF ; ignored
(lambda (form environment)
(let ((name (list-ref form 1))
(generic-binary (close-syntax (list-ref form 2) environment)))
- `(SET! ,name
+ `(SET! ,(close-syntax name environment)
(MAKE-ENTITY
(NAMED-LAMBDA (,name SELF X . XS)
SELF ; ignored
((define-addition-operator
(sc-macro-transformer
(lambda (form environment)
- (let ((name (close-syntax (list-ref form 1) environment))
+ (let ((name (list-ref form 1))
(int:op (close-syntax (list-ref form 2) environment)))
`(DEFINE (,name U/U* V/V*)
(RAT:BINARY-OPERATOR U/U* V/V*
((define-integer-coercion
(sc-macro-transformer
(lambda (form environment)
- `(DEFINE (,(close-syntax (list-ref form 1) environment) Q)
+ `(DEFINE (,(list-ref form 1) Q)
(COND ((RATNUM? Q)
(,(close-syntax (list-ref form 3) environment)
(RATNUM-NUMERATOR Q)
((define-standard-unary
(sc-macro-transformer
(lambda (form environment)
- `(DEFINE (,(close-syntax (list-ref form 1) environment) X)
+ `(DEFINE (,(list-ref form 1) X)
(IF (FLONUM? X)
(,(close-syntax (list-ref form 2) environment) X)
(,(close-syntax (list-ref form 3) environment) X)))))))
(lambda (form environment)
(let ((flo:op (close-syntax (list-ref form 2) environment))
(rat:op (close-syntax (list-ref form 3) environment)))
- `(DEFINE (,(close-syntax (list-ref form 1) environment) X Y)
+ `(DEFINE (,(list-ref form 1) X Y)
(IF (FLONUM? X)
(IF (FLONUM? Y)
(,flo:op X Y)
(FLO:->INTEGER ,n)
(ERROR:WRONG-TYPE-ARGUMENT ,n "integer"
',(list-ref form 2))))))
- `(DEFINE (,(close-syntax (list-ref form 1) environment) N M)
+ `(DEFINE (,(list-ref form 1) N M)
(IF (FLONUM? N)
(INT:->INEXACT
(,operator ,(flo->int 'N)
(sc-macro-transformer
(lambda (form environment)
(let ((operator (close-syntax (list-ref form 2) environment)))
- `(DEFINE (,(close-syntax (list-ref form 1) environment) Q)
+ `(DEFINE (,(list-ref form 1) Q)
(IF (FLONUM? Q)
(RAT:->INEXACT (,operator (FLO:->RATIONAL Q)))
(,operator Q))))))))
((define-transcendental-unary
(sc-macro-transformer
(lambda (form environment)
- `(DEFINE (,(close-syntax (list-ref form 1) environment) X)
+ `(DEFINE (,(list-ref form 1) X)
(IF (,(close-syntax (list-ref form 2) environment) X)
,(close-syntax (list-ref form 3) environment)
(,(close-syntax (list-ref form 4) environment)
#| -*-Scheme-*-
-$Id: graphics.scm,v 1.20 2002/02/03 03:38:55 cph Exp $
+$Id: graphics.scm,v 1.21 2002/02/09 06:09:43 cph Exp $
Copyright (c) 1989-1999, 2001, 2002 Massachusetts Institute of Technology
(lambda (form environment)
(let ((name (cadr form)))
`(DEFINE-INTEGRABLE
- (,(close-syntax (symbol-append 'GRAPHICS-DEVICE/OPERATION/ name)
- environment)
- DEVICE)
+ (,(symbol-append 'GRAPHICS-DEVICE/OPERATION/ name) DEVICE)
(,(close-syntax (symbol-append 'GRAPHICS-DEVICE-TYPE/OPERATION/
name)
environment)
#| -*-Scheme-*-
-$Id: infstr.scm,v 1.14 2002/02/03 03:38:55 cph Exp $
+$Id: infstr.scm,v 1.15 2002/02/09 06:09:47 cph Exp $
Copyright (c) 1988-2002 Massachusetts Institute of Technology
(sc-macro-transformer
(lambda (form environment)
(let ((symbol (symbol-append 'DBG-BLOCK-NAME/ (cadr form))))
- `(DEFINE-INTEGRABLE ,(close-syntax symbol environment)
+ `(DEFINE-INTEGRABLE ,symbol
',((ucode-primitive string->symbol)
(string-append "#[(runtime compiler-info)"
(string-downcase (symbol-name symbol))
#| -*-Scheme-*-
-$Id: parse.scm,v 14.36 2002/02/03 03:38:56 cph Exp $
+$Id: parse.scm,v 14.37 2002/02/09 06:09:51 cph Exp $
Copyright (c) 1988-1999, 2001, 2002 Massachusetts Institute of Technology
(let ((offset (cadr form))
(param-list (caddr form))
(body (cdddr form)))
- `(DEFINE ,(map (lambda (name)
- (close-syntax name environment))
- param-list)
+ `(DEFINE ,param-list
(LET ((CORE
(LAMBDA ()
,@(map (lambda (expression)
- (close-syntax expression environment))
+ (make-syntactic-closure environment
+ (cdr param-list)
+ expression))
body))))
(IF *PARSER-ASSOCIATE-POSITIONS?*
(RECORDING-OBJECT-POSITION ,offset CORE)
#| -*-Scheme-*-
-$Id: port.scm,v 1.22 2002/02/03 03:38:56 cph Exp $
+$Id: port.scm,v 1.23 2002/02/09 06:09:55 cph Exp $
Copyright (c) 1991-2002 Massachusetts Institute of Technology
(lambda (form environment)
(let ((dir (cadr form))
(name (caddr form)))
- `(DEFINE (,(close-syntax (symbol-append dir '-PORT/OPERATION/ name)
- environment)
- PORT)
+ `(DEFINE (,(symbol-append dir '-PORT/OPERATION/ name) PORT)
(,(close-syntax (symbol-append 'PORT-TYPE/ name) environment)
(PORT/TYPE PORT))))))))
(define-port-operation input char-ready?)
;;; -*-Scheme-*-
;;;
-;;; $Id: rgxcmp.scm,v 1.119 2002/02/03 03:38:56 cph Exp $
+;;; $Id: rgxcmp.scm,v 1.120 2002/02/09 06:09:59 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-2002 Massachusetts Institute of Technology
;;;
,@(let loop ((n 0) (suffixes suffixes))
(if (pair? suffixes)
(cons `(DEFINE-INTEGRABLE
- ,(close-syntax (symbol-append prefix (car suffixes))
- environment)
+ ,(symbol-append prefix (car suffixes))
,n)
(loop (+ n 1) (cdr suffixes)))
'()))
#| -*-Scheme-*-
-$Id: starbase.scm,v 1.16 2002/02/03 03:38:56 cph Exp $
+$Id: starbase.scm,v 1.17 2002/02/09 06:10:03 cph Exp $
Copyright (c) 1989-1999, 2001, 2002 Massachusetts Institute of Technology
(lambda (form environment)
(let ((name (cadr form)))
`(BEGIN
- (DEFINE (,(close-syntax (symbol-append 'STARBASE-DEVICE/ name)
- environment)
- DEVICE)
+ (DEFINE (,(symbol-append 'STARBASE-DEVICE/ name) DEVICE)
(,(close-syntax
(symbol-append 'STARBASE-GRAPHICS-DESCRIPTOR/ name)
environment)
(GRAPHICS-DEVICE/DESCRIPTOR DEVICE)))
- (DEFINE (,(close-syntax
- (symbol-append 'SET-STARBASE-DEVICE/ name '!)
- environment)
- DEVICE VALUE)
+ (DEFINE
+ (,(symbol-append 'SET-STARBASE-DEVICE/ name '!) DEVICE VALUE)
(,(close-syntax
(symbol-append 'SET-STARBASE-GRAPHICS-DESCRIPTOR/ name '!)
environment)
#| -*-Scheme-*-
-$Id: sysmac.scm,v 14.8 2002/02/03 03:38:57 cph Exp $
+$Id: sysmac.scm,v 14.9 2002/02/09 06:10:07 cph Exp $
Copyright (c) 1988, 1999, 2001, 2002 Massachusetts Institute of Technology
(lambda (form environment)
(let ((primitive-definition
(lambda (variable-name primitive-args)
- `(DEFINE-INTEGRABLE ,(close-syntax variable-name environment)
+ `(DEFINE-INTEGRABLE ,variable-name
,(apply make-primitive-procedure primitive-args)))))
`(BEGIN ,@(map (lambda (name)
(cond ((not (pair? name))
#| -*-Scheme-*-
-$Id: vector.scm,v 14.20 2002/02/03 03:38:57 cph Exp $
+$Id: vector.scm,v 14.21 2002/02/09 06:10:11 cph Exp $
Copyright (c) 1988-2002 Massachusetts Institute of Technology
((iref
(sc-macro-transformer
(lambda (form environment)
- `(DEFINE-INTEGRABLE (,(close-syntax (cadr form) environment) VECTOR)
+ `(DEFINE-INTEGRABLE (,(cadr form) VECTOR)
(GUARANTEE-VECTOR VECTOR 'SAFE-VECTOR-REF)
(VECTOR-REF VECTOR ,(caddr form)))))))
(iref vector-first 0)