diff options
Diffstat (limited to 'colm/bytecode.c')
-rw-r--r-- | colm/bytecode.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/colm/bytecode.c b/colm/bytecode.c index afa67060..d167013c 100644 --- a/colm/bytecode.c +++ b/colm/bytecode.c @@ -314,7 +314,7 @@ void undoPull( Program *prg, StreamImpl *in, Tree *str ) undoStreamPull( in, data, length ); } -long streamPush( Program *prg, Tree **sp, FsmRun *fsmRun, StreamImpl *in, Tree *tree, int ignore ) +static long streamPush( Program *prg, Tree **sp, StreamImpl *in, Tree *tree, int ignore ) { if ( tree->id == LEL_ID_STR ) { /* This should become a compile error. If it's text, it's up to the @@ -326,7 +326,7 @@ long streamPush( Program *prg, Tree **sp, FsmRun *fsmRun, StreamImpl *in, Tree * initStrCollect( &collect ); printTreeCollect( prg, sp, &collect, tree, true ); - streamPushText( fsmRun, in, collect.data, collect.length ); + streamPushText( in, collect.data, collect.length ); long length = collect.length; strCollectDestroy( &collect ); @@ -334,12 +334,12 @@ long streamPush( Program *prg, Tree **sp, FsmRun *fsmRun, StreamImpl *in, Tree * } else if ( tree->id == LEL_ID_STREAM ) { treeUpref( tree ); - streamPushStream( fsmRun, in, tree ); + streamPushStream( in, tree ); return -1; } else { treeUpref( tree ); - streamPushTree( fsmRun, in, tree, ignore ); + streamPushTree( in, tree, ignore ); return -1; } } @@ -2155,7 +2155,7 @@ again: debug( REALM_BYTECODE, "IN_INPUT_APPEND_BKT\n" ); - undoStreamAppend( prg, sp, 0, ((Stream*)accumStream)->in, input, len ); + undoStreamAppend( prg, sp, ((Stream*)accumStream)->in, input, len ); treeDownref( prg, sp, accumStream ); treeDownref( prg, sp, input ); break; @@ -2488,7 +2488,7 @@ again: Stream *input = (Stream*)vm_pop(); Tree *tree = vm_pop(); - long len = streamPush( prg, sp, 0, input->in, tree, false ); + long len = streamPush( prg, sp, input->in, tree, false ); vm_push( 0 ); /* Single unit. */ @@ -2505,7 +2505,7 @@ again: Stream *input = (Stream*)vm_pop(); Tree *tree = vm_pop(); - long len = streamPush( prg, sp, 0, input->in, tree, true ); + long len = streamPush( prg, sp, input->in, tree, true ); vm_push( 0 ); /* Single unit. */ @@ -2525,7 +2525,7 @@ again: debug( REALM_BYTECODE, "IN_INPUT_PUSH_BKT\n" ); - undoStreamPush( prg, sp, 0, input->in, len ); + undoStreamPush( prg, sp, input->in, len ); treeDownref( prg, sp, (Tree*)input ); break; } |