summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-12-25 00:51:15 -0800
committerKaz Kylheku <kaz@kylheku.com>2011-12-25 00:51:15 -0800
commit03511c1af9217b9a18e6fc3b85fb8f2a62488322 (patch)
treed52987a226ac9c6f09be8635ac88ce601fc86e1d
parent894aec019d3ce82f861a5777236ac079c2f2388d (diff)
downloadtxr-03511c1af9217b9a18e6fc3b85fb8f2a62488322.tar.gz
txr-03511c1af9217b9a18e6fc3b85fb8f2a62488322.tar.bz2
txr-03511c1af9217b9a18e6fc3b85fb8f2a62488322.zip
* match.c (v_next): Change flatten to lazy_flatten in the
correct place. In the previous commit I did it in the code that handles the obsolescent :var syntax.
-rw-r--r--ChangeLog6
-rw-r--r--match.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ed4a062b..08547f46 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2011-12-25 Kaz Kylheku <kaz@kylheku.com>
+ * match.c (v_next): Change flatten to lazy_flatten in the
+ correct place. In the previous commit I did it in the code that handles
+ the obsolescent :var syntax.
+
+2011-12-25 Kaz Kylheku <kaz@kylheku.com>
+
* eval.c (eval_init): New function interned.
* lib.c:x (lazy_flatten_scan, lazy_flatten_func): New static functions.
diff --git a/match.c b/match.c
index 715bf112..6fb87b2d 100644
--- a/match.c
+++ b/match.c
@@ -1985,7 +1985,7 @@ static val v_next(match_files_ctx *c)
val list_val = txeval(specline, list_expr, c->bindings);
cons_bind (new_bindings, success,
match_files(mf_file_data(*c, lit("var"),
- flatten(list_val), num(1))));
+ lazy_flatten(list_val), num(1))));
if (success)
return cons(new_bindings,