diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2013-02-11 10:16:58 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2013-02-11 10:16:58 +0000 |
| commit | 10ef298fa00bd100bc854c5c8570a550f470dde4 (patch) | |
| tree | e8cd18564f1967a7999c16296f4a1005f6cd42b6 /src/runtime/c/pgf/pgf.c | |
| parent | 88d20ca61238edb14e1151509484c60ef5d967ee (diff) | |
the grammar reader in the C runtime is completely rewritten and it doesn't use the generic programming API
Diffstat (limited to 'src/runtime/c/pgf/pgf.c')
| -rw-r--r-- | src/runtime/c/pgf/pgf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
