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-service.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/runtime/c/utils/pgf-service.c') diff --git a/src/runtime/c/utils/pgf-service.c b/src/runtime/c/utils/pgf-service.c index b18cfd603..36b781a3f 100644 --- a/src/runtime/c/utils/pgf-service.c +++ b/src/runtime/c/utils/pgf-service.c @@ -91,10 +91,9 @@ render(PgfPGF* pgf, PgfExpr expr, GuPool* pool) /* Parent. */ FILE* fstream = fdopen(pc[1], "w"); GuOut* out = gu_file_out(fstream, pool); - GuWriter* wtr = gu_new_utf8_writer(out, pool); GuExn* err = gu_new_exn(NULL, gu_kind(type), pool); - pgf_graphviz_abstract_tree(pgf, expr, wtr, err); + pgf_graphviz_abstract_tree(pgf, expr, out, err); fclose(fstream); close(cp[1]); @@ -138,11 +137,11 @@ static void linearize(PgfConcr* concr, PgfExpr expr, GuPool* pool) { GuStringBuf* sbuf = gu_string_buf(pool); - GuWriter* wtr = gu_string_buf_writer(sbuf); + GuOut* out = gu_string_buf_out(sbuf); GuExn* err = gu_new_exn(NULL, gu_kind(type), pool); - pgf_linearize(concr, expr, wtr, err); + pgf_linearize(concr, expr, out, err); GuString s = gu_string_buf_freeze(sbuf, pool); put_gu_string(s); -- cgit v1.2.3