X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=utils.lisp;h=dcd099530255f25c9a00bfa723103499cad1c414;hb=4702caa93dd3157528b62c3befc5f86fdfb7ec5c;hp=38cab9f88bcd24c2109ed4dbb1f820b52d291d2b;hpb=978fd728f5975dbb00c3b223ae45e480ff26ac19;p=lml.git diff --git a/utils.lisp b/utils.lisp index 38cab9f..dcd0995 100644 --- a/utils.lisp +++ b/utils.lisp @@ -1,4 +1,4 @@ -;;; $Id: utils.lisp,v 1.3 2002/10/16 11:25:28 kevin Exp $ +;;; $Id: utils.lisp,v 1.7 2003/03/12 17:01:48 kevin Exp $ ;;;; ;;;; General purpose utilities @@ -19,7 +19,9 @@ (string-equal "keyword" (package-name (symbol-package x))))) (defun list-to-spaced-string (list) - (format nil "~{ ~A~}" 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" @@ -57,7 +59,10 @@ #+lispworks (lw:quit :status code) #+lucid (lcl:quit code) #+sbcl (sb-ext:quit :unix-status (typecase code (number code) (null 0) (t 1))) - #-(or allegro clisp cmu scl cormanlisp gcl lispworks lucid sbcl) + #+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))) @@ -70,6 +75,7 @@ #+lispworks (hcl:get-working-directory) #+lucid (lcl:working-directory) #+sbcl (sb-unix:posix-getcwd/) - #-(or allegro clisp cmu scl sbcl cormanlisp lispworks lucid) (truename ".")) + #+mcl (ccl:mac-default-directory) + #-(or allegro clisp cmu scl sbcl cormanlisp lispworks lucid mcl) (truename "."))