From 0ad1c60e9c7c11c73365be0f53d94e127dc4a1ac Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 7 Apr 2014 09:43:50 +0000 Subject: bison 3.0.2 git-svn-id: svn://tug.org/texlive/trunk@33397 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/otps/otp-parser.c | 309 ++++++++++++++++-------------- Build/source/texk/web2c/otps/otp-parser.h | 2 +- 2 files changed, 165 insertions(+), 146 deletions(-) (limited to 'Build/source/texk/web2c/otps') diff --git a/Build/source/texk/web2c/otps/otp-parser.c b/Build/source/texk/web2c/otps/otp-parser.c index 9998802d22d..ae4c868429f 100644 --- a/Build/source/texk/web2c/otps/otp-parser.c +++ b/Build/source/texk/web2c/otps/otp-parser.c @@ -1,4 +1,4 @@ -/* A Bison parser, made by GNU Bison 3.0. */ +/* A Bison parser, made by GNU Bison 3.0.2. */ /* Bison implementation for Yacc-like parsers in C @@ -44,7 +44,7 @@ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "3.0" +#define YYBISON_VERSION "3.0.2" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -62,7 +62,7 @@ /* Copy the first part of user declarations. */ -#line 25 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:339 */ +#line 25 "otp-parser.y" /* yacc.c:339 */ #include "otp.h" #include "routines.h" @@ -75,13 +75,13 @@ yyerror(const char *msg) fprintf(stderr, "line %d: %s\n", line_number, msg); } -#line 79 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:339 */ +#line 79 "otp-parser.c" /* yacc.c:339 */ -# ifndef YY_NULL +# ifndef YY_NULLPTR # if defined __cplusplus && 201103L <= __cplusplus -# define YY_NULL nullptr +# define YY_NULLPTR nullptr # else -# define YY_NULL 0 +# define YY_NULLPTR 0 # endif # endif @@ -164,7 +164,7 @@ int yyparse (void); /* Copy the second part of user declarations. */ -#line 168 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:358 */ +#line 168 "otp-parser.c" /* yacc.c:358 */ #ifdef short # undef short @@ -221,11 +221,30 @@ typedef short int yytype_int16; # endif #endif -#ifndef __attribute__ -/* This feature is available in gcc versions 2.5 and later. */ -# if (! defined __GNUC__ || __GNUC__ < 2 \ - || (__GNUC__ == 2 && __GNUC_MINOR__ < 5)) -# define __attribute__(Spec) /* empty */ +#ifndef YY_ATTRIBUTE +# if (defined __GNUC__ \ + && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ + || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C +# define YY_ATTRIBUTE(Spec) __attribute__(Spec) +# else +# define YY_ATTRIBUTE(Spec) /* empty */ +# endif +#endif + +#ifndef YY_ATTRIBUTE_PURE +# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) +#endif + +#ifndef YY_ATTRIBUTE_UNUSED +# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) +#endif + +#if !defined _Noreturn \ + && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) +# if defined _MSC_VER && 1200 <= _MSC_VER +# define _Noreturn __declspec (noreturn) +# else +# define _Noreturn YY_ATTRIBUTE ((__noreturn__)) # endif #endif @@ -472,7 +491,7 @@ static const char *const yytname[] = "Expressions", "MoreExpressions", "OneExpr", "$@2", "$@3", "$@4", "PushBack", "LeftState", "TotalLeft", "BegLeft", "EndLeft", "Left", "Right", "OneRight", "RestRightExpr", "$@5", "OneRightExpr", - "RightState", YY_NULL + "RightState", YY_NULLPTR }; #endif @@ -942,11 +961,11 @@ static int yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { - YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); + YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); YYSIZE_T yysize = yysize0; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; /* Internationalized format string. */ - const char *yyformat = YY_NULL; + const char *yyformat = YY_NULLPTR; /* Arguments of yyformat. */ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; /* Number of reported tokens (one for the "unexpected", one per @@ -1003,7 +1022,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, } yyarg[yycount++] = yytname[yyx]; { - YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); + YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; @@ -1335,145 +1354,145 @@ yyreduce: switch (yyn) { case 3: -#line 72 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 72 "otp-parser.y" /* yacc.c:1646 */ { input_bytes=2; } -#line 1341 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1360 "otp-parser.c" /* yacc.c:1646 */ break; case 4: -#line 74 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 74 "otp-parser.y" /* yacc.c:1646 */ { input_bytes=(yyvsp[-1]).yint; } -#line 1347 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1366 "otp-parser.c" /* yacc.c:1646 */ break; case 5: -#line 79 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 79 "otp-parser.y" /* yacc.c:1646 */ { output_bytes=2; } -#line 1353 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1372 "otp-parser.c" /* yacc.c:1646 */ break; case 6: -#line 81 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 81 "otp-parser.y" /* yacc.c:1646 */ { output_bytes=(yyvsp[-1]).yint; } -#line 1359 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1378 "otp-parser.c" /* yacc.c:1646 */ break; case 11: -#line 96 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 96 "otp-parser.y" /* yacc.c:1646 */ { store_table((yyvsp[-3]).ystring, (yyvsp[-1]).yint); } -#line 1365 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1384 "otp-parser.c" /* yacc.c:1646 */ break; case 15: -#line 107 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 107 "otp-parser.y" /* yacc.c:1646 */ { add_to_table((yyvsp[0]).yint); } -#line 1371 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1390 "otp-parser.c" /* yacc.c:1646 */ break; case 16: -#line 109 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 109 "otp-parser.y" /* yacc.c:1646 */ { add_to_table((yyvsp[0]).yint); } -#line 1377 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1396 "otp-parser.c" /* yacc.c:1646 */ break; case 19: -#line 119 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 119 "otp-parser.y" /* yacc.c:1646 */ { store_state((yyvsp[0]).ystring); } -#line 1383 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1402 "otp-parser.c" /* yacc.c:1646 */ break; case 20: -#line 121 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 121 "otp-parser.y" /* yacc.c:1646 */ { store_state((yyvsp[0]).ystring); } -#line 1389 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1408 "otp-parser.c" /* yacc.c:1646 */ break; case 25: -#line 136 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 136 "otp-parser.y" /* yacc.c:1646 */ { store_alias((yyvsp[-3]).ystring, (yyvsp[-1]).yleft); } -#line 1395 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1414 "otp-parser.c" /* yacc.c:1646 */ break; case 26: -#line 141 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 141 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = StringLeft((yyvsp[0]).ystring); } -#line 1401 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1420 "otp-parser.c" /* yacc.c:1646 */ break; case 27: -#line 143 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 143 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = CompleteLeft((yyvsp[-5]).yleft, (yyvsp[-3]).yint, (yyvsp[-1]).yint); } -#line 1407 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1426 "otp-parser.c" /* yacc.c:1646 */ break; case 28: -#line 145 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 145 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = PlusLeft((yyvsp[-4]).yleft, (yyvsp[-2]).yint); } -#line 1413 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1432 "otp-parser.c" /* yacc.c:1646 */ break; case 29: -#line 147 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 147 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = CompleteLeft((yyvsp[-3]).yleft, (yyvsp[-1]).yint, (yyvsp[-1]).yint); } -#line 1419 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1438 "otp-parser.c" /* yacc.c:1646 */ break; case 30: -#line 149 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 149 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = (yyvsp[0]).yleft; } -#line 1425 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1444 "otp-parser.c" /* yacc.c:1646 */ break; case 31: -#line 154 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 154 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = SingleLeft((yyvsp[0]).yint); } -#line 1431 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1450 "otp-parser.c" /* yacc.c:1646 */ break; case 32: -#line 156 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 156 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = DoubleLeft((yyvsp[-2]).yint, (yyvsp[0]).yint); } -#line 1437 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1456 "otp-parser.c" /* yacc.c:1646 */ break; case 33: -#line 158 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 158 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = WildCard(); } -#line 1443 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1462 "otp-parser.c" /* yacc.c:1646 */ break; case 34: -#line 160 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 160 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = NotChoiceLeft((yyvsp[-1]).ylleft); } -#line 1449 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1468 "otp-parser.c" /* yacc.c:1646 */ break; case 35: -#line 162 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 162 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = ChoiceLeft((yyvsp[-1]).ylleft); } -#line 1455 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1474 "otp-parser.c" /* yacc.c:1646 */ break; case 36: -#line 164 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 164 "otp-parser.y" /* yacc.c:1646 */ { (yyval).yleft = lookup_alias((yyvsp[-1]).ystring); } -#line 1461 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1480 "otp-parser.c" /* yacc.c:1646 */ break; case 37: -#line 169 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 169 "otp-parser.y" /* yacc.c:1646 */ { (yyval).ylleft = llist1((yyvsp[0]).yleft); } -#line 1467 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1486 "otp-parser.c" /* yacc.c:1646 */ break; case 38: -#line 171 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 171 "otp-parser.y" /* yacc.c:1646 */ { (yyval).ylleft = lappend1((yyvsp[-2]).ylleft, (yyvsp[0]).yleft); } -#line 1473 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.c" /* yacc.c:1646 */ +#line 1492 "otp-parser.c" /* yacc.c:1646 */ break; case 39: -#line 176 "../../../../tex-live-2013-06-24/texk/web2c/otps/otp-parser.y" /* yacc.c:1646 */ +#line 176 "otp-parser.y" /* yacc.c:1646 */ { for(cur_state=0; cur_state