diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2025-05-09 21:30:34 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2025-05-09 21:30:34 -0700 |
commit | e1952b2d9c4dc9165d05161e170b272a1d726be9 (patch) | |
tree | c01d60c3597199605d66db025fc21d312eaf1683 /lib.c | |
parent | e7d52c9b22f569c4c02d59c4c958f7750af2e264 (diff) | |
download | txr-e1952b2d9c4dc9165d05161e170b272a1d726be9.tar.gz txr-e1952b2d9c4dc9165d05161e170b272a1d726be9.tar.bz2 txr-e1952b2d9c4dc9165d05161e170b272a1d726be9.zip |
compiler: improvements in reporting form in diagnostics.
* eval.c (ctx_name): Do not report just the car
of the form. If the form starts with three symbols,
list those; if two, list those.
* stdlib/compiler.tl (expand-defun): Set the
defun form as the macro ancestor of the lambda,
rather than propagating source location info.
Then diagnostics that previously refer to a
lambda will correctly refer to the defun and
thank to the above change in eval.c, include
its name.
* stdlib/pmac.t (define-param-expander):
A similar change here. We make the define-param-expander
form the macro ancestor of the lambda, so that
diagnostics agains tthe lambda will show that
form.
Diffstat (limited to 'lib.c')
0 files changed, 0 insertions, 0 deletions