diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-04-19 19:15:48 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-04-19 19:15:48 -0700 |
commit | c99dd869357f2afd0b79dfc24f9e9953d9129837 (patch) | |
tree | 5297cdf3c4745d8225e98281071db50aa71f424e /stream.h | |
parent | 17725d8ac6a5bbc96e888ae6e346f909fe77f3e5 (diff) | |
download | txr-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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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, ...); |