the grammar reader in the C runtime is completely rewritten and it doesn't use the generic programming API

This commit is contained in:
kr.angelov
2013-02-11 10:16:58 +00:00
parent 88d20ca612
commit 10ef298fa0
6 changed files with 919 additions and 672 deletions

View File

@@ -483,7 +483,7 @@ pgf_print_type(PgfType *type, int prec, GuWriter *wtr, GuExn *err)
gu_string_write(type->cid, wtr, err);
for (int i = 0; i < type->n_exprs; i++) {
for (size_t i = 0; i < type->n_exprs; i++) {
gu_puts(" ", wtr, err);
pgf_print_expr(type->exprs[i], 4, wtr, err);
}
@@ -494,7 +494,7 @@ pgf_print_type(PgfType *type, int prec, GuWriter *wtr, GuExn *err)
gu_string_write(type->cid, wtr, err);
for (int i = 0; i < type->n_exprs; i++) {
for (size_t i = 0; i < type->n_exprs; i++) {
gu_puts(" ", wtr, err);
pgf_print_expr(type->exprs[i], 4, wtr, err);
}