From 7c0bad50921365746ea362710015853a4879c0a7 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Thu, 5 Sep 2013 11:20:39 +0000 Subject: remove the read and write modules from libgu. this simplifies the i/o layer --- src/runtime/c/utils/pgf-print.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/runtime/c/utils/pgf-print.c') diff --git a/src/runtime/c/utils/pgf-print.c b/src/runtime/c/utils/pgf-print.c index b93acb40e..b937ed46c 100644 --- a/src/runtime/c/utils/pgf-print.c +++ b/src/runtime/c/utils/pgf-print.c @@ -1,7 +1,6 @@ #include #include -#include #include #include @@ -30,9 +29,8 @@ int main(int argc, char* argv[]) { goto fail_read; } GuOut* out = gu_file_out(stdout, pool); - GuWriter* wtr = gu_new_utf8_writer(out, pool); - pgf_print(pgf, wtr, err); - gu_writer_flush(wtr, err); + pgf_print(pgf, out, err); + gu_out_flush(out, err); fail_read: gu_pool_free(pool); return status; -- cgit v1.2.3