diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-04-28 20:41:22 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-04-28 20:41:22 -0700 |
commit | 48ffaab4f43b4f6a2d550f08722dd9558adbf5e1 (patch) | |
tree | 4197dcbfea55b397d72fb70669c0c0c17fea5d4c /tests/002/proc/2638/status | |
parent | 44aa252186ff37ab871c5b66e62ad26abeb5b385 (diff) | |
download | txr-48ffaab4f43b4f6a2d550f08722dd9558adbf5e1.tar.gz txr-48ffaab4f43b4f6a2d550f08722dd9558adbf5e1.tar.bz2 txr-48ffaab4f43b4f6a2d550f08722dd9558adbf5e1.zip |
macros: lexical-var-p: don't report t for specials.
The lexical-var-p function wrongly reports true for locally
rebound special variables, which are not lexical.
* eval.c (special_var_p): Static function moved to avoid
forward declaration.
(lexical_var_p): Bail if sym satisfies special_var_p.
(old_lexical_var_p): New function, copy of old lexical_var_p
before this bugfix.
(eval_init): Conditionally register lexical-var-p as either
lexical_var_p or old_lexical_var_p depending on the compat
value.
* txr.1: Update documentation for lexical-var-p to clarify
that it doesn't report true for specials. Also make note that
it doesn't report true for global lexicals, and likewise that
lexical-fun-p doesn't report global functions.
Added compat note.
Diffstat (limited to 'tests/002/proc/2638/status')
0 files changed, 0 insertions, 0 deletions