diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-01-14 07:07:33 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-01-14 07:07:33 -0800 |
commit | 0b519285f0a3289efa1d7671f949171f47d53151 (patch) | |
tree | 55d8d140076a8d951b2e1371c263c66964dffc64 | |
parent | 28bd257494d8a0a6337d6fdd06b820412a2f1c55 (diff) | |
download | txr-0b519285f0a3289efa1d7671f949171f47d53151.tar.gz txr-0b519285f0a3289efa1d7671f949171f47d53151.tar.bz2 txr-0b519285f0a3289efa1d7671f949171f47d53151.zip |
* stream.c (stdio_seek): After a successful seek, discard the character
that may have been put back with unget_char.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | stream.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2014-01-14 Kaz Kylheku <kaz@kylheku.com> + * stream.c (stdio_seek): After a successful seek, discard the character + that may have been put back with unget_char. + +2014-01-14 Kaz Kylheku <kaz@kylheku.com> + * eval.c (bind_args): Implemented default values for optional arguments. (op_defun): Permit the syntax. @@ -270,6 +270,7 @@ static val stdio_seek(val stream, cnum offset, enum strm_whence whence) } else { if (fseek(h->f, offset, whence) == 0) { utf8_decoder_init(&h->ud); + h->unget_c = nil; return t; } } |