Keep an EOF mark for memory streams
[projects/chimara/chimara.git] / libchimara / stream.h
index ef6b1f0dce5613e27e943ac7543275d7618c5bff..7ff7618c61ef44dc78a75ebc1b60033f45c81718 100644 (file)
@@ -42,14 +42,17 @@ struct glk_stream_struct
        gchar *buffer;
        glui32 *ubuffer;
        glui32 mark;
+       glui32 endmark;
        glui32 buflen;
        gidispatch_rock_t buffer_rock;
        /* Specific to file streams */
        FILE *file_pointer;
        gboolean binary;
        gchar *filename; /* Displayable filename in UTF-8 for error handling */
+       glui32 lastop; /* 0, filemode_Write, or filemode_Read */
 
        gchar *style; /* Name of the current style */
+       gchar *glk_style; /* Name of the current glk style override */
        gboolean hyperlink_mode; /* When turned on, text written to the stream will be a hyperlink */
 };