summaryrefslogtreecommitdiff
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-06-25 20:56:56 +0700
committerAdrian Thurston <thurston@colm.net>2018-06-25 20:56:56 +0700
commit970034563818bc6e976953465d74424c773f2a57 (patch)
tree945aba4029257ea076abad2e414c6e39e48a9887 /src/bytecode.c
parentd1829badfa217ab54a5a8f96eb4af1f1d382ea55 (diff)
downloadcolm-970034563818bc6e976953465d74424c773f2a57.tar.gz
balancing pushes and pulls
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bytecode.c b/src/bytecode.c
index 220812bc..4e8d8e61 100644
--- a/src/bytecode.c
+++ b/src/bytecode.c
@@ -305,6 +305,13 @@ static tree_t *stream_pull_bc( program_t *prg, tree_t **sp, struct pda_run *pda_
return construct_string( prg, tokdata );
}
+
+static void undo_stream_pull( struct colm_program *prg, struct stream_impl *is, const char *data, long length )
+{
+ //debug( REALM_PARSE, "undoing stream pull\n" );
+ is->funcs->undo_consume_data( prg, is, data, length );
+}
+
static void undo_pull( program_t *prg, stream_t *stream, tree_t *str )
{
struct stream_impl *impl = stream_to_impl( stream );