diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-11-29 06:16:29 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-11-29 06:16:29 -0800 |
commit | 27e54c2db0cbb08b8cd4163c828e964dedd0e08f (patch) | |
tree | ccd0ba437a109472aae836e35f2ed7b1b52cf6dd /buf.c | |
parent | 87caead8269055b4791de53be0e03afab01f1dd4 (diff) | |
download | txr-27e54c2db0cbb08b8cd4163c828e964dedd0e08f.tar.gz txr-27e54c2db0cbb08b8cd4163c828e964dedd0e08f.tar.bz2 txr-27e54c2db0cbb08b8cd4163c828e964dedd0e08f.zip |
bugfix: code-walk the result of a declined macro.
When a form is a macro, but the macro declines to expand the
form, the form must still be code walked; we can't just return
it and be done. For instance if it is a function call, its
argument expressions have to be expanded.
This also causes undefined function warning to be generated
properly if a macro declines, and the resulting form is
a function call to a not-yet-defined function.
* eval.c (do_expand): If expand_macro yields the original
form, branch backwards to re-execute the whole if statement
again. Use the fact that the local variable macro is now
non-nil to skip the macro expansion case.
Diffstat (limited to 'buf.c')
0 files changed, 0 insertions, 0 deletions