summaryrefslogtreecommitdiff
path: root/src/pdarun.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-05-14 23:04:03 -0400
committerAdrian Thurston <thurston@colm.net>2018-05-14 23:04:03 -0400
commitc923930f14224b5b46ddc7e95352247e698bcfe8 (patch)
tree615477f30b5902509c61fa7f56747389ead4d5fd /src/pdarun.c
parent5ac9c1fa04224dd1860b6cbd8fb22df63d800f01 (diff)
downloadcolm-c923930f14224b5b46ddc7e95352247e698bcfe8.tar.gz
init stop_id when a parser is constructed
removed the setting of the stop_id from the parse_frag call
Diffstat (limited to 'src/pdarun.c')
-rw-r--r--src/pdarun.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pdarun.c b/src/pdarun.c
index 922d44d8..79b40528 100644
--- a/src/pdarun.c
+++ b/src/pdarun.c
@@ -2214,7 +2214,7 @@ long colm_parse_frag( program_t *prg, tree_t **sp, struct pda_run *pda_run,
case PCR_START:
if ( ! pda_run->parse_error ) {
- pda_run->stop_target = stop_id;
+ //pda_run->stop_target = stop_id;
long pcr = colm_parse_loop( prg, sp, pda_run,
stream_to_impl( input ), entry );
@@ -2278,8 +2278,8 @@ long colm_parse_finish( program_t *prg, tree_t **sp,
* if ( pda_run->fail_parsing )
* goto fail; */
- if ( !revert_on )
- colm_rcode_downref_all( prg, sp, &pda_run->reverse_code );
+ //if ( !revert_on )
+ // colm_rcode_downref_all( prg, sp, &pda_run->reverse_code );
/* COROUTINE */
case PCR_DONE: