bison-patches
[Top][All Lists]
Advanced

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

Re: Fix %error-verbose for conflicts resolved by %nonassoc.


From: Akim Demaille
Subject: Re: Fix %error-verbose for conflicts resolved by %nonassoc.
Date: Wed, 26 Aug 2009 15:10:13 +0200


Le 25 août 09 à 09:10, Joel E. Denny a écrit :

Hi Joel,

diff --git a/data/yacc.c b/data/yacc.c
index fa14cc5..9689223 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -525,8 +525,14 @@ static const ]b4_int_type_for([b4_toknum]) [ yytoknum[] =

#define YYPACT_NINF ]b4_pact_ninf[

+#define yyis_pact_ninf(yystate) \
+  ]b4_table_value_equals([[pact]], [[yystate]], [b4_pact_ninf])[
+
#define YYTABLE_NINF ]b4_table_ninf[

+#define yyis_table_ninf(yytable_value) \
+ ]b4_table_value_equals([[table]], [[yytable_value]], [b4_table_ninf])[

We try to stick to CamelCase for macro argument names. I case see that this way it really looks like a function, but it is not :)



reply via email to

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