style: prefer b4_symbol(empty, ...) to b4_symbol(-2, ...)

Akim Demaille <[email protected]>
Newsgroups gmane.comp.parsers.bison.patches
Message-ID <[email protected]>
A few cases that were missed in the previous renaming sessions.

commit b9b13602ed396ffad63b3bd054234263af73618c
Author: Akim Demaille <[email protected]>
Date:   Fri Nov 13 06:40:45 2020 +0100

    style: prefer b4_symbol(empty, ...) to b4_symbol(-2, ...)
    
    * data/skeletons/c.m4: here.

diff --git a/data/skeletons/c.m4 b/data/skeletons/c.m4
index 3693e469..0a907a36 100644
--- a/data/skeletons/c.m4
+++ b/data/skeletons/c.m4
@@ -521,7 +521,7 @@ m4_define([b4_token_define],
 # Output the definition of the tokens.
 m4_define([b4_token_defines],
 [[/* Token kinds.  */
-#define ]b4_symbol([-2], [id])[ -2
+#define ]b4_symbol(empty, [id])[ -2
 ]m4_join([
 ], b4_symbol_map([b4_token_define]))
 ])
@@ -549,7 +549,7 @@ m4_define([b4_token_enums],
 # define ]b4_api_PREFIX[TOKENTYPE
   enum ]b4_api_prefix[tokentype
   {
-    ]b4_symbol([-2], [id])[ = -2,
+    ]b4_symbol(empty, [id])[ = -2,
 ]b4_symbol_foreach([b4_token_enum])dnl
 [  };
   typedef enum ]b4_api_prefix[tokentype ]b4_api_prefix[token_kind_t;
@@ -599,7 +599,7 @@ m4_define([b4_declare_symbol_enum],
 [[/* Symbol kind.  */
 enum yysymbol_kind_t
 {
-  ]b4_symbol([-2], kind_base)[ = -2,
+  ]b4_symbol(empty, [kind_base])[ = -2,
 ]b4_symbol_foreach([b4_symbol_enum])dnl
 [};
 typedef enum yysymbol_kind_t yysymbol_kind_t;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.