added error message because of declaration problems
This commit is contained in:
parent
530e1a3b6d
commit
73231e630b
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue