diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-02-16 00:48:01 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-02-16 00:48:01 -0800 |
commit | ced323fff8f93bffe0666eba6e498b113aa3bd0a (patch) | |
tree | e4402c0f9031456c2234bced84a21e308744da6e /eval.c | |
parent | c3df6f9980a39f1302b028fa6369ace09db374a2 (diff) | |
download | txr-ced323fff8f93bffe0666eba6e498b113aa3bd0a.tar.gz txr-ced323fff8f93bffe0666eba6e498b113aa3bd0a.tar.bz2 txr-ced323fff8f93bffe0666eba6e498b113aa3bd0a.zip |
Bugfixes: not propagating source loc info in quasiliterals.
* eval.c (expand_quasi): Add some rlcp's here.
* parser.y (o_var, quasi_items, o_elems_transform): Likewise.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1736,13 +1736,12 @@ static val expand_quasi(val quasi_forms) val expr_ex = expand(rest(form)); if (expr_ex != rest(form)) - form_ex = cons(sym, expr_ex); - + form_ex = rlcp(cons(sym, expr_ex), form); } } if (form != form_ex) - return cons(form_ex, expand_quasi(rest(quasi_forms))); + return rlcp(cons(form_ex, expand_quasi(rest(quasi_forms))), quasi_forms); return quasi_forms; } } |