r2669: Auto commit for Debian build
[lml.git] / utils.cl
index 77feece957087f1df6dfe8089b188473b81e1fe5..697fe45a1367aa19f4e33b8161ae56fc0298f89e 100644 (file)
--- a/utils.cl
+++ b/utils.cl
@@ -1,4 +1,4 @@
-;;; $Id: utils.cl,v 1.1 2002/09/16 01:13:49 kevin Exp $
+;;; $Id: utils.cl,v 1.2 2002/09/16 02:22:15 kevin Exp $
 ;;;;
 ;;;; General purpose utilities
 
                year
                hr min sec))))
 
+(defun lml-quit (&optional code)
+  "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)
+    #+cormanlisp (win32:exitprocess code)
+    #+gcl (lisp:bye code)
+    #+lispworks (lw:quit :status code)
+    #+lucid (lcl:quit code)
+    #+sbcl (sb-ext:quit :unix-code (typecase code (number code) (null 0) (t 1)))
+    #-(or allegro clisp cmu cormanlisp gcl lispworks lucid sbcl)
+    (error 'not-implemented :proc (list 'quit code)))
+
+