projects
/
projects
/
chimara
/
chimara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Keep an EOF mark for memory streams
[projects/chimara/chimara.git]
/
libchimara
/
stream.c
diff --git
a/libchimara/stream.c
b/libchimara/stream.c
index 0113b989edfe9245cbf66d025758e42f35141ca4..96ab73fb08dcc97c8857541c0d91bafedbe7b33b 100644
(file)
--- a/
libchimara/stream.c
+++ b/
libchimara/stream.c
@@
-284,6
+284,7
@@
glk_stream_open_memory(char *buf, glui32 buflen, glui32 fmode, glui32 rock)
str->file_mode = fmode;
str->type = STREAM_TYPE_MEMORY;
str->mark = 0;
str->file_mode = fmode;
str->type = STREAM_TYPE_MEMORY;
str->mark = 0;
+ str->endmark = 0;
str->unicode = FALSE;
if(buf && buflen)
str->unicode = FALSE;
if(buf && buflen)
@@
-322,6
+323,7
@@
glk_stream_open_memory_uni(glui32 *buf, glui32 buflen, glui32 fmode, glui32 rock
str->file_mode = fmode;
str->type = STREAM_TYPE_MEMORY;
str->mark = 0;
str->file_mode = fmode;
str->type = STREAM_TYPE_MEMORY;
str->mark = 0;
+ str->endmark = 0;
str->unicode = TRUE;
if(buf && buflen)
str->unicode = TRUE;
if(buf && buflen)