diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-15 12:20:27 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-15 12:20:27 -0800 |
commit | 24130a3641ae179816ca5672bde12cc04be17813 (patch) | |
tree | 81916c7061137fbe4209e5aa5827bd8fb1630a4c /stream.c | |
parent | 19cdd145d345c4560ccc9d841025415e9696b64e (diff) | |
download | txr-24130a3641ae179816ca5672bde12cc04be17813.tar.gz txr-24130a3641ae179816ca5672bde12cc04be17813.tar.bz2 txr-24130a3641ae179816ca5672bde12cc04be17813.zip |
Version 021 preparation.txr-021
Bumped version numbers, and cleaned up trailing whitespace from some files.
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -169,7 +169,7 @@ static obj_t *stdio_put_string(obj_t *stream, const wchar_t *s) static obj_t *stdio_put_char(obj_t *stream, wchar_t ch) { struct stdio_handle *h = (struct stdio_handle *) stream->co.handle; - return (h->f && putwc(ch, h->f) != WEOF) + return (h->f && putwc(ch, h->f) != WEOF) ? t : stdio_maybe_write_error(stream); } @@ -396,7 +396,7 @@ struct byte_input { static obj_t *byte_in_get_byte(obj_t *stream) { struct byte_input *bi = (struct byte_input *) stream->co.handle; - + if (bi->index < bi->size) return num(bi->buf[bi->index++]); return nil; |