summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-06-19 19:07:31 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-06-19 19:07:31 -0700
commit3e00170c1ca93f6677c1cc9f68b120bdc3f9da1f (patch)
treeb283b7480eca99a03165e107f7fb3cfd3df79364 /Makefile
parent92d273995c487edcffde501bf05a2905aef2e99c (diff)
downloadtxr-3e00170c1ca93f6677c1cc9f68b120bdc3f9da1f.tar.gz
txr-3e00170c1ca93f6677c1cc9f68b120bdc3f9da1f.tar.bz2
txr-3e00170c1ca93f6677c1cc9f68b120bdc3f9da1f.zip
awk macro: bugfix: :output file stream not closed.
In the case when the :output clause of the awk macro opens a stream, it isn't closing it. Why don't we treat such a stream uniformly with redirections. * share/txr/stdlib/awk.tl (sys:awk-state :postinit): If a file is opened for output, then don't just install this file as self.output. Also place it into the self.streams hash, identified by using the key (:outf <name>), just like a (-> "name") redirection. This ensures that it will be closed when the awk macro terminates. It's also potentially useful in that output redirections referring to the name will use the same stream. * txr.1: Documented that streams opened by :output are closed, and that they are treated uniformly with redirections.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions