summaryrefslogtreecommitdiffstats
path: root/stdlib/compiler.tl
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-03-30 23:27:14 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-03-30 23:27:14 -0700
commit0c49e3197f5713c72f2d088a4c9f382f6c019ad2 (patch)
treecae9d956d3e6f6d973a74e9eabaa60539dfe9058 /stdlib/compiler.tl
parentf4edb0505467ce4fe4ac23f1889062d0bbddb94d (diff)
downloadtxr-0c49e3197f5713c72f2d088a4c9f382f6c019ad2.tar.gz
txr-0c49e3197f5713c72f2d088a4c9f382f6c019ad2.tar.bz2
txr-0c49e3197f5713c72f2d088a4c9f382f6c019ad2.zip
New function: isecp.
* eval.c (eval_init): Register isecp intrinsic. * lib.c (isecp): New function. * lib.h (isecp): Declared. * stdlib/compiler.tl (lambda-apply-transform, dump-compiled-objects): Use isecp instead of isec, since the actual intersection of symbols isn't needed, only whether it exists. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'stdlib/compiler.tl')
-rw-r--r--stdlib/compiler.tl4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdlib/compiler.tl b/stdlib/compiler.tl
index 7d9cb515..63ceb519 100644
--- a/stdlib/compiler.tl
+++ b/stdlib/compiler.tl
@@ -2037,7 +2037,7 @@
(al-val (gensym))
(shadow-p (let ((all-vars (append pars.req pars.(opt-syms)
(if pars.rest (list pars.rest)))))
- (or (isec all-vars fix-arg-iter)
+ (or (isecp all-vars fix-arg-iter)
(member apply-list-expr all-vars)))))
^(,(if shadow-p 'let 'alet) ,(zip fix-vals fix-arg-iter)
(let* ,(build
@@ -2406,7 +2406,7 @@
self obj)))))
(symvec (sys:vm-desc-symvec vm-desc)))
out.(add (list-from-vm-desc vm-desc))
- (when (isec symvec %package-manip%)
+ (when (isecp symvec %package-manip%)
out.(add :fence)))))
(dump-to-tlo out-stream out))))