summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2017-07-27 12:11:13 -0400
committerAdrian Thurston <thurston@colm.net>2017-07-27 12:11:13 -0400
commit3f74fc17cee81774ddcc29c0a3560f81f7b60b7d (patch)
treedd3cc86a2cbc0b6eceb2755f084800718842fb1c /src/print.c
parent1395ab646772f3c37e3fbad207d9f12a9d3f3140 (diff)
downloadcolm-3f74fc17cee81774ddcc29c0a3560f81f7b60b7d.tar.gz
added a read_reduce statement to call postfix reducer
Triggers the generation of the reducer. Accepts a stream.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/print.c b/src/print.c
index ad5eefb4..f1c8a058 100644
--- a/src/print.c
+++ b/src/print.c
@@ -740,5 +740,8 @@ void colm_postfix_tree_file( program_t *prg, tree_t **sp, struct stream_impl *im
};
colm_print_tree_args( prg, sp, &print_args, tree );
+
+ //struct stream_impl *impl = (struct stream_impl*) args->arg;
+ fflush( impl->file );
}