aboutsummaryrefslogtreecommitdiff
path: root/src/lisp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-11-16 13:20:39 +0000
committerdos-reis <gdr@axiomatics.org>2011-11-16 13:20:39 +0000
commit3f5e42cc9a9db6ddbbb90d130826ad6dd3b7d770 (patch)
tree0e60bb72b3f05a9fae2f0b7b797478f61c21225a /src/lisp
parent1c92a8f36879b5a91b7be0f324a05b6507e0e45e (diff)
downloadopen-axiom-3f5e42cc9a9db6ddbbb90d130826ad6dd3b7d770.tar.gz
* interp/category.boot (mkCategory): Tidy.
(SigListUnion): Likewise. The last argument is not a vector buffer. (JoinInner): Use a vector buffer for scratch space to compute the initial principal ancestor. Simplify copy logic. * interp/g-util.boot (mkBuffer): New. (bufferData): New. (buffeLength): Likewise. (resizeBuffer): Likewise. (bufferToVector): Likwise. * lisp/core.lisp.in (mkVector): New. Export.
Diffstat (limited to 'src/lisp')
-rw-r--r--src/lisp/core.lisp.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lisp/core.lisp.in b/src/lisp/core.lisp.in
index 431894b5..948df067 100644
--- a/src/lisp/core.lisp.in
+++ b/src/lisp/core.lisp.in
@@ -149,6 +149,7 @@
"makeByteArray"
"makeBitVector"
"makeString"
+ "mkVector"
"listToString"
"%hasFeature"
@@ -1415,6 +1416,9 @@
(setq l (cdr l)))
s))
+(defmacro |mkVector| (n)
+ `(make-array ,n :initial-element nil))
+
;; native data type translation table
(defconstant |$NativeTypeTable|
'((|void| . @void_type@)