summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2021-02-01 06:45:15 +0100
committerAkim Demaille <akim.demaille@gmail.com>2021-02-01 06:51:15 +0100
commit1efe31185ff6b0bc22ff527098971bedf1ace5f4 (patch)
tree49458ef82b3fb969bcdd56a3142a2059cb0f25e5 /data
parent9acc9d2aeeee21be4572a0eaac6146867f264243 (diff)
downloadbison-1efe31185ff6b0bc22ff527098971bedf1ace5f4.tar.gz
yacc: remove support for YYPRINT
Its removal was annonced several times in NEWS (for Bison 3.5, 3.6, 3.7). * data/skeletons/c.m4, data/skeletons/yacc.c: Remove support for YYPRINT. * NEWS: Fix the mess introduced by the merge. Document the removal of YYPRINT. * doc/bison.texi (The YYPRINT Macro): Remove.
Diffstat (limited to 'data')
-rw-r--r--data/skeletons/c.m47
-rw-r--r--data/skeletons/yacc.c9
2 files changed, 0 insertions, 16 deletions
diff --git a/data/skeletons/c.m4 b/data/skeletons/c.m4
index 0bc0d7a6..a8e1a9d4 100644
--- a/data/skeletons/c.m4
+++ b/data/skeletons/c.m4
@@ -761,13 +761,6 @@ yy_symbol_value_print (FILE *yyo,
]b4_parse_param_use([yyoutput], [yylocationp])dnl
[ if (!yyvaluep)
return;]
-dnl glr.c does not feature yytoknum.
-m4_if(b4_skeleton, ["yacc.c"],
-[[# ifdef YYPRINT
- if (yykind < YYNTOKENS)
- YYPRINT (yyo, yytoknum[yykind], *yyvaluep);
-# endif
-]])dnl
b4_percent_code_get([[pre-printer]])dnl
YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
b4_symbol_actions([printer])
diff --git a/data/skeletons/yacc.c b/data/skeletons/yacc.c
index 4c214840..ee05ae1b 100644
--- a/data/skeletons/yacc.c
+++ b/data/skeletons/yacc.c
@@ -703,15 +703,6 @@ yysymbol_name (yysymbol_kind_t yysymbol)
}]])[
#endif
-#ifdef YYPRINT
-/* YYTOKNUM[NUM] -- (External) token number corresponding to the
- (internal) symbol number NUM (which must be that of a token). */
-static const ]b4_int_type_for([b4_toknum])[ yytoknum[] =
-{
- ]b4_toknum[
-};
-#endif
-
#define YYPACT_NINF (]b4_pact_ninf[)
#define yypact_value_is_default(Yyn) \