From c90aa5e2faee118664cbbf9163dcd082d7ae32ec Mon Sep 17 00:00:00 2001 From: "Kevin M. Rosenberg" Date: Mon, 16 Sep 2002 02:22:15 +0000 Subject: [PATCH] r2669: Auto commit for Debian build --- package.cl | 5 ++++- utils.cl | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/package.cl b/package.cl index 0bb6a0b..ed1672b 100644 --- a/package.cl +++ b/package.cl @@ -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 )) diff --git a/utils.cl b/utils.cl index 77feece..697fe45 100644 --- 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 @@ -49,3 +49,17 @@ 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))) + + -- 2.34.1