summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2025-06-02 19:57:24 -0700
committerKaz Kylheku <kaz@kylheku.com>2025-06-02 19:57:24 -0700
commitc612409cd38d22a6c8926ee92b89ec7b17a1f578 (patch)
treeccb04cba08fa4b0e21216f84b6b6fb277d623876
parent446bfc27eeac1e1c3c99ed71a6da3e64a87c5987 (diff)
downloadtxr-c612409cd38d22a6c8926ee92b89ec7b17a1f578.tar.gz
txr-c612409cd38d22a6c8926ee92b89ec7b17a1f578.tar.bz2
txr-c612409cd38d22a6c8926ee92b89ec7b17a1f578.zip
streams: get-string for string byte input stream.
* stream.c (byte_in_ops): Wire get_string operation to generic_get_string, giving the stream get-line and get-string support.
-rw-r--r--stream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/stream.c b/stream.c
index 8e4f8ec6..5dbc0a2e 100644
--- a/stream.c
+++ b/stream.c
@@ -2306,7 +2306,8 @@ static struct strm_ops byte_in_ops =
cobj_eq_hash_op,
0),
wli("byte-input-stream"),
- 0, 0, 0, 0,
+ 0, 0, 0,
+ generic_get_string,
byte_in_get_char,
byte_in_get_byte,
byte_in_unget_char,