chiark / gitweb /
infix: Overhaul the readtable installer.
[lisp] / sys-base.lisp
index fdbf4fb6b7ab4852f0dfecf3710ced94600af45a..f5f8341efe33ded2fcf5dff951cff051ea2953a4 100644 (file)
@@ -36,7 +36,7 @@ (in-package #:mdw.sys-base)
 #+cmu
 (defun exit (&optional (code 0))
   "Polite way to end a program.  If running in an interactive Lisp, just
-return to the top-level REPL."
+   return to the top-level REPL."
   (if *batch-mode*
       (throw 'lisp::%end-of-the-world code)
       (progn
@@ -45,9 +45,10 @@ (defun exit (&optional (code 0))
         (abort))))
 
 #+cmu
-(defun hard-exit (code)
+(defun hard-exit (&optional (code 0))
   "Stops the program immediately in its tracks.  Does nothing else.  Use
-after fork, for example, to avoid flushing buffers."
+   after fork, for example, to avoid flushing buffers."
+  (declare (type (unsigned-byte 32) code))
   (unix::void-syscall ("_exit" c-call:int) code))
 
 #+cmu