diff options
author | Adrian Thurston <thurston@colm.net> | 2018-06-18 14:25:14 +0700 |
---|---|---|
committer | Adrian Thurston <thurston@colm.net> | 2018-06-18 14:25:14 +0700 |
commit | e706bc4c2a396c3a60658072412e26d9bee83fca (patch) | |
tree | 1dcb55ec10189f69c1575e2a806c0cfef7660dcc /src/input.h | |
parent | 922038be0f1924e7fe6a52a843d090c47bf7d29c (diff) | |
download | colm-e706bc4c2a396c3a60658072412e26d9bee83fca.tar.gz |
added print_tree to stream funcs
Selects between file and collect. Will want to also ensure only called on a
"data" stream_impl.
Diffstat (limited to 'src/input.h')
-rw-r--r-- | src/input.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/input.h b/src/input.h index a40b61f6..bef76dae 100644 --- a/src/input.h +++ b/src/input.h @@ -104,6 +104,8 @@ struct stream_funcs \ void (*destructor)( struct colm_program *prg, struct colm_tree **sp, struct stream_impl *si ); \ struct colm_str_collect *(*get_collect)( struct stream_impl *si ); \ void (*flush_stream)( struct stream_impl *si ); \ + void (*print_tree)( struct colm_program *prg, struct colm_tree **sp, \ + struct stream_impl *impl, struct colm_tree *tree, int trim ); \ } DEF_STREAM_FUNCS( stream_funcs, stream_impl ); |