diff options
author | Adrian Thurston <thurston@colm.net> | 2018-05-05 22:59:24 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-05-05 22:59:24 -0400 |
commit | 422308c1f28fd2251ebd435ef22780801826bb83 (patch) | |
tree | 9fc7c9923f24e9b1aeeea954509557812e9ca854 /src | |
parent | b961d926f33bb24522808fb84450795b7ed326ad (diff) | |
download | colm-422308c1f28fd2251ebd435ef22780801826bb83.tar.gz |
added a pointer from a parser stream back to parser
Diffstat (limited to 'src')
-rw-r--r-- | src/struct.c | 1 | ||||
-rw-r--r-- | src/struct.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/struct.c b/src/struct.c index 0a6fd781..edf7e486 100644 --- a/src/struct.c +++ b/src/struct.c @@ -164,6 +164,7 @@ struct_t *colm_construct_generic( program_t *prg, long generic_id ) case GEN_PARSER: { parser_t *parser = colm_parser_new( prg, generic_info, 0 ); parser->input = colm_stream_new( prg ); + parser->input->parser = parser; new_generic = (struct_t*) parser; break; } diff --git a/src/struct.h b/src/struct.h index bafbfb64..57ff9182 100644 --- a/src/struct.h +++ b/src/struct.h @@ -70,6 +70,7 @@ typedef struct colm_stream void *buffer[8]; struct stream_impl *impl; + parser_t *parser; } stream_t; #define COLM_LIST_EL_SIZE 2 |