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/pgf/parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runtime/c/pgf/parser.c') diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c index 7ca9babd8..47880e874 100644 --- a/src/runtime/c/pgf/parser.c +++ b/src/runtime/c/pgf/parser.c @@ -1828,7 +1828,7 @@ pgf_get_tokens(PgfSequence seq, GuPool* tmp_pool = gu_new_pool(); GuExn* err = gu_new_exn(NULL, gu_kind(type), tmp_pool); GuStringBuf* sbuf = gu_string_buf(tmp_pool); - GuWriter* wtr = gu_string_buf_writer(sbuf); + GuOut* out = gu_string_buf_out(sbuf); // collect the tokens in the production size_t len = gu_seq_length(seq); @@ -1842,11 +1842,11 @@ pgf_get_tokens(PgfSequence seq, size_t len = gu_seq_length(symks->tokens); for (size_t i = tok_idx; i < len; i++) { if (i > 0) { - gu_putc(' ', wtr, err); + gu_putc(' ', out, err); } PgfToken tok = gu_seq_get(symks->tokens, PgfToken, i); - gu_string_write(tok, wtr, err); + gu_string_write(tok, out, err); } tok_idx = 0; -- cgit v1.2.3