added error message because of declaration problems
This commit is contained in:
parent
530e1a3b6d
commit
73231e630b
|
@ -180,6 +180,7 @@ declare_struct(fund, idf, tpp)
|
|||
register struct tag *tg;
|
||||
|
||||
|
||||
if (*tpp) error("multiple types in declaration");
|
||||
if (!idf)
|
||||
idf = gen_idf();
|
||||
tgp = (fund == ENUM ? &idf->id_enum : &idf->id_struct);
|
||||
|
|
Loading…
Reference in a new issue