summaryrefslogtreecommitdiffstats
path: root/lib.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-12-01 06:49:26 -0800
committerKaz Kylheku <kaz@kylheku.com>2016-12-01 06:49:26 -0800
commit98ee5f2a78af025538662cd3aab877a405cb97f1 (patch)
treea517afa3a99a0666ca5463c2ce71ba663a28fb30 /lib.h
parent203b85801e0bade02af3b9e09205041e97771799 (diff)
downloadtxr-98ee5f2a78af025538662cd3aab877a405cb97f1.tar.gz
txr-98ee5f2a78af025538662cd3aab877a405cb97f1.tar.bz2
txr-98ee5f2a78af025538662cd3aab877a405cb97f1.zip
Awk macro prn becomes function.
* share/txr/stdlib/awk.tl (sys:awk-let): Renamed to sys:awk-mac-let. Macrolet prn removed from here. (sys:awk-fun-let): New macro, provides awk functions. The prn function removed from sys:awk-mac-let is generated here. (sys:awk-fun-shadowing-env): New function. (awk): Follow rename of sys:awk-let. When expanding p-action forms, use only sys:awk-mac-let; do not include the awk functions, which do not "vaporize" unlike local macros. To compensate for not including the functions, extend the macro environment with one that shadows the functions, so that during this expansion, any global macros of the same name as awk local functions are properlly hidden. In the final expansion, include the awk functions. * txr.1: Updated documentation to consistently call prn an awk function everywhere.
Diffstat (limited to 'lib.h')
0 files changed, 0 insertions, 0 deletions