Zebediah Figura : vkd3d-shader: Use %empty.

Alexandre Julliard julliard at winehq.org
Thu Mar 4 15:46:31 CST 2021


Module: vkd3d
Branch: master
Commit: 2fe6d26dfccea478e84497d5f6dfdf716438b363
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=2fe6d26dfccea478e84497d5f6dfdf716438b363

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Tue Mar  2 15:34:42 2021 -0600

vkd3d-shader: Use %empty.

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 libs/vkd3d-shader/hlsl.y | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

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




More information about the wine-cvs mailing list