r4656: *** empty log message ***
[lml.git] / utils.lisp
index a1830451579f3ab3fc01f6cbc29922fb25968395..dcd099530255f25c9a00bfa723103499cad1c414 100644 (file)
@@ -1,4 +1,4 @@
-;;; $Id: utils.lisp,v 1.4 2002/12/08 22:38:06 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,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)))