add missing function

This commit is contained in:
Daniel Kochmański 2017-06-23 17:56:32 +02:00
parent a993853acb
commit bfc58c219e

View file

@ -18,6 +18,15 @@
#+(and cygwin (not ecl-min))
(ffi:clines "#include <stdlib.h>")
;;; this is needed by compile.lsp.in
(defun safe-system (string)
(cmpnote "Invoking external command:~% ~A~%" string)
(let ((result (ext:system string)))
(unless (zerop result)
(cerror "Continues anyway."
"(SYSTEM ~S) returned non-zero value ~D"
string result))))
(defun save-directory (forms)
(let ((directory
(probe-file (make-pathname :name nil :type nil