Minor change: improved conflict resolver that tested for never happening case
This commit is contained in:
parent
80c49a6ea7
commit
a3f4cdefa3
|
@ -299,7 +299,7 @@ declarator(register struct declarator *dc;)
|
||||||
primary_declarator(dc)
|
primary_declarator(dc)
|
||||||
[/*%while(1)*/
|
[/*%while(1)*/
|
||||||
'('
|
'('
|
||||||
[ %if (DOT != IDENTIFIER && DOT != ')')
|
[ %if (DOT != IDENTIFIER)
|
||||||
parameter_type_list(&pl)
|
parameter_type_list(&pl)
|
||||||
|
|
|
|
||||||
formal_list(&fm)
|
formal_list(&fm)
|
||||||
|
@ -678,7 +678,9 @@ parameter_declarator(register struct declarator *dc;)
|
||||||
parameter_type_list(&pl)
|
parameter_type_list(&pl)
|
||||||
|
|
|
|
||||||
formal_list(&fm)
|
formal_list(&fm)
|
||||||
]?
|
|
|
||||||
|
/* empty */
|
||||||
|
]
|
||||||
')'
|
')'
|
||||||
{ add_decl_unary(dc, FUNCTION, 0, (arith)0, fm, pl);
|
{ add_decl_unary(dc, FUNCTION, 0, (arith)0, fm, pl);
|
||||||
reject_params(dc);
|
reject_params(dc);
|
||||||
|
|
Loading…
Reference in a new issue