diff options
author | Kaz Kyheku <kaz@kylheku.com> | 2020-01-31 06:06:39 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-01-31 06:06:39 -0800 |
commit | b0ebc5943d7de0e76e3e908fb2d543f34396b69f (patch) | |
tree | 0392694052e11387e864ec2421ddd4e3a2f2c9d2 /txr.1 | |
parent | eeb8ac7f7bcb3ba950a927a4123e277d1130b862 (diff) | |
download | txr-b0ebc5943d7de0e76e3e908fb2d543f34396b69f.tar.gz txr-b0ebc5943d7de0e76e3e908fb2d543f34396b69f.tar.bz2 txr-b0ebc5943d7de0e76e3e908fb2d543f34396b69f.zip |
open-files: add mode string argument.
The open-files and open-files* functions are missing a mode
string argument, which makes it impossible to, say, open all
of the files in "rb" mode on a platform where that matters.
* stream.c (open_files, open_files_star): Take mode as a third
optional parameter. If it is present, then pass it to
open_file.
* txr.1: Document mode string parameter for the two functions.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -50010,8 +50010,8 @@ of .coNP Functions @ open-files and @ open-files* .synb -.mets (open-files < path-list <> [ alternative-stream ]) -.mets (open-files* < path-list <> [ alternative-stream ]) +.mets (open-files < path-list >> [ alternative-stream <> [ mode-string ]]) +.mets (open-files* < path-list >> [ alternative-stream <> [ mode-string ]]) .syne .desc The @@ -50019,8 +50019,19 @@ The and .code open-files* functions create a list of streams by invoking -the open-file function on each element of +the +.code open-file +function on each element of .metn path-list . +By default, the mode string +.str r +is passed to +.codn open-file ; +if the +.meta mode-string +argument specified, it overrides this default. In that situation, +the specified mode should permit reading. + These streams are turned into a catenated stream as if applied as arguments to .codn make-catenated-stream . |