summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e5152eb)
* Make sure *command-line-strings* is bound to something sane, even if
runlisp isn't doing its thing.
* As a result, use *lisp-interpreter* to decide whether runlisp is
actually present.
(defpackage #:runlisp
(:use #:common-lisp)
(:export #:*lisp-interpreter* #:*command-line-strings* #:run))
(defpackage #:runlisp
(:use #:common-lisp)
(:export #:*lisp-interpreter* #:*command-line-strings* #:run))
+(defvar runlisp:*command-line-strings* '("<interactive>"))
(defpackage #:mdw.sys-base
(:use #:common-lisp #:runlisp)
(defpackage #:mdw.sys-base
(:use #:common-lisp #:runlisp)
(defun exit (&optional (code 0))
"Polite way to end a program. If running in an interactive Lisp, just
return to the top-level REPL."
(defun exit (&optional (code 0))
"Polite way to end a program. If running in an interactive Lisp, just
return to the top-level REPL."
- (if (boundp '*command-line-strings*)
+ (if (boundp '*lisp-interpreter*)
#+(or cmu ecl) (ext:quit code)
(progn
(unless (zerop code)
#+(or cmu ecl) (ext:quit code)
(progn
(unless (zerop code)