forked from GitHub/gf-core
the grammar reader in the C runtime is completely rewritten and it doesn't use the generic programming API
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user