From 10ef298fa00bd100bc854c5c8570a550f470dde4 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 11 Feb 2013 10:16:58 +0000 Subject: the grammar reader in the C runtime is completely rewritten and it doesn't use the generic programming API --- src/runtime/c/pgf/pgf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/c/pgf/pgf.c') diff --git a/src/runtime/c/pgf/pgf.c b/src/runtime/c/pgf/pgf.c index 6c6872867..e9e25e25c 100644 --- a/src/runtime/c/pgf/pgf.c +++ b/src/runtime/c/pgf/pgf.c @@ -29,9 +29,9 @@ pgf_read(const char* fpath, GuIn* in = gu_file_in(infile, tmp_pool); PgfReader* rdr = pgf_new_reader(in, pool, tmp_pool, err); - PgfPGF* pgf = pgf_read_new(rdr, gu_type(PgfPGF), pool, NULL); + PgfPGF* pgf = pgf_read_pgf(rdr); + gu_pool_free(tmp_pool); - gu_return_on_exn(err, NULL); return pgf; } -- cgit v1.2.3