diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-07-19 09:09:13 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-07-19 09:09:13 -0700 |
commit | 74880de58e4f3ae6e0a84187f92e6853c37aa64e (patch) | |
tree | 64904f35f9d7279cb437866bdfe9deb501ef798f /stream.h | |
parent | 614ec6640e3232edfea2614ef290ffcb7ffbae7f (diff) | |
download | txr-74880de58e4f3ae6e0a84187f92e6853c37aa64e.tar.gz txr-74880de58e4f3ae6e0a84187f92e6853c37aa64e.tar.bz2 txr-74880de58e4f3ae6e0a84187f92e6853c37aa64e.zip |
* eval.c (eval_init): Register get-lines as a synonym for lazy-stream-cons.
* stream.c (get_string): New function.
* stream.h (get_string): Declared.
(stream_init): get_string registered as get-string intrinsic.
* txr.1: Documented get-string, and get-lines as a synonym for
lazy-stream-cons. Documented the behavioral difference of
lazy-stream-cons lazy lists for real-time and non-real-time streams.
Diffstat (limited to 'stream.h')
-rw-r--r-- | stream.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -94,6 +94,7 @@ val put_char(val ch, val stream); val put_byte(val byte, val stream); val flush_stream(val stream); val seek_stream(val stream, val offset, val whence); +val get_string(val stream, val nchars); val statf(val path); val open_directory(val path); val open_file(val path, val mode_str); |