X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=utils.lisp;h=dcd099530255f25c9a00bfa723103499cad1c414;hb=5559792b52819370c47ec865053216ec91ae81e2;hp=e00abb77676f031083c013f9bd2b617215dc0be1;hpb=4cf004c41a51e8ecad9974fa567b9abd503ac82b;p=lml.git diff --git a/utils.lisp b/utils.lisp index e00abb7..dcd0995 100644 --- a/utils.lisp +++ b/utils.lisp @@ -1,4 +1,4 @@ -;;; $Id: utils.lisp,v 1.5 2003/02/06 23:25:52 kevin Exp $ +;;; $Id: utils.lisp,v 1.7 2003/03/12 17:01:48 kevin Exp $ ;;;; ;;;; General purpose utilities @@ -19,8 +19,9 @@ (string-equal "keyword" (package-name (symbol-package x))))) (defun list-to-spaced-string (list) - (when (consp list) - (format nil "~A~{ ~A~}" (first list) (rest list)))) + (if (consp list) + (format nil "~A~{ ~A~}" (first list) (rest list)) + "")) (defun indent-spaces (n &optional (stream *standard-output*)) "Indent n*2 spaces to output stream" @@ -58,7 +59,9 @@ #+lispworks (lw:quit :status code) #+lucid (lcl:quit code) #+sbcl (sb-ext:quit :unix-status (typecase code (number code) (null 0) (t 1))) - #+mcl (ccl:quit code) + #+openmcl (ccl:quit code) + #+(and mcl (not openmcl)) (declare (ignore code)) + #+(and mcl (not openmcl)) (ccl:quit) #-(or allegro clisp cmu scl cormanlisp gcl lispworks lucid sbcl mcl) (error 'not-implemented :proc (list 'quit code)))