summaryrefslogtreecommitdiff
path: root/src
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 /src
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 'src')
-rw-r--r--src/parse-gram.c25
-rw-r--r--src/parse-gram.h2
2 files changed, 4 insertions, 23 deletions
diff --git a/src/parse-gram.c b/src/parse-gram.c
index b826a955..0ce97a10 100644
--- a/src/parse-gram.c
+++ b/src/parse-gram.c
@@ -1,4 +1,4 @@
-/* A Bison parser, made by GNU Bison 3.7.5.284-c9445. */
+/* A Bison parser, made by GNU Bison 3.7.5.297-b46a. */
/* Bison implementation for Yacc-like parsers in C
@@ -49,7 +49,7 @@
#define YYBISON 30705
/* Bison version string. */
-#define YYBISON_VERSION "3.7.5.284-c9445"
+#define YYBISON_VERSION "3.7.5.297-b46a"
/* Skeleton name. */
#define YYSKELETON_NAME "yacc.c"
@@ -728,21 +728,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 yytype_int16 yytoknum[] =
-{
- 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
- 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
- 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
- 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
- 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
- 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
- 315
-};
-#endif
-
#define YYPACT_NINF (-148)
#define yypact_value_is_default(Yyn) \
@@ -1051,7 +1036,7 @@ yy_location_print_ (FILE *yyo, YYLTYPE const * const yylocp)
res += YYFPRINTF (yyo, "-%d", end_col);
}
return res;
- }
+}
# define YY_LOCATION_PRINT(File, Loc) \
yy_location_print_ (File, &(Loc))
@@ -1087,10 +1072,6 @@ yy_symbol_value_print (FILE *yyo,
YY_USE (yylocationp);
if (!yyvaluep)
return;
-# ifdef YYPRINT
- if (yykind < YYNTOKENS)
- YYPRINT (yyo, yytoknum[yykind], *yyvaluep);
-# endif
/* "%code pre-printer" blocks. */
tron (yyo);
diff --git a/src/parse-gram.h b/src/parse-gram.h
index 8136581d..10a63528 100644
--- a/src/parse-gram.h
+++ b/src/parse-gram.h
@@ -1,4 +1,4 @@
-/* A Bison parser, made by GNU Bison 3.7.5.284-c9445. */
+/* A Bison parser, made by GNU Bison 3.7.5.297-b46a. */
/* Bison interface for Yacc-like parsers in C