summaryrefslogtreecommitdiff
path: root/src/pdarun.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-07-06 18:33:42 +0800
committerAdrian Thurston <thurston@colm.net>2018-07-06 18:33:42 +0800
commit975d403f75b2dfa2b8de57021614759ce5ae9d3f (patch)
treeec209244debe87cece097cce7130facb13a32856 /src/pdarun.c
parent967a1d439c416643f341aa766bfac3b5943ee9fa (diff)
downloadcolm-975d403f75b2dfa2b8de57021614759ce5ae9d3f.tar.gz
some better organization of the stream funcs
Diffstat (limited to 'src/pdarun.c')
-rw-r--r--src/pdarun.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pdarun.c b/src/pdarun.c
index 19e7095a..47be8de0 100644
--- a/src/pdarun.c
+++ b/src/pdarun.c
@@ -141,7 +141,6 @@ head_t *colm_stream_pull( program_t *prg, tree_t **sp, struct pda_run *pda_run,
}
}
-
void colm_stream_push_text( struct colm_program *prg, struct stream_impl *is, const char *data, long length )
{
is->funcs->prepend_data( prg, is, data, length );
@@ -160,8 +159,8 @@ void colm_stream_push_stream( struct colm_program *prg, struct stream_impl *is,
void colm_undo_stream_push( program_t *prg, tree_t **sp, struct stream_impl *is, long length )
{
if ( length < 0 ) {
- tree_t *tree = is->funcs->undo_prepend_tree( prg, is );
- // colm_tree_downref( prg, sp, tree );
+ /* tree_t *tree = */ is->funcs->undo_prepend_tree( prg, is );
+ // colm_tree_downref( prg, sp, tree );
}
else {
is->funcs->undo_prepend_data( prg, is, length );