mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-10 05:29:30 -06:00
The unmarshaller is no longer stored in the PGF object but is passed explicitly to each function that needs it.
This commit is contained in:
@@ -3513,7 +3513,7 @@ pgf_readPGF(PyObject *self, PyObject *args)
|
||||
|
||||
// Read the PGF grammar.
|
||||
PgfExn err;
|
||||
py_pgf->pgf = pgf_read_pgf(fpath, NULL/*TO BE FIXED*/, &err);
|
||||
py_pgf->pgf = pgf_read_pgf(fpath, &err);
|
||||
if (err.type == PGF_EXN_SYSTEM_ERROR) {
|
||||
errno = err.code;
|
||||
PyErr_SetFromErrnoWithFilename(PyExc_IOError, fpath);
|
||||
|
||||
Reference in New Issue
Block a user