opensubscriber
   Find in this group all groups
 
Unknown more information…

b : bison-patches@gnu.org 3 August 2012 • 4:39PM -0400

[PATCH 09/11] skeletons: renamings after knr removal
by Akim Demaille

REPLY TO AUTHOR
 
REPLY TO GROUP




* data/c.m4 (b4_yydestruct_generate, b4_yy_symbol_print_generate):
Rename as...
(b4_yydestruct_define, b4_yy_symbol_print_define): these, for consistency.
* data/glr.c, data/glr.cc, data/yacc.c: Adjust.
---
data/c.m4   | 12 ++++++------
data/glr.c  |  4 ++--
data/glr.cc |  4 ++--
data/yacc.c |  4 ++--
4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/data/c.m4 b/data/c.m4
index 6133823..0020982 100644
--- a/data/c.m4
+++ b/data/c.m4
@@ -407,10 +407,10 @@ b4_syncline([@oline@], [@ofile@])
     break;])


-# b4_yydestruct_generate
-# ----------------------
+# b4_yydestruct_define
+# --------------------
# Define the "yydestruct" function.
-m4_define_default([b4_yydestruct_generate],
+m4_define_default([b4_yydestruct_define],
[[/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/
@@ -439,10 +439,10 @@ m4_ifset([b4_parse_param], [, b4_parse_param]))[
])


-# b4_yy_symbol_print_generate
-# ---------------------------
+# b4_yy_symbol_print_define
+# -------------------------
# Define the "yy_symbol_print" function.
-m4_define_default([b4_yy_symbol_print_generate],
+m4_define_default([b4_yy_symbol_print_define],
[[
/*--------------------------------.
| Print this symbol on YYOUTPUT.  |
diff --git a/data/glr.c b/data/glr.c
index 511510d..18a1138 100644
--- a/data/glr.c
+++ b/data/glr.c
@@ -491,7 +491,7 @@ typedef enum { yyok, yyaccept, yyabort, yyerr } YYRESULTTAG;
       YYFPRINTF Args;                           \
   } while (YYID (0))

-]b4_yy_symbol_print_generate[
+]b4_yy_symbol_print_define[

# define YY_SYMBOL_PRINT(Title, Type, Value, Location)                  \
   do {                                                                  \
@@ -872,7 +872,7 @@ yyuserMerge (int yyn, YYSTYPE* yy0, YYSTYPE* yy1)

                               /* Bison grammar-table manipulation.  */

-]b4_yydestruct_generate[
+]b4_yydestruct_define[

/** Number of symbols composing the right hand side of rule #RULE.  */
static inline int
diff --git a/data/glr.cc b/data/glr.cc
index 8da5a99..dae2f62 100644
--- a/data/glr.cc
+++ b/data/glr.cc
@@ -61,11 +61,11 @@ m4_define([b4_parser_class_name],
m4_define([b4_parse_param_orig], m4_defn([b4_parse_param]))


-# b4_yy_symbol_print_generate
+# b4_yy_symbol_print_define
# ---------------------------
# Bypass the default implementation to generate the "yy_symbol_print"
# and "yy_symbol_value_print" functions.
-m4_define([b4_yy_symbol_print_generate],
+m4_define([b4_yy_symbol_print_define],
[[
/*--------------------.
| Print this symbol.  |
diff --git a/data/yacc.c b/data/yacc.c
index 0083ebe..76121f3 100644
--- a/data/yacc.c
+++ b/data/yacc.c
@@ -714,7 +714,7 @@ do {                                                                      \
     }                                                                     \
} while (YYID (0))

-]b4_yy_symbol_print_generate[
+]b4_yy_symbol_print_define[

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
@@ -1284,7 +1284,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg,
}
#endif /* YYERROR_VERBOSE */

-]b4_yydestruct_generate[
+]b4_yydestruct_define[

]b4_pure_if([], [

--
1.7.11.3



Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.