diff options
author | Adrian Thurston <thurston@colm.net> | 2018-07-10 11:21:05 +0800 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-07-10 11:21:05 +0800 |
commit | 723b9790f920360fe7947e4c9bf87db1729d20bb (patch) | |
tree | 8c4a9035900ba0fb50acb2684fe9ee4b41a39ad2 /src/bytecode.c | |
parent | a1202027828211d6f4c58709b8059c958b4dc83b (diff) | |
download | colm-723b9790f920360fe7947e4c9bf87db1729d20bb.tar.gz |
some cleanup of eof interface
Still have two bools concerning eof. Can't unify these yet ... need break down
the two concepts to try to unify.
Diffstat (limited to 'src/bytecode.c')
-rw-r--r-- | src/bytecode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bytecode.c b/src/bytecode.c index 5a1df5bf..a0cfdfac 100644 --- a/src/bytecode.c +++ b/src/bytecode.c @@ -2493,7 +2493,7 @@ again: vm_push_parser( parser ); si = input_to_impl( parser->input ); - si->funcs->set_eof( prg, si ); + si->funcs->set_eof_mark( prg, si, true ); if ( exec->WV ) { rcode_unit_start( exec ); @@ -2514,7 +2514,7 @@ again: debug( prg, REALM_BYTECODE, "IN_SEND_EOF_BKT\n" ); struct input_impl *si = input_to_impl( parser->input ); - si->funcs->unset_eof( prg, si ); + si->funcs->set_eof_mark( prg, si, false ); break; } |