mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
widl: Require a constant expression for case statements.
This commit is contained in:
parent
b599d2596b
commit
6f9020290b
@ -547,7 +547,7 @@ cases: { $$ = NULL; }
|
||||
| cases case { $$ = append_var( $1, $2 ); }
|
||||
;
|
||||
|
||||
case: tCASE expr ':' field { attr_t *a = make_attrp(ATTR_CASE, append_expr( NULL, $2 ));
|
||||
case: tCASE expr_const ':' field { attr_t *a = make_attrp(ATTR_CASE, append_expr( NULL, $2 ));
|
||||
$$ = $4; if (!$$) $$ = make_var(NULL);
|
||||
$$->attrs = append_attr( $$->attrs, a );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user