bugfix for the grammar printer in the C runtime

This commit is contained in:
kr.angelov
2013-05-30 20:20:02 +00:00
parent a5a269ac35
commit aa644169c2

View File

@@ -176,9 +176,15 @@ pgf_print_cncfun(PgfCncFun *cncfun, PgfSequences *sequences,
}
}
gu_puts(") [", wtr, err);
gu_string_write(cncfun->absfun->name, wtr, err);
gu_puts("]\n", wtr, err);
gu_puts(")", wtr, err);
if (cncfun->absfun != NULL) {
gu_puts(" [", wtr, err);
gu_string_write(cncfun->absfun->name, wtr, err);
gu_puts("]", wtr, err);
}
gu_puts("\n", wtr, err);
}
static void