bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3] style: change misleading macro argument name


From: Akim Demaille
Subject: [PATCH 1/3] style: change misleading macro argument name
Date: Sun, 29 Sep 2019 18:34:09 +0200

* data/skeletons/glr.c, data/skeletons/yacc.c
(yypact_value_is_default): It does not take a rule number as argument.
---
 data/skeletons/glr.c  | 4 ++--
 data/skeletons/yacc.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/data/skeletons/glr.c b/data/skeletons/glr.c
index 9b088959..4bf1991e 100644
--- a/data/skeletons/glr.c
+++ b/data/skeletons/glr.c
@@ -967,8 +967,8 @@ yylhsNonterm (yyRuleNum yyrule)
   return yyr1[yyrule];
 }
 
-#define yypact_value_is_default(Yystate) \
-  ]b4_table_value_equals([[pact]], [[Yystate]], [b4_pact_ninf])[
+#define yypact_value_is_default(Yyn) \
+  ]b4_table_value_equals([[pact]], [[Yyn]], [b4_pact_ninf])[
 
 /** True iff LR state YYSTATE has only a default reduction (regardless
  *  of token).  */
diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index ea97ad46..9f1cdd06 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -645,8 +645,8 @@ static const ]b4_int_type_for([b4_toknum])[ yytoknum[] =
 
 #define YYPACT_NINF ]b4_pact_ninf[
 
-#define yypact_value_is_default(Yystate) \
-  ]b4_table_value_equals([[pact]], [[Yystate]], [b4_pact_ninf])[
+#define yypact_value_is_default(Yyn) \
+  ]b4_table_value_equals([[pact]], [[Yyn]], [b4_pact_ninf])[
 
 #define YYTABLE_NINF ]b4_table_ninf[
 
-- 
2.23.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]