summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-11-24 21:22:21 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-11-24 21:22:21 -0800
commit6fc30f12133f6144a7c57df0bc0c397d64387bb9 (patch)
tree49a91c2389aad92592d5c85f3d9117d4176eac07 /eval.c
parentd4bde7c16e9598ec44364fe485aa9b54fb799057 (diff)
downloadtxr-6fc30f12133f6144a7c57df0bc0c397d64387bb9.tar.gz
txr-6fc30f12133f6144a7c57df0bc0c397d64387bb9.tar.bz2
txr-6fc30f12133f6144a7c57df0bc0c397d64387bb9.zip
bugfix: don't expand @meta syntax as function call.
* eval.c (do_expand): If the form is (sys:var ...) then skip it without expanding. Of course, that does not preclude it form being a macro.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/eval.c b/eval.c
index 4e617f9e..6b1f567f 100644
--- a/eval.c
+++ b/eval.c
@@ -3865,6 +3865,8 @@ static val do_expand(val form, val menv)
return expand(first(args), menv);
} else if (sym == sys_lisp1_value_s) {
return expand_lisp1_value(form, menv);
+ } else if (sym == var_s) {
+ return form;
} else {
/* funtion call
also handles: prog1, call, if, and, or,