summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-07-19 09:09:13 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-07-19 09:09:13 -0700
commit74880de58e4f3ae6e0a84187f92e6853c37aa64e (patch)
tree64904f35f9d7279cb437866bdfe9deb501ef798f /stream.h
parent614ec6640e3232edfea2614ef290ffcb7ffbae7f (diff)
downloadtxr-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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream.h b/stream.h
index 16829c58..dee60cb8 100644
--- a/stream.h
+++ b/stream.h
@@ -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);