diff options
| author | kr.angelov <kr.angelov@gmail.com> | 2012-02-22 14:06:49 +0000 |
|---|---|---|
| committer | kr.angelov <kr.angelov@gmail.com> | 2012-02-22 14:06:49 +0000 |
| commit | 42410f80d214c1edcf9bd0cf52f538af023d7d5c (patch) | |
| tree | 3658f10ccc6b138d976e8934ca907f920001a719 | |
| parent | 786bf883b7284d5d57fa002bb86600996feb8e50 (diff) | |
libpgf: two small fixes in the parser debugger
| -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 a87c62e90..861157f50 100644 --- a/src/runtime/c/pgf/parser.c +++ b/src/runtime/c/pgf/parser.c @@ -127,7 +127,7 @@ pgf_print_production(int fid, PgfProduction prod, GuWriter *wtr, GuExn* err) } case PGF_PRODUCTION_COERCE: { PgfProductionCoerce* pcoerce = i.data; - gu_printf(wtr,err,"_[C%d]\n",pcoerce->coerce); + gu_printf(wtr,err,"_[C%d]\n",pcoerce->coerce->fid); break; } default: @@ -172,7 +172,7 @@ pgf_print_item(PgfItem* item, GuWriter* wtr, GuExn* err) } case PGF_PRODUCTION_COERCE: { PgfProductionCoerce* pcoerce = i.data; - gu_printf(wtr, err, "_[%d]; %d : ", + gu_printf(wtr, err, "_[C%d]; %d : ", pcoerce->coerce->fid, item->base->lin_idx); if (item->seq_idx == 0) |
