(defpackage #:runlisp
(:use #:common-lisp)
- (:export #:*lisp-interpreter* #:*command-line-strings* #:run))
+ (:export #:*lisp-interpreter* #:*command-line-strings* #:run)
+ #+cmu (:import-from #:ext #:*command-line-strings*))
(defvar runlisp:*command-line-strings* '("<interactive>"))
(defpackage #:mdw.sys-base
after fork, for example, to avoid flushing buffers."
(declare (type (unsigned-byte 32) code))
#+cmu (unix::void-syscall ("_exit" c-call:int) code)
+ #+sbcl (sb-ext:quit :unix-status code :recklessly-p t)
#+(or clisp ecl) (ext:quit code))
#-clisp
return to the top-level REPL."
(if (boundp '*lisp-interpreter*)
#+(or cmu ecl) (ext:quit code)
+ #+sbcl (sb-ext:quit :unix-status code)
(progn
(unless (zerop code)
(format t "~&Exiting unsuccessfully with code ~D.~%" code))