Initialization
Parse command line arguments until the first
positional argument (see :SCRIPT
).
Load the memory image.
Install internal signal handlers.
Initialize time variables.
Initialize locale-dependent encodings.
Initialize stream variables.
Initialize pathname variables.
Initialize “FFI”.
Run all functions in CUSTOM:*INIT-HOOKS*
.
Say “hi”, unless suppressed by -q
.
The actual work
Handle command line options: file loading and/or compilation, form evaluation, script execution, read-eval-print loop.
Finalization (executed even on abnormal exit due
to kill
)
Unwind the STACK
, executing cleanup forms in
UNWIND-PROTECT
.
Run all functions in CUSTOM:*FINI-HOOKS*
.
Call FRESH-LINE
on the standard streams.
Say “bye” unless suppressed by -q
.
Wait for a keypress if requested by
-w
.
Close all open FILE-STREAM
s.
Close all open DLLs.
CUSTOM:*INIT-HOOKS*
is run like this:
(IGNORE-ERRORS
(MAPC
#'FUNCALL
CUSTOM:*INIT-HOOKS*
))
CUSTOM:*INIT-HOOKS*
and init functionCUSTOM:*INIT-HOOKS*
are
always run regardless of the command line
options before even the banner is printed.CUSTOM:*FINI-HOOKS*
is run like this:
(MAPC
#'FUNCALL
CUSTOM:*FINI-HOOKS*
)
These notes document CLISP version 2.49.93+ | Last modified: 2018-02-19 |