diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-04-08 21:45:40 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-04-08 21:45:40 -0700 |
commit | 8cc7b9ee27b400ba752f11042f727d68a2ef1dc8 (patch) | |
tree | 26b1f3aa192f1c77aef8f979f50f5a3a284dbe8c | |
parent | 8db92bed90d4cf700de8191b6fbd2c4a8c8ab989 (diff) | |
download | txr-8cc7b9ee27b400ba752f11042f727d68a2ef1dc8.tar.gz txr-8cc7b9ee27b400ba752f11042f727d68a2ef1dc8.tar.bz2 txr-8cc7b9ee27b400ba752f11042f727d68a2ef1dc8.zip |
expand-hook: don't process symbol macros.
There isn't an obvious use for calling the
expander hook for symbolic forms that are
macros. (Especially while not calling it
for symbolic forms that are not macros.)
* eval.c (do_expand): Do not call the expand
hook for symbol macro forms.
-rw-r--r-- | eval.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -5067,17 +5067,7 @@ again: val symac_bind = lookup_symac(menv, form); if (symac_bind) { - val eh = expand_hook; val symac = cdr(symac_bind); - - if (eh) { - val eform = funcall3(eh, form, menv, macro_k); - if (eform != form) { - form = rlcp_tree(eform, form); - goto again; - } - } - if (symac == form) return form; return expand(rlcp_tree(symac, form), menv); |