added error message because of declaration problems
This commit is contained in:
parent
4439cdc4fd
commit
43721f5437
@ -180,6 +180,7 @@ declare_struct(fund, idf, tpp)
|
|||||||
register struct tag *tg;
|
register struct tag *tg;
|
||||||
|
|
||||||
|
|
||||||
|
if (*tpp) error("multiple types in declaration");
|
||||||
if (!idf)
|
if (!idf)
|
||||||
idf = gen_idf();
|
idf = gen_idf();
|
||||||
tgp = (fund == ENUM ? &idf->id_enum : &idf->id_struct);
|
tgp = (fund == ENUM ? &idf->id_enum : &idf->id_struct);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user