diff options
author | Adrian Thurston <thurston@colm.net> | 2018-06-25 10:34:35 +0700 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-06-25 10:34:35 +0700 |
commit | 2c3a53fcc12e2435cb8950c146c1f7fe63949b72 (patch) | |
tree | 2988c71ee8294bff43b8c8fe830d25f021634a06 /src/pdarun.c | |
parent | 58fe99bfaa90bd59cc28a69d36407b06cbaac560 (diff) | |
download | colm-2c3a53fcc12e2435cb8950c146c1f7fe63949b72.tar.gz |
limit the undoing of consumed data
When undoing the consume of make sure we don't send back more than we took out.
Once we hit the limit then move backwards to the previous stream, which we now
stash.
Diffstat (limited to 'src/pdarun.c')
-rw-r--r-- | src/pdarun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdarun.c b/src/pdarun.c index 43676949..212e3a10 100644 --- a/src/pdarun.c +++ b/src/pdarun.c @@ -1969,7 +1969,7 @@ long colm_parse_loop( program_t *prg, tree_t **sp, struct pda_run *pda_run, pda_run->stop = false; while ( true ) { - debug( prg, REALM_PARSE, "parse loop start" ); + debug( prg, REALM_PARSE, "parse loop start\n" ); /* Pull the current scanner from the parser. This can change during * parsing due to inputStream pushes, usually for the purpose of includes. |