summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-06-18 15:06:44 +0700
committerAdrian Thurston <thurston@colm.net>2018-06-18 15:06:44 +0700
commit9c76ff83caf59acd8678cc62414efb063470a314 (patch)
tree25d8c9094538d9aba26dbdf770625d95e2796f9b /src/print.c
parent947f47fa390a262c101822df2b181c807bd861bc (diff)
downloadcolm-9c76ff83caf59acd8678cc62414efb063470a314.tar.gz
when printing we can assume we have stream_impl_data
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/print.c b/src/print.c
index 02e09f87..ded936e7 100644
--- a/src/print.c
+++ b/src/print.c
@@ -100,7 +100,7 @@ void append_collect( struct colm_print_args *args, const char *data, int length
void append_file( struct colm_print_args *args, const char *data, int length )
{
int level;
- struct stream_impl *impl = (struct stream_impl*) args->arg;
+ struct stream_impl_data *impl = (struct stream_impl_data*) args->arg;
restart:
if ( impl->indent ) {
@@ -468,7 +468,7 @@ void colm_print_term_tree( program_t *prg, tree_t **sp,
}
struct lang_el_info *lel_info = prg->rtd->lel_info;
- struct stream_impl *impl = (struct stream_impl*) print_args->arg;
+ struct stream_impl_data *impl = (struct stream_impl_data*) print_args->arg;
if ( strcmp( lel_info[kid->tree->id].name, "_IN_" ) == 0 ) {
if ( impl->level == COLM_INDENT_OFF ) {