fixed bug with undefined structs

ceriel changed debugging information
This commit is contained in:
eck
1990-10-19 11:50:32 +00:00
parent 2b7a3c14db
commit eefc2b2658
6 changed files with 66 additions and 44 deletions

View File

@@ -205,10 +205,11 @@ declare_idf(ds, dc, lvl)
but it has to be:
*/
extern char *symbol2str();
if (type->tp_fund != VOID)
if (type->tp_fund != VOID) {
if (level != L_GLOBAL)
error("unknown %s-type",
symbol2str(type->tp_fund));
else error("void is not a complete type");
} else error("void is not a complete type");
}
else if (type->tp_fund != LABEL) {
/* CJ */