skeletons: renamings after knr removal

* 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.
This commit is contained in:
Akim Demaille
2012-08-02 15:13:00 +02:00
parent ee52f6ec6b
commit e3f12e0818
4 changed files with 12 additions and 12 deletions

View File

@@ -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. |

View File

@@ -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

View File

@@ -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. |

View File

@@ -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([], [