r2669: Auto commit for Debian build
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 16 Sep 2002 02:22:15 +0000 (02:22 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 16 Sep 2002 02:22:15 +0000 (02:22 +0000)
package.cl
utils.cl

index 0bb6a0b94b025190c078d713d2e5929d9fb5ed6b..ed1672b495416f971b30d9e5e1d4c7486045a2cc 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Aug 2002
 ;;;;
-;;;; $Id: package.cl,v 1.1 2002/09/16 01:13:49 kevin Exp $
+;;;; $Id: package.cl,v 1.2 2002/09/16 02:22:15 kevin Exp $
 ;;;;
 ;;;; This file, part of LML, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
@@ -46,4 +46,7 @@
    ;; downloads.cl
    #:std-dl-page
    #:full-dl-page
+
+   ;; utils.cl
+   #:lml-quit
 ))
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)))
+
+