#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/error.scm,v 14.31 1992/04/06 05:49:26 cph Exp $
+$Id: error.scm,v 14.32 1992/11/03 22:41:24 jinx Exp $
-Copyright (c) 1988-92 Massachusetts Institute of Technology
+Copyright (c) 1988-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(lambda (continuation)
(let ((condition
(apply make-condition
- continuation
- 'BOUND-RESTARTS
- field-values)))
+ (cons* continuation
+ 'BOUND-RESTARTS
+ field-values))))
(signal-condition condition)
(default-handler condition)))))))
\f
(lambda (continuation)
(let ((condition
(apply make-condition
- continuation
- 'BOUND-RESTARTS
- field-values)))
+ (cons* continuation
+ 'BOUND-RESTARTS
+ field-values))))
(bind-restart 'USE-VALUE
(if (string? use-value-message)
use-value-message
\f
(define (initialize-package!)
(set! hook/invoke-condition-handler default/invoke-condition-handler)
- (set! hook/invoke-restart apply)
+ ;; No eta conversion for bootstrapping and efficiency reasons.
+ (set! hook/invoke-restart
+ (lambda (effector arguments)
+ (apply effector arguments)))
(set! condition-type:serious-condition
(make-condition-type 'SERIOUS-CONDITION false '() false))
(set! condition-type:warning
#| -*-Scheme-*-
-$Id: global.scm,v 14.42 1992/09/14 23:11:54 cph Exp $
+$Id: global.scm,v 14.43 1992/11/03 22:41:00 jinx Exp $
-Copyright (c) 1988-92 Massachusetts Institute of Technology
+Copyright (c) 1988-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(define (false-procedure . args) args false)
(define (true-procedure . args) args true)
-(define (apply f . args)
- ((ucode-primitive apply)
- f
- (if (null? args)
- '()
- (let loop ((first-element (car args)) (rest-elements (cdr args)))
- (if (null? rest-elements)
- first-element
- (cons first-element
- (loop (car rest-elements) (cdr rest-elements))))))))
+;; This definition is replaced when the
+;; later in the boot sequence.
+(define apply (ucode-primitive apply 2))
(define (eval expression environment)
(extended-scode-eval (syntax expression system-global-syntax-table)
#| -*-Scheme-*-
-$Id: make.scm,v 14.37 1992/10/17 22:23:18 jinx Exp $
+$Id: make.scm,v 14.38 1992/11/03 22:41:13 jinx Exp $
Copyright (c) 1988-1992 Massachusetts Institute of Technology
MIT in each case. |#
;;;; Make Runtime System
+;;; package: ()
(declare (usual-integrations))
\f
((ucode-primitive set-interrupt-enables!) 0)
+
+;; This definition is replaced when the
+;; later in the boot sequence.
+(define apply (ucode-primitive apply 2))
+
(define system-global-environment (the-environment))
(let ((environment-for-package (let () (the-environment))))
((RUNTIME MICROCODE-TABLES) READ-MICROCODE-TABLES! #t)
(RUNTIME STATE-SPACE)
(RUNTIME MICROCODE-TABLES)
+ (RUNTIME APPLY)
(RUNTIME PRIMITIVE-IO)
(RUNTIME SAVE/RESTORE)
(RUNTIME SYSTEM-CLOCK)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/parse.scm,v 14.18 1992/07/21 04:24:43 cph Exp $
+$Id: parse.scm,v 14.19 1992/11/03 22:41:30 jinx Exp $
-Copyright (c) 1988-92 Massachusetts Institute of Technology
+Copyright (c) 1988-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
parse-object/special-undefined
collect-list/special-undefined)))
(for-each (lambda (entry)
- (apply parser-table/set-entry! table entry))
+ (apply parser-table/set-entry!
+ (cons table entry)))
`(("#" ,parse-object/special ,collect-list/special)
(,char-set/symbol-leaders ,parse-object/symbol)
(("#b" "#B") ,parse-object/numeric-prefix)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/Attic/syntax.scm,v 14.17 1992/02/08 15:08:39 cph Exp $
+$Id: syntax.scm,v 14.18 1992/11/03 22:41:38 jinx Exp $
-Copyright (c) 1988-92 Massachusetts Institute of Technology
+Copyright (c) 1988-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(define (syntax-error message . irritants)
(apply error
- (string-append "SYNTAX: "
- (if *current-keyword*
- (string-append (symbol->string *current-keyword*)
- ": "
- message)
- message))
- irritants))
+ (cons
+ (string-append "SYNTAX: "
+ (if *current-keyword*
+ (string-append (symbol->string *current-keyword*)
+ ": "
+ message)
+ message))
+ irritants)))
(define (syntax-expressions expressions)
(if (null? expressions)
(define (syntax/define-macro pattern . body)
(let ((keyword (car pattern)))
(syntax-table-define *syntax-table* keyword
- (syntax-eval (apply syntax/named-lambda pattern body)))
+ (syntax-eval (apply syntax/named-lambda (cons pattern body))))
keyword))
(define-integrable (syntax-eval scode)
#| -*-Scheme-*-
-$Id: uerror.scm,v 14.33 1992/10/21 00:17:23 jinx Exp $
+$Id: uerror.scm,v 14.34 1992/11/03 22:41:45 jinx Exp $
Copyright (c) 1988-1992 Massachusetts Institute of Technology
(let ((make-condition (condition-constructor type field-names)))
(lambda (continuation . field-values)
(error (apply make-condition
- continuation
- 'BOUND-RESTARTS
- field-values)))))
+ (cons* continuation
+ 'BOUND-RESTARTS
+ field-values))))))
\f
;;;; Restart Bindings
(fixed-objects-vector-slot 'ERROR-PROCEDURE)
(lambda (datum arguments environment)
environment
- (apply error datum arguments)))
+ (apply error (cons* datum arguments))))
(vector-set! fixed-objects
(fixed-objects-vector-slot 'COMPILER-ERROR-PROCEDURE)
error)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/unsyn.scm,v 14.12 1992/02/08 15:08:42 cph Exp $
+$Id: unsyn.scm,v 14.13 1992/11/03 22:41:50 jinx Exp $
-Copyright (c) 1988-92 Massachusetts Institute of Technology
+Copyright (c) 1988-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(define (unsyntax-error keyword message . irritants)
(apply error
- (string-append "UNSYNTAX: " (symbol->string keyword) ": " message)
- irritants))
+ (cons (string-append "UNSYNTAX: " (symbol->string keyword) ": " message)
+ irritants)))
\f
;;;; Unsyntax Quanta
#| -*-Scheme-*-
-$Id: global.scm,v 14.42 1992/09/14 23:11:54 cph Exp $
+$Id: global.scm,v 14.43 1992/11/03 22:41:00 jinx Exp $
-Copyright (c) 1988-92 Massachusetts Institute of Technology
+Copyright (c) 1988-1992 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(define (false-procedure . args) args false)
(define (true-procedure . args) args true)
-(define (apply f . args)
- ((ucode-primitive apply)
- f
- (if (null? args)
- '()
- (let loop ((first-element (car args)) (rest-elements (cdr args)))
- (if (null? rest-elements)
- first-element
- (cons first-element
- (loop (car rest-elements) (cdr rest-elements))))))))
+;; This definition is replaced when the
+;; later in the boot sequence.
+(define apply (ucode-primitive apply 2))
(define (eval expression environment)
(extended-scode-eval (syntax expression system-global-syntax-table)
#| -*-Scheme-*-
-$Id: make.scm,v 14.37 1992/10/17 22:23:18 jinx Exp $
+$Id: make.scm,v 14.38 1992/11/03 22:41:13 jinx Exp $
Copyright (c) 1988-1992 Massachusetts Institute of Technology
MIT in each case. |#
;;;; Make Runtime System
+;;; package: ()
(declare (usual-integrations))
\f
((ucode-primitive set-interrupt-enables!) 0)
+
+;; This definition is replaced when the
+;; later in the boot sequence.
+(define apply (ucode-primitive apply 2))
+
(define system-global-environment (the-environment))
(let ((environment-for-package (let () (the-environment))))
((RUNTIME MICROCODE-TABLES) READ-MICROCODE-TABLES! #t)
(RUNTIME STATE-SPACE)
(RUNTIME MICROCODE-TABLES)
+ (RUNTIME APPLY)
(RUNTIME PRIMITIVE-IO)
(RUNTIME SAVE/RESTORE)
(RUNTIME SYSTEM-CLOCK)