fixed bugs, added dynamic buffer allocation to preprocessor

This commit is contained in:
eck
1989-11-22 13:58:36 +00:00
parent 793a6b8ddd
commit 2e97e6e8b2
24 changed files with 386 additions and 283 deletions

View File

@@ -74,11 +74,13 @@ add_proto(pl, ds, dc, lvl)
type = declare_type(ds->ds_type, dc);
if (type->tp_size < (arith)0 && actual_declaration(sc, type)) {
extern char *symbol2str();
error("unknown %s-type", symbol2str(type->tp_fund));
} else if (type->tp_size == 0) {
if (idf != (struct idf *)0)
error("illegal use of void in argument list");
else pl->pl_flag = PL_VOID;
if (type->tp_fund != VOID)
error("unknown %s-type", symbol2str(type->tp_fund));
else {
if (idf != (struct idf *)0)
error("illegal use of void in argument list");
else pl->pl_flag = PL_VOID;
}
}
/* Perform some special conversions for parameters.