mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Remove redundant RETURN statement rule.
The same effect can be achieved with one rule using opt_expr.
This commit is contained in:
parent
58042719e5
commit
f738ef5dba
1 changed files with 1 additions and 5 deletions
|
@ -797,14 +797,10 @@ statements
|
|||
statement
|
||||
: ';' { $$ = 0; }
|
||||
| statement_block { $$ = $1; }
|
||||
| RETURN fexpr ';'
|
||||
| RETURN opt_expr ';'
|
||||
{
|
||||
$$ = return_expr (current_func, $2);
|
||||
}
|
||||
| RETURN ';'
|
||||
{
|
||||
$$ = return_expr (current_func, 0);
|
||||
}
|
||||
| BREAK ';'
|
||||
{
|
||||
$$ = 0;
|
||||
|
|
Loading…
Reference in a new issue