summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-11-25 23:28:41 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-11-25 23:28:41 -0800
commit2e04358bf8798638c6c16344f55273bc06297ec6 (patch)
tree6b32c3c87dfef87929af0ad5a4ee0ab28a059080 /eval.c
parentddcc44152f913ec34b866c68a9080e6a35d38b00 (diff)
downloadtxr-2e04358bf8798638c6c16344f55273bc06297ec6.tar.gz
txr-2e04358bf8798638c6c16344f55273bc06297ec6.tar.bz2
txr-2e04358bf8798638c6c16344f55273bc06297ec6.zip
bugfix: expander traversing (sys:expr ...).
* eval.c (do_expand): Do not expand into (sys:expr ...) expressins, the same way (sys:var ...) expressions are avoided. They are not forms.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 566a1877..74713d72 100644
--- a/eval.c
+++ b/eval.c
@@ -3865,7 +3865,7 @@ 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) {
+ } else if (sym == var_s || sym == expr_s) {
return form;
} else {
/* funtion call