From d12fd4bf61209806c780031d81e0b142e147e815 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku <kaz@kylheku.com> Date: Tue, 6 Dec 2011 15:54:59 -0800 Subject: * stream.c (find_char): New function. (string_in_get_line): Following up TODO. Fixed broken function. Now get_line on a string stream properly returns characters up to and not including the next newlne character, and also consumes the newline character. Other cases are handled properly, also: the stream being at EOF already, or at the last line not being newline-terminated. --- ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 78d206ff..1fcfd10c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2011-12-06 Kaz Kylheku <kaz@kylheku.com> + + * stream.c (find_char): New function. + (string_in_get_line): Following up TODO. Fixed broken + function. Now get_line on a string stream properly returns characters + up to and not including the next newlne character, and also consumes + the newline character. Other cases are handled properly, also: + the stream being at EOF already, or at the last line not being + newline-terminated. + 2011-12-06 Kaz Kylheku <kaz@kylheku.com> * eval.c (op_unwind_protect): Fixed uninitialized variable -- cgit v1.2.3