diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-03-21 22:12:11 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-03-21 22:12:11 -0700 |
commit | 7995694f138ccef0113ac0494790eb0461f5d44e (patch) | |
tree | f47a065ff5bf1b50d024c0b0a9f388549bd15051 /stdlib/build.tl | |
parent | 1cdc46ddad07b2b9eadabad81a7321f6037452bf (diff) | |
download | txr-7995694f138ccef0113ac0494790eb0461f5d44e.tar.gz txr-7995694f138ccef0113ac0494790eb0461f5d44e.tar.bz2 txr-7995694f138ccef0113ac0494790eb0461f5d44e.zip |
compiler: recognize ignore and use functions
We want the ignore function to go away; but if variables
are mentioned, to suppress unused warnings on them.
* stdlib/compiler.tl (%functional-funs%): Remove nilf
from list since we are handling it specially.
(compiler comp-fun-form): Recognize (ignore ...)
and (nilf ...) forms, transforming
them into (progn .... nil). In the case of ignore,
walk the arguments: if any look like variables, mark
them used.
Also, add the use function to the pattern which handles
identity, since it is a synonym.
Diffstat (limited to 'stdlib/build.tl')
0 files changed, 0 insertions, 0 deletions