diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-09-05 11:20:39 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-09-05 11:20:39 +0000 |
| commit | 7c0bad50921365746ea362710015853a4879c0a7 (patch) | |
| tree | ead13c32a5b2d8ed2968bcdc5b58e5e7eed79720 /src/runtime/c/utils/pgf-service.c | |
| parent | 504341dfbafdcd858704350162bb7e233cf6daf2 (diff) | |
remove the read and write modules from libgu. this simplifies the i/o layer
Diffstat (limited to 'src/runtime/c/utils/pgf-service.c')
| -rw-r--r-- | src/runtime/c/utils/pgf-service.c | 7 |
1 files changed, 3 insertions, 4 deletions
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); |
