summaryrefslogtreecommitdiff
path: root/src/input.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-07-04 13:32:31 +0700
committerAdrian Thurston <thurston@colm.net>2018-07-04 13:32:31 +0700
commit25e3bdac183c6cee13f30e96638d664333b4ce73 (patch)
tree4fac892117c96e16bb0a7f42ca23b215d7f5aaec /src/input.h
parent21c70ccec7283fff33cee96ef5b5fbef9568ed43 (diff)
downloadcolm-25e3bdac183c6cee13f30e96638d664333b4ce73.tar.gz
skip arg to get_parse_block needs to be a pointer
Previously, all the pushed back text went to the top-level stream and it was okay to not persist between data calls. Since we started pushing back to the sub-streams we need to persist this using a pointer in the interface.
Diffstat (limited to 'src/input.h')
-rw-r--r--src/input.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input.h b/src/input.h
index bb6882d2..1fc5d71e 100644
--- a/src/input.h
+++ b/src/input.h
@@ -82,7 +82,7 @@ struct run_buf *new_run_buf( int sz );
#define DEF_STREAM_FUNCS( stream_funcs, stream_impl ) \
struct stream_funcs \
{ \
- int (*get_parse_block)( struct colm_program *prg, struct stream_impl *si, int skip, char **pdp, int *copied ); \
+ int (*get_parse_block)( struct colm_program *prg, struct stream_impl *si, int *pskip, char **pdp, int *copied ); \
int (*get_data)( struct colm_program *prg, struct stream_impl *si, char *dest, int length ); \
int (*consume_data)( struct colm_program *prg, struct stream_impl *si, int length, struct colm_location *loc ); \
struct colm_tree *(*consume_tree)( struct colm_program *prg, struct stream_impl *si ); \