Minor change: improved conflict resolver that tested for never happening case

This commit is contained in:
ceriel 1991-04-19 15:26:50 +00:00
parent 80c49a6ea7
commit a3f4cdefa3

View file

@ -299,7 +299,7 @@ declarator(register struct declarator *dc;)
primary_declarator(dc)
[/*%while(1)*/
'('
[ %if (DOT != IDENTIFIER && DOT != ')')
[ %if (DOT != IDENTIFIER)
parameter_type_list(&pl)
|
formal_list(&fm)
@ -678,7 +678,9 @@ parameter_declarator(register struct declarator *dc;)
parameter_type_list(&pl)
|
formal_list(&fm)
]?
|
/* empty */
]
')'
{ add_decl_unary(dc, FUNCTION, 0, (arith)0, fm, pl);
reject_params(dc);