diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-11-28 01:23:10 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-11-28 01:23:10 -0800 |
commit | 2cca0f202343044e81785c7612da105f528217fd (patch) | |
tree | 8e929f2a658dff2b1c49dd600a1719ea91e30b9c | |
parent | 4d5a53b6f2811e82e313b979e4b53fd2071f2107 (diff) | |
download | txr-2cca0f202343044e81785c7612da105f528217fd.tar.gz txr-2cca0f202343044e81785c7612da105f528217fd.tar.bz2 txr-2cca0f202343044e81785c7612da105f528217fd.zip |
* stream.c (make_stdio_stream_common): Initialize new
mode member of struct stdio_ops to nil.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | stream.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2013-11-28 Kaz Kylheku <kaz@kylheku.com> + * stream.c (make_stdio_stream_common): Initialize new + mode member of struct stdio_ops to nil. + +2013-11-28 Kaz Kylheku <kaz@kylheku.com> + * stream.c (struct stdio_handle): New member, mode. (stdio_stream_mark): Mark the new member during gc. (stdio_seek): When we seek, we should reset the utf8 machine. @@ -873,6 +873,7 @@ static val make_stdio_stream_common(FILE *f, val descr, struct cobj_ops *ops) val stream = cobj((mem_t *) h, stream_s, ops); h->f = f; h->descr = descr; + h->mode = nil; utf8_decoder_init(&h->ud); h->pid = 0; return stream; |