of "~/scheme_suspend" files.
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/intrpt.scm,v 14.10 1992/02/25 22:55:20 cph Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/intrpt.scm,v 14.11 1992/08/18 02:56:20 cph Exp $
Copyright (c) 1988-92 Massachusetts Institute of Technology
(clear-interrupts! interrupt-bit/timer)
(thread-timer-interrupt-handler))
+;; This switch is set by the command-line initialization code.
+(define generate-suspend-file?)
+
(define (suspend-interrupt-handler interrupt-code interrupt-enables)
interrupt-code interrupt-enables
(clear-interrupts! interrupt-bit/suspend)
- (bind-condition-handler (list condition-type:serious-condition)
- (lambda (condition)
- condition
- (%exit))
- (lambda ()
- (bind-condition-handler (list condition-type:warning)
+ (if generate-suspend-file?
+ (bind-condition-handler (list condition-type:serious-condition)
(lambda (condition)
condition
- (muffle-warning))
+ (%exit))
(lambda ()
- (if (not (disk-save (merge-pathnames "scheme_suspend"
- (user-homedir-pathname))
- true))
- (%exit)))))))
+ (bind-condition-handler (list condition-type:warning)
+ (lambda (condition)
+ condition
+ (muffle-warning))
+ (lambda ()
+ (if (not (disk-save (merge-pathnames "scheme_suspend"
+ (user-homedir-pathname))
+ true))
+ (%exit))))))
+ (%exit)))
(define (gc-out-of-space-handler . args)
args
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/load.scm,v 14.39 1992/08/13 11:48:04 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/load.scm,v 14.40 1992/08/18 02:56:22 cph Exp $
-Copyright (c) 1988-1992 Massachusetts Institute of Technology
+Copyright (c) 1988-92 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
unspecific))
\f
(define (process-command-line)
+ (set! generate-suspend-file? true)
(hook/process-command-line ((ucode-primitive get-unused-command-line 0))))
(define hook/process-command-line)
(set! *load-init-file?* false)
(values (cdr command-line) #f)))
+ (set! generate-suspend-file? true)
+ (set-command-line-parser!
+ "-no-suspend-file"
+ (lambda (command-line)
+ (set! generate-suspend-file? false)
+ (values (cdr command-line) #f)))
+
(set-command-line-parser!
"-load"
(lambda (command-line)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.158 1992/08/12 01:08:57 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/runtime/runtime.pkg,v 14.159 1992/08/18 02:56:23 cph Exp $
-Copyright (c) 1988-1992 Massachusetts Institute of Technology
+Copyright (c) 1988-92 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(export (runtime emacs-interface)
hook/^G-interrupt
hook/clean-input/flush-typeahead)
+ (export (runtime load)
+ generate-suspend-file?)
(initialization (initialize-package!)))
(define-package (runtime lambda-abstraction)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/load.scm,v 14.39 1992/08/13 11:48:04 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/load.scm,v 14.40 1992/08/18 02:56:22 cph Exp $
-Copyright (c) 1988-1992 Massachusetts Institute of Technology
+Copyright (c) 1988-92 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
unspecific))
\f
(define (process-command-line)
+ (set! generate-suspend-file? true)
(hook/process-command-line ((ucode-primitive get-unused-command-line 0))))
(define hook/process-command-line)
(set! *load-init-file?* false)
(values (cdr command-line) #f)))
+ (set! generate-suspend-file? true)
+ (set-command-line-parser!
+ "-no-suspend-file"
+ (lambda (command-line)
+ (set! generate-suspend-file? false)
+ (values (cdr command-line) #f)))
+
(set-command-line-parser!
"-load"
(lambda (command-line)
#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.158 1992/08/12 01:08:57 jinx Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v8/src/runtime/runtime.pkg,v 14.159 1992/08/18 02:56:23 cph Exp $
-Copyright (c) 1988-1992 Massachusetts Institute of Technology
+Copyright (c) 1988-92 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
(export (runtime emacs-interface)
hook/^G-interrupt
hook/clean-input/flush-typeahead)
+ (export (runtime load)
+ generate-suspend-file?)
(initialization (initialize-package!)))
(define-package (runtime lambda-abstraction)