diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-04-19 08:15:02 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-04-19 08:15:02 -0700 |
commit | f6d7a2ebaad679ff8db23b3e9aa6f5a724259f1b (patch) | |
tree | c6547d4fcdc797a3318a25aa3684b9b60b76d460 /regex.c | |
parent | dfd8eb5a2c6209cfde54d16949e1f0fc570a791a (diff) | |
download | txr-f6d7a2ebaad679ff8db23b3e9aa6f5a724259f1b.tar.gz txr-f6d7a2ebaad679ff8db23b3e9aa6f5a724259f1b.tar.bz2 txr-f6d7a2ebaad679ff8db23b3e9aa6f5a724259f1b.zip |
Improvement in error reporting.
This fix prevents certain situations when an inappropriate form
is reported, in the default unhandled exception handler, as pertaining
to an error.
* eval.c (do_eval): Save and restore the last_form_evaled,
in an exception-unsafe way. If we successfully evaluate a form or
subform, we can restore the previous one.
(expand): Save and restore last_form_expanded similarly. We don't
need the unwind block and counter.
Diffstat (limited to 'regex.c')
0 files changed, 0 insertions, 0 deletions