summaryrefslogtreecommitdiff
path: root/src/tree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2015-06-21 17:53:03 -0400
committerAdrian Thurston <thurston@complang.org>2015-06-21 17:53:03 -0400
commit3d8f3c6a214ba93ef3e8f40e87a69636bbff5e5b (patch)
treef73a5435e3e7beb6791790b06f938352e1241fd9 /src/tree.h
parent04c2fcda540a4524cfdb08b6a3ea3691cca808e8 (diff)
downloadcolm-3d8f3c6a214ba93ef3e8f40e87a69636bbff5e5b.tar.gz
removed the fd-based IO funcs, just using FILE structs
IO should be buffered for performance, we do many small prints when we iterate trees.
Diffstat (limited to 'src/tree.h')
-rw-r--r--src/tree.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tree.h b/src/tree.h
index 3a3da7ec..67f3a199 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -304,10 +304,11 @@ tree_t *tree_trim( struct colm_program *prg, tree_t **sp, tree_t *tree );
void print_tree_collect( struct colm_program *prg, tree_t **sp,
StrCollect *collect, tree_t *tree, int trim );
-void print_tree_file( struct colm_program *prg, tree_t **sp, FILE *out, tree_t *tree, int trim );
-void print_tree_fd( struct colm_program *prg, tree_t **sp, int fd, tree_t *tree, int trim );
+
+void print_tree_file( struct colm_program *prg, tree_t **sp,
+ struct stream_impl *impl, tree_t *tree, int trim );
void print_xml_stdout( struct colm_program *prg, tree_t **sp,
- tree_t *tree, int comm_attr, int trim );
+ struct stream_impl *impl, tree_t *tree, int comm_attr, int trim );
/*
* Iterators.