diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-10-28 06:31:36 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-10-28 06:31:36 -0700 |
commit | f24104801a4a50ebdc5231755a62d1124e381c91 (patch) | |
tree | e5f84504ff8f3808ebbe3deeff932749868fa2d3 /lisplib.c | |
parent | 278aa0eb1aa29677b19526ab5a016ebcc9fd6468 (diff) | |
download | txr-f24104801a4a50ebdc5231755a62d1124e381c91.tar.gz txr-f24104801a4a50ebdc5231755a62d1124e381c91.tar.bz2 txr-f24104801a4a50ebdc5231755a62d1124e381c91.zip |
New awk capability: file/pipe I/O redirection.
* share/txr/stdlib/awk.tl (sys:awk-state): New slot, streams.
Holds hash table of open streams. New :fini finalizer
which closes all streams.
(sys:awk-state ensure-stream, sys:awk-state close-or-flush):
New methods.
(sys:awk-redir): New macro.
(sys:awk-let): Bind new local macros ->, ->>, <-, !> and !<.
(awk): Call finalizers on awk state to get all streams
to close.
* txr.1: Document new awk macros.
Diffstat (limited to 'lisplib.c')
0 files changed, 0 insertions, 0 deletions