diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-09-24 08:53:33 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2010-09-24 08:53:33 +0000 |
commit | 1c5ecd7b2c06298a666b6a7469c25ff4e1b00676 (patch) | |
tree | 2a10a82f021e33a95aa54992696a27feb40f3de0 /Build/source/texk/web2c/otps | |
parent | 6056ef15090fabadc4a18d07892a7400893a90eb (diff) |
use bison-2.4.3
git-svn-id: svn://tug.org/texlive/trunk@19871 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/otps')
-rw-r--r-- | Build/source/texk/web2c/otps/otp-parser.c | 160 | ||||
-rw-r--r-- | Build/source/texk/web2c/otps/otp-parser.h | 7 |
2 files changed, 87 insertions, 80 deletions
diff --git a/Build/source/texk/web2c/otps/otp-parser.c b/Build/source/texk/web2c/otps/otp-parser.c index 277ba986375..e9411f82634 100644 --- a/Build/source/texk/web2c/otps/otp-parser.c +++ b/Build/source/texk/web2c/otps/otp-parser.c @@ -1,10 +1,9 @@ - -/* A Bison parser, made by GNU Bison 2.4.1. */ +/* A Bison parser, made by GNU Bison 2.4.3. */ /* Skeleton implementation for Bison's Yacc-like parsers in C - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006, + 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,7 +45,7 @@ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "2.4.1" +#define YYBISON_VERSION "2.4.3" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -83,7 +82,7 @@ fprintf(stderr, "line %d: %s\n", line_number, msg); /* Line 189 of yacc.c */ -#line 87 "otp-parser.c" +#line 86 "otp-parser.c" /* Enabling traces. */ #ifndef YYDEBUG @@ -163,7 +162,7 @@ typedef int YYSTYPE; /* Line 264 of yacc.c */ -#line 167 "otp-parser.c" +#line 166 "otp-parser.c" #ifdef short # undef short @@ -213,7 +212,7 @@ typedef short int yytype_int16; #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) #ifndef YY_ -# if YYENABLE_NLS +# if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ # define YY_(msgid) dgettext ("bison-runtime", msgid) @@ -704,9 +703,18 @@ static const yytype_uint8 yystos[] = /* Like YYERROR except do call yyerror. This remains here temporarily to ease the transition to the new meaning of YYERROR, for GCC. - Once GCC version 2 has supplanted version 1, this can go. */ + Once GCC version 2 has supplanted version 1, this can go. However, + YYFAIL appears to be in use. Nevertheless, it is formally deprecated + in Bison 2.4.2's NEWS entry, where a plan to phase it out is + discussed. */ #define YYFAIL goto yyerrlab +#if defined YYFAIL + /* This is here to suppress warnings from the GCC cpp's + -Wunused-macros. Normally we don't worry about that warning, but + some users do, and we want to make it easy for users to remove + YYFAIL uses, which will produce warnings from Bison 2.5. */ +#endif #define YYRECOVERING() (!!yyerrstatus) @@ -763,7 +771,7 @@ while (YYID (0)) we won't break user code: when these are the locations we know. */ #ifndef YY_LOCATION_PRINT -# if YYLTYPE_IS_TRIVIAL +# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL # define YY_LOCATION_PRINT(File, Loc) \ fprintf (File, "%d.%d-%d.%d", \ (Loc).first_line, (Loc).first_column, \ @@ -1502,168 +1510,168 @@ yyreduce: { case 3: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 72 "otp-parser.y" { input_bytes=2; } break; case 4: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 74 "otp-parser.y" { input_bytes=(yyvsp[(2) - (3)]).yint; } break; case 5: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 79 "otp-parser.y" { output_bytes=2; } break; case 6: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 81 "otp-parser.y" { output_bytes=(yyvsp[(2) - (3)]).yint; } break; case 11: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 96 "otp-parser.y" { store_table((yyvsp[(1) - (4)]).ystring, (yyvsp[(3) - (4)]).yint); } break; case 15: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 107 "otp-parser.y" { add_to_table((yyvsp[(1) - (1)]).yint); } break; case 16: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 109 "otp-parser.y" { add_to_table((yyvsp[(3) - (3)]).yint); } break; case 19: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 119 "otp-parser.y" { store_state((yyvsp[(1) - (1)]).ystring); } break; case 20: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 121 "otp-parser.y" { store_state((yyvsp[(3) - (3)]).ystring); } break; case 25: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 136 "otp-parser.y" { store_alias((yyvsp[(1) - (4)]).ystring, (yyvsp[(3) - (4)]).yleft); } break; case 26: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 141 "otp-parser.y" { (yyval).yleft = StringLeft((yyvsp[(1) - (1)]).ystring); } break; case 27: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 143 "otp-parser.y" { (yyval).yleft = CompleteLeft((yyvsp[(1) - (6)]).yleft, (yyvsp[(3) - (6)]).yint, (yyvsp[(5) - (6)]).yint); } break; case 28: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 145 "otp-parser.y" { (yyval).yleft = PlusLeft((yyvsp[(1) - (5)]).yleft, (yyvsp[(3) - (5)]).yint); } break; case 29: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 147 "otp-parser.y" { (yyval).yleft = CompleteLeft((yyvsp[(1) - (4)]).yleft, (yyvsp[(3) - (4)]).yint, (yyvsp[(3) - (4)]).yint); } break; case 30: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 149 "otp-parser.y" { (yyval).yleft = (yyvsp[(1) - (1)]).yleft; } break; case 31: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 154 "otp-parser.y" { (yyval).yleft = SingleLeft((yyvsp[(1) - (1)]).yint); } break; case 32: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 156 "otp-parser.y" { (yyval).yleft = DoubleLeft((yyvsp[(1) - (3)]).yint, (yyvsp[(3) - (3)]).yint); } break; case 33: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 158 "otp-parser.y" { (yyval).yleft = WildCard(); } break; case 34: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 160 "otp-parser.y" { (yyval).yleft = NotChoiceLeft((yyvsp[(3) - (4)]).ylleft); } break; case 35: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 162 "otp-parser.y" { (yyval).yleft = ChoiceLeft((yyvsp[(2) - (3)]).ylleft); } break; case 36: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 164 "otp-parser.y" { (yyval).yleft = lookup_alias((yyvsp[(2) - (3)]).ystring); } break; case 37: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 169 "otp-parser.y" { (yyval).ylleft = llist1((yyvsp[(1) - (1)]).yleft); } break; case 38: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 171 "otp-parser.y" { (yyval).ylleft = lappend1((yyvsp[(1) - (3)]).ylleft, (yyvsp[(3) - (3)]).yleft); } break; case 39: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 176 "otp-parser.y" { for(cur_state=0; cur_state<no_states; cur_state++) { @@ -1680,105 +1688,105 @@ yyreduce: case 42: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 196 "otp-parser.y" { states[cur_state].no_exprs++; } break; case 43: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 198 "otp-parser.y" { out_left((yyvsp[(3) - (3)]).ylleft); right_offset=0; } break; case 44: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 200 "otp-parser.y" { right_offset=OTP_PBACK_OFFSET; } break; case 45: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 202 "otp-parser.y" { fill_in_left(); } break; case 48: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 212 "otp-parser.y" { cur_state = 0; } break; case 49: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 214 "otp-parser.y" { cur_state = lookup_state((yyvsp[(2) - (3)]).ystring); } break; case 50: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 219 "otp-parser.y" { (yyval).ylleft = lappend((yyvsp[(1) - (3)]).ylleft, lappend((yyvsp[(2) - (3)]).ylleft, (yyvsp[(3) - (3)]).ylleft)); } break; case 51: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 221 "otp-parser.y" { (yyval).ylleft = lappend((yyvsp[(1) - (2)]).ylleft, (yyvsp[(2) - (2)]).ylleft); } break; case 52: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 226 "otp-parser.y" { (yyval).ylleft = nil; } break; case 53: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 228 "otp-parser.y" { (yyval).ylleft = llist1(BeginningLeft()); } break; case 54: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 233 "otp-parser.y" { (yyval).ylleft = nil; } break; case 55: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 235 "otp-parser.y" { (yyval).ylleft = llist1(EndLeft()); } break; case 56: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 240 "otp-parser.y" { (yyval).ylleft = llist1((yyvsp[(1) - (1)]).yleft); } break; case 57: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 242 "otp-parser.y" { (yyval).ylleft = lappend1((yyvsp[(1) - (2)]).ylleft, (yyvsp[(2) - (2)]).yleft); } break; case 60: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 252 "otp-parser.y" { len=strlen((yyvsp[(1) - (1)]).ystring); @@ -1790,35 +1798,35 @@ yyreduce: case 61: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 259 "otp-parser.y" { out_right(OTP_RIGHT_NUM, (yyvsp[(1) - (1)]).yint); } break; case 62: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 261 "otp-parser.y" { out_right(OTP_RIGHT_CHAR, (yyvsp[(2) - (2)]).yint); } break; case 63: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 263 "otp-parser.y" { out_right(OTP_RIGHT_LCHAR, 0); } break; case 64: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 265 "otp-parser.y" { out_right(OTP_RIGHT_LCHAR, (yyvsp[(5) - (6)]).yint); } break; case 65: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 267 "otp-parser.y" { out_right(OTP_RIGHT_SOME, 0); @@ -1828,7 +1836,7 @@ yyreduce: case 66: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 272 "otp-parser.y" { out_right(OTP_RIGHT_SOME, (yyvsp[(5) - (6)]).yint); @@ -1838,7 +1846,7 @@ yyreduce: case 67: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 277 "otp-parser.y" { out_right(OTP_RIGHT_SOME, 0); @@ -1848,7 +1856,7 @@ yyreduce: case 68: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 282 "otp-parser.y" { out_right(OTP_RIGHT_SOME, (yyvsp[(5) - (8)]).yint); @@ -1858,120 +1866,120 @@ yyreduce: case 69: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 287 "otp-parser.y" { out_right(OTP_RIGHT_OUTPUT, 0); } break; case 71: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 293 "otp-parser.y" { out_int(OTP_ADD, 0); } break; case 72: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 295 "otp-parser.y" { out_int(OTP_SUB, 0); } break; case 73: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 297 "otp-parser.y" { out_int(OTP_MULT, 0); } break; case 74: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 299 "otp-parser.y" { out_int(OTP_DIV, 0); } break; case 75: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 301 "otp-parser.y" { out_int(OTP_MOD, 0); } break; case 76: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 303 "otp-parser.y" { out_int(OTP_PUSH_NUM, lookup_table((yyvsp[(1) - (1)]).ystring)); } break; case 77: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 305 "otp-parser.y" { out_int(OTP_LOOKUP, 0); } break; case 78: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 310 "otp-parser.y" { out_int(OTP_PUSH_NUM, (yyvsp[(1) - (1)]).yint); } break; case 79: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 312 "otp-parser.y" { out_int(OTP_PUSH_CHAR, (yyvsp[(2) - (2)]).yint); } break; case 80: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 314 "otp-parser.y" { out_int(OTP_PUSH_LCHAR, 0); } break; case 81: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 316 "otp-parser.y" { out_int(OTP_PUSH_LCHAR, (yyvsp[(5) - (6)]).yint); } break; case 84: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 323 "otp-parser.y" { out_int(OTP_STATE_CHANGE, 0); } break; case 85: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 325 "otp-parser.y" { out_int(OTP_STATE_CHANGE, lookup_state((yyvsp[(2) - (3)]).ystring)); } break; case 86: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 327 "otp-parser.y" { out_int(OTP_STATE_PUSH, lookup_state((yyvsp[(3) - (4)]).ystring)); } break; case 87: -/* Line 1455 of yacc.c */ +/* Line 1464 of yacc.c */ #line 329 "otp-parser.y" { out_int(OTP_STATE_POP, 0); } break; -/* Line 1455 of yacc.c */ -#line 1975 "otp-parser.c" +/* Line 1464 of yacc.c */ +#line 1983 "otp-parser.c" default: break; } YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); @@ -2182,7 +2190,7 @@ yyreturn: -/* Line 1675 of yacc.c */ +/* Line 1684 of yacc.c */ #line 331 "otp-parser.y" diff --git a/Build/source/texk/web2c/otps/otp-parser.h b/Build/source/texk/web2c/otps/otp-parser.h index 3da27ea6953..d88582d1c82 100644 --- a/Build/source/texk/web2c/otps/otp-parser.h +++ b/Build/source/texk/web2c/otps/otp-parser.h @@ -1,10 +1,9 @@ - -/* A Bison parser, made by GNU Bison 2.4.1. */ +/* A Bison parser, made by GNU Bison 2.4.3. */ /* Skeleton interface for Bison's Yacc-like parsers in C - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 - Free Software Foundation, Inc. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006, + 2009, 2010 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by |