summaryrefslogtreecommitdiffstats
path: root/stream.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2020-04-19 19:15:48 -0700
committerKaz Kylheku <kaz@kylheku.com>2020-04-19 19:15:48 -0700
commitc99dd869357f2afd0b79dfc24f9e9953d9129837 (patch)
tree5297cdf3c4745d8225e98281071db50aa71f424e /stream.h
parent17725d8ac6a5bbc96e888ae6e346f909fe77f3e5 (diff)
downloadtxr-c99dd869357f2afd0b79dfc24f9e9953d9129837.tar.gz
txr-c99dd869357f2afd0b79dfc24f9e9953d9129837.tar.bz2
txr-c99dd869357f2afd0b79dfc24f9e9953d9129837.zip
New function: get-line-as-buf
* buf.c (buf_put_bytes, buf_get_bytes): static functions become external. * buf.h (buf_put_bytes, buf_get_bytes): Declared. * stream.c (get_line_as_buf): New fucntnion. (stream_init): Registered get-line-as-buf intrinsic. * stream.h (get_line_as_buf): Declared. * txr.1: Documented.
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 5a628d9b..3cfb0f8b 100644
--- a/stream.h
+++ b/stream.h
@@ -199,6 +199,7 @@ val unget_byte(val byte, val stream);
val put_buf(val buf, val pos, val stream);
val fill_buf(val buf, val pos, val stream);
val fill_buf_adjust(val buf, val pos, val stream);
+val get_line_as_buf(val stream);
val vformat(val stream, val string, va_list);
val vformat_to_string(val string, va_list);
val format(val stream, val string, ...);