summaryrefslogtreecommitdiff
path: root/src/runtime/c/utils/pgf-print.c
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-09-05 11:20:39 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-09-05 11:20:39 +0000
commit7c0bad50921365746ea362710015853a4879c0a7 (patch)
treeead13c32a5b2d8ed2968bcdc5b58e5e7eed79720 /src/runtime/c/utils/pgf-print.c
parent504341dfbafdcd858704350162bb7e233cf6daf2 (diff)
remove the read and write modules from libgu. this simplifies the i/o layer
Diffstat (limited to 'src/runtime/c/utils/pgf-print.c')
-rw-r--r--src/runtime/c/utils/pgf-print.c6
1 files changed, 2 insertions, 4 deletions
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 <pgf/pgf.h>
#include <pgf/data.h>
-#include <gu/dump.h>
#include <gu/file.h>
#include <gu/utf8.h>
@@ -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;