diff options
author | dos-reis <gdr@axiomatics.org> | 2008-10-13 04:44:48 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2008-10-13 04:44:48 +0000 |
commit | a619487f9feb4a530244171b94decfccce57af8b (patch) | |
tree | 5a0f52493070180df83c72571b54afc514b249a3 /src/algebra/strap/LIST.lsp | |
parent | af99530af5531146fb9b56b7fc58fe6209db0404 (diff) | |
download | open-axiom-a619487f9feb4a530244171b94decfccce57af8b.tar.gz |
Add support for Lisp declarations in generated Lisp code.
* interp/i-map.boot (compileCoerceMap): Tell backend that
minivector is global.
* interp/i-spec1.boot (compileADEFBody): Likewise.
* interp/slam.boot (reportFunctionCompilation): Likewise.
* interp/define.boot (spadCompileOrSetq): Tell backend to ignore
last argument for simple functions.
* interp/c-util.boot (skipDeclarations): New.
(lastDeclarationNode): Likewise.
(declareGlobalVariables): Likewise.
(transformToBackendCode): Use them to allow for Lisp
declarations in middle-end forms.
* interp/sys-driver.boot (AxiomCore::%sysInit): Reading Lisp level
Floating point numbers default to double precision.
* algebra/strap: Update.
Diffstat (limited to 'src/algebra/strap/LIST.lsp')
-rw-r--r-- | src/algebra/strap/LIST.lsp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/algebra/strap/LIST.lsp b/src/algebra/strap/LIST.lsp index 97621b74..e43d4ed3 100644 --- a/src/algebra/strap/LIST.lsp +++ b/src/algebra/strap/LIST.lsp @@ -48,13 +48,17 @@ (DECLAIM (FTYPE (FUNCTION (|%List| |%Shell|) |%Thing|) |LIST;convert;$If;13|)) -(DEFUN |LIST;nil;$;1| ($) NIL) +(DEFUN |LIST;nil;$;1| ($) (DECLARE (IGNORE $)) NIL) -(DEFUN |LIST;null;$B;2| (|l| $) (NULL |l|)) +(DEFUN |LIST;null;$B;2| (|l| $) (DECLARE (IGNORE $)) (NULL |l|)) -(DEFUN |LIST;cons;S2$;3| (|s| |l| $) (CONS |s| |l|)) +(DEFUN |LIST;cons;S2$;3| (|s| |l| $) + (DECLARE (IGNORE $)) + (CONS |s| |l|)) -(DEFUN |LIST;append;3$;4| (|l| |t| $) (APPEND |l| |t|)) +(DEFUN |LIST;append;3$;4| (|l| |t| $) + (DECLARE (IGNORE $)) + (APPEND |l| |t|)) (DEFUN |LIST;writeOMList| (|dev| |x| $) (SEQ (SPADCALL |dev| (|getShellEntry| $ 14)) |