+(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)))
+
+