summaryrefslogtreecommitdiff
path: root/src/input.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-06-18 12:48:00 +0700
committerAdrian Thurston <thurston@colm.net>2018-06-18 12:48:00 +0700
commit922038be0f1924e7fe6a52a843d090c47bf7d29c (patch)
tree2c62eec1ba9bc83a662d6b25cf04690308c3ccd4 /src/input.h
parent7edc5a222a767b2be6b610029ecb71dbd2818e9a (diff)
downloadcolm-922038be0f1924e7fe6a52a843d090c47bf7d29c.tar.gz
added stream funcs for collect and flush
Diffstat (limited to 'src/input.h')
-rw-r--r--src/input.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/input.h b/src/input.h
index cb46d998..a40b61f6 100644
--- a/src/input.h
+++ b/src/input.h
@@ -102,6 +102,8 @@ struct stream_funcs \
struct colm_tree *(*undo_append_tree)( struct stream_impl *si ); \
struct colm_tree *(*undo_append_stream)( struct stream_impl *si ); \
void (*destructor)( struct colm_program *prg, struct colm_tree **sp, struct stream_impl *si ); \
+ struct colm_str_collect *(*get_collect)( struct stream_impl *si ); \
+ void (*flush_stream)( struct stream_impl *si ); \
}
DEF_STREAM_FUNCS( stream_funcs, stream_impl );
@@ -129,7 +131,7 @@ struct stream_impl
char *name;
FILE *file;
- struct _StrCollect *collect;
+ struct colm_str_collect *collect;
int consumed;
@@ -161,7 +163,7 @@ struct stream_impl_seq
char *name;
FILE *file;
- struct _StrCollect *collect;
+ struct colm_str_collect *collect;
int consumed;
@@ -193,7 +195,7 @@ struct stream_impl_data
char *name;
FILE *file;
- struct _StrCollect *collect;
+ struct colm_str_collect *collect;
int consumed;