diff options
author | Adrian Thurston <thurston@complang.org> | 2015-06-21 17:53:03 -0400 |
---|---|---|
committer | Adrian Thurston <thurston@complang.org> | 2015-06-21 17:53:03 -0400 |
commit | 3d8f3c6a214ba93ef3e8f40e87a69636bbff5e5b (patch) | |
tree | f73a5435e3e7beb6791790b06f938352e1241fd9 /src/tree.h | |
parent | 04c2fcda540a4524cfdb08b6a3ea3691cca808e8 (diff) | |
download | colm-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.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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. |