diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2012-03-07 12:23:07 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2012-03-07 12:23:07 +0000 |
| commit | 96493c274ba1a02d52f4739f4c222f2b2cbdee54 (patch) | |
| tree | 3943b6a299cf190e19add270e35c1c9490c14623 /src | |
| parent | a96da3048948389af8938db562a602907b1e0568 (diff) | |
libpgf: simple fix in the parser debugger
Diffstat (limited to 'src')
| -rw-r--r-- | src/runtime/c/pgf/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/c/pgf/parser.c b/src/runtime/c/pgf/parser.c index 19bf51011..9876a548e 100644 --- a/src/runtime/c/pgf/parser.c +++ b/src/runtime/c/pgf/parser.c @@ -133,7 +133,7 @@ pgf_print_production(int fid, PgfProduction prod, GuWriter *wtr, GuExn* err) case PGF_PRODUCTION_APPLY: { PgfProductionApply* papp = i.data; gu_printf(wtr,err,"F%d(",papp->fun->funid); - gu_string_write(papp->fun->fun, wtr, err); + gu_string_write(papp->fun->name, wtr, err); gu_printf(wtr,err,")["); size_t n_args = gu_seq_length(papp->args); for (size_t j = 0; j < n_args; j++) { @@ -195,7 +195,7 @@ pgf_print_item(PgfItem* item, GuWriter* wtr, GuExn* err) PgfProductionApply* papp = i.data; PgfCncFun* fun = papp->fun; gu_printf(wtr, err, "F%d(", fun->funid); - gu_string_write(fun->fun, wtr, err); + gu_string_write(fun->name, wtr, err); gu_printf(wtr, err, ")["); for (size_t i = 0; i < gu_seq_length(item->args); i++) { PgfPArg arg = gu_seq_get(item->args, PgfPArg, i); |
