fixed bug with struct/union/enum declarations
This commit is contained in:
parent
2552813eaa
commit
de12536c94
@ -366,6 +366,7 @@ enum_specifier(register struct type **tpp;)
|
|||||||
arith l = (arith)0;
|
arith l = (arith)0;
|
||||||
}
|
}
|
||||||
:
|
:
|
||||||
|
{if (*tpp) error("multiple types in declaration");}
|
||||||
ENUM
|
ENUM
|
||||||
[
|
[
|
||||||
{declare_struct(ENUM, (struct idf *) 0, tpp);}
|
{declare_struct(ENUM, (struct idf *) 0, tpp);}
|
||||||
@ -432,6 +433,7 @@ struct_or_union_specifier(register struct type **tpp;)
|
|||||||
register struct idf *idf;
|
register struct idf *idf;
|
||||||
}
|
}
|
||||||
:
|
:
|
||||||
|
{if (*tpp) error("multiple types in declaration");}
|
||||||
[ STRUCT | UNION ]
|
[ STRUCT | UNION ]
|
||||||
{fund = DOT;}
|
{fund = DOT;}
|
||||||
[
|
[
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user