summaryrefslogtreecommitdiff
path: root/src/pdarun.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-05-14 21:43:03 -0400
committerAdrian Thurston <thurston@colm.net>2018-05-14 21:43:03 -0400
commit5ac9c1fa04224dd1860b6cbd8fb22df63d800f01 (patch)
tree9ab68f52abe4eff618367d993cf2627784340395 /src/pdarun.c
parent8b79a2ca4b955742bee4f6f73fff0fad9a30f26a (diff)
downloadcolm-5ac9c1fa04224dd1860b6cbd8fb22df63d800f01.tar.gz
use SEND_EOF instruction for setting and restoring EOF bit
Diffstat (limited to 'src/pdarun.c')
-rw-r--r--src/pdarun.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/pdarun.c b/src/pdarun.c
index 2914e562..922d44d8 100644
--- a/src/pdarun.c
+++ b/src/pdarun.c
@@ -2241,7 +2241,8 @@ long colm_parse_frag( program_t *prg, tree_t **sp, struct pda_run *pda_run,
}
long colm_parse_finish( program_t *prg, tree_t **sp,
- struct pda_run *pda_run, stream_t *input , int revert_on, long entry )
+ struct pda_run *pda_run, stream_t *input,
+ int revert_on, long entry )
{
struct stream_impl *si;
@@ -2250,7 +2251,6 @@ long colm_parse_finish( program_t *prg, tree_t **sp,
case PCR_START:
si = stream_to_impl( input );
- si->funcs->set_eof( si );
if ( ! pda_run->parse_error ) {
si = stream_to_impl( input );
@@ -2270,12 +2270,6 @@ long colm_parse_finish( program_t *prg, tree_t **sp,
}
}
- /* FIXME: need something here to check that we are not stopped waiting for
- * more data when we are actually expected to finish. This check doesn't
- * work (at time of writing). */
- //assert( (pdaRun->stopTarget > 0 && pdaRun->stopParsing) ||
- // streamToImpl( input )->eofSent );
-
/* Flush out anything not committed. */
if ( pda_run->reducer )
commit_reduce( prg, sp, pda_run );