summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-06-26 09:46:34 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-06-26 09:46:34 -0700
commit3685dbd74d4f9930dfe2ce0ffa0547156cf27c1d (patch)
tree393e8c33e37cc375a784c5b6ddb22fd9fc7fc2f3
parent7292f61bbb89a1657f99b96681c82a13f076f340 (diff)
downloadtxr-3685dbd74d4f9930dfe2ce0ffa0547156cf27c1d.tar.gz
txr-3685dbd74d4f9930dfe2ce0ffa0547156cf27c1d.tar.bz2
txr-3685dbd74d4f9930dfe2ce0ffa0547156cf27c1d.zip
Use Lisp eval for :var inits in collect and gather.
* match.c (vars_to_bindings): Use tleval_144 instead of txeval.
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index edba90fc..af3a0843 100644
--- a/match.c
+++ b/match.c
@@ -397,7 +397,7 @@ static val vars_to_bindings(val spec, val vars, val bindings)
ptail = list_collect(ptail, cons(item, noval_s));
} else if (consp(item) && bindable(first(item))) {
ptail = list_collect(ptail, cons(first(item),
- txeval(spec, second(item), bindings)));
+ tleval_144(spec, second(item), bindings)));
} else {
sem_error(spec, lit("not a variable spec: ~a"), item, nao);
}