diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-03-06 20:42:02 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-03-06 20:42:02 -0800 |
commit | a8449a74871f420759b26b60e368548b7938e35c (patch) | |
tree | d8d2918281ddffe5ce1f770100bc495c28ad44cf | |
parent | 24b4b36628fd2ab3d3ff946907ad3a88e325a772 (diff) | |
download | txr-a8449a74871f420759b26b60e368548b7938e35c.tar.gz txr-a8449a74871f420759b26b60e368548b7938e35c.tar.bz2 txr-a8449a74871f420759b26b60e368548b7938e35c.zip |
* match.c: (v_next): Set the "curfile" in the context to "env" when
scanning environment.
(open_data_source): Regression: was not setting c->curfile when opening
anything.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | match.c | 3 |
2 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,12 @@ 2014-03-06 Kaz Kylheku <kaz@kylheku.com> + * match.c: (v_next): Set the "curfile" in the context to "env" when + scanning environment. + (open_data_source): Regression: was not setting c->curfile when opening + anything. + +2014-03-06 Kaz Kylheku <kaz@kylheku.com> + * eval.c (apply_intrinsic, lazy_mapcar): Changed linkage to external. * eval.h (apply_intrinsic, lazy_mapcar): Declarations added. @@ -2267,7 +2267,7 @@ static val v_next(match_files_ctx *c) sem_error(specline, lit("(next :env) takes no additional arguments"), nao); } else { cons_bind (new_bindings, success, - match_files(mf_data(*c, env(), num(1)))); + match_files(mf_file_data(*c, lit("env"), env(), num(1)))); if (success) return cons(new_bindings, @@ -3689,6 +3689,7 @@ static void open_data_source(match_files_ctx *c) } c->files = cons(name, cdr(c->files)); /* Get rid of cons and nothrow */ + c->curfile = source_spec; if ((c->data = complex_snarf(fp, name)) != nil) c->data_lineno = num(1); |