r3972: Auto commit for Debian build
[lml.git] / utils.lisp
index 37fb99d642b430acd88fac08e14d0337c7825330..e00abb77676f031083c013f9bd2b617215dc0be1 100644 (file)
@@ -1,4 +1,4 @@
-;;; $Id: utils.lisp,v 1.2 2002/10/14 03:28:22 kevin Exp $
+;;; $Id: utils.lisp,v 1.5 2003/02/06 23:25:52 kevin Exp $
 ;;;;
 ;;;; General purpose utilities
 
@@ -19,7 +19,8 @@
        (string-equal "keyword" (package-name (symbol-package x)))))
 
 (defun list-to-spaced-string (list)
-  (format nil "~{ ~A~}" list))
+  (when (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"
   "Function to exit the Lisp implementation. Copied from CLOCC's QUIT function."
     #+allegro (excl:exit code)
     #+clisp (#+lisp=cl ext:quit #-lisp=cl lisp:quit code)
-    #+cmu (ext:quit code)
+    #+(or cmu scl) (ext:quit code)
     #+cormanlisp (win32:exitprocess code)
     #+gcl (lisp:bye code)
     #+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 cormanlisp gcl lispworks lucid sbcl)
+    #+mcl (ccl:quit code)
+    #-(or allegro clisp cmu scl cormanlisp gcl lispworks lucid sbcl mcl)
     (error 'not-implemented :proc (list 'quit code)))
 
 
   "Returns the current working directory. Based on CLOCC's DEFAULT-DIRECTORY function."
   #+allegro (excl:current-directory)
   #+clisp (#+lisp=cl ext:default-directory #-lisp=cl lisp:default-directory)
-  #+cmu (ext:default-directory)
+  #+(or cmu scl) (ext:default-directory)
   #+cormanlisp (ccl:get-current-directory)
   #+lispworks (hcl:get-working-directory)
   #+lucid (lcl:working-directory)
-  #-(or allegro clisp cmu cormanlisp lispworks lucid) (truename "."))
+  #+sbcl (sb-unix:posix-getcwd/)
+  #+mcl (ccl:mac-default-directory)
+  #-(or allegro clisp cmu scl sbcl cormanlisp lispworks lucid mcl) (truename "."))