From 0d49bc78aa0f761383e4b669dcd83932e2e60dd8 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 28 Oct 2012 11:20:45 +0200 Subject: Update to bison 2.6.4. --- command.c | 434 +++++++++++++++++++++++++++----------------------------------- 1 file changed, 189 insertions(+), 245 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index 529a1958..a41fafe8 100644 --- a/command.c +++ b/command.c @@ -1,8 +1,8 @@ -/* A Bison parser, made by GNU Bison 2.5. */ +/* A Bison parser, made by GNU Bison 2.6.4. */ /* Bison implementation for Yacc-like parsers in C - Copyright (C) 1984, 1989-1990, 2000-2011 Free Software Foundation, Inc. + Copyright (C) 1984, 1989-1990, 2000-2012 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 @@ -44,7 +44,7 @@ #define YYBISON 1 /* Bison version. */ -#define YYBISON_VERSION "2.5" +#define YYBISON_VERSION "2.6.4" /* Skeleton name. */ #define YYSKELETON_NAME "yacc.c" @@ -58,8 +58,6 @@ /* Pull parsers. */ #define YYPULL 1 -/* Using locations. */ -#define YYLSP_NEEDED 0 /* Substitute the variable and function names. */ #define yyparse zzparse @@ -70,10 +68,8 @@ #define yydebug zzdebug #define yynerrs zznerrs - /* Copy the first part of user declarations. */ - -/* Line 268 of yacc.c */ +/* Line 358 of yacc.c */ #line 26 "command.y" #include "awk.h" @@ -141,14 +137,16 @@ static void append_cmdarg(CMDARG *arg); static int find_argument(CMDARG *arg); #define YYSTYPE CMDARG * +/* Line 358 of yacc.c */ +#line 142 "command.c" -/* Line 268 of yacc.c */ -#line 147 "command.c" - -/* Enabling traces. */ -#ifndef YYDEBUG -# define YYDEBUG 0 -#endif +# ifndef YY_NULL +# if defined __cplusplus && 201103L <= __cplusplus +# define YY_NULL nullptr +# else +# define YY_NULL 0 +# endif +# endif /* Enabling verbose error messages. */ #ifdef YYERROR_VERBOSE @@ -158,11 +156,14 @@ static int find_argument(CMDARG *arg); # define YYERROR_VERBOSE 0 #endif -/* Enabling the token table. */ -#ifndef YYTOKEN_TABLE -# define YYTOKEN_TABLE 0 -#endif +/* Enabling traces. */ +#ifndef YYDEBUG +# define YYDEBUG 0 +#endif +#if YYDEBUG +extern int zzdebug; +#endif /* Tokens. */ #ifndef YYTOKENTYPE @@ -268,7 +269,6 @@ static int find_argument(CMDARG *arg); - #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED typedef int YYSTYPE; # define YYSTYPE_IS_TRIVIAL 1 @@ -276,12 +276,28 @@ typedef int YYSTYPE; # define YYSTYPE_IS_DECLARED 1 #endif +extern YYSTYPE zzlval; -/* Copy the second part of user declarations. */ +#ifdef YYPARSE_PARAM +#if defined __STDC__ || defined __cplusplus +int zzparse (void *YYPARSE_PARAM); +#else +int zzparse (); +#endif +#else /* ! YYPARSE_PARAM */ +#if defined __STDC__ || defined __cplusplus +int zzparse (void); +#else +int zzparse (); +#endif +#endif /* ! YYPARSE_PARAM */ -/* Line 343 of yacc.c */ -#line 285 "command.c" + +/* Copy the second part of user declarations. */ + +/* Line 377 of yacc.c */ +#line 301 "command.c" #ifdef short # undef short @@ -334,24 +350,24 @@ typedef short int yytype_int16; # if defined YYENABLE_NLS && YYENABLE_NLS # if ENABLE_NLS # include /* INFRINGES ON USER NAME SPACE */ -# define YY_(msgid) dgettext ("bison-runtime", msgid) +# define YY_(Msgid) dgettext ("bison-runtime", Msgid) # endif # endif # ifndef YY_ -# define YY_(msgid) msgid +# define YY_(Msgid) Msgid # endif #endif /* Suppress unused-variable warnings by "using" E. */ #if ! defined lint || defined __GNUC__ -# define YYUSE(e) ((void) (e)) +# define YYUSE(E) ((void) (E)) #else -# define YYUSE(e) /* empty */ +# define YYUSE(E) /* empty */ #endif /* Identity function, used to suppress warnings about constant conditions. */ #ifndef lint -# define YYID(n) (n) +# define YYID(N) (N) #else #if (defined __STDC__ || defined __C99__FUNC__ || defined __cplusplus || defined _MSC_VER) static int @@ -386,6 +402,7 @@ YYID (yyi) # if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ || defined __cplusplus || defined _MSC_VER) # include /* INFRINGES ON USER NAME SPACE */ + /* Use EXIT_SUCCESS as a witness for stdlib.h. */ # ifndef EXIT_SUCCESS # define EXIT_SUCCESS 0 # endif @@ -475,20 +492,20 @@ union yyalloc #endif #if defined YYCOPY_NEEDED && YYCOPY_NEEDED -/* Copy COUNT objects from FROM to TO. The source and destination do +/* Copy COUNT objects from SRC to DST. The source and destination do not overlap. */ # ifndef YYCOPY # if defined __GNUC__ && 1 < __GNUC__ -# define YYCOPY(To, From, Count) \ - __builtin_memcpy (To, From, (Count) * sizeof (*(From))) +# define YYCOPY(Dst, Src, Count) \ + __builtin_memcpy (Dst, Src, (Count) * sizeof (*(Src))) # else -# define YYCOPY(To, From, Count) \ - do \ - { \ - YYSIZE_T yyi; \ - for (yyi = 0; yyi < (Count); yyi++) \ - (To)[yyi] = (From)[yyi]; \ - } \ +# define YYCOPY(Dst, Src, Count) \ + do \ + { \ + YYSIZE_T yyi; \ + for (yyi = 0; yyi < (Count); yyi++) \ + (Dst)[yyi] = (Src)[yyi]; \ + } \ while (YYID (0)) # endif # endif @@ -640,7 +657,7 @@ static const yytype_uint16 yyrline[] = }; #endif -#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE +#if YYDEBUG || YYERROR_VERBOSE || 0 /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. First, the terminals, then, starting at YYNTOKENS, nonterminals. */ static const char *const yytname[] = @@ -664,7 +681,7 @@ static const char *const yytname[] = "printf_args", "list_args", "integer_range", "opt_integer_list", "integer_list", "exp_list", "subscript", "subscript_list", "variable", "node", "opt_plus_integer", "opt_integer", "plus_integer", "integer", - "nls", 0 + "nls", YY_NULL }; #endif @@ -831,10 +848,10 @@ static const yytype_int16 yytable[] = 0, 0, 0, 45 }; -#define yypact_value_is_default(yystate) \ - ((yystate) == (-151)) +#define yypact_value_is_default(Yystate) \ + (!!((Yystate) == (-151))) -#define yytable_value_is_error(yytable_value) \ +#define yytable_value_is_error(Yytable_value) \ YYID (0) static const yytype_int16 yycheck[] = @@ -916,17 +933,18 @@ static const yytype_uint8 yystos[] = #define YYRECOVERING() (!!yyerrstatus) -#define YYBACKUP(Token, Value) \ -do \ - if (yychar == YYEMPTY && yylen == 1) \ - { \ - yychar = (Token); \ - yylval = (Value); \ - YYPOPSTACK (1); \ - goto yybackup; \ - } \ - else \ - { \ +#define YYBACKUP(Token, Value) \ +do \ + if (yychar == YYEMPTY) \ + { \ + yychar = (Token); \ + yylval = (Value); \ + YYPOPSTACK (yylen); \ + yystate = *yyssp; \ + goto yybackup; \ + } \ + else \ + { \ yyerror (YY_("syntax error: cannot back up")); \ YYERROR; \ } \ @@ -936,32 +954,33 @@ while (YYID (0)) #define YYTERROR 1 #define YYERRCODE 256 - /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. If N is 0, then set CURRENT to the empty location which ends the previous symbol: RHS[0] (always defined). */ -#define YYRHSLOC(Rhs, K) ((Rhs)[K]) #ifndef YYLLOC_DEFAULT -# define YYLLOC_DEFAULT(Current, Rhs, N) \ - do \ - if (YYID (N)) \ - { \ - (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ - (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ - (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ - (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ - } \ - else \ - { \ - (Current).first_line = (Current).last_line = \ - YYRHSLOC (Rhs, 0).last_line; \ - (Current).first_column = (Current).last_column = \ - YYRHSLOC (Rhs, 0).last_column; \ - } \ +# define YYLLOC_DEFAULT(Current, Rhs, N) \ + do \ + if (YYID (N)) \ + { \ + (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ + (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ + (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ + (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ + } \ + else \ + { \ + (Current).first_line = (Current).last_line = \ + YYRHSLOC (Rhs, 0).last_line; \ + (Current).first_column = (Current).last_column = \ + YYRHSLOC (Rhs, 0).last_column; \ + } \ while (YYID (0)) #endif +#define YYRHSLOC(Rhs, K) ((Rhs)[K]) + + /* This macro is provided for backward compatibility. */ @@ -1020,6 +1039,8 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep) YYSTYPE const * const yyvaluep; #endif { + FILE *yyo = yyoutput; + YYUSE (yyo); if (!yyvaluep) return; # ifdef YYPRINT @@ -1266,12 +1287,12 @@ static int yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, yytype_int16 *yyssp, int yytoken) { - YYSIZE_T yysize0 = yytnamerr (0, yytname[yytoken]); + YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); YYSIZE_T yysize = yysize0; YYSIZE_T yysize1; enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; /* Internationalized format string. */ - const char *yyformat = 0; + const char *yyformat = YY_NULL; /* Arguments of yyformat. */ char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; /* Number of reported tokens (one for the "unexpected", one per @@ -1331,7 +1352,7 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, break; } yyarg[yycount++] = yytname[yyx]; - yysize1 = yysize + yytnamerr (0, yytname[yyx]); + yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) return 2; @@ -1422,25 +1443,20 @@ yydestruct (yymsg, yytype, yyvaluep) } -/* Prevent warnings from -Wmissing-prototypes. */ -#ifdef YYPARSE_PARAM -#if defined __STDC__ || defined __cplusplus -int yyparse (void *YYPARSE_PARAM); -#else -int yyparse (); -#endif -#else /* ! YYPARSE_PARAM */ -#if defined __STDC__ || defined __cplusplus -int yyparse (void); -#else -int yyparse (); -#endif -#endif /* ! YYPARSE_PARAM */ /* The lookahead symbol. */ int yychar; + +#ifndef YYLVAL_INITIALIZE +# define YYLVAL_INITIALIZE() +#endif +#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN +# define YY_IGNORE_MAYBE_UNINITIALIZED_END +#endif + /* The semantic value of the lookahead symbol. */ YYSTYPE yylval; @@ -1480,7 +1496,7 @@ yyparse () `yyss': related to states. `yyvs': related to semantic values. - Refer to the stacks thru separate pointers, to allow yyoverflow + Refer to the stacks through separate pointers, to allow yyoverflow to reallocate them elsewhere. */ /* The state stack. */ @@ -1498,7 +1514,7 @@ yyparse () int yyn; int yyresult; /* Lookahead token as an internal (translated) token number. */ - int yytoken; + int yytoken = 0; /* The variables used to return semantic value and location from the action routines. */ YYSTYPE yyval; @@ -1516,7 +1532,6 @@ yyparse () Keep to zero when no symbol should be popped. */ int yylen = 0; - yytoken = 0; yyss = yyssa; yyvs = yyvsa; yystacksize = YYINITDEPTH; @@ -1535,6 +1550,7 @@ yyparse () yyssp = yyss; yyvsp = yyvs; + YYLVAL_INITIALIZE (); goto yysetstate; /*------------------------------------------------------------. @@ -1675,7 +1691,9 @@ yybackup: yychar = YYEMPTY; yystate = yyn; + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END goto yynewstate; @@ -1712,8 +1730,7 @@ yyreduce: switch (yyn) { case 3: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 109 "command.y" { cmd_idx = -1; @@ -1732,8 +1749,7 @@ yyreduce: break; case 5: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 128 "command.y" { if (errcount == 0 && cmd_idx >= 0) { @@ -1787,8 +1803,7 @@ yyreduce: break; case 6: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 178 "command.y" { yyerrok; @@ -1796,15 +1811,13 @@ yyreduce: break; case 22: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 212 "command.y" { want_nodeval = TRUE; } break; case 23: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 217 "command.y" { if (errcount == 0) { @@ -1824,8 +1837,7 @@ yyreduce: break; case 24: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 236 "command.y" { (yyval) = append_statement(arg_list, (char *) start_EVAL); @@ -1837,15 +1849,13 @@ yyreduce: break; case 25: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 243 "command.y" { (yyval) = append_statement((yyvsp[(1) - (2)]), lexptr_begin); } break; case 26: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 244 "command.y" { (yyval) = (yyvsp[(3) - (4)]); @@ -1853,8 +1863,7 @@ yyreduce: break; case 27: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 251 "command.y" { arg_list = append_statement((yyvsp[(2) - (3)]), (char *) end_EVAL); @@ -1874,8 +1883,7 @@ yyreduce: break; case 28: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 267 "command.y" { NODE *n; @@ -1890,8 +1898,7 @@ yyreduce: break; case 34: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 286 "command.y" { if (cmdtab[cmd_idx].class == D_FRAME @@ -1901,8 +1908,7 @@ yyreduce: break; case 35: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 292 "command.y" { int idx = find_argument((yyvsp[(2) - (2)])); @@ -1918,50 +1924,43 @@ yyreduce: break; case 38: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 305 "command.y" { want_nodeval = TRUE; } break; case 40: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 306 "command.y" { want_nodeval = TRUE; } break; case 46: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 311 "command.y" { want_nodeval = TRUE; } break; case 49: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 313 "command.y" { want_nodeval = TRUE; } break; case 51: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 314 "command.y" { want_nodeval = TRUE; } break; case 53: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 315 "command.y" { want_nodeval = TRUE; } break; case 57: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 319 "command.y" { if (in_cmd_src((yyvsp[(2) - (2)])->a_string)) @@ -1970,8 +1969,7 @@ yyreduce: break; case 58: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 324 "command.y" { if (! input_from_tty) @@ -1980,8 +1978,7 @@ yyreduce: break; case 59: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 329 "command.y" { int type = 0; @@ -2011,8 +2008,7 @@ yyreduce: break; case 60: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 355 "command.y" { if (! in_commands) @@ -2026,8 +2022,7 @@ yyreduce: break; case 61: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 365 "command.y" { if (! in_commands) @@ -2036,8 +2031,7 @@ yyreduce: break; case 62: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 370 "command.y" { int idx = find_argument((yyvsp[(2) - (2)])); @@ -2053,15 +2047,13 @@ yyreduce: break; case 63: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 381 "command.y" { want_nodeval = TRUE; } break; case 64: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 382 "command.y" { int type; @@ -2073,8 +2065,7 @@ yyreduce: break; case 65: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 390 "command.y" { if (in_commands) { @@ -2089,8 +2080,7 @@ yyreduce: break; case 66: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 404 "command.y" { if ((yyvsp[(1) - (1)]) != NULL) { @@ -2104,43 +2094,37 @@ yyreduce: break; case 68: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 418 "command.y" { (yyval) = NULL; } break; case 69: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 423 "command.y" { (yyval) = NULL; } break; case 74: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 432 "command.y" { (yyval) = NULL; } break; case 75: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 437 "command.y" { (yyval) = NULL; } break; case 77: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 440 "command.y" { (yyval) = NULL; } break; case 78: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 445 "command.y" { NODE *n; @@ -2151,15 +2135,13 @@ yyreduce: break; case 79: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 455 "command.y" { (yyval) = NULL; } break; case 80: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 457 "command.y" { if (find_option((yyvsp[(1) - (1)])->a_string) < 0) @@ -2168,8 +2150,7 @@ yyreduce: break; case 81: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 462 "command.y" { if (find_option((yyvsp[(1) - (3)])->a_string) < 0) @@ -2178,8 +2159,7 @@ yyreduce: break; case 82: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 470 "command.y" { NODE *n; @@ -2196,57 +2176,49 @@ yyreduce: break; case 83: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 486 "command.y" { (yyval) = NULL; } break; case 88: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 495 "command.y" { (yyval) = NULL; } break; case 89: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 496 "command.y" { want_nodeval = TRUE; } break; case 92: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 498 "command.y" { want_nodeval = TRUE; } break; case 95: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 504 "command.y" { (yyval) = NULL; } break; case 97: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 510 "command.y" { (yyval) = NULL; } break; case 99: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 516 "command.y" { (yyval) = NULL; } break; case 104: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 528 "command.y" { int idx = find_argument((yyvsp[(1) - (2)])); @@ -2262,8 +2234,7 @@ yyreduce: break; case 106: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 544 "command.y" { (yyvsp[(2) - (2)])->type = D_array; /* dump all items */ @@ -2272,8 +2243,7 @@ yyreduce: break; case 107: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 549 "command.y" { (yyvsp[(2) - (3)])->type = D_array; @@ -2282,22 +2252,19 @@ yyreduce: break; case 117: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 575 "command.y" { (yyval) = NULL; } break; case 118: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 577 "command.y" { (yyval) = NULL; } break; case 119: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 579 "command.y" { CMDARG *a; @@ -2308,8 +2275,7 @@ yyreduce: break; case 126: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 595 "command.y" { if ((yyvsp[(1) - (3)])->a_int > (yyvsp[(3) - (3)])->a_int) @@ -2322,29 +2288,25 @@ yyreduce: break; case 127: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 607 "command.y" { (yyval) = NULL; } break; case 134: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 621 "command.y" { (yyval) = (yyvsp[(1) - (1)]); } break; case 135: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 623 "command.y" { (yyval) = (yyvsp[(1) - (3)]); } break; case 137: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 629 "command.y" { CMDARG *a; @@ -2363,22 +2325,19 @@ yyreduce: break; case 139: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 648 "command.y" { (yyval) = (yyvsp[(1) - (1)]); num_dim = 1; } break; case 140: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 650 "command.y" { (yyval) = (yyvsp[(1) - (2)]); num_dim++; } break; case 142: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 656 "command.y" { NODE *n = (yyvsp[(2) - (2)])->a_node; @@ -2391,8 +2350,7 @@ yyreduce: break; case 143: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 665 "command.y" { /* a_string is array name, a_count is dimension count */ @@ -2403,15 +2361,13 @@ yyreduce: break; case 144: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 675 "command.y" { (yyval) = (yyvsp[(1) - (1)]); } break; case 145: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 677 "command.y" { NODE *n = (yyvsp[(2) - (2)])->a_node; @@ -2422,8 +2378,7 @@ yyreduce: break; case 146: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 684 "command.y" { NODE *n = (yyvsp[(2) - (2)])->a_node; @@ -2436,36 +2391,31 @@ yyreduce: break; case 147: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 696 "command.y" { (yyval) = NULL; } break; case 148: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 698 "command.y" { (yyval) = (yyvsp[(1) - (1)]); } break; case 149: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 703 "command.y" { (yyval) = NULL; } break; case 150: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 705 "command.y" { (yyval) = (yyvsp[(1) - (1)]); } break; case 151: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 710 "command.y" { if ((yyvsp[(1) - (1)])->a_int == 0) @@ -2475,8 +2425,7 @@ yyreduce: break; case 152: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 716 "command.y" { if ((yyvsp[(2) - (2)])->a_int == 0) @@ -2486,22 +2435,19 @@ yyreduce: break; case 153: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 725 "command.y" { (yyval) = (yyvsp[(1) - (1)]); } break; case 154: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 727 "command.y" { (yyval) = (yyvsp[(2) - (2)]); } break; case 155: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 729 "command.y" { (yyvsp[(2) - (2)])->a_int = - (yyvsp[(2) - (2)])->a_int; @@ -2510,8 +2456,7 @@ yyreduce: break; case 156: - -/* Line 1806 of yacc.c */ +/* Line 1813 of yacc.c */ #line 737 "command.y" { if (lexptr_begin != NULL) { @@ -2524,9 +2469,8 @@ yyreduce: break; - -/* Line 1806 of yacc.c */ -#line 2542 "command.c" +/* Line 1813 of yacc.c */ +#line 2486 "command.c" default: break; } /* User semantic actions sometimes alter yychar, and that requires @@ -2689,7 +2633,9 @@ yyerrlab1: YY_STACK_PRINT (yyss, yyssp); } + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN *++yyvsp = yylval; + YY_IGNORE_MAYBE_UNINITIALIZED_END /* Shift the error token. */ @@ -2713,7 +2659,7 @@ yyabortlab: yyresult = 1; goto yyreturn; -#if !defined(yyoverflow) || YYERROR_VERBOSE +#if !defined yyoverflow || YYERROR_VERBOSE /*-------------------------------------------------. | yyexhaustedlab -- memory exhaustion comes here. | `-------------------------------------------------*/ @@ -2755,8 +2701,7 @@ yyreturn: } - -/* Line 2067 of yacc.c */ +/* Line 2076 of yacc.c */ #line 747 "command.y" @@ -3693,4 +3638,3 @@ history_expand_line(char **line) #endif - -- cgit v1.2.1