vkd3d-shader: Use %empty.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-03-02 15:34:42 -06:00 committed by Alexandre Julliard
parent 0f4d62b09d
commit 2fe6d26dfc

View File

@ -1714,7 +1714,7 @@ static struct list *declare_vars(struct hlsl_ctx *ctx, struct hlsl_type *basic_t
%% %%
hlsl_prog: hlsl_prog:
/* empty */ %empty
| hlsl_prog func_declaration | hlsl_prog func_declaration
{ {
const struct hlsl_ir_function_decl *decl; const struct hlsl_ir_function_decl *decl;
@ -1833,7 +1833,7 @@ any_identifier:
| NEW_IDENTIFIER | NEW_IDENTIFIER
fields_list: fields_list:
/* empty */ %empty
{ {
if (!($$ = make_empty_list())) if (!($$ = make_empty_list()))
YYABORT; YYABORT;
@ -1930,7 +1930,7 @@ compound_statement:
} }
scope_start: scope_start:
/* empty */ %empty
{ {
hlsl_push_scope(ctx); hlsl_push_scope(ctx);
} }
@ -1940,7 +1940,7 @@ var_identifier:
| NEW_IDENTIFIER | NEW_IDENTIFIER
colon_attribute: colon_attribute:
/* empty */ %empty
{ {
$$.semantic = NULL; $$.semantic = NULL;
$$.reg_reservation = NULL; $$.reg_reservation = NULL;
@ -2030,7 +2030,7 @@ parameter:
} }
input_mods: input_mods:
/* empty */ %empty
{ {
$$ = 0; $$ = 0;
} }
@ -2206,7 +2206,7 @@ declaration:
} }
variables_def_optional: variables_def_optional:
/* empty */ %empty
{ {
$$ = NULL; $$ = NULL;
} }
@ -2247,7 +2247,7 @@ variable_def:
} }
array: array:
/* empty */ %empty
{ {
$$ = 0; $$ = 0;
} }
@ -2274,7 +2274,7 @@ array:
} }
var_modifiers: var_modifiers:
/* empty */ %empty
{ {
$$ = 0; $$ = 0;
} }