chiark / gitweb /
sys-base: Portability fixes again.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 24 May 2006 17:50:26 +0000 (18:50 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 24 May 2006 17:50:26 +0000 (18:50 +0100)
  * 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.

sys-base.lisp

index ede099a80c00a8016c0047f668871ced07f224f6..83f06f2071f67e01b999394ba0c02a56f4c6a366 100644 (file)
@@ -26,6 +26,7 @@
 (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)
@@ -45,7 +46,7 @@ (defun hard-exit (&optional (code 0))
 (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)