| @@ -1,19 +1,19 @@ |
| 1 | | −/* A Bison parser, made by GNU Bison 2.5.1. */ |
| 1 | +/* A Bison parser, made by GNU Bison 3.0.4. */ |
| 2 | 2 | |
| 3 | 3 | /* Bison implementation for Yacc-like parsers in C |
| 4 | | − |
| 5 | | − Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc. |
| 6 | | − |
| 4 | + |
| 5 | + Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc. |
| 6 | + |
| 7 | 7 | This program is free software: you can redistribute it and/or modify |
| 8 | 8 | it under the terms of the GNU General Public License as published by |
| 9 | 9 | the Free Software Foundation, either version 3 of the License, or |
| 10 | 10 | (at your option) any later version. |
| 11 | | − |
| 11 | + |
| 12 | 12 | This program is distributed in the hope that it will be useful, |
| 13 | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | 15 | GNU General Public License for more details. |
| 16 | | − |
| 16 | + |
| 17 | 17 | You should have received a copy of the GNU General Public License |
| 18 | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
| 19 | 19 | |
| @@ -26,7 +26,7 @@ · 6 unmodified lines |
| 26 | 26 | special exception, which will cause the skeleton and the resulting |
| 27 | 27 | Bison output files to be licensed under the GNU General Public |
| 28 | 28 | License without this special exception. |
| 29 | | − |
| 29 | + |
| 30 | 30 | This special exception was added by the Free Software Foundation in |
| 31 | 31 | version 2.2 of Bison. */ |
| 32 | 32 | |
| @@ -44,7 +44,7 @@ · 11 unmodified lines |
| 44 | 44 | #define YYBISON 1 |
| 45 | 45 | |
| 46 | 46 | /* Bison version. */ |
| 47 | | −#define YYBISON_VERSION "2.5.1" |
| 47 | +#define YYBISON_VERSION "3.0.4" |
| 48 | 48 | |
| 49 | 49 | /* Skeleton name. */ |
| 50 | 50 | #define YYSKELETON_NAME "yacc.c" |
| @@ -58,18 +58,16 @@ · 7 unmodified lines |
| 58 | 58 | /* Pull parsers. */ |
| 59 | 59 | #define YYPULL 1 |
| 60 | 60 | |
| 61 | | −/* Using locations. */ |
| 62 | | −#define YYLSP_NEEDED 0 |
| 63 | 61 | |
| 64 | 62 | /* Substitute the variable and function names. */ |
| 65 | 63 | #define yyparse zconfparse |
| 66 | 64 | #define yylex zconflex |
| 67 | 65 | #define yyerror zconferror |
| 68 | | −#define yylval zconflval |
| 69 | | −#define yychar zconfchar |
| 70 | 66 | #define yydebug zconfdebug |
| 71 | 67 | #define yynerrs zconfnerrs |
| 72 | 68 | |
| 69 | +#define yylval zconflval |
| 70 | +#define yychar zconfchar |
| 73 | 71 | |
| 74 | 72 | /* Copy the first part of user declarations. */ |
| 75 | 73 | |
| @@ -108,19 +106,14 @@ static struct menu *current_menu, *current_entry; · 32 unmodified lines |
| 108 | 106 | |
| 109 | 107 | |
| 110 | 108 | |
| 111 | | −# ifndef YY_NULL |
| 109 | +# ifndef YY_NULLPTR |
| 112 | 110 | # if defined __cplusplus && 201103L <= __cplusplus |
| 113 | | −# define YY_NULL nullptr |
| 111 | +# define YY_NULLPTR nullptr |
| 114 | 112 | # else |
| 115 | | −# define YY_NULL 0 |
| 113 | +# define YY_NULLPTR 0 |
| 116 | 114 | # endif |
| 117 | 115 | # endif |
| 118 | 116 | |
| 119 | | −/* Enabling traces. */ |
| 120 | | −#ifndef YYDEBUG |
| 121 | | −# define YYDEBUG 1 |
| 122 | | −#endif |
| 123 | | − |
| 124 | 117 | /* Enabling verbose error messages. */ |
| 125 | 118 | #ifdef YYERROR_VERBOSE |
| 126 | 119 | # undef YYERROR_VERBOSE |
| @@ -129,62 +122,65 @@ static struct menu *current_menu, *current_entry; · 2 unmodified lines |
| 129 | 122 | # define YYERROR_VERBOSE 0 |
| 130 | 123 | #endif |
| 131 | 124 | |
| 132 | | −/* Enabling the token table. */ |
| 133 | | −#ifndef YYTOKEN_TABLE |
| 134 | | −# define YYTOKEN_TABLE 0 |
| 135 | | −#endif |
| 136 | 125 | |
| 126 | +/* Debug traces. */ |
| 127 | +#ifndef YYDEBUG |
| 128 | +# define YYDEBUG 1 |
| 129 | +#endif |
| 130 | +#if YYDEBUG |
| 131 | +extern int zconfdebug; |
| 132 | +#endif |
| 137 | 133 | |
| 138 | | −/* Tokens. */ |
| 134 | +/* Token type. */ |
| 139 | 135 | #ifndef YYTOKENTYPE |
| 140 | 136 | # define YYTOKENTYPE |
| 141 | | − /* Put the tokens into the symbol table, so that GDB and other debuggers |
| 142 | | − know about them. */ |
| 143 | | − enum yytokentype { |
| 144 | | − T_MAINMENU = 258, |
| 145 | | − T_MENU = 259, |
| 146 | | − T_ENDMENU = 260, |
| 147 | | − T_SOURCE = 261, |
| 148 | | − T_CHOICE = 262, |
| 149 | | − T_ENDCHOICE = 263, |
| 150 | | − T_COMMENT = 264, |
| 151 | | − T_CONFIG = 265, |
| 152 | | − T_MENUCONFIG = 266, |
| 153 | | − T_HELP = 267, |
| 154 | | − T_HELPTEXT = 268, |
| 155 | | − T_IF = 269, |
| 156 | | − T_ENDIF = 270, |
| 157 | | − T_DEPENDS = 271, |
| 158 | | − T_OPTIONAL = 272, |
| 159 | | − T_PROMPT = 273, |
| 160 | | − T_TYPE = 274, |
| 161 | | − T_DEFAULT = 275, |
| 162 | | − T_SELECT = 276, |
| 163 | | − T_RANGE = 277, |
| 164 | | − T_VISIBLE = 278, |
| 165 | | − T_OPTION = 279, |
| 166 | | − T_ON = 280, |
| 167 | | − T_WORD = 281, |
| 168 | | − T_WORD_QUOTE = 282, |
| 169 | | − T_UNEQUAL = 283, |
| 170 | | − T_LESS = 284, |
| 171 | | − T_LESS_EQUAL = 285, |
| 172 | | − T_GREATER = 286, |
| 173 | | − T_GREATER_EQUAL = 287, |
| 174 | | − T_CLOSE_PAREN = 288, |
| 175 | | − T_OPEN_PAREN = 289, |
| 176 | | − T_EOL = 290, |
| 177 | | − T_OR = 291, |
| 178 | | − T_AND = 292, |
| 179 | | − T_EQUAL = 293, |
| 180 | | − T_NOT = 294 |
| 181 | | − }; |
| 137 | + enum yytokentype |
| 138 | + { |
| 139 | + T_MAINMENU = 258, |
| 140 | + T_MENU = 259, |
| 141 | + T_ENDMENU = 260, |
| 142 | + T_SOURCE = 261, |
| 143 | + T_CHOICE = 262, |
| 144 | + T_ENDCHOICE = 263, |
| 145 | + T_COMMENT = 264, |
| 146 | + T_CONFIG = 265, |
| 147 | + T_MENUCONFIG = 266, |
| 148 | + T_HELP = 267, |
| 149 | + T_HELPTEXT = 268, |
| 150 | + T_IF = 269, |
| 151 | + T_ENDIF = 270, |
| 152 | + T_DEPENDS = 271, |
| 153 | + T_OPTIONAL = 272, |
| 154 | + T_PROMPT = 273, |
| 155 | + T_TYPE = 274, |
| 156 | + T_DEFAULT = 275, |
| 157 | + T_SELECT = 276, |
| 158 | + T_IMPLY = 277, |
| 159 | + T_RANGE = 278, |
| 160 | + T_VISIBLE = 279, |
| 161 | + T_OPTION = 280, |
| 162 | + T_ON = 281, |
| 163 | + T_WORD = 282, |
| 164 | + T_WORD_QUOTE = 283, |
| 165 | + T_UNEQUAL = 284, |
| 166 | + T_LESS = 285, |
| 167 | + T_LESS_EQUAL = 286, |
| 168 | + T_GREATER = 287, |
| 169 | + T_GREATER_EQUAL = 288, |
| 170 | + T_CLOSE_PAREN = 289, |
| 171 | + T_OPEN_PAREN = 290, |
| 172 | + T_EOL = 291, |
| 173 | + T_OR = 292, |
| 174 | + T_AND = 293, |
| 175 | + T_EQUAL = 294, |
| 176 | + T_NOT = 295 |
| 177 | + }; |
| 182 | 178 | #endif |
| 183 | 179 | |
| 184 | | − |
| 185 | | − |
| 180 | +/* Value type. */ |
| 186 | 181 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED |
| 187 | | −typedef union YYSTYPE |
| 182 | + |
| 183 | +union YYSTYPE |
| 188 | 184 | { |
| 189 | 185 | |
| 190 | 186 | |
| @@ -196,14 +192,20 @@ typedef union YYSTYPE · 5 unmodified lines |
| 196 | 192 | const struct kconf_id *id; |
| 197 | 193 | |
| 198 | 194 | |
| 195 | +}; |
| 199 | 196 | |
| 200 | | −} YYSTYPE; |
| 197 | +typedef union YYSTYPE YYSTYPE; |
| 201 | 198 | # define YYSTYPE_IS_TRIVIAL 1 |
| 202 | | −# define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| 203 | 199 | # define YYSTYPE_IS_DECLARED 1 |
| 204 | 200 | #endif |
| 205 | 201 | |
| 206 | 202 | |
| 203 | +extern YYSTYPE zconflval; |
| 204 | + |
| 205 | +int zconfparse (void); |
| 206 | + |
| 207 | + |
| 208 | + |
| 207 | 209 | /* Copy the second part of user declarations. */ |
| 208 | 210 | |
| 209 | 211 | |
| @@ -224,11 +226,8 @@ typedef unsigned char yytype_uint8; · 14 unmodified lines |
| 224 | 226 | |
| 225 | 227 | #ifdef YYTYPE_INT8 |
| 226 | 228 | typedef YYTYPE_INT8 yytype_int8; |
| 227 | | −#elif (defined __STDC__ || defined __C99__FUNC__ \ |
| 228 | | − || defined __cplusplus || defined _MSC_VER) |
| 229 | | −typedef signed char yytype_int8; |
| 230 | 229 | #else |
| 231 | | −typedef short int yytype_int8; |
| 230 | +typedef signed char yytype_int8; |
| 232 | 231 | #endif |
| 233 | 232 | |
| 234 | 233 | #ifdef YYTYPE_UINT16 |
| @@ -248,8 +247,7 @@ typedef short int yytype_int16; · 13 unmodified lines |
| 248 | 247 | # define YYSIZE_T __SIZE_TYPE__ |
| 249 | 248 | # elif defined size_t |
| 250 | 249 | # define YYSIZE_T size_t |
| 251 | | −# elif ! defined YYSIZE_T && (defined __STDC__ || defined __C99__FUNC__ \ |
| 252 | | − || defined __cplusplus || defined _MSC_VER) |
| 250 | +# elif ! defined YYSIZE_T |
| 253 | 251 | # include <stddef.h> /* INFRINGES ON USER NAME SPACE */ |
| 254 | 252 | # define YYSIZE_T size_t |
| 255 | 253 | # else |
| @@ -263,38 +261,67 @@ typedef short int yytype_int16; · 7 unmodified lines |
| 263 | 261 | # if defined YYENABLE_NLS && YYENABLE_NLS |
| 264 | 262 | # if ENABLE_NLS |
| 265 | 263 | # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
| 266 | | −# define YY_(msgid) dgettext ("bison-runtime", msgid) |
| 264 | +# define YY_(Msgid) dgettext ("bison-runtime", Msgid) |
| 267 | 265 | # endif |
| 268 | 266 | # endif |
| 269 | 267 | # ifndef YY_ |
| 270 | | −# define YY_(msgid) msgid |
| 268 | +# define YY_(Msgid) Msgid |
| 269 | +# endif |
| 270 | +#endif |
| 271 | + |
| 272 | +#ifndef YY_ATTRIBUTE |
| 273 | +# if (defined __GNUC__ \ |
| 274 | + && (2 < __GNUC__ || (__GNUC__ == 2 && 96 <= __GNUC_MINOR__))) \ |
| 275 | + || defined __SUNPRO_C && 0x5110 <= __SUNPRO_C |
| 276 | +# define YY_ATTRIBUTE(Spec) __attribute__(Spec) |
| 277 | +# else |
| 278 | +# define YY_ATTRIBUTE(Spec) /* empty */ |
| 279 | +# endif |
| 280 | +#endif |
| 281 | + |
| 282 | +#ifndef YY_ATTRIBUTE_PURE |
| 283 | +# define YY_ATTRIBUTE_PURE YY_ATTRIBUTE ((__pure__)) |
| 284 | +#endif |
| 285 | + |
| 286 | +#ifndef YY_ATTRIBUTE_UNUSED |
| 287 | +# define YY_ATTRIBUTE_UNUSED YY_ATTRIBUTE ((__unused__)) |
| 288 | +#endif |
| 289 | + |
| 290 | +#if !defined _Noreturn \ |
| 291 | + && (!defined __STDC_VERSION__ || __STDC_VERSION__ < 201112) |
| 292 | +# if defined _MSC_VER && 1200 <= _MSC_VER |
| 293 | +# define _Noreturn __declspec (noreturn) |
| 294 | +# else |
| 295 | +# define _Noreturn YY_ATTRIBUTE ((__noreturn__)) |
| 271 | 296 | # endif |
| 272 | 297 | #endif |
| 273 | 298 | |
| 274 | 299 | /* Suppress unused-variable warnings by "using" E. */ |
| 275 | 300 | #if ! defined lint || defined __GNUC__ |
| 276 | | −# define YYUSE(e) ((void) (e)) |
| 301 | +# define YYUSE(E) ((void) (E)) |
| 277 | 302 | #else |
| 278 | | −# define YYUSE(e) /* empty */ |
| 303 | +# define YYUSE(E) /* empty */ |
| 279 | 304 | #endif |
| 280 | 305 | |
| 281 | | −/* Identity function, used to suppress warnings about constant conditions. */ |
| 282 | | −#ifndef lint |
| 283 | | −# define YYID(n) (n) |
| 284 | | −#else |
| 285 | | −#if (defined __STDC__ || defined __C99__FUNC__ \ |
| 286 | | − || defined __cplusplus || defined _MSC_VER) |
| 287 | | −static int |
| 288 | | −YYID (int yyi) |
| 306 | +#if defined __GNUC__ && 407 <= __GNUC__ * 100 + __GNUC_MINOR__ |
| 307 | +/* Suppress an incorrect diagnostic about yylval being uninitialized. */ |
| 308 | +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN \ |
| 309 | + _Pragma ("GCC diagnostic push") \ |
| 310 | + _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")\ |
| 311 | + _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"") |
| 312 | +# define YY_IGNORE_MAYBE_UNINITIALIZED_END \ |
| 313 | + _Pragma ("GCC diagnostic pop") |
| 289 | 314 | #else |
| 290 | | −static int |
| 291 | | −YYID (yyi) |
| 292 | | − int yyi; |
| 315 | +# define YY_INITIAL_VALUE(Value) Value |
| 293 | 316 | #endif |
| 294 | | −{ |
| 295 | | − return yyi; |
| 296 | | −} |
| 317 | +#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 318 | +# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 319 | +# define YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 297 | 320 | #endif |
| 321 | +#ifndef YY_INITIAL_VALUE |
| 322 | +# define YY_INITIAL_VALUE(Value) /* Nothing. */ |
| 323 | +#endif |
| 324 | + |
| 298 | 325 | |
| 299 | 326 | #if ! defined yyoverflow || YYERROR_VERBOSE |
| 300 | 327 | |
| @@ -313,8 +340,7 @@ YYID (yyi) · 12 unmodified lines |
| 313 | 340 | # define alloca _alloca |
| 314 | 341 | # else |
| 315 | 342 | # define YYSTACK_ALLOC alloca |
| 316 | | −# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
| 317 | | − || defined __cplusplus || defined _MSC_VER) |
| 343 | +# if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS |
| 318 | 344 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 319 | 345 | /* Use EXIT_SUCCESS as a witness for stdlib.h. */ |
| 320 | 346 | # ifndef EXIT_SUCCESS |
| @@ -326,8 +352,8 @@ YYID (yyi) · 5 unmodified lines |
| 326 | 352 | # endif |
| 327 | 353 | |
| 328 | 354 | # ifdef YYSTACK_ALLOC |
| 329 | | − /* Pacify GCC's `empty if-body' warning. */ |
| 330 | | −# define YYSTACK_FREE(Ptr) do { /* empty */; } while (YYID (0)) |
| 355 | + /* Pacify GCC's 'empty if-body' warning. */ |
| 356 | +# define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) |
| 331 | 357 | # ifndef YYSTACK_ALLOC_MAXIMUM |
| 332 | 358 | /* The OS might guarantee only one guard page at the bottom of the stack, |
| 333 | 359 | and a page size can be as small as 4096 bytes. So we cannot safely |
| @@ -343,7 +369,7 @@ YYID (yyi) · 9 unmodified lines |
| 343 | 369 | # endif |
| 344 | 370 | # if (defined __cplusplus && ! defined EXIT_SUCCESS \ |
| 345 | 371 | && ! ((defined YYMALLOC || defined malloc) \ |
| 346 | | − && (defined YYFREE || defined free))) |
| 372 | + && (defined YYFREE || defined free))) |
| 347 | 373 | # include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 348 | 374 | # ifndef EXIT_SUCCESS |
| 349 | 375 | # define EXIT_SUCCESS 0 |
| @@ -351,15 +377,13 @@ YYID (yyi) · 1 unmodified line |
| 351 | 377 | # endif |
| 352 | 378 | # ifndef YYMALLOC |
| 353 | 379 | # define YYMALLOC malloc |
| 354 | | −# if ! defined malloc && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
| 355 | | − || defined __cplusplus || defined _MSC_VER) |
| 380 | +# if ! defined malloc && ! defined EXIT_SUCCESS |
| 356 | 381 | void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
| 357 | 382 | # endif |
| 358 | 383 | # endif |
| 359 | 384 | # ifndef YYFREE |
| 360 | 385 | # define YYFREE free |
| 361 | | −# if ! defined free && ! defined EXIT_SUCCESS && (defined __STDC__ || defined __C99__FUNC__ \ |
| 362 | | − || defined __cplusplus || defined _MSC_VER) |
| 386 | +# if ! defined free && ! defined EXIT_SUCCESS |
| 363 | 387 | void free (void *); /* INFRINGES ON USER NAME SPACE */ |
| 364 | 388 | # endif |
| 365 | 389 | # endif |
| @@ -369,7 +393,7 @@ void free (void *); /* INFRINGES ON USER NAME SPACE */ · 3 unmodified lines |
| 369 | 393 | |
| 370 | 394 | #if (! defined yyoverflow \ |
| 371 | 395 | && (! defined __cplusplus \ |
| 372 | | − || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) |
| 396 | + || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL))) |
| 373 | 397 | |
| 374 | 398 | /* A type that is properly aligned for any stack member. */ |
| 375 | 399 | union yyalloc |
| @@ -394,16 +418,16 @@ union yyalloc · 18 unmodified lines |
| 394 | 418 | elements in the stack, and YYPTR gives the new location of the |
| 395 | 419 | stack. Advance YYPTR to a properly aligned location for the next |
| 396 | 420 | stack. */ |
| 397 | | −# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ |
| 398 | | − do \ |
| 399 | | − { \ |
| 400 | | − YYSIZE_T yynewbytes; \ |
| 401 | | − YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ |
| 402 | | − Stack = &yyptr->Stack_alloc; \ |
| 403 | | − yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ |
| 404 | | − yyptr += yynewbytes / sizeof (*yyptr); \ |
| 405 | | − } \ |
| 406 | | − while (YYID (0)) |
| 421 | +# define YYSTACK_RELOCATE(Stack_alloc, Stack) \ |
| 422 | + do \ |
| 423 | + { \ |
| 424 | + YYSIZE_T yynewbytes; \ |
| 425 | + YYCOPY (&yyptr->Stack_alloc, Stack, yysize); \ |
| 426 | + Stack = &yyptr->Stack_alloc; \ |
| 427 | + yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \ |
| 428 | + yyptr += yynewbytes / sizeof (*yyptr); \ |
| 429 | + } \ |
| 430 | + while (0) |
| 407 | 431 | |
| 408 | 432 | #endif |
| 409 | 433 | |
| @@ -422,7 +446,7 @@ union yyalloc · 12 unmodified lines |
| 422 | 446 | for (yyi = 0; yyi < (Count); yyi++) \ |
| 423 | 447 | (Dst)[yyi] = (Src)[yyi]; \ |
| 424 | 448 | } \ |
| 425 | | − while (YYID (0)) |
| 449 | + while (0) |
| 426 | 450 | # endif |
| 427 | 451 | # endif |
| 428 | 452 | #endif /* !YYCOPY_NEEDED */ |
| @@ -430,25 +454,27 @@ union yyalloc · 1 unmodified line |
| 430 | 454 | /* YYFINAL -- State number of the termination state. */ |
| 431 | 455 | #define YYFINAL 11 |
| 432 | 456 | /* YYLAST -- Last index in YYTABLE. */ |
| 433 | | −#define YYLAST 298 |
| 457 | +#define YYLAST 301 |
| 434 | 458 | |
| 435 | 459 | /* YYNTOKENS -- Number of terminals. */ |
| 436 | | −#define YYNTOKENS 40 |
| 460 | +#define YYNTOKENS 41 |
| 437 | 461 | /* YYNNTS -- Number of nonterminals. */ |
| 438 | 462 | #define YYNNTS 50 |
| 439 | 463 | /* YYNRULES -- Number of rules. */ |
| 440 | | −#define YYNRULES 122 |
| 441 | | −/* YYNRULES -- Number of states. */ |
| 442 | | −#define YYNSTATES 199 |
| 464 | +#define YYNRULES 124 |
| 465 | +/* YYNSTATES -- Number of states. */ |
| 466 | +#define YYNSTATES 204 |
| 443 | 467 | |
| 444 | | −/* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ |
| 468 | +/* YYTRANSLATE[YYX] -- Symbol number corresponding to YYX as returned |
| 469 | + by yylex, with out-of-bounds checking. */ |
| 445 | 470 | #define YYUNDEFTOK 2 |
| 446 | | −#define YYMAXUTOK 294 |
| 471 | +#define YYMAXUTOK 295 |
| 447 | 472 | |
| 448 | | −#define YYTRANSLATE(YYX) \ |
| 473 | +#define YYTRANSLATE(YYX) \ |
| 449 | 474 | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| 450 | 475 | |
| 451 | | −/* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ |
| 476 | +/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM |
| 477 | + as returned by yylex, without out-of-bounds checking. */ |
| 452 | 478 | static const yytype_uint8 yytranslate[] = |
| 453 | 479 | { |
| 454 | 480 | 0, 2, 2, 2, 2, 2, 2, 2, 2, 2, |
| @@ -480,90 +506,30 @@ static const yytype_uint8 yytranslate[] = · 25 unmodified lines |
| 480 | 506 | 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, |
| 481 | 507 | 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
| 482 | 508 | 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, |
| 483 | | − 35, 36, 37, 38, 39 |
| 509 | + 35, 36, 37, 38, 39, 40 |
| 484 | 510 | }; |
| 485 | 511 | |
| 486 | 512 | #if YYDEBUG |
| 487 | | −/* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in |
| 488 | | − YYRHS. */ |
| 489 | | −static const yytype_uint16 yyprhs[] = |
| 490 | | −{ |
| 491 | | − 0, 0, 3, 6, 8, 11, 13, 14, 17, 20, |
| 492 | | − 23, 26, 31, 36, 40, 42, 44, 46, 48, 50, |
| 493 | | − 52, 54, 56, 58, 60, 62, 64, 66, 68, 72, |
| 494 | | − 75, 79, 82, 86, 89, 90, 93, 96, 99, 102, |
| 495 | | − 105, 108, 112, 117, 122, 127, 133, 137, 138, 142, |
| 496 | | − 143, 146, 150, 153, 155, 159, 160, 163, 166, 169, |
| 497 | | − 172, 175, 180, 184, 187, 192, 193, 196, 200, 202, |
| 498 | | − 206, 207, 210, 213, 216, 220, 224, 228, 230, 234, |
| 499 | | − 235, 238, 241, 244, 248, 252, 255, 258, 261, 262, |
| 500 | | − 265, 268, 271, 276, 277, 280, 283, 286, 287, 290, |
| 501 | | − 292, 294, 297, 300, 303, 305, 308, 309, 312, 314, |
| 502 | | − 318, 322, 326, 330, 334, 338, 342, 345, 349, 353, |
| 503 | | − 355, 357, 358 |
| 504 | | −}; |
| 505 | | − |
| 506 | | −/* YYRHS -- A `-1'-separated list of the rules' RHS. */ |
| 507 | | −static const yytype_int8 yyrhs[] = |
| 508 | | −{ |
| 509 | | − 41, 0, -1, 85, 42, -1, 42, -1, 67, 43, |
| 510 | | − -1, 43, -1, -1, 43, 45, -1, 43, 59, -1, |
| 511 | | − 43, 71, -1, 43, 84, -1, 43, 26, 1, 35, |
| 512 | | − -1, 43, 44, 1, 35, -1, 43, 1, 35, -1, |
| 513 | | − 16, -1, 18, -1, 19, -1, 21, -1, 17, -1, |
| 514 | | − 22, -1, 20, -1, 23, -1, 35, -1, 65, -1, |
| 515 | | − 75, -1, 48, -1, 50, -1, 73, -1, 26, 1, |
| 516 | | − 35, -1, 1, 35, -1, 10, 26, 35, -1, 47, |
| 517 | | − 51, -1, 11, 26, 35, -1, 49, 51, -1, -1, |
| 518 | | − 51, 52, -1, 51, 53, -1, 51, 79, -1, 51, |
| 519 | | − 77, -1, 51, 46, -1, 51, 35, -1, 19, 82, |
| 520 | | − 35, -1, 18, 83, 86, 35, -1, 20, 87, 86, |
| 521 | | − 35, -1, 21, 26, 86, 35, -1, 22, 88, 88, |
| 522 | | − 86, 35, -1, 24, 54, 35, -1, -1, 54, 26, |
| 523 | | − 55, -1, -1, 38, 83, -1, 7, 89, 35, -1, |
| 524 | | − 56, 60, -1, 84, -1, 57, 62, 58, -1, -1, |
| 525 | | − 60, 61, -1, 60, 79, -1, 60, 77, -1, 60, |
| 526 | | − 35, -1, 60, 46, -1, 18, 83, 86, 35, -1, |
| 527 | | − 19, 82, 35, -1, 17, 35, -1, 20, 26, 86, |
| 528 | | − 35, -1, -1, 62, 45, -1, 14, 87, 85, -1, |
| 529 | | − 84, -1, 63, 66, 64, -1, -1, 66, 45, -1, |
| 530 | | − 66, 71, -1, 66, 59, -1, 3, 83, 85, -1, |
| 531 | | − 4, 83, 35, -1, 68, 80, 78, -1, 84, -1, |
| 532 | | − 69, 72, 70, -1, -1, 72, 45, -1, 72, 71, |
| 533 | | − -1, 72, 59, -1, 6, 83, 35, -1, 9, 83, |
| 534 | | − 35, -1, 74, 78, -1, 12, 35, -1, 76, 13, |
| 535 | | − -1, -1, 78, 79, -1, 78, 35, -1, 78, 46, |
| 536 | | − -1, 16, 25, 87, 35, -1, -1, 80, 81, -1, |
| 537 | | − 80, 35, -1, 23, 86, -1, -1, 83, 86, -1, |
| 538 | | − 26, -1, 27, -1, 5, 35, -1, 8, 35, -1, |
| 539 | | − 15, 35, -1, 35, -1, 85, 35, -1, -1, 14, |
| 540 | | − 87, -1, 88, -1, 88, 29, 88, -1, 88, 30, |
| 541 | | − 88, -1, 88, 31, 88, -1, 88, 32, 88, -1, |
| 542 | | − 88, 38, 88, -1, 88, 28, 88, -1, 34, 87, |
| 543 | | − 33, -1, 39, 87, -1, 87, 36, 87, -1, 87, |
| 544 | | − 37, 87, -1, 26, -1, 27, -1, -1, 26, -1 |
| 545 | | −}; |
| 546 | | − |
| 547 | | −/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
| 513 | + /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */ |
| 548 | 514 | static const yytype_uint16 yyrline[] = |
| 549 | 515 | { |
| 550 | | − 0, 108, 108, 108, 110, 110, 112, 114, 115, 116, |
| 551 | | − 117, 118, 119, 123, 127, 127, 127, 127, 127, 127, |
| 552 | | − 127, 127, 131, 132, 133, 134, 135, 136, 140, 141, |
| 553 | | − 147, 155, 161, 169, 179, 181, 182, 183, 184, 185, |
| 554 | | − 186, 189, 197, 203, 213, 219, 225, 228, 230, 241, |
| 555 | | − 242, 247, 256, 261, 269, 272, 274, 275, 276, 277, |
| 556 | | − 278, 281, 287, 298, 304, 314, 316, 321, 329, 337, |
| 557 | | − 340, 342, 343, 344, 349, 356, 363, 368, 376, 379, |
| 558 | | − 381, 382, 383, 386, 394, 401, 408, 414, 421, 423, |
| 559 | | − 424, 425, 428, 436, 438, 439, 442, 449, 451, 456, |
| 560 | | − 457, 460, 461, 462, 466, 467, 470, 471, 474, 475, |
| 561 | | − 476, 477, 478, 479, 480, 481, 482, 483, 484, 487, |
| 562 | | − 488, 491, 492 |
| 516 | + 0, 109, 109, 109, 111, 111, 113, 115, 116, 117, |
| 517 | + 118, 119, 120, 124, 128, 128, 128, 128, 128, 128, |
| 518 | + 128, 128, 128, 132, 133, 134, 135, 136, 137, 141, |
| 519 | + 142, 148, 156, 162, 170, 180, 182, 183, 184, 185, |
| 520 | + 186, 187, 190, 198, 204, 214, 220, 226, 232, 235, |
| 521 | + 237, 248, 249, 254, 263, 268, 276, 279, 281, 282, |
| 522 | + 283, 284, 285, 288, 294, 305, 311, 321, 323, 328, |
| 523 | + 336, 344, 347, 349, 350, 351, 356, 363, 370, 375, |
| 524 | + 383, 386, 388, 389, 390, 393, 401, 408, 415, 421, |
| 525 | + 428, 430, 431, 432, 435, 443, 445, 446, 449, 456, |
| 526 | + 458, 463, 464, 467, 468, 469, 473, 474, 477, 478, |
| 527 | + 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, |
| 528 | + 491, 494, 495, 498, 499 |
| 563 | 529 | }; |
| 564 | 530 | #endif |
| 565 | 531 | |
| 566 | | −#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE |
| 532 | +#if YYDEBUG || YYERROR_VERBOSE || 0 |
| 567 | 533 | /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
| 568 | 534 | First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
| 569 | 535 | static const char *const yytname[] = |
| @@ -571,9 +537,9 @@ static const char *const yytname[] = · 1 unmodified line |
| 571 | 537 | "$end", "error", "$undefined", "T_MAINMENU", "T_MENU", "T_ENDMENU", |
| 572 | 538 | "T_SOURCE", "T_CHOICE", "T_ENDCHOICE", "T_COMMENT", "T_CONFIG", |
| 573 | 539 | "T_MENUCONFIG", "T_HELP", "T_HELPTEXT", "T_IF", "T_ENDIF", "T_DEPENDS", |
| 574 | | − "T_OPTIONAL", "T_PROMPT", "T_TYPE", "T_DEFAULT", "T_SELECT", "T_RANGE", |
| 575 | | − "T_VISIBLE", "T_OPTION", "T_ON", "T_WORD", "T_WORD_QUOTE", "T_UNEQUAL", |
| 576 | | − "T_LESS", "T_LESS_EQUAL", "T_GREATER", "T_GREATER_EQUAL", |
| 540 | + "T_OPTIONAL", "T_PROMPT", "T_TYPE", "T_DEFAULT", "T_SELECT", "T_IMPLY", |
| 541 | + "T_RANGE", "T_VISIBLE", "T_OPTION", "T_ON", "T_WORD", "T_WORD_QUOTE", |
| 542 | + "T_UNEQUAL", "T_LESS", "T_LESS_EQUAL", "T_GREATER", "T_GREATER_EQUAL", |
| 577 | 543 | "T_CLOSE_PAREN", "T_OPEN_PAREN", "T_EOL", "T_OR", "T_AND", "T_EQUAL", |
| 578 | 544 | "T_NOT", "$accept", "input", "start", "stmt_list", "option_name", |
| 579 | 545 | "common_stmt", "option_error", "config_entry_start", "config_stmt", |
| @@ -585,260 +551,254 @@ static const char *const yytname[] = · 5 unmodified lines |
| 585 | 551 | "menu_entry", "menu_end", "menu_stmt", "menu_block", "source_stmt", |
| 586 | 552 | "comment", "comment_stmt", "help_start", "help", "depends_list", |
| 587 | 553 | "depends", "visibility_list", "visible", "prompt_stmt_opt", "prompt", |
| 588 | | − "end", "nl", "if_expr", "expr", "symbol", "word_opt", YY_NULL |
| 554 | + "end", "nl", "if_expr", "expr", "symbol", "word_opt", YY_NULLPTR |
| 589 | 555 | }; |
| 590 | 556 | #endif |
| 591 | 557 | |
| 592 | 558 | # ifdef YYPRINT |
| 593 | | −/* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to |
| 594 | | − token YYLEX-NUM. */ |
| 559 | +/* YYTOKNUM[NUM] -- (External) token number corresponding to the |
| 560 | + (internal) symbol number NUM (which must be that of a token). */ |
| 595 | 561 | static const yytype_uint16 yytoknum[] = |
| 596 | 562 | { |
| 597 | 563 | 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, |
| 598 | 564 | 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, |
| 599 | 565 | 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, |
| 600 | | − 285, 286, 287, 288, 289, 290, 291, 292, 293, 294 |
| 566 | + 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, |
| 567 | + 295 |
| 601 | 568 | }; |
| 602 | 569 | # endif |
| 603 | 570 | |
| 604 | | −/* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ |
| 605 | | −static const yytype_uint8 yyr1[] = |
| 571 | +#define YYPACT_NINF -92 |
| 572 | + |
| 573 | +#define yypact_value_is_default(Yystate) \ |
| 574 | + (!!((Yystate) == (-92))) |
| 575 | + |
| 576 | +#define YYTABLE_NINF -88 |
| 577 | + |
| 578 | +#define yytable_value_is_error(Yytable_value) \ |
| 579 | + 0 |
| 580 | + |
| 581 | + /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
| 582 | + STATE-NUM. */ |
| 583 | +static const yytype_int16 yypact[] = |
| 606 | 584 | { |
| 607 | | − 0, 40, 41, 41, 42, 42, 43, 43, 43, 43, |
| 608 | | − 43, 43, 43, 43, 44, 44, 44, 44, 44, 44, |
| 609 | | − 44, 44, 45, 45, 45, 45, 45, 45, 46, 46, |
| 610 | | − 47, 48, 49, 50, 51, 51, 51, 51, 51, 51, |
| 611 | | − 51, 52, 52, 52, 52, 52, 53, 54, 54, 55, |
| 612 | | − 55, 56, 57, 58, 59, 60, 60, 60, 60, 60, |
| 613 | | − 60, 61, 61, 61, 61, 62, 62, 63, 64, 65, |
| 614 | | − 66, 66, 66, 66, 67, 68, 69, 70, 71, 72, |
| 615 | | − 72, 72, 72, 73, 74, 75, 76, 77, 78, 78, |
| 616 | | − 78, 78, 79, 80, 80, 80, 81, 82, 82, 83, |
| 617 | | − 83, 84, 84, 84, 85, 85, 86, 86, 87, 87, |
| 618 | | − 87, 87, 87, 87, 87, 87, 87, 87, 87, 88, |
| 619 | | − 88, 89, 89 |
| 585 | + 17, 41, -92, 15, -92, 150, -92, 19, -92, -92, |
| 586 | + -13, -92, 28, 41, 38, 41, 50, 47, 41, 79, |
| 587 | + 82, 44, 76, -92, -92, -92, -92, -92, -92, -92, |
| 588 | + -92, -92, 118, -92, 129, -92, -92, -92, -92, -92, |
| 589 | + -92, -92, -92, -92, -92, -92, -92, -92, -92, -92, |
| 590 | + -92, -92, 184, -92, -92, 107, -92, 111, -92, 113, |
| 591 | + -92, 116, -92, 139, 140, 151, -92, -92, 44, 44, |
| 592 | + 142, 256, -92, 160, 173, 27, 117, 80, 51, 255, |
| 593 | + -15, 255, 217, -92, -92, -92, -92, -92, -92, -8, |
| 594 | + -92, 44, 44, 107, 87, 87, 87, 87, 87, 87, |
| 595 | + -92, -92, 174, 176, 187, 41, 41, 44, 188, 189, |
| 596 | + 87, -92, 213, -92, -92, -92, -92, 206, -92, -92, |
| 597 | + 193, 41, 41, 203, -92, -92, -92, -92, -92, -92, |
| 598 | + -92, -92, -92, -92, -92, -92, -92, 229, -92, 241, |
| 599 | + -92, -92, -92, -92, -92, -92, -92, -92, -92, -92, |
| 600 | + 216, -92, -92, -92, -92, -92, -92, -92, -92, -92, |
| 601 | + 44, 229, 222, 229, 64, 229, 229, 87, 31, 231, |
| 602 | + -92, -92, 229, 236, 229, 44, -92, 145, 242, -92, |
| 603 | + -92, 243, 244, 245, 229, 251, -92, -92, 247, -92, |
| 604 | + 257, 125, -92, -92, -92, -92, -92, 260, 41, -92, |
| 605 | + -92, -92, -92, -92 |
| 620 | 606 | }; |
| 621 | 607 | |
| 622 | | −/* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ |
| 623 | | −static const yytype_uint8 yyr2[] = |
| 608 | + /* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM. |
| 609 | + Performed when YYTABLE does not specify something else to do. Zero |
| 610 | + means the default is an error. */ |
| 611 | +static const yytype_uint8 yydefact[] = |
| 624 | 612 | { |
| 625 | | − 0, 2, 2, 1, 2, 1, 0, 2, 2, 2, |
| 626 | | − 2, 4, 4, 3, 1, 1, 1, 1, 1, 1, |
| 627 | | − 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, |
| 628 | | − 3, 2, 3, 2, 0, 2, 2, 2, 2, 2, |
| 629 | | − 2, 3, 4, 4, 4, 5, 3, 0, 3, 0, |
| 630 | | − 2, 3, 2, 1, 3, 0, 2, 2, 2, 2, |
| 631 | | − 2, 4, 3, 2, 4, 0, 2, 3, 1, 3, |
| 632 | | − 0, 2, 2, 2, 3, 3, 3, 1, 3, 0, |
| 633 | | − 2, 2, 2, 3, 3, 2, 2, 2, 0, 2, |
| 634 | | − 2, 2, 4, 0, 2, 2, 2, 0, 2, 1, |
| 635 | | − 1, 2, 2, 2, 1, 2, 0, 2, 1, 3, |
| 636 | | − 3, 3, 3, 3, 3, 3, 2, 3, 3, 1, |
| 637 | | − 1, 0, 1 |
| 613 | + 6, 0, 106, 0, 3, 0, 6, 6, 101, 102, |
| 614 | + 0, 1, 0, 0, 0, 0, 123, 0, 0, 0, |
| 615 | + 0, 0, 0, 14, 19, 15, 16, 21, 17, 18, |
| 616 | + 20, 22, 0, 23, 0, 7, 35, 26, 35, 27, |
| 617 | + 57, 67, 8, 72, 24, 95, 81, 9, 28, 90, |
| 618 | + 25, 10, 0, 107, 2, 76, 13, 0, 103, 0, |
| 619 | + 124, 0, 104, 0, 0, 0, 121, 122, 0, 0, |
| 620 | + 0, 110, 105, 0, 0, 0, 0, 0, 0, 0, |
| 621 | + 90, 0, 0, 77, 85, 53, 86, 31, 33, 0, |
| 622 | + 118, 0, 0, 69, 0, 0, 0, 0, 0, 0, |
| 623 | + 11, 12, 0, 0, 0, 0, 99, 0, 0, 0, |
| 624 | + 0, 49, 0, 41, 40, 36, 37, 0, 39, 38, |
| 625 | + 0, 0, 99, 0, 61, 62, 58, 60, 59, 68, |
| 626 | + 56, 55, 73, 75, 71, 74, 70, 108, 97, 0, |
| 627 | + 96, 82, 84, 80, 83, 79, 92, 93, 91, 117, |
| 628 | + 119, 120, 116, 111, 112, 113, 114, 115, 30, 88, |
| 629 | + 0, 108, 0, 108, 108, 108, 108, 0, 0, 0, |
| 630 | + 89, 65, 108, 0, 108, 0, 98, 0, 0, 42, |
| 631 | + 100, 0, 0, 0, 108, 51, 48, 29, 0, 64, |
| 632 | + 0, 109, 94, 43, 44, 45, 46, 0, 0, 50, |
| 633 | + 63, 66, 47, 52 |
| 638 | 634 | }; |
| 639 | 635 | |
| 640 | | −/* YYDEFACT[STATE-NAME] -- Default reduction number in state STATE-NUM. |
| 641 | | − Performed when YYTABLE doesn't specify something else to do. Zero |
| 642 | | − means the default is an error. */ |
| 643 | | −static const yytype_uint8 yydefact[] = |
| 636 | + /* YYPGOTO[NTERM-NUM]. */ |
| 637 | +static const yytype_int16 yypgoto[] = |
| 644 | 638 | { |
| 645 | | − 6, 0, 104, 0, 3, 0, 6, 6, 99, 100, |
| 646 | | − 0, 1, 0, 0, 0, 0, 121, 0, 0, 0, |
| 647 | | − 0, 0, 0, 14, 18, 15, 16, 20, 17, 19, |
| 648 | | − 21, 0, 22, 0, 7, 34, 25, 34, 26, 55, |
| 649 | | − 65, 8, 70, 23, 93, 79, 9, 27, 88, 24, |
| 650 | | − 10, 0, 105, 2, 74, 13, 0, 101, 0, 122, |
| 651 | | − 0, 102, 0, 0, 0, 119, 120, 0, 0, 0, |
| 652 | | − 108, 103, 0, 0, 0, 0, 0, 0, 0, 88, |
| 653 | | − 0, 0, 75, 83, 51, 84, 30, 32, 0, 116, |
| 654 | | − 0, 0, 67, 0, 0, 0, 0, 0, 0, 11, |
| 655 | | − 12, 0, 0, 0, 0, 97, 0, 0, 0, 47, |
| 656 | | − 0, 40, 39, 35, 36, 0, 38, 37, 0, 0, |
| 657 | | − 97, 0, 59, 60, 56, 58, 57, 66, 54, 53, |
| 658 | | − 71, 73, 69, 72, 68, 106, 95, 0, 94, 80, |
| 659 | | − 82, 78, 81, 77, 90, 91, 89, 115, 117, 118, |
| 660 | | − 114, 109, 110, 111, 112, 113, 29, 86, 0, 106, |
| 661 | | − 0, 106, 106, 106, 0, 0, 0, 87, 63, 106, |
| 662 | | − 0, 106, 0, 96, 0, 0, 41, 98, 0, 0, |
| 663 | | − 106, 49, 46, 28, 0, 62, 0, 107, 92, 42, |
| 664 | | − 43, 44, 0, 0, 48, 61, 64, 45, 50 |
| 639 | + -92, -92, 285, 291, -92, 32, -66, -92, -92, -92, |
| 640 | + -92, 261, -92, -92, -92, -92, -92, -92, -92, 1, |
| 641 | + -92, -92, -92, -92, -92, -92, -92, -92, -92, -92, |
| 642 | + -92, 24, -92, -92, -92, -92, -92, 221, 220, -64, |
| 643 | + -92, -92, 179, -1, 67, 0, 110, -67, -91, -92 |
| 665 | 644 | }; |
| 666 | 645 | |
| 667 | | −/* YYDEFGOTO[NTERM-NUM]. */ |
| 646 | + /* YYDEFGOTO[NTERM-NUM]. */ |
| 668 | 647 | static const yytype_int16 yydefgoto[] = |
| 669 | 648 | { |
| 670 | | − -1, 3, 4, 5, 33, 34, 112, 35, 36, 37, |
| 671 | | − 38, 74, 113, 114, 165, 194, 39, 40, 128, 41, |
| 672 | | − 76, 124, 77, 42, 132, 43, 78, 6, 44, 45, |
| 673 | | − 141, 46, 80, 47, 48, 49, 115, 116, 81, 117, |
| 674 | | − 79, 138, 160, 161, 50, 7, 173, 69, 70, 60 |
| 649 | + -1, 3, 4, 5, 34, 35, 114, 36, 37, 38, |
| 650 | + 39, 75, 115, 116, 168, 199, 40, 41, 130, 42, |
| 651 | + 77, 126, 78, 43, 134, 44, 79, 6, 45, 46, |
| 652 | + 143, 47, 81, 48, 49, 50, 117, 118, 82, 119, |
| 653 | + 80, 140, 162, 163, 51, 7, 176, 70, 71, 61 |
| 675 | 654 | }; |
| 676 | 655 | |
| 677 | | −/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
| 678 | | − STATE-NUM. */ |
| 679 | | −#define YYPACT_NINF -91 |
| 680 | | −static const yytype_int16 yypact[] = |
| 656 | + /* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM. If |
| 657 | + positive, shift that token. If negative, reduce the rule whose |
| 658 | + number is the opposite. If YYTABLE_NINF, syntax error. */ |
| 659 | +static const yytype_int16 yytable[] = |
| 681 | 660 | { |
| 682 | | − 19, 37, -91, 13, -91, 79, -91, 20, -91, -91, |
| 683 | | − -16, -91, 21, 37, 25, 37, 41, 36, 37, 78, |
| 684 | | − 83, 31, 56, -91, -91, -91, -91, -91, -91, -91, |
| 685 | | − -91, 116, -91, 127, -91, -91, -91, -91, -91, -91, |
| 686 | | − -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, |
| 687 | | − -91, 147, -91, -91, 105, -91, 109, -91, 111, -91, |
| 688 | | − 114, -91, 136, 137, 142, -91, -91, 31, 31, 76, |
| 689 | | − 254, -91, 143, 146, 27, 115, 207, 258, 243, -14, |
| 690 | | − 243, 179, -91, -91, -91, -91, -91, -91, -7, -91, |
| 691 | | − 31, 31, 105, 51, 51, 51, 51, 51, 51, -91, |
| 692 | | − -91, 156, 168, 181, 37, 37, 31, 178, 51, -91, |
| 693 | | − 206, -91, -91, -91, -91, 196, -91, -91, 175, 37, |
| 694 | | − 37, 185, -91, -91, -91, -91, -91, -91, -91, -91, |
| 695 | | − -91, -91, -91, -91, -91, 214, -91, 230, -91, -91, |
| 696 | | − -91, -91, -91, -91, -91, -91, -91, -91, 183, -91, |
| 697 | | − -91, -91, -91, -91, -91, -91, -91, -91, 31, 214, |
| 698 | | − 194, 214, 45, 214, 51, 26, 195, -91, -91, 214, |
| 699 | | − 197, 214, 31, -91, 139, 208, -91, -91, 220, 224, |
| 700 | | − 214, 222, -91, -91, 226, -91, 227, 123, -91, -91, |
| 701 | | − -91, -91, 235, 37, -91, -91, -91, -91, -91 |
| 661 | + 10, 89, 90, 152, 153, 154, 155, 156, 157, 137, |
| 662 | + 55, 125, 57, 128, 59, 11, 147, 63, 148, 167, |
| 663 | + 1, 138, 1, 2, 150, 151, 149, -32, 102, 91, |
| 664 | + 92, -32, -32, -32, -32, -32, -32, -32, -32, 103, |
| 665 | + 164, -32, -32, 104, -32, 105, 106, 107, 108, 109, |
| 666 | + 110, -32, 111, 2, 112, 53, 14, 15, 185, 17, |
| 667 | + 18, 19, 20, 113, 56, 21, 22, 186, 8, 9, |
| 668 | + 93, 66, 67, 147, 58, 148, 184, 60, 175, 68, |
| 669 | + 133, 102, 142, 62, 69, -54, -54, 33, -54, -54, |
| 670 | + -54, -54, 103, 177, -54, -54, 104, 120, 121, 122, |
| 671 | + 123, 91, 92, 135, 161, 144, 64, 112, 191, 65, |
| 672 | + 129, 132, 72, 141, 66, 67, 124, -34, 102, 73, |
| 673 | + 172, -34, -34, -34, -34, -34, -34, -34, -34, 103, |
| 674 | + 74, -34, -34, 104, -34, 105, 106, 107, 108, 109, |
| 675 | + 110, -34, 111, 53, 112, 131, 136, 83, 145, 84, |
| 676 | + -5, 12, 85, 113, 13, 14, 15, 16, 17, 18, |
| 677 | + 19, 20, 91, 92, 21, 22, 23, 24, 25, 26, |
| 678 | + 27, 28, 29, 30, 31, 86, 87, 32, 2, 91, |
| 679 | + 92, 192, 91, 92, -4, 12, 33, 88, 13, 14, |
| 680 | + 15, 16, 17, 18, 19, 20, 100, 203, 21, 22, |
| 681 | + 23, 24, 25, 26, 27, 28, 29, 30, 31, 101, |
| 682 | + 158, 32, 159, 160, 169, 165, 166, -87, 102, 170, |
| 683 | + 33, -87, -87, -87, -87, -87, -87, -87, -87, 171, |
| 684 | + 174, -87, -87, 104, -87, -87, -87, -87, -87, -87, |
| 685 | + -87, -87, 102, 175, 112, -78, -78, -78, -78, -78, |
| 686 | + -78, -78, -78, 146, 92, -78, -78, 104, 179, 13, |
| 687 | + 14, 15, 16, 17, 18, 19, 20, 187, 112, 21, |
| 688 | + 22, 178, 189, 180, 181, 182, 183, 146, 193, 194, |
| 689 | + 195, 196, 188, 200, 190, 94, 95, 96, 97, 98, |
| 690 | + 198, 33, 54, 201, 197, 99, 202, 52, 127, 76, |
| 691 | + 139, 173 |
| 702 | 692 | }; |
| 703 | 693 | |
| 704 | | −/* YYPGOTO[NTERM-NUM]. */ |
| 705 | | −static const yytype_int16 yypgoto[] = |
| 694 | +static const yytype_uint8 yycheck[] = |
| 706 | 695 | { |
| 707 | | − -91, -91, 264, 268, -91, 30, -65, -91, -91, -91, |
| 708 | | − -91, 238, -91, -91, -91, -91, -91, -91, -91, -12, |
| 709 | | − -91, -91, -91, -91, -91, -91, -91, -91, -91, -91, |
| 710 | | − -91, -5, -91, -91, -91, -91, -91, 200, 209, -61, |
| 711 | | − -91, -91, 170, -1, 65, 0, 118, -66, -90, -91 |
| 696 | + 1, 68, 69, 94, 95, 96, 97, 98, 99, 24, |
| 697 | + 10, 77, 13, 77, 15, 0, 82, 18, 82, 110, |
| 698 | + 3, 36, 3, 36, 91, 92, 34, 0, 1, 37, |
| 699 | + 38, 4, 5, 6, 7, 8, 9, 10, 11, 12, |
| 700 | + 107, 14, 15, 16, 17, 18, 19, 20, 21, 22, |
| 701 | + 23, 24, 25, 36, 27, 36, 5, 6, 27, 8, |
| 702 | + 9, 10, 11, 36, 36, 14, 15, 36, 27, 28, |
| 703 | + 70, 27, 28, 139, 36, 139, 167, 27, 14, 35, |
| 704 | + 79, 1, 81, 36, 40, 5, 6, 36, 8, 9, |
| 705 | + 10, 11, 12, 160, 14, 15, 16, 17, 18, 19, |
| 706 | + 20, 37, 38, 79, 105, 81, 27, 27, 175, 27, |
| 707 | + 78, 79, 36, 81, 27, 28, 36, 0, 1, 1, |
| 708 | + 121, 4, 5, 6, 7, 8, 9, 10, 11, 12, |
| 709 | + 1, 14, 15, 16, 17, 18, 19, 20, 21, 22, |
| 710 | + 23, 24, 25, 36, 27, 78, 79, 36, 81, 36, |
| 711 | + 0, 1, 36, 36, 4, 5, 6, 7, 8, 9, |
| 712 | + 10, 11, 37, 38, 14, 15, 16, 17, 18, 19, |
| 713 | + 20, 21, 22, 23, 24, 36, 36, 27, 36, 37, |
| 714 | + 38, 36, 37, 38, 0, 1, 36, 36, 4, 5, |
| 715 | + 6, 7, 8, 9, 10, 11, 36, 198, 14, 15, |
| 716 | + 16, 17, 18, 19, 20, 21, 22, 23, 24, 36, |
| 717 | + 36, 27, 36, 26, 1, 27, 27, 0, 1, 13, |
| 718 | + 36, 4, 5, 6, 7, 8, 9, 10, 11, 36, |
| 719 | + 27, 14, 15, 16, 17, 18, 19, 20, 21, 22, |
| 720 | + 23, 24, 1, 14, 27, 4, 5, 6, 7, 8, |
| 721 | + 9, 10, 11, 36, 38, 14, 15, 16, 36, 4, |
| 722 | + 5, 6, 7, 8, 9, 10, 11, 36, 27, 14, |
| 723 | + 15, 161, 36, 163, 164, 165, 166, 36, 36, 36, |
| 724 | + 36, 36, 172, 36, 174, 29, 30, 31, 32, 33, |
| 725 | + 39, 36, 7, 36, 184, 39, 36, 6, 77, 38, |
| 726 | + 80, 122 |
| 712 | 727 | }; |
| 713 | 728 | |
| 714 | | −/* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If |
| 715 | | − positive, shift that token. If negative, reduce the rule which |
| 716 | | − number is the opposite. If YYTABLE_NINF, syntax error. */ |
| 717 | | −#define YYTABLE_NINF -86 |
| 718 | | −static const yytype_int16 yytable[] = |
| 729 | + /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing |
| 730 | + symbol of state STATE-NUM. */ |
| 731 | +static const yytype_uint8 yystos[] = |
| 719 | 732 | { |
| 720 | | − 10, 88, 89, 150, 151, 152, 153, 154, 155, 135, |
| 721 | | − 54, 123, 56, 11, 58, 126, 145, 62, 164, 2, |
| 722 | | − 146, 136, 1, 1, 148, 149, 147, -31, 101, 90, |
| 723 | | − 91, -31, -31, -31, -31, -31, -31, -31, -31, 102, |
| 724 | | − 162, -31, -31, 103, -31, 104, 105, 106, 107, 108, |
| 725 | | − -31, 109, 181, 110, 2, 52, 55, 65, 66, 172, |
| 726 | | − 57, 182, 111, 8, 9, 67, 131, 59, 140, 92, |
| 727 | | − 68, 61, 145, 133, 180, 142, 146, 65, 66, -5, |
| 728 | | − 12, 90, 91, 13, 14, 15, 16, 17, 18, 19, |
| 729 | | − 20, 71, 174, 21, 22, 23, 24, 25, 26, 27, |
| 730 | | − 28, 29, 30, 159, 63, 31, 187, 127, 130, 64, |
| 731 | | − 139, 2, 90, 91, 32, -33, 101, 72, 169, -33, |
| 732 | | − -33, -33, -33, -33, -33, -33, -33, 102, 73, -33, |
| 733 | | − -33, 103, -33, 104, 105, 106, 107, 108, -33, 109, |
| 734 | | − 52, 110, 129, 134, 82, 143, 83, -4, 12, 84, |
| 735 | | − 111, 13, 14, 15, 16, 17, 18, 19, 20, 90, |
| 736 | | − 91, 21, 22, 23, 24, 25, 26, 27, 28, 29, |
| 737 | | − 30, 85, 86, 31, 188, 90, 91, 87, 99, -85, |
| 738 | | − 101, 100, 32, -85, -85, -85, -85, -85, -85, -85, |
| 739 | | − -85, 156, 198, -85, -85, 103, -85, -85, -85, -85, |
| 740 | | − -85, -85, -85, 157, 163, 110, 158, 166, 101, 167, |
| 741 | | − 168, 171, -52, -52, 144, -52, -52, -52, -52, 102, |
| 742 | | − 91, -52, -52, 103, 118, 119, 120, 121, 172, 176, |
| 743 | | − 183, 101, 185, 110, -76, -76, -76, -76, -76, -76, |
| 744 | | − -76, -76, 122, 189, -76, -76, 103, 13, 14, 15, |
| 745 | | − 16, 17, 18, 19, 20, 190, 110, 21, 22, 191, |
| 746 | | − 193, 195, 196, 14, 15, 144, 17, 18, 19, 20, |
| 747 | | − 197, 53, 21, 22, 51, 75, 125, 175, 32, 177, |
| 748 | | − 178, 179, 93, 94, 95, 96, 97, 184, 137, 186, |
| 749 | | − 170, 0, 98, 32, 0, 0, 0, 0, 192 |
| 733 | + 0, 3, 36, 42, 43, 44, 68, 86, 27, 28, |
| 734 | + 84, 0, 1, 4, 5, 6, 7, 8, 9, 10, |
| 735 | + 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, |
| 736 | + 23, 24, 27, 36, 45, 46, 48, 49, 50, 51, |
| 737 | + 57, 58, 60, 64, 66, 69, 70, 72, 74, 75, |
| 738 | + 76, 85, 44, 36, 43, 86, 36, 84, 36, 84, |
| 739 | + 27, 90, 36, 84, 27, 27, 27, 28, 35, 40, |
| 740 | + 88, 89, 36, 1, 1, 52, 52, 61, 63, 67, |
| 741 | + 81, 73, 79, 36, 36, 36, 36, 36, 36, 88, |
| 742 | + 88, 37, 38, 86, 29, 30, 31, 32, 33, 39, |
| 743 | + 36, 36, 1, 12, 16, 18, 19, 20, 21, 22, |
| 744 | + 23, 25, 27, 36, 47, 53, 54, 77, 78, 80, |
| 745 | + 17, 18, 19, 20, 36, 47, 62, 78, 80, 46, |
| 746 | + 59, 85, 46, 60, 65, 72, 85, 24, 36, 79, |
| 747 | + 82, 46, 60, 71, 72, 85, 36, 47, 80, 34, |
| 748 | + 88, 88, 89, 89, 89, 89, 89, 89, 36, 36, |
| 749 | + 26, 84, 83, 84, 88, 27, 27, 89, 55, 1, |
| 750 | + 13, 36, 84, 83, 27, 14, 87, 88, 87, 36, |
| 751 | + 87, 87, 87, 87, 89, 27, 36, 36, 87, 36, |
| 752 | + 87, 88, 36, 36, 36, 36, 36, 87, 39, 56, |
| 753 | + 36, 36, 36, 84 |
| 750 | 754 | }; |
| 751 | 755 | |
| 752 | | −#define yypact_value_is_default(yystate) \ |
| 753 | | − ((yystate) == (-91)) |
| 754 | | − |
| 755 | | −#define yytable_value_is_error(yytable_value) \ |
| 756 | | − YYID (0) |
| 757 | | − |
| 758 | | −static const yytype_int16 yycheck[] = |
| 756 | + /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ |
| 757 | +static const yytype_uint8 yyr1[] = |
| 759 | 758 | { |
| 760 | | − 1, 67, 68, 93, 94, 95, 96, 97, 98, 23, |
| 761 | | − 10, 76, 13, 0, 15, 76, 81, 18, 108, 35, |
| 762 | | − 81, 35, 3, 3, 90, 91, 33, 0, 1, 36, |
| 763 | | − 37, 4, 5, 6, 7, 8, 9, 10, 11, 12, |
| 764 | | − 106, 14, 15, 16, 17, 18, 19, 20, 21, 22, |
| 765 | | − 23, 24, 26, 26, 35, 35, 35, 26, 27, 14, |
| 766 | | − 35, 35, 35, 26, 27, 34, 78, 26, 80, 69, |
| 767 | | − 39, 35, 137, 78, 164, 80, 137, 26, 27, 0, |
| 768 | | − 1, 36, 37, 4, 5, 6, 7, 8, 9, 10, |
| 769 | | − 11, 35, 158, 14, 15, 16, 17, 18, 19, 20, |
| 770 | | − 21, 22, 23, 104, 26, 26, 172, 77, 78, 26, |
| 771 | | − 80, 35, 36, 37, 35, 0, 1, 1, 119, 4, |
| 772 | | − 5, 6, 7, 8, 9, 10, 11, 12, 1, 14, |
| 773 | | − 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
| 774 | | − 35, 26, 77, 78, 35, 80, 35, 0, 1, 35, |
| 775 | | − 35, 4, 5, 6, 7, 8, 9, 10, 11, 36, |
| 776 | | − 37, 14, 15, 16, 17, 18, 19, 20, 21, 22, |
| 777 | | − 23, 35, 35, 26, 35, 36, 37, 35, 35, 0, |
| 778 | | − 1, 35, 35, 4, 5, 6, 7, 8, 9, 10, |
| 779 | | − 11, 35, 193, 14, 15, 16, 17, 18, 19, 20, |
| 780 | | − 21, 22, 23, 35, 26, 26, 25, 1, 1, 13, |
| 781 | | − 35, 26, 5, 6, 35, 8, 9, 10, 11, 12, |
| 782 | | − 37, 14, 15, 16, 17, 18, 19, 20, 14, 35, |
| 783 | | − 35, 1, 35, 26, 4, 5, 6, 7, 8, 9, |
| 784 | | − 10, 11, 35, 35, 14, 15, 16, 4, 5, 6, |
| 785 | | − 7, 8, 9, 10, 11, 35, 26, 14, 15, 35, |
| 786 | | − 38, 35, 35, 5, 6, 35, 8, 9, 10, 11, |
| 787 | | − 35, 7, 14, 15, 6, 37, 76, 159, 35, 161, |
| 788 | | − 162, 163, 28, 29, 30, 31, 32, 169, 79, 171, |
| 789 | | − 120, -1, 38, 35, -1, -1, -1, -1, 180 |
| 759 | + 0, 41, 42, 42, 43, 43, 44, 44, 44, 44, |
| 760 | + 44, 44, 44, 44, 45, 45, 45, 45, 45, 45, |
| 761 | + 45, 45, 45, 46, 46, 46, 46, 46, 46, 47, |
| 762 | + 47, 48, 49, 50, 51, 52, 52, 52, 52, 52, |
| 763 | + 52, 52, 53, 53, 53, 53, 53, 53, 54, 55, |
| 764 | + 55, 56, 56, 57, 58, 59, 60, 61, 61, 61, |
| 765 | + 61, 61, 61, 62, 62, 62, 62, 63, 63, 64, |
| 766 | + 65, 66, 67, 67, 67, 67, 68, 69, 70, 71, |
| 767 | + 72, 73, 73, 73, 73, 74, 75, 76, 77, 78, |
| 768 | + 79, 79, 79, 79, 80, 81, 81, 81, 82, 83, |
| 769 | + 83, 84, 84, 85, 85, 85, 86, 86, 87, 87, |
| 770 | + 88, 88, 88, 88, 88, 88, 88, 88, 88, 88, |
| 771 | + 88, 89, 89, 90, 90 |
| 790 | 772 | }; |
| 791 | 773 | |
| 792 | | −/* YYSTOS[STATE-NUM] -- The (internal number of the) accessing |
| 793 | | − symbol of state STATE-NUM. */ |
| 794 | | −static const yytype_uint8 yystos[] = |
| 774 | + /* YYR2[YYN] -- Number of symbols on the right hand side of rule YYN. */ |
| 775 | +static const yytype_uint8 yyr2[] = |
| 795 | 776 | { |
| 796 | | − 0, 3, 35, 41, 42, 43, 67, 85, 26, 27, |
| 797 | | − 83, 0, 1, 4, 5, 6, 7, 8, 9, 10, |
| 798 | | − 11, 14, 15, 16, 17, 18, 19, 20, 21, 22, |
| 799 | | − 23, 26, 35, 44, 45, 47, 48, 49, 50, 56, |
| 800 | | − 57, 59, 63, 65, 68, 69, 71, 73, 74, 75, |
| 801 | | − 84, 43, 35, 42, 85, 35, 83, 35, 83, 26, |
| 802 | | − 89, 35, 83, 26, 26, 26, 27, 34, 39, 87, |
| 803 | | − 88, 35, 1, 1, 51, 51, 60, 62, 66, 80, |
| 804 | | − 72, 78, 35, 35, 35, 35, 35, 35, 87, 87, |
| 805 | | − 36, 37, 85, 28, 29, 30, 31, 32, 38, 35, |
| 806 | | − 35, 1, 12, 16, 18, 19, 20, 21, 22, 24, |
| 807 | | − 26, 35, 46, 52, 53, 76, 77, 79, 17, 18, |
| 808 | | − 19, 20, 35, 46, 61, 77, 79, 45, 58, 84, |
| 809 | | − 45, 59, 64, 71, 84, 23, 35, 78, 81, 45, |
| 810 | | − 59, 70, 71, 84, 35, 46, 79, 33, 87, 87, |
| 811 | | − 88, 88, 88, 88, 88, 88, 35, 35, 25, 83, |
| 812 | | − 82, 83, 87, 26, 88, 54, 1, 13, 35, 83, |
| 813 | | − 82, 26, 14, 86, 87, 86, 35, 86, 86, 86, |
| 814 | | − 88, 26, 35, 35, 86, 35, 86, 87, 35, 35, |
| 815 | | − 35, 35, 86, 38, 55, 35, 35, 35, 83 |
| 777 | + 0, 2, 2, 1, 2, 1, 0, 2, 2, 2, |
| 778 | + 2, 4, 4, 3, 1, 1, 1, 1, 1, 1, |
| 779 | + 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, |
| 780 | + 2, 3, 2, 3, 2, 0, 2, 2, 2, 2, |
| 781 | + 2, 2, 3, 4, 4, 4, 4, 5, 3, 0, |
| 782 | + 3, 0, 2, 3, 2, 1, 3, 0, 2, 2, |
| 783 | + 2, 2, 2, 4, 3, 2, 4, 0, 2, 3, |
| 784 | + 1, 3, 0, 2, 2, 2, 3, 3, 3, 1, |
| 785 | + 3, 0, 2, 2, 2, 3, 3, 2, 2, 2, |
| 786 | + 0, 2, 2, 2, 4, 0, 2, 2, 2, 0, |
| 787 | + 2, 1, 1, 2, 2, 2, 1, 2, 0, 2, |
| 788 | + 1, 3, 3, 3, 3, 3, 3, 3, 2, 3, |
| 789 | + 3, 1, 1, 0, 1 |
| 816 | 790 | }; |
| 817 | 791 | |
| 818 | | −#define yyerrok (yyerrstatus = 0) |
| 819 | | −#define yyclearin (yychar = YYEMPTY) |
| 820 | | −#define YYEMPTY (-2) |
| 821 | | −#define YYEOF 0 |
| 822 | | − |
| 823 | | −#define YYACCEPT goto yyacceptlab |
| 824 | | −#define YYABORT goto yyabortlab |
| 825 | | −#define YYERROR goto yyerrorlab |
| 826 | | − |
| 827 | | − |
| 828 | | −/* Like YYERROR except do call yyerror. This remains here temporarily |
| 829 | | − to ease the transition to the new meaning of YYERROR, for GCC. |
| 830 | | − Once GCC version 2 has supplanted version 1, this can go. However, |
| 831 | | − YYFAIL appears to be in use. Nevertheless, it is formally deprecated |
| 832 | | − in Bison 2.4.2's NEWS entry, where a plan to phase it out is |
| 833 | | − discussed. */ |
| 834 | | − |
| 835 | | −#define YYFAIL goto yyerrlab |
| 836 | | −#if defined YYFAIL |
| 837 | | − /* This is here to suppress warnings from the GCC cpp's |
| 838 | | − -Wunused-macros. Normally we don't worry about that warning, but |
| 839 | | − some users do, and we want to make it easy for users to remove |
| 840 | | − YYFAIL uses, which will produce warnings from Bison 2.5. */ |
| 841 | | −#endif |
| 792 | + |
| 793 | +#define yyerrok (yyerrstatus = 0) |
| 794 | +#define yyclearin (yychar = YYEMPTY) |
| 795 | +#define YYEMPTY (-2) |
| 796 | +#define YYEOF 0 |
| 797 | + |
| 798 | +#define YYACCEPT goto yyacceptlab |
| 799 | +#define YYABORT goto yyabortlab |
| 800 | +#define YYERROR goto yyerrorlab |
| 801 | + |
| 842 | 802 | |
| 843 | 803 | #define YYRECOVERING() (!!yyerrstatus) |
| 844 | 804 | |
| @@ -855,55 +815,15 @@ do \ · 10 unmodified lines |
| 855 | 815 | else \ |
| 856 | 816 | { \ |
| 857 | 817 | yyerror (YY_("syntax error: cannot back up")); \ |
| 858 | | − YYERROR; \ |
| 859 | | − } \ |
| 860 | | −while (YYID (0)) |
| 861 | | − |
| 862 | | − |
| 863 | | −#define YYTERROR 1 |
| 864 | | −#define YYERRCODE 256 |
| 865 | | − |
| 866 | | − |
| 867 | | −/* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N]. |
| 868 | | − If N is 0, then set CURRENT to the empty location which ends |
| 869 | | − the previous symbol: RHS[0] (always defined). */ |
| 870 | | − |
| 871 | | −#define YYRHSLOC(Rhs, K) ((Rhs)[K]) |
| 872 | | −#ifndef YYLLOC_DEFAULT |
| 873 | | −# define YYLLOC_DEFAULT(Current, Rhs, N) \ |
| 874 | | − do \ |
| 875 | | − if (YYID (N)) \ |
| 876 | | − { \ |
| 877 | | − (Current).first_line = YYRHSLOC (Rhs, 1).first_line; \ |
| 878 | | − (Current).first_column = YYRHSLOC (Rhs, 1).first_column; \ |
| 879 | | − (Current).last_line = YYRHSLOC (Rhs, N).last_line; \ |
| 880 | | − (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ |
| 881 | | − } \ |
| 882 | | − else \ |
| 883 | | − { \ |
| 884 | | − (Current).first_line = (Current).last_line = \ |
| 885 | | − YYRHSLOC (Rhs, 0).last_line; \ |
| 886 | | − (Current).first_column = (Current).last_column = \ |
| 887 | | − YYRHSLOC (Rhs, 0).last_column; \ |
| 888 | | − } \ |
| 889 | | − while (YYID (0)) |
| 890 | | −#endif |
| 891 | | − |
| 892 | | − |
| 893 | | −/* This macro is provided for backward compatibility. */ |
| 894 | | − |
| 895 | | −#ifndef YY_LOCATION_PRINT |
| 896 | | −# define YY_LOCATION_PRINT(File, Loc) ((void) 0) |
| 897 | | −#endif |
| 818 | + YYERROR; \ |
| 819 | + } \ |
| 820 | +while (0) |
| 898 | 821 | |
| 822 | +/* Error token number */ |
| 823 | +#define YYTERROR 1 |
| 824 | +#define YYERRCODE 256 |
| 899 | 825 | |
| 900 | | −/* YYLEX -- calling `yylex' with the right arguments. */ |
| 901 | 826 | |
| 902 | | −#ifdef YYLEX_PARAM |
| 903 | | −# define YYLEX yylex (YYLEX_PARAM) |
| 904 | | −#else |
| 905 | | −# define YYLEX yylex () |
| 906 | | −#endif |
| 907 | 827 | |
| 908 | 828 | /* Enable debugging if requested. */ |
| 909 | 829 | #if YYDEBUG |
| @@ -913,40 +833,36 @@ while (YYID (0)) · 3 unmodified lines |
| 913 | 833 | # define YYFPRINTF fprintf |
| 914 | 834 | # endif |
| 915 | 835 | |
| 916 | | −# define YYDPRINTF(Args) \ |
| 917 | | −do { \ |
| 918 | | − if (yydebug) \ |
| 919 | | − YYFPRINTF Args; \ |
| 920 | | −} while (YYID (0)) |
| 836 | +# define YYDPRINTF(Args) \ |
| 837 | +do { \ |
| 838 | + if (yydebug) \ |
| 839 | + YYFPRINTF Args; \ |
| 840 | +} while (0) |
| 841 | + |
| 842 | +/* This macro is provided for backward compatibility. */ |
| 843 | +#ifndef YY_LOCATION_PRINT |
| 844 | +# define YY_LOCATION_PRINT(File, Loc) ((void) 0) |
| 845 | +#endif |
| 846 | + |
| 921 | 847 | |
| 922 | | −# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ |
| 923 | | −do { \ |
| 924 | | − if (yydebug) \ |
| 925 | | − { \ |
| 926 | | − YYFPRINTF (stderr, "%s ", Title); \ |
| 927 | | − yy_symbol_print (stderr, \ |
| 928 | | − Type, Value); \ |
| 929 | | − YYFPRINTF (stderr, "\n"); \ |
| 930 | | − } \ |
| 931 | | −} while (YYID (0)) |
| 848 | +# define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ |
| 849 | +do { \ |
| 850 | + if (yydebug) \ |
| 851 | + { \ |
| 852 | + YYFPRINTF (stderr, "%s ", Title); \ |
| 853 | + yy_symbol_print (stderr, \ |
| 854 | + Type, Value); \ |
| 855 | + YYFPRINTF (stderr, "\n"); \ |
| 856 | + } \ |
| 857 | +} while (0) |
| 932 | 858 | |
| 933 | 859 | |
| 934 | | −/*--------------------------------. |
| 935 | | −| Print this symbol on YYOUTPUT. | |
| 936 | | −`--------------------------------*/ |
| 860 | +/*----------------------------------------. |
| 861 | +| Print this symbol's value on YYOUTPUT. | |
| 862 | +`----------------------------------------*/ |
| 937 | 863 | |
| 938 | | −/*ARGSUSED*/ |
| 939 | | −#if (defined __STDC__ || defined __C99__FUNC__ \ |
| 940 | | − || defined __cplusplus || defined _MSC_VER) |
| 941 | 864 | static void |
| 942 | 865 | yy_symbol_value_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) |
| 943 | | −#else |
| 944 | | −static void |
| 945 | | −yy_symbol_value_print (yyoutput, yytype, yyvaluep) |
| 946 | | − FILE *yyoutput; |
| 947 | | − int yytype; |
| 948 | | − YYSTYPE const * const yyvaluep; |
| 949 | | −#endif |
| 950 | 866 | { |
| 951 | 867 | FILE *yyo = yyoutput; |
| 952 | 868 | YYUSE (yyo); |
| @@ -955,14 +871,8 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep) · 2 unmodified lines |
| 955 | 871 | # ifdef YYPRINT |
| 956 | 872 | if (yytype < YYNTOKENS) |
| 957 | 873 | YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep); |
| 958 | | −# else |
| 959 | | − YYUSE (yyoutput); |
| 960 | 874 | # endif |
| 961 | | − switch (yytype) |
| 962 | | − { |
| 963 | | − default: |
| 964 | | − break; |
| 965 | | − } |
| 875 | + YYUSE (yytype); |
| 966 | 876 | } |
| 967 | 877 | |
| 968 | 878 | |
| @@ -970,22 +880,11 @@ yy_symbol_value_print (yyoutput, yytype, yyvaluep) · 1 unmodified line |
| 970 | 880 | | Print this symbol on YYOUTPUT. | |
| 971 | 881 | `--------------------------------*/ |
| 972 | 882 | |
| 973 | | −#if (defined __STDC__ || defined __C99__FUNC__ \ |
| 974 | | − || defined __cplusplus || defined _MSC_VER) |
| 975 | 883 | static void |
| 976 | 884 | yy_symbol_print (FILE *yyoutput, int yytype, YYSTYPE const * const yyvaluep) |
| 977 | | −#else |
| 978 | | −static void |
| 979 | | −yy_symbol_print (yyoutput, yytype, yyvaluep) |
| 980 | | − FILE *yyoutput; |
| 981 | | − int yytype; |
| 982 | | − YYSTYPE const * const yyvaluep; |
| 983 | | −#endif |
| 984 | 885 | { |
| 985 | | − if (yytype < YYNTOKENS) |
| 986 | | − YYFPRINTF (yyoutput, "token %s (", yytname[yytype]); |
| 987 | | − else |
| 988 | | − YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]); |
| 886 | + YYFPRINTF (yyoutput, "%s %s (", |
| 887 | + yytype < YYNTOKENS ? "token" : "nterm", yytname[yytype]); |
| 989 | 888 | |
| 990 | 889 | yy_symbol_value_print (yyoutput, yytype, yyvaluep); |
| 991 | 890 | YYFPRINTF (yyoutput, ")"); |
| @@ -996,16 +895,8 @@ yy_symbol_print (yyoutput, yytype, yyvaluep) · 4 unmodified lines |
| 996 | 895 | | TOP (included). | |
| 997 | 896 | `------------------------------------------------------------------*/ |
| 998 | 897 | |
| 999 | | −#if (defined __STDC__ || defined __C99__FUNC__ \ |
| 1000 | | − || defined __cplusplus || defined _MSC_VER) |
| 1001 | 898 | static void |
| 1002 | 899 | yy_stack_print (yytype_int16 *yybottom, yytype_int16 *yytop) |
| 1003 | | −#else |
| 1004 | | −static void |
| 1005 | | −yy_stack_print (yybottom, yytop) |
| 1006 | | − yytype_int16 *yybottom; |
| 1007 | | − yytype_int16 *yytop; |
| 1008 | | −#endif |
| 1009 | 900 | { |
| 1010 | 901 | YYFPRINTF (stderr, "Stack now"); |
| 1011 | 902 | for (; yybottom <= yytop; yybottom++) |
| @@ -1016,49 +907,42 @@ yy_stack_print (yybottom, yytop) · 4 unmodified lines |
| 1016 | 907 | YYFPRINTF (stderr, "\n"); |
| 1017 | 908 | } |
| 1018 | 909 | |
| 1019 | | −# define YY_STACK_PRINT(Bottom, Top) \ |
| 1020 | | −do { \ |
| 1021 | | − if (yydebug) \ |
| 1022 | | − yy_stack_print ((Bottom), (Top)); \ |
| 1023 | | −} while (YYID (0)) |
| 910 | +# define YY_STACK_PRINT(Bottom, Top) \ |
| 911 | +do { \ |
| 912 | + if (yydebug) \ |
| 913 | + yy_stack_print ((Bottom), (Top)); \ |
| 914 | +} while (0) |
| 1024 | 915 | |
| 1025 | 916 | |
| 1026 | 917 | /*------------------------------------------------. |
| 1027 | 918 | | Report that the YYRULE is going to be reduced. | |
| 1028 | 919 | `------------------------------------------------*/ |
| 1029 | 920 | |
| 1030 | | −#if (defined __STDC__ || defined __C99__FUNC__ \ |
| 1031 | | − || defined __cplusplus || defined _MSC_VER) |
| 1032 | 921 | static void |
| 1033 | | −yy_reduce_print (YYSTYPE *yyvsp, int yyrule) |
| 1034 | | −#else |
| 1035 | | −static void |
| 1036 | | −yy_reduce_print (yyvsp, yyrule) |
| 1037 | | − YYSTYPE *yyvsp; |
| 1038 | | − int yyrule; |
| 1039 | | −#endif |
| 922 | +yy_reduce_print (yytype_int16 *yyssp, YYSTYPE *yyvsp, int yyrule) |
| 1040 | 923 | { |
| 924 | + unsigned long int yylno = yyrline[yyrule]; |
| 1041 | 925 | int yynrhs = yyr2[yyrule]; |
| 1042 | 926 | int yyi; |
| 1043 | | − unsigned long int yylno = yyrline[yyrule]; |
| 1044 | 927 | YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu):\n", |
| 1045 | | − yyrule - 1, yylno); |
| 928 | + yyrule - 1, yylno); |
| 1046 | 929 | /* The symbols being reduced. */ |
| 1047 | 930 | for (yyi = 0; yyi < yynrhs; yyi++) |
| 1048 | 931 | { |
| 1049 | 932 | YYFPRINTF (stderr, " $%d = ", yyi + 1); |
| 1050 | | − yy_symbol_print (stderr, yyrhs[yyprhs[yyrule] + yyi], |
| 1051 | | − &(yyvsp[(yyi + 1) - (yynrhs)]) |
| 1052 | | − ); |
| 933 | + yy_symbol_print (stderr, |
| 934 | + yystos[yyssp[yyi + 1 - yynrhs]], |
| 935 | + &(yyvsp[(yyi + 1) - (yynrhs)]) |
| 936 | + ); |
| 1053 | 937 | YYFPRINTF (stderr, "\n"); |
| 1054 | 938 | } |
| 1055 | 939 | } |
| 1056 | 940 | |
| 1057 | | −# define YY_REDUCE_PRINT(Rule) \ |
| 1058 | | −do { \ |
| 1059 | | − if (yydebug) \ |
| 1060 | | − yy_reduce_print (yyvsp, Rule); \ |
| 1061 | | −} while (YYID (0)) |
| 941 | +# define YY_REDUCE_PRINT(Rule) \ |
| 942 | +do { \ |
| 943 | + if (yydebug) \ |
| 944 | + yy_reduce_print (yyssp, yyvsp, Rule); \ |
| 945 | +} while (0) |
| 1062 | 946 | |
| 1063 | 947 | /* Nonzero means print parse trace. It is left uninitialized so that |
| 1064 | 948 | multiple parsers can coexist. */ |
| @@ -1072,7 +956,7 @@ int yydebug; · 7 unmodified lines |
| 1072 | 956 | |
| 1073 | 957 | |
| 1074 | 958 | /* YYINITDEPTH -- initial size of the parser's stacks. */ |
| 1075 | | −#ifndef YYINITDEPTH |
| 959 | +#ifndef YYINITDEPTH |
| 1076 | 960 | # define YYINITDEPTH 200 |
| 1077 | 961 | #endif |
| 1078 | 962 | |
| @@ -1095,15 +979,8 @@ int yydebug; · 16 unmodified lines |
| 1095 | 979 | # define yystrlen strlen |
| 1096 | 980 | # else |
| 1097 | 981 | /* Return the length of YYSTR. */ |
| 1098 | | −#if (defined __STDC__ || defined __C99__FUNC__ \ |
| 1099 | | − || defined __cplusplus || defined _MSC_VER) |
| 1100 | 982 | static YYSIZE_T |
| 1101 | 983 | yystrlen (const char *yystr) |
| 1102 | | −#else |
| 1103 | | −static YYSIZE_T |
| 1104 | | −yystrlen (yystr) |
| 1105 | | − const char *yystr; |
| 1106 | | −#endif |
| 1107 | 984 | { |
| 1108 | 985 | YYSIZE_T yylen; |
| 1109 | 986 | for (yylen = 0; yystr[yylen]; yylen++) |
| @@ -1119,16 +996,8 @@ yystrlen (yystr) · 9 unmodified lines |
| 1119 | 996 | # else |
| 1120 | 997 | /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in |
| 1121 | 998 | YYDEST. */ |
| 1122 | | −#if (defined __STDC__ || defined __C99__FUNC__ \ |
| 1123 | | − || defined __cplusplus || defined _MSC_VER) |
| 1124 | 999 | static char * |
| 1125 | 1000 | yystpcpy (char *yydest, const char *yysrc) |
| 1126 | | −#else |
| 1127 | | −static char * |
| 1128 | | −yystpcpy (yydest, yysrc) |
| 1129 | | − char *yydest; |
| 1130 | | − const char *yysrc; |
| 1131 | | −#endif |
| 1132 | 1001 | { |
| 1133 | 1002 | char *yyd = yydest; |
| 1134 | 1003 | const char *yys = yysrc; |
| @@ -1158,27 +1027,27 @@ yytnamerr (char *yyres, const char *yystr) · 23 unmodified lines |
| 1158 | 1027 | char const *yyp = yystr; |
| 1159 | 1028 | |
| 1160 | 1029 | for (;;) |
| 1161 | | − switch (*++yyp) |
| 1162 | | − { |
| 1163 | | − case '\'': |
| 1164 | | − case ',': |
| 1165 | | − goto do_not_strip_quotes; |
| 1166 | | − |
| 1167 | | − case '\\': |
| 1168 | | − if (*++yyp != '\\') |
| 1169 | | − goto do_not_strip_quotes; |
| 1170 | | − /* Fall through. */ |
| 1171 | | − default: |
| 1172 | | − if (yyres) |
| 1173 | | − yyres[yyn] = *yyp; |
| 1174 | | − yyn++; |
| 1175 | | − break; |
| 1176 | | − |
| 1177 | | − case '"': |
| 1178 | | − if (yyres) |
| 1179 | | − yyres[yyn] = '\0'; |
| 1180 | | − return yyn; |
| 1181 | | − } |
| 1030 | + switch (*++yyp) |
| 1031 | + { |
| 1032 | + case '\'': |
| 1033 | + case ',': |
| 1034 | + goto do_not_strip_quotes; |
| 1035 | + |
| 1036 | + case '\\': |
| 1037 | + if (*++yyp != '\\') |
| 1038 | + goto do_not_strip_quotes; |
| 1039 | + /* Fall through. */ |
| 1040 | + default: |
| 1041 | + if (yyres) |
| 1042 | + yyres[yyn] = *yyp; |
| 1043 | + yyn++; |
| 1044 | + break; |
| 1045 | + |
| 1046 | + case '"': |
| 1047 | + if (yyres) |
| 1048 | + yyres[yyn] = '\0'; |
| 1049 | + return yyn; |
| 1050 | + } |
| 1182 | 1051 | do_not_strip_quotes: ; |
| 1183 | 1052 | } |
| 1184 | 1053 | |
| @@ -1201,12 +1070,11 @@ static int · 16 unmodified lines |
| 1201 | 1070 | yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, |
| 1202 | 1071 | yytype_int16 *yyssp, int yytoken) |
| 1203 | 1072 | { |
| 1204 | | − YYSIZE_T yysize0 = yytnamerr (YY_NULL, yytname[yytoken]); |
| 1073 | + YYSIZE_T yysize0 = yytnamerr (YY_NULLPTR, yytname[yytoken]); |
| 1205 | 1074 | YYSIZE_T yysize = yysize0; |
| 1206 | | − YYSIZE_T yysize1; |
| 1207 | 1075 | enum { YYERROR_VERBOSE_ARGS_MAXIMUM = 5 }; |
| 1208 | 1076 | /* Internationalized format string. */ |
| 1209 | | − const char *yyformat = YY_NULL; |
| 1077 | + const char *yyformat = YY_NULLPTR; |
| 1210 | 1078 | /* Arguments of yyformat. */ |
| 1211 | 1079 | char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; |
| 1212 | 1080 | /* Number of reported tokens (one for the "unexpected", one per |
| @@ -1214,10 +1082,6 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, · 1 unmodified line |
| 1214 | 1082 | int yycount = 0; |
| 1215 | 1083 | |
| 1216 | 1084 | /* There are many possibilities here to consider: |
| 1217 | | − - Assume YYFAIL is not used. It's too flawed to consider. See |
| 1218 | | − <http://lists.gnu.org/archive/html/bison-patches/2009-12/msg00024.html> |
| 1219 | | − for details. YYERROR is fine as it does not invoke this |
| 1220 | | − function. |
| 1221 | 1085 | - If this state is a consistent state with a default action, then |
| 1222 | 1086 | the only way this function was invoked is if the default action |
| 1223 | 1087 | is an error action. In that case, don't check for expected |
| @@ -1266,11 +1130,13 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, · 42 unmodified lines |
| 1266 | 1130 | break; |
| 1267 | 1131 | } |
| 1268 | 1132 | yyarg[yycount++] = yytname[yyx]; |
| 1269 | | − yysize1 = yysize + yytnamerr (YY_NULL, yytname[yyx]); |
| 1270 | | − if (! (yysize <= yysize1 |
| 1271 | | − && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
| 1272 | | − return 2; |
| 1273 | | − yysize = yysize1; |
| 1133 | + { |
| 1134 | + YYSIZE_T yysize1 = yysize + yytnamerr (YY_NULLPTR, yytname[yyx]); |
| 1135 | + if (! (yysize <= yysize1 |
| 1136 | + && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
| 1137 | + return 2; |
| 1138 | + yysize = yysize1; |
| 1139 | + } |
| 1274 | 1140 | } |
| 1275 | 1141 | } |
| 1276 | 1142 | } |
| @@ -1290,10 +1156,12 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, · 13 unmodified lines |
| 1290 | 1156 | # undef YYCASE_ |
| 1291 | 1157 | } |
| 1292 | 1158 | |
| 1293 | | − yysize1 = yysize + yystrlen (yyformat); |
| 1294 | | − if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
| 1295 | | − return 2; |
| 1296 | | − yysize = yysize1; |
| 1159 | + { |
| 1160 | + YYSIZE_T yysize1 = yysize + yystrlen (yyformat); |
| 1161 | + if (! (yysize <= yysize1 && yysize1 <= YYSTACK_ALLOC_MAXIMUM)) |
| 1162 | + return 2; |
| 1163 | + yysize = yysize1; |
| 1164 | + } |
| 1297 | 1165 | |
| 1298 | 1166 | if (*yymsg_alloc < yysize) |
| 1299 | 1167 | { |
| @@ -1330,78 +1198,58 @@ yysyntax_error (YYSIZE_T *yymsg_alloc, char **yymsg, · 30 unmodified lines |
| 1330 | 1198 | | Release the memory associated to this symbol. | |
| 1331 | 1199 | `-----------------------------------------------*/ |
| 1332 | 1200 | |
| 1333 | | −/*ARGSUSED*/ |
| 1334 | | −#if (defined __STDC__ || defined __C99__FUNC__ \ |
| 1335 | | − || defined __cplusplus || defined _MSC_VER) |
| 1336 | 1201 | static void |
| 1337 | 1202 | yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep) |
| 1338 | | −#else |
| 1339 | | −static void |
| 1340 | | −yydestruct (yymsg, yytype, yyvaluep) |
| 1341 | | − const char *yymsg; |
| 1342 | | − int yytype; |
| 1343 | | − YYSTYPE *yyvaluep; |
| 1344 | | −#endif |
| 1345 | 1203 | { |
| 1346 | 1204 | YYUSE (yyvaluep); |
| 1347 | | − |
| 1348 | 1205 | if (!yymsg) |
| 1349 | 1206 | yymsg = "Deleting"; |
| 1350 | 1207 | YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp); |
| 1351 | 1208 | |
| 1209 | + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 1352 | 1210 | switch (yytype) |
| 1353 | 1211 | { |
| 1354 | | − case 57: /* "choice_entry" */ |
| 1212 | + case 58: /* choice_entry */ |
| 1355 | 1213 | |
| 1356 | | − { |
| 1214 | + { |
| 1357 | 1215 | fprintf(stderr, "%s:%d: missing end statement for this entry\n", |
| 1358 | | − (yyvaluep->menu)->file->name, (yyvaluep->menu)->lineno); |
| 1359 | | − if (current_menu == (yyvaluep->menu)) |
| 1216 | + ((*yyvaluep).menu)->file->name, ((*yyvaluep).menu)->lineno); |
| 1217 | + if (current_menu == ((*yyvaluep).menu)) |
| 1360 | 1218 | menu_end_menu(); |
| 1361 | | −}; |
| 1219 | +} |
| 1220 | + |
| 1221 | + break; |
| 1362 | 1222 | |
| 1363 | | − break; |
| 1364 | | − case 63: /* "if_entry" */ |
| 1223 | + case 64: /* if_entry */ |
| 1365 | 1224 | |
| 1366 | | − { |
| 1225 | + { |
| 1367 | 1226 | fprintf(stderr, "%s:%d: missing end statement for this entry\n", |
| 1368 | | − (yyvaluep->menu)->file->name, (yyvaluep->menu)->lineno); |
| 1369 | | − if (current_menu == (yyvaluep->menu)) |
| 1227 | + ((*yyvaluep).menu)->file->name, ((*yyvaluep).menu)->lineno); |
| 1228 | + if (current_menu == ((*yyvaluep).menu)) |
| 1370 | 1229 | menu_end_menu(); |
| 1371 | | −}; |
| 1230 | +} |
| 1372 | 1231 | |
| 1373 | | − break; |
| 1374 | | − case 69: /* "menu_entry" */ |
| 1232 | + break; |
| 1375 | 1233 | |
| 1376 | | − { |
| 1234 | + case 70: /* menu_entry */ |
| 1235 | + |
| 1236 | + { |
| 1377 | 1237 | fprintf(stderr, "%s:%d: missing end statement for this entry\n", |
| 1378 | | − (yyvaluep->menu)->file->name, (yyvaluep->menu)->lineno); |
| 1379 | | − if (current_menu == (yyvaluep->menu)) |
| 1238 | + ((*yyvaluep).menu)->file->name, ((*yyvaluep).menu)->lineno); |
| 1239 | + if (current_menu == ((*yyvaluep).menu)) |
| 1380 | 1240 | menu_end_menu(); |
| 1381 | | −}; |
| 1241 | +} |
| 1242 | + |
| 1243 | + break; |
| 1382 | 1244 | |
| 1383 | | − break; |
| 1384 | 1245 | |
| 1385 | 1246 | default: |
| 1386 | | − break; |
| 1247 | + break; |
| 1387 | 1248 | } |
| 1249 | + YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 1388 | 1250 | } |
| 1389 | 1251 | |
| 1390 | 1252 | |
| 1391 | | −/* Prevent warnings from -Wmissing-prototypes. */ |
| 1392 | | −#ifdef YYPARSE_PARAM |
| 1393 | | −#if defined __STDC__ || defined __cplusplus |
| 1394 | | −int yyparse (void *YYPARSE_PARAM); |
| 1395 | | −#else |
| 1396 | | −int yyparse (); |
| 1397 | | −#endif |
| 1398 | | −#else /* ! YYPARSE_PARAM */ |
| 1399 | | −#if defined __STDC__ || defined __cplusplus |
| 1400 | | −int yyparse (void); |
| 1401 | | −#else |
| 1402 | | −int yyparse (); |
| 1403 | | −#endif |
| 1404 | | −#endif /* ! YYPARSE_PARAM */ |
| 1405 | 1253 | |
| 1406 | 1254 | |
| 1407 | 1255 | /* The lookahead symbol. */ |
| @@ -1409,7 +1257,6 @@ int yychar; · 1 unmodified line |
| 1409 | 1257 | |
| 1410 | 1258 | /* The semantic value of the lookahead symbol. */ |
| 1411 | 1259 | YYSTYPE yylval; |
| 1412 | | − |
| 1413 | 1260 | /* Number of syntax errors so far. */ |
| 1414 | 1261 | int yynerrs; |
| 1415 | 1262 | |
| @@ -1418,35 +1265,16 @@ int yynerrs; · 2 unmodified lines |
| 1418 | 1265 | | yyparse. | |
| 1419 | 1266 | `----------*/ |
| 1420 | 1267 | |
| 1421 | | −#ifdef YYPARSE_PARAM |
| 1422 | | −#if (defined __STDC__ || defined __C99__FUNC__ \ |
| 1423 | | − || defined __cplusplus || defined _MSC_VER) |
| 1424 | | −int |
| 1425 | | −yyparse (void *YYPARSE_PARAM) |
| 1426 | | −#else |
| 1427 | | −int |
| 1428 | | −yyparse (YYPARSE_PARAM) |
| 1429 | | − void *YYPARSE_PARAM; |
| 1430 | | −#endif |
| 1431 | | −#else /* ! YYPARSE_PARAM */ |
| 1432 | | −#if (defined __STDC__ || defined __C99__FUNC__ \ |
| 1433 | | − || defined __cplusplus || defined _MSC_VER) |
| 1434 | 1268 | int |
| 1435 | 1269 | yyparse (void) |
| 1436 | | −#else |
| 1437 | | −int |
| 1438 | | −yyparse () |
| 1439 | | − |
| 1440 | | −#endif |
| 1441 | | −#endif |
| 1442 | 1270 | { |
| 1443 | 1271 | int yystate; |
| 1444 | 1272 | /* Number of tokens to shift before error messages enabled. */ |
| 1445 | 1273 | int yyerrstatus; |
| 1446 | 1274 | |
| 1447 | 1275 | /* The stacks and their tools: |
| 1448 | | − `yyss': related to states. |
| 1449 | | − `yyvs': related to semantic values. |
| 1276 | + 'yyss': related to states. |
| 1277 | + 'yyvs': related to semantic values. |
| 1450 | 1278 | |
| 1451 | 1279 | Refer to the stacks through separate pointers, to allow yyoverflow |
| 1452 | 1280 | to reallocate them elsewhere. */ |
| @@ -1466,7 +1294,7 @@ yyparse () · 13 unmodified lines |
| 1466 | 1294 | int yyn; |
| 1467 | 1295 | int yyresult; |
| 1468 | 1296 | /* Lookahead token as an internal (translated) token number. */ |
| 1469 | | − int yytoken; |
| 1297 | + int yytoken = 0; |
| 1470 | 1298 | /* The variables used to return semantic value and location from the |
| 1471 | 1299 | action routines. */ |
| 1472 | 1300 | YYSTYPE yyval; |
| @@ -1484,9 +1312,8 @@ yyparse () · 11 unmodified lines |
| 1484 | 1312 | Keep to zero when no symbol should be popped. */ |
| 1485 | 1313 | int yylen = 0; |
| 1486 | 1314 | |
| 1487 | | − yytoken = 0; |
| 1488 | | − yyss = yyssa; |
| 1489 | | − yyvs = yyvsa; |
| 1315 | + yyssp = yyss = yyssa; |
| 1316 | + yyvsp = yyvs = yyvsa; |
| 1490 | 1317 | yystacksize = YYINITDEPTH; |
| 1491 | 1318 | |
| 1492 | 1319 | YYDPRINTF ((stderr, "Starting parse\n")); |
| @@ -1495,14 +1322,6 @@ yyparse () · 2 unmodified lines |
| 1495 | 1322 | yyerrstatus = 0; |
| 1496 | 1323 | yynerrs = 0; |
| 1497 | 1324 | yychar = YYEMPTY; /* Cause a token to be read. */ |
| 1498 | | − |
| 1499 | | − /* Initialize stack pointers. |
| 1500 | | − Waste one element of value and location stack |
| 1501 | | − so that they stay on the same level as the state stack. |
| 1502 | | − The wasted elements are never initialized. */ |
| 1503 | | − yyssp = yyss; |
| 1504 | | − yyvsp = yyvs; |
| 1505 | | − |
| 1506 | 1325 | goto yysetstate; |
| 1507 | 1326 | |
| 1508 | 1327 | /*------------------------------------------------------------. |
| @@ -1523,23 +1342,23 @@ yyparse () · 14 unmodified lines |
| 1523 | 1342 | |
| 1524 | 1343 | #ifdef yyoverflow |
| 1525 | 1344 | { |
| 1526 | | − /* Give user a chance to reallocate the stack. Use copies of |
| 1527 | | − these so that the &'s don't force the real ones into |
| 1528 | | − memory. */ |
| 1529 | | − YYSTYPE *yyvs1 = yyvs; |
| 1530 | | − yytype_int16 *yyss1 = yyss; |
| 1531 | | − |
| 1532 | | − /* Each stack pointer address is followed by the size of the |
| 1533 | | − data in use in that stack, in bytes. This used to be a |
| 1534 | | − conditional around just the two extra args, but that might |
| 1535 | | − be undefined if yyoverflow is a macro. */ |
| 1536 | | − yyoverflow (YY_("memory exhausted"), |
| 1537 | | − &yyss1, yysize * sizeof (*yyssp), |
| 1538 | | − &yyvs1, yysize * sizeof (*yyvsp), |
| 1539 | | − &yystacksize); |
| 1540 | | − |
| 1541 | | − yyss = yyss1; |
| 1542 | | − yyvs = yyvs1; |
| 1345 | + /* Give user a chance to reallocate the stack. Use copies of |
| 1346 | + these so that the &'s don't force the real ones into |
| 1347 | + memory. */ |
| 1348 | + YYSTYPE *yyvs1 = yyvs; |
| 1349 | + yytype_int16 *yyss1 = yyss; |
| 1350 | + |
| 1351 | + /* Each stack pointer address is followed by the size of the |
| 1352 | + data in use in that stack, in bytes. This used to be a |
| 1353 | + conditional around just the two extra args, but that might |
| 1354 | + be undefined if yyoverflow is a macro. */ |
| 1355 | + yyoverflow (YY_("memory exhausted"), |
| 1356 | + &yyss1, yysize * sizeof (*yyssp), |
| 1357 | + &yyvs1, yysize * sizeof (*yyvsp), |
| 1358 | + &yystacksize); |
| 1359 | + |
| 1360 | + yyss = yyss1; |
| 1361 | + yyvs = yyvs1; |
| 1543 | 1362 | } |
| 1544 | 1363 | #else /* no yyoverflow */ |
| 1545 | 1364 | # ifndef YYSTACK_RELOCATE |
| @@ -1547,22 +1366,22 @@ yyparse () · 1 unmodified line |
| 1547 | 1366 | # else |
| 1548 | 1367 | /* Extend the stack our own way. */ |
| 1549 | 1368 | if (YYMAXDEPTH <= yystacksize) |
| 1550 | | − goto yyexhaustedlab; |
| 1369 | + goto yyexhaustedlab; |
| 1551 | 1370 | yystacksize *= 2; |
| 1552 | 1371 | if (YYMAXDEPTH < yystacksize) |
| 1553 | | − yystacksize = YYMAXDEPTH; |
| 1372 | + yystacksize = YYMAXDEPTH; |
| 1554 | 1373 | |
| 1555 | 1374 | { |
| 1556 | | − yytype_int16 *yyss1 = yyss; |
| 1557 | | − union yyalloc *yyptr = |
| 1558 | | − (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
| 1559 | | − if (! yyptr) |
| 1560 | | − goto yyexhaustedlab; |
| 1561 | | − YYSTACK_RELOCATE (yyss_alloc, yyss); |
| 1562 | | − YYSTACK_RELOCATE (yyvs_alloc, yyvs); |
| 1375 | + yytype_int16 *yyss1 = yyss; |
| 1376 | + union yyalloc *yyptr = |
| 1377 | + (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
| 1378 | + if (! yyptr) |
| 1379 | + goto yyexhaustedlab; |
| 1380 | + YYSTACK_RELOCATE (yyss_alloc, yyss); |
| 1381 | + YYSTACK_RELOCATE (yyvs_alloc, yyvs); |
| 1563 | 1382 | # undef YYSTACK_RELOCATE |
| 1564 | | − if (yyss1 != yyssa) |
| 1565 | | − YYSTACK_FREE (yyss1); |
| 1383 | + if (yyss1 != yyssa) |
| 1384 | + YYSTACK_FREE (yyss1); |
| 1566 | 1385 | } |
| 1567 | 1386 | # endif |
| 1568 | 1387 | #endif /* no yyoverflow */ |
| @@ -1571,10 +1390,10 @@ yyparse () · 2 unmodified lines |
| 1571 | 1390 | yyvsp = yyvs + yysize - 1; |
| 1572 | 1391 | |
| 1573 | 1392 | YYDPRINTF ((stderr, "Stack size increased to %lu\n", |
| 1574 | | − (unsigned long int) yystacksize)); |
| 1393 | + (unsigned long int) yystacksize)); |
| 1575 | 1394 | |
| 1576 | 1395 | if (yyss + yystacksize - 1 <= yyssp) |
| 1577 | | − YYABORT; |
| 1396 | + YYABORT; |
| 1578 | 1397 | } |
| 1579 | 1398 | |
| 1580 | 1399 | YYDPRINTF ((stderr, "Entering state %d\n", yystate)); |
| @@ -1603,7 +1422,7 @@ yybackup: · 22 unmodified lines |
| 1603 | 1422 | if (yychar == YYEMPTY) |
| 1604 | 1423 | { |
| 1605 | 1424 | YYDPRINTF ((stderr, "Reading a token: ")); |
| 1606 | | − yychar = YYLEX; |
| 1425 | + yychar = yylex (); |
| 1607 | 1426 | } |
| 1608 | 1427 | |
| 1609 | 1428 | if (yychar <= YYEOF) |
| @@ -1643,7 +1462,9 @@ yybackup: · 33 unmodified lines |
| 1643 | 1462 | yychar = YYEMPTY; |
| 1644 | 1463 | |
| 1645 | 1464 | yystate = yyn; |
| 1465 | + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 1646 | 1466 | *++yyvsp = yylval; |
| 1467 | + YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 1647 | 1468 | |
| 1648 | 1469 | goto yynewstate; |
| 1649 | 1470 | |
| @@ -1666,7 +1487,7 @@ yyreduce: · 16 unmodified lines |
| 1666 | 1487 | yylen = yyr2[yyn]; |
| 1667 | 1488 | |
| 1668 | 1489 | /* If YYLEN is nonzero, implement the default value of the action: |
| 1669 | | − `$$ = $1'. |
| 1490 | + '$$ = $1'. |
| 1670 | 1491 | |
| 1671 | 1492 | Otherwise, the following line sets YYVAL to garbage. |
| 1672 | 1493 | This behavior is undocumented and Bison |
| @@ -1682,64 +1503,73 @@ yyreduce: · 9 unmodified lines |
| 1682 | 1503 | case 10: |
| 1683 | 1504 | |
| 1684 | 1505 | { zconf_error("unexpected end statement"); } |
| 1506 | + |
| 1685 | 1507 | break; |
| 1686 | 1508 | |
| 1687 | 1509 | case 11: |
| 1688 | 1510 | |
| 1689 | | − { zconf_error("unknown statement \"%s\"", (yyvsp[(2) - (4)].string)); } |
| 1511 | + { zconf_error("unknown statement \"%s\"", (yyvsp[-2].string)); } |
| 1512 | + |
| 1690 | 1513 | break; |
| 1691 | 1514 | |
| 1692 | 1515 | case 12: |
| 1693 | 1516 | |
| 1694 | 1517 | { |
| 1695 | | − zconf_error("unexpected option \"%s\"", kconf_id_strings + (yyvsp[(2) - (4)].id)->name); |
| 1518 | + zconf_error("unexpected option \"%s\"", kconf_id_strings + (yyvsp[-2].id)->name); |
| 1696 | 1519 | } |
| 1520 | + |
| 1697 | 1521 | break; |
| 1698 | 1522 | |
| 1699 | 1523 | case 13: |
| 1700 | 1524 | |
| 1701 | 1525 | { zconf_error("invalid statement"); } |
| 1526 | + |
| 1702 | 1527 | break; |
| 1703 | 1528 | |
| 1704 | | − case 28: |
| 1529 | + case 29: |
| 1530 | + |
| 1531 | + { zconf_error("unknown option \"%s\"", (yyvsp[-2].string)); } |
| 1705 | 1532 | |
| 1706 | | − { zconf_error("unknown option \"%s\"", (yyvsp[(1) - (3)].string)); } |
| 1707 | 1533 | break; |
| 1708 | 1534 | |
| 1709 | | − case 29: |
| 1535 | + case 30: |
| 1710 | 1536 | |
| 1711 | 1537 | { zconf_error("invalid option"); } |
| 1538 | + |
| 1712 | 1539 | break; |
| 1713 | 1540 | |
| 1714 | | − case 30: |
| 1541 | + case 31: |
| 1715 | 1542 | |
| 1716 | 1543 | { |
| 1717 | | − struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), 0); |
| 1544 | + struct symbol *sym = sym_lookup((yyvsp[-1].string), 0); |
| 1718 | 1545 | sym->flags |= SYMBOL_OPTIONAL; |
| 1719 | 1546 | menu_add_entry(sym); |
| 1720 | | − printd(DEBUG_PARSE, "%s:%d:config %s\n", zconf_curname(), zconf_lineno(), (yyvsp[(2) - (3)].string)); |
| 1547 | + printd(DEBUG_PARSE, "%s:%d:config %s\n", zconf_curname(), zconf_lineno(), (yyvsp[-1].string)); |
| 1721 | 1548 | } |
| 1549 | + |
| 1722 | 1550 | break; |
| 1723 | 1551 | |
| 1724 | | − case 31: |
| 1552 | + case 32: |
| 1725 | 1553 | |
| 1726 | 1554 | { |
| 1727 | 1555 | menu_end_entry(); |
| 1728 | 1556 | printd(DEBUG_PARSE, "%s:%d:endconfig\n", zconf_curname(), zconf_lineno()); |
| 1729 | 1557 | } |
| 1558 | + |
| 1730 | 1559 | break; |
| 1731 | 1560 | |
| 1732 | | − case 32: |
| 1561 | + case 33: |
| 1733 | 1562 | |
| 1734 | 1563 | { |
| 1735 | | − struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), 0); |
| 1564 | + struct symbol *sym = sym_lookup((yyvsp[-1].string), 0); |
| 1736 | 1565 | sym->flags |= SYMBOL_OPTIONAL; |
| 1737 | 1566 | menu_add_entry(sym); |
| 1738 | | − printd(DEBUG_PARSE, "%s:%d:menuconfig %s\n", zconf_curname(), zconf_lineno(), (yyvsp[(2) - (3)].string)); |
| 1567 | + printd(DEBUG_PARSE, "%s:%d:menuconfig %s\n", zconf_curname(), zconf_lineno(), (yyvsp[-1].string)); |
| 1739 | 1568 | } |
| 1569 | + |
| 1740 | 1570 | break; |
| 1741 | 1571 | |
| 1742 | | − case 33: |
| 1572 | + case 34: |
| 1743 | 1573 | |
| 1744 | 1574 | { |
| 1745 | 1575 | if (current_entry->prompt) |
| @@ -1749,352 +1579,410 @@ yyreduce: · 3 unmodified lines |
| 1749 | 1579 | menu_end_entry(); |
| 1750 | 1580 | printd(DEBUG_PARSE, "%s:%d:endconfig\n", zconf_curname(), zconf_lineno()); |
| 1751 | 1581 | } |
| 1582 | + |
| 1752 | 1583 | break; |
| 1753 | 1584 | |
| 1754 | | − case 41: |
| 1585 | + case 42: |
| 1755 | 1586 | |
| 1756 | 1587 | { |
| 1757 | | − menu_set_type((yyvsp[(1) - (3)].id)->stype); |
| 1588 | + menu_set_type((yyvsp[-2].id)->stype); |
| 1758 | 1589 | printd(DEBUG_PARSE, "%s:%d:type(%u)\n", |
| 1759 | 1590 | zconf_curname(), zconf_lineno(), |
| 1760 | | − (yyvsp[(1) - (3)].id)->stype); |
| 1591 | + (yyvsp[-2].id)->stype); |
| 1761 | 1592 | } |
| 1593 | + |
| 1762 | 1594 | break; |
| 1763 | 1595 | |
| 1764 | | − case 42: |
| 1596 | + case 43: |
| 1765 | 1597 | |
| 1766 | 1598 | { |
| 1767 | | − menu_add_prompt(P_PROMPT, (yyvsp[(2) - (4)].string), (yyvsp[(3) - (4)].expr)); |
| 1599 | + menu_add_prompt(P_PROMPT, (yyvsp[-2].string), (yyvsp[-1].expr)); |
| 1768 | 1600 | printd(DEBUG_PARSE, "%s:%d:prompt\n", zconf_curname(), zconf_lineno()); |
| 1769 | 1601 | } |
| 1602 | + |
| 1770 | 1603 | break; |
| 1771 | 1604 | |
| 1772 | | − case 43: |
| 1605 | + case 44: |
| 1773 | 1606 | |
| 1774 | 1607 | { |
| 1775 | | − menu_add_expr(P_DEFAULT, (yyvsp[(2) - (4)].expr), (yyvsp[(3) - (4)].expr)); |
| 1776 | | − if ((yyvsp[(1) - (4)].id)->stype != S_UNKNOWN) |
| 1777 | | − menu_set_type((yyvsp[(1) - (4)].id)->stype); |
| 1608 | + menu_add_expr(P_DEFAULT, (yyvsp[-2].expr), (yyvsp[-1].expr)); |
| 1609 | + if ((yyvsp[-3].id)->stype != S_UNKNOWN) |
| 1610 | + menu_set_type((yyvsp[-3].id)->stype); |
| 1778 | 1611 | printd(DEBUG_PARSE, "%s:%d:default(%u)\n", |
| 1779 | 1612 | zconf_curname(), zconf_lineno(), |
| 1780 | | − (yyvsp[(1) - (4)].id)->stype); |
| 1613 | + (yyvsp[-3].id)->stype); |
| 1781 | 1614 | } |
| 1615 | + |
| 1782 | 1616 | break; |
| 1783 | 1617 | |
| 1784 | | − case 44: |
| 1618 | + case 45: |
| 1785 | 1619 | |
| 1786 | 1620 | { |
| 1787 | | − menu_add_symbol(P_SELECT, sym_lookup((yyvsp[(2) - (4)].string), 0), (yyvsp[(3) - (4)].expr)); |
| 1621 | + menu_add_symbol(P_SELECT, sym_lookup((yyvsp[-2].string), 0), (yyvsp[-1].expr)); |
| 1788 | 1622 | printd(DEBUG_PARSE, "%s:%d:select\n", zconf_curname(), zconf_lineno()); |
| 1789 | 1623 | } |
| 1624 | + |
| 1790 | 1625 | break; |
| 1791 | 1626 | |
| 1792 | | − case 45: |
| 1627 | + case 46: |
| 1793 | 1628 | |
| 1794 | 1629 | { |
| 1795 | | − menu_add_expr(P_RANGE, expr_alloc_comp(E_RANGE,(yyvsp[(2) - (5)].symbol), (yyvsp[(3) - (5)].symbol)), (yyvsp[(4) - (5)].expr)); |
| 1630 | + menu_add_symbol(P_IMPLY, sym_lookup((yyvsp[-2].string), 0), (yyvsp[-1].expr)); |
| 1631 | + printd(DEBUG_PARSE, "%s:%d:imply\n", zconf_curname(), zconf_lineno()); |
| 1632 | +} |
| 1633 | + |
| 1634 | + break; |
| 1635 | + |
| 1636 | + case 47: |
| 1637 | + |
| 1638 | + { |
| 1639 | + menu_add_expr(P_RANGE, expr_alloc_comp(E_RANGE,(yyvsp[-3].symbol), (yyvsp[-2].symbol)), (yyvsp[-1].expr)); |
| 1796 | 1640 | printd(DEBUG_PARSE, "%s:%d:range\n", zconf_curname(), zconf_lineno()); |
| 1797 | 1641 | } |
| 1642 | + |
| 1798 | 1643 | break; |
| 1799 | 1644 | |
| 1800 | | − case 48: |
| 1645 | + case 50: |
| 1801 | 1646 | |
| 1802 | 1647 | { |
| 1803 | | − const struct kconf_id *id = kconf_id_lookup((yyvsp[(2) - (3)].string), strlen((yyvsp[(2) - (3)].string))); |
| 1648 | + const struct kconf_id *id = kconf_id_lookup((yyvsp[-1].string), strlen((yyvsp[-1].string))); |
| 1804 | 1649 | if (id && id->flags & TF_OPTION) |
| 1805 | | − menu_add_option(id->token, (yyvsp[(3) - (3)].string)); |
| 1650 | + menu_add_option(id->token, (yyvsp[0].string)); |
| 1806 | 1651 | else |
| 1807 | | − zconfprint("warning: ignoring unknown option %s", (yyvsp[(2) - (3)].string)); |
| 1808 | | − free((yyvsp[(2) - (3)].string)); |
| 1652 | + zconfprint("warning: ignoring unknown option %s", (yyvsp[-1].string)); |
| 1653 | + free((yyvsp[-1].string)); |
| 1809 | 1654 | } |
| 1655 | + |
| 1810 | 1656 | break; |
| 1811 | 1657 | |
| 1812 | | − case 49: |
| 1658 | + case 51: |
| 1813 | 1659 | |
| 1814 | 1660 | { (yyval.string) = NULL; } |
| 1661 | + |
| 1815 | 1662 | break; |
| 1816 | 1663 | |
| 1817 | | − case 50: |
| 1664 | + case 52: |
| 1665 | + |
| 1666 | + { (yyval.string) = (yyvsp[0].string); } |
| 1818 | 1667 | |
| 1819 | | − { (yyval.string) = (yyvsp[(2) - (2)].string); } |
| 1820 | 1668 | break; |
| 1821 | 1669 | |
| 1822 | | − case 51: |
| 1670 | + case 53: |
| 1823 | 1671 | |
| 1824 | 1672 | { |
| 1825 | | − struct symbol *sym = sym_lookup((yyvsp[(2) - (3)].string), SYMBOL_CHOICE); |
| 1673 | + struct symbol *sym = sym_lookup((yyvsp[-1].string), SYMBOL_CHOICE); |
| 1826 | 1674 | sym->flags |= SYMBOL_AUTO; |
| 1827 | 1675 | menu_add_entry(sym); |
| 1828 | 1676 | menu_add_expr(P_CHOICE, NULL, NULL); |
| 1829 | 1677 | printd(DEBUG_PARSE, "%s:%d:choice\n", zconf_curname(), zconf_lineno()); |
| 1830 | 1678 | } |
| 1679 | + |
| 1831 | 1680 | break; |
| 1832 | 1681 | |
| 1833 | | − case 52: |
| 1682 | + case 54: |
| 1834 | 1683 | |
| 1835 | 1684 | { |
| 1836 | 1685 | (yyval.menu) = menu_add_menu(); |
| 1837 | 1686 | } |
| 1687 | + |
| 1838 | 1688 | break; |
| 1839 | 1689 | |
| 1840 | | − case 53: |
| 1690 | + case 55: |
| 1841 | 1691 | |
| 1842 | 1692 | { |
| 1843 | | − if (zconf_endtoken((yyvsp[(1) - (1)].id), T_CHOICE, T_ENDCHOICE)) { |
| 1693 | + if (zconf_endtoken((yyvsp[0].id), T_CHOICE, T_ENDCHOICE)) { |
| 1844 | 1694 | menu_end_menu(); |
| 1845 | 1695 | printd(DEBUG_PARSE, "%s:%d:endchoice\n", zconf_curname(), zconf_lineno()); |
| 1846 | 1696 | } |
| 1847 | 1697 | } |
| 1698 | + |
| 1848 | 1699 | break; |
| 1849 | 1700 | |
| 1850 | | − case 61: |
| 1701 | + case 63: |
| 1851 | 1702 | |
| 1852 | 1703 | { |
| 1853 | | − menu_add_prompt(P_PROMPT, (yyvsp[(2) - (4)].string), (yyvsp[(3) - (4)].expr)); |
| 1704 | + menu_add_prompt(P_PROMPT, (yyvsp[-2].string), (yyvsp[-1].expr)); |
| 1854 | 1705 | printd(DEBUG_PARSE, "%s:%d:prompt\n", zconf_curname(), zconf_lineno()); |
| 1855 | 1706 | } |
| 1707 | + |
| 1856 | 1708 | break; |
| 1857 | 1709 | |
| 1858 | | − case 62: |
| 1710 | + case 64: |
| 1859 | 1711 | |
| 1860 | 1712 | { |
| 1861 | | − if ((yyvsp[(1) - (3)].id)->stype == S_BOOLEAN || (yyvsp[(1) - (3)].id)->stype == S_TRISTATE) { |
| 1862 | | − menu_set_type((yyvsp[(1) - (3)].id)->stype); |
| 1713 | + if ((yyvsp[-2].id)->stype == S_BOOLEAN || (yyvsp[-2].id)->stype == S_TRISTATE) { |
| 1714 | + menu_set_type((yyvsp[-2].id)->stype); |
| 1863 | 1715 | printd(DEBUG_PARSE, "%s:%d:type(%u)\n", |
| 1864 | 1716 | zconf_curname(), zconf_lineno(), |
| 1865 | | − (yyvsp[(1) - (3)].id)->stype); |
| 1717 | + (yyvsp[-2].id)->stype); |
| 1866 | 1718 | } else |
| 1867 | 1719 | YYERROR; |
| 1868 | 1720 | } |
| 1721 | + |
| 1869 | 1722 | break; |
| 1870 | 1723 | |
| 1871 | | − case 63: |
| 1724 | + case 65: |
| 1872 | 1725 | |
| 1873 | 1726 | { |
| 1874 | 1727 | current_entry->sym->flags |= SYMBOL_OPTIONAL; |
| 1875 | 1728 | printd(DEBUG_PARSE, "%s:%d:optional\n", zconf_curname(), zconf_lineno()); |
| 1876 | 1729 | } |
| 1730 | + |
| 1877 | 1731 | break; |
| 1878 | 1732 | |
| 1879 | | − case 64: |
| 1733 | + case 66: |
| 1880 | 1734 | |
| 1881 | 1735 | { |
| 1882 | | − if ((yyvsp[(1) - (4)].id)->stype == S_UNKNOWN) { |
| 1883 | | − menu_add_symbol(P_DEFAULT, sym_lookup((yyvsp[(2) - (4)].string), 0), (yyvsp[(3) - (4)].expr)); |
| 1736 | + if ((yyvsp[-3].id)->stype == S_UNKNOWN) { |
| 1737 | + menu_add_symbol(P_DEFAULT, sym_lookup((yyvsp[-2].string), 0), (yyvsp[-1].expr)); |
| 1884 | 1738 | printd(DEBUG_PARSE, "%s:%d:default\n", |
| 1885 | 1739 | zconf_curname(), zconf_lineno()); |
| 1886 | 1740 | } else |
| 1887 | 1741 | YYERROR; |
| 1888 | 1742 | } |
| 1743 | + |
| 1889 | 1744 | break; |
| 1890 | 1745 | |
| 1891 | | − case 67: |
| 1746 | + case 69: |
| 1892 | 1747 | |
| 1893 | 1748 | { |
| 1894 | 1749 | printd(DEBUG_PARSE, "%s:%d:if\n", zconf_curname(), zconf_lineno()); |
| 1895 | 1750 | menu_add_entry(NULL); |
| 1896 | | − menu_add_dep((yyvsp[(2) - (3)].expr)); |
| 1751 | + menu_add_dep((yyvsp[-1].expr)); |
| 1897 | 1752 | (yyval.menu) = menu_add_menu(); |
| 1898 | 1753 | } |
| 1754 | + |
| 1899 | 1755 | break; |
| 1900 | 1756 | |
| 1901 | | − case 68: |
| 1757 | + case 70: |
| 1902 | 1758 | |
| 1903 | 1759 | { |
| 1904 | | − if (zconf_endtoken((yyvsp[(1) - (1)].id), T_IF, T_ENDIF)) { |
| 1760 | + if (zconf_endtoken((yyvsp[0].id), T_IF, T_ENDIF)) { |
| 1905 | 1761 | menu_end_menu(); |
| 1906 | 1762 | printd(DEBUG_PARSE, "%s:%d:endif\n", zconf_curname(), zconf_lineno()); |
| 1907 | 1763 | } |
| 1908 | 1764 | } |
| 1765 | + |
| 1909 | 1766 | break; |
| 1910 | 1767 | |
| 1911 | | − case 74: |
| 1768 | + case 76: |
| 1912 | 1769 | |
| 1913 | 1770 | { |
| 1914 | | − menu_add_prompt(P_MENU, (yyvsp[(2) - (3)].string), NULL); |
| 1771 | + menu_add_prompt(P_MENU, (yyvsp[-1].string), NULL); |
| 1915 | 1772 | } |
| 1773 | + |
| 1916 | 1774 | break; |
| 1917 | 1775 | |
| 1918 | | − case 75: |
| 1776 | + case 77: |
| 1919 | 1777 | |
| 1920 | 1778 | { |
| 1921 | 1779 | menu_add_entry(NULL); |
| 1922 | | − menu_add_prompt(P_MENU, (yyvsp[(2) - (3)].string), NULL); |
| 1780 | + menu_add_prompt(P_MENU, (yyvsp[-1].string), NULL); |
| 1923 | 1781 | printd(DEBUG_PARSE, "%s:%d:menu\n", zconf_curname(), zconf_lineno()); |
| 1924 | 1782 | } |
| 1783 | + |
| 1925 | 1784 | break; |
| 1926 | 1785 | |
| 1927 | | − case 76: |
| 1786 | + case 78: |
| 1928 | 1787 | |
| 1929 | 1788 | { |
| 1930 | 1789 | (yyval.menu) = menu_add_menu(); |
| 1931 | 1790 | } |
| 1791 | + |
| 1932 | 1792 | break; |
| 1933 | 1793 | |
| 1934 | | − case 77: |
| 1794 | + case 79: |
| 1935 | 1795 | |
| 1936 | 1796 | { |
| 1937 | | − if (zconf_endtoken((yyvsp[(1) - (1)].id), T_MENU, T_ENDMENU)) { |
| 1797 | + if (zconf_endtoken((yyvsp[0].id), T_MENU, T_ENDMENU)) { |
| 1938 | 1798 | menu_end_menu(); |
| 1939 | 1799 | printd(DEBUG_PARSE, "%s:%d:endmenu\n", zconf_curname(), zconf_lineno()); |
| 1940 | 1800 | } |
| 1941 | 1801 | } |
| 1802 | + |
| 1942 | 1803 | break; |
| 1943 | 1804 | |
| 1944 | | − case 83: |
| 1805 | + case 85: |
| 1945 | 1806 | |
| 1946 | 1807 | { |
| 1947 | | − printd(DEBUG_PARSE, "%s:%d:source %s\n", zconf_curname(), zconf_lineno(), (yyvsp[(2) - (3)].string)); |
| 1948 | | − zconf_nextfile((yyvsp[(2) - (3)].string)); |
| 1808 | + printd(DEBUG_PARSE, "%s:%d:source %s\n", zconf_curname(), zconf_lineno(), (yyvsp[-1].string)); |
| 1809 | + zconf_nextfile((yyvsp[-1].string)); |
| 1949 | 1810 | } |
| 1811 | + |
| 1950 | 1812 | break; |
| 1951 | 1813 | |
| 1952 | | − case 84: |
| 1814 | + case 86: |
| 1953 | 1815 | |
| 1954 | 1816 | { |
| 1955 | 1817 | menu_add_entry(NULL); |
| 1956 | | − menu_add_prompt(P_COMMENT, (yyvsp[(2) - (3)].string), NULL); |
| 1818 | + menu_add_prompt(P_COMMENT, (yyvsp[-1].string), NULL); |
| 1957 | 1819 | printd(DEBUG_PARSE, "%s:%d:comment\n", zconf_curname(), zconf_lineno()); |
| 1958 | 1820 | } |
| 1821 | + |
| 1959 | 1822 | break; |
| 1960 | 1823 | |
| 1961 | | − case 85: |
| 1824 | + case 87: |
| 1962 | 1825 | |
| 1963 | 1826 | { |
| 1964 | 1827 | menu_end_entry(); |
| 1965 | 1828 | } |
| 1829 | + |
| 1966 | 1830 | break; |
| 1967 | 1831 | |
| 1968 | | − case 86: |
| 1832 | + case 88: |
| 1969 | 1833 | |
| 1970 | 1834 | { |
| 1971 | 1835 | printd(DEBUG_PARSE, "%s:%d:help\n", zconf_curname(), zconf_lineno()); |
| 1972 | 1836 | zconf_starthelp(); |
| 1973 | 1837 | } |
| 1838 | + |
| 1974 | 1839 | break; |
| 1975 | 1840 | |
| 1976 | | − case 87: |
| 1841 | + case 89: |
| 1977 | 1842 | |
| 1978 | 1843 | { |
| 1979 | | − current_entry->help = (yyvsp[(2) - (2)].string); |
| 1844 | + current_entry->help = (yyvsp[0].string); |
| 1980 | 1845 | } |
| 1846 | + |
| 1981 | 1847 | break; |
| 1982 | 1848 | |
| 1983 | | − case 92: |
| 1849 | + case 94: |
| 1984 | 1850 | |
| 1985 | 1851 | { |
| 1986 | | − menu_add_dep((yyvsp[(3) - (4)].expr)); |
| 1852 | + menu_add_dep((yyvsp[-1].expr)); |
| 1987 | 1853 | printd(DEBUG_PARSE, "%s:%d:depends on\n", zconf_curname(), zconf_lineno()); |
| 1988 | 1854 | } |
| 1989 | | − break; |
| 1990 | | − |
| 1991 | | − case 96: |
| 1992 | 1855 | |
| 1993 | | − { |
| 1994 | | − menu_add_visibility((yyvsp[(2) - (2)].expr)); |
| 1995 | | −} |
| 1996 | 1856 | break; |
| 1997 | 1857 | |
| 1998 | 1858 | case 98: |
| 1999 | 1859 | |
| 2000 | 1860 | { |
| 2001 | | − menu_add_prompt(P_PROMPT, (yyvsp[(1) - (2)].string), (yyvsp[(2) - (2)].expr)); |
| 1861 | + menu_add_visibility((yyvsp[0].expr)); |
| 2002 | 1862 | } |
| 2003 | | − break; |
| 2004 | 1863 | |
| 2005 | | − case 101: |
| 2006 | | − |
| 2007 | | − { (yyval.id) = (yyvsp[(1) - (2)].id); } |
| 2008 | 1864 | break; |
| 2009 | 1865 | |
| 2010 | | − case 102: |
| 1866 | + case 100: |
| 1867 | + |
| 1868 | + { |
| 1869 | + menu_add_prompt(P_PROMPT, (yyvsp[-1].string), (yyvsp[0].expr)); |
| 1870 | +} |
| 2011 | 1871 | |
| 2012 | | − { (yyval.id) = (yyvsp[(1) - (2)].id); } |
| 2013 | 1872 | break; |
| 2014 | 1873 | |
| 2015 | 1874 | case 103: |
| 2016 | 1875 | |
| 2017 | | − { (yyval.id) = (yyvsp[(1) - (2)].id); } |
| 1876 | + { (yyval.id) = (yyvsp[-1].id); } |
| 1877 | + |
| 2018 | 1878 | break; |
| 2019 | 1879 | |
| 2020 | | − case 106: |
| 1880 | + case 104: |
| 1881 | + |
| 1882 | + { (yyval.id) = (yyvsp[-1].id); } |
| 2021 | 1883 | |
| 2022 | | − { (yyval.expr) = NULL; } |
| 2023 | 1884 | break; |
| 2024 | 1885 | |
| 2025 | | − case 107: |
| 1886 | + case 105: |
| 1887 | + |
| 1888 | + { (yyval.id) = (yyvsp[-1].id); } |
| 2026 | 1889 | |
| 2027 | | − { (yyval.expr) = (yyvsp[(2) - (2)].expr); } |
| 2028 | 1890 | break; |
| 2029 | 1891 | |
| 2030 | 1892 | case 108: |
| 2031 | 1893 | |
| 2032 | | − { (yyval.expr) = expr_alloc_symbol((yyvsp[(1) - (1)].symbol)); } |
| 1894 | + { (yyval.expr) = NULL; } |
| 1895 | + |
| 2033 | 1896 | break; |
| 2034 | 1897 | |
| 2035 | 1898 | case 109: |
| 2036 | 1899 | |
| 2037 | | − { (yyval.expr) = expr_alloc_comp(E_LTH, (yyvsp[(1) - (3)].symbol), (yyvsp[(3) - (3)].symbol)); } |
| 1900 | + { (yyval.expr) = (yyvsp[0].expr); } |
| 1901 | + |
| 2038 | 1902 | break; |
| 2039 | 1903 | |
| 2040 | 1904 | case 110: |
| 2041 | 1905 | |
| 2042 | | − { (yyval.expr) = expr_alloc_comp(E_LEQ, (yyvsp[(1) - (3)].symbol), (yyvsp[(3) - (3)].symbol)); } |
| 1906 | + { (yyval.expr) = expr_alloc_symbol((yyvsp[0].symbol)); } |
| 1907 | + |
| 2043 | 1908 | break; |
| 2044 | 1909 | |
| 2045 | 1910 | case 111: |
| 2046 | 1911 | |
| 2047 | | − { (yyval.expr) = expr_alloc_comp(E_GTH, (yyvsp[(1) - (3)].symbol), (yyvsp[(3) - (3)].symbol)); } |
| 1912 | + { (yyval.expr) = expr_alloc_comp(E_LTH, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } |
| 1913 | + |
| 2048 | 1914 | break; |
| 2049 | 1915 | |
| 2050 | 1916 | case 112: |
| 2051 | 1917 | |
| 2052 | | − { (yyval.expr) = expr_alloc_comp(E_GEQ, (yyvsp[(1) - (3)].symbol), (yyvsp[(3) - (3)].symbol)); } |
| 1918 | + { (yyval.expr) = expr_alloc_comp(E_LEQ, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } |
| 1919 | + |
| 2053 | 1920 | break; |
| 2054 | 1921 | |
| 2055 | 1922 | case 113: |
| 2056 | 1923 | |
| 2057 | | − { (yyval.expr) = expr_alloc_comp(E_EQUAL, (yyvsp[(1) - (3)].symbol), (yyvsp[(3) - (3)].symbol)); } |
| 1924 | + { (yyval.expr) = expr_alloc_comp(E_GTH, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } |
| 1925 | + |
| 2058 | 1926 | break; |
| 2059 | 1927 | |
| 2060 | 1928 | case 114: |
| 2061 | 1929 | |
| 2062 | | − { (yyval.expr) = expr_alloc_comp(E_UNEQUAL, (yyvsp[(1) - (3)].symbol), (yyvsp[(3) - (3)].symbol)); } |
| 1930 | + { (yyval.expr) = expr_alloc_comp(E_GEQ, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } |
| 1931 | + |
| 2063 | 1932 | break; |
| 2064 | 1933 | |
| 2065 | 1934 | case 115: |
| 2066 | 1935 | |
| 2067 | | − { (yyval.expr) = (yyvsp[(2) - (3)].expr); } |
| 1936 | + { (yyval.expr) = expr_alloc_comp(E_EQUAL, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } |
| 1937 | + |
| 2068 | 1938 | break; |
| 2069 | 1939 | |
| 2070 | 1940 | case 116: |
| 2071 | 1941 | |
| 2072 | | − { (yyval.expr) = expr_alloc_one(E_NOT, (yyvsp[(2) - (2)].expr)); } |
| 1942 | + { (yyval.expr) = expr_alloc_comp(E_UNEQUAL, (yyvsp[-2].symbol), (yyvsp[0].symbol)); } |
| 1943 | + |
| 2073 | 1944 | break; |
| 2074 | 1945 | |
| 2075 | 1946 | case 117: |
| 2076 | 1947 | |
| 2077 | | − { (yyval.expr) = expr_alloc_two(E_OR, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); } |
| 1948 | + { (yyval.expr) = (yyvsp[-1].expr); } |
| 1949 | + |
| 2078 | 1950 | break; |
| 2079 | 1951 | |
| 2080 | 1952 | case 118: |
| 2081 | 1953 | |
| 2082 | | − { (yyval.expr) = expr_alloc_two(E_AND, (yyvsp[(1) - (3)].expr), (yyvsp[(3) - (3)].expr)); } |
| 1954 | + { (yyval.expr) = expr_alloc_one(E_NOT, (yyvsp[0].expr)); } |
| 1955 | + |
| 2083 | 1956 | break; |
| 2084 | 1957 | |
| 2085 | 1958 | case 119: |
| 2086 | 1959 | |
| 2087 | | − { (yyval.symbol) = sym_lookup((yyvsp[(1) - (1)].string), 0); free((yyvsp[(1) - (1)].string)); } |
| 1960 | + { (yyval.expr) = expr_alloc_two(E_OR, (yyvsp[-2].expr), (yyvsp[0].expr)); } |
| 1961 | + |
| 2088 | 1962 | break; |
| 2089 | 1963 | |
| 2090 | 1964 | case 120: |
| 2091 | 1965 | |
| 2092 | | − { (yyval.symbol) = sym_lookup((yyvsp[(1) - (1)].string), SYMBOL_CONST); free((yyvsp[(1) - (1)].string)); } |
| 1966 | + { (yyval.expr) = expr_alloc_two(E_AND, (yyvsp[-2].expr), (yyvsp[0].expr)); } |
| 1967 | + |
| 2093 | 1968 | break; |
| 2094 | 1969 | |
| 2095 | 1970 | case 121: |
| 2096 | 1971 | |
| 1972 | + { (yyval.symbol) = sym_lookup((yyvsp[0].string), 0); free((yyvsp[0].string)); } |
| 1973 | + |
| 1974 | + break; |
| 1975 | + |
| 1976 | + case 122: |
| 1977 | + |
| 1978 | + { (yyval.symbol) = sym_lookup((yyvsp[0].string), SYMBOL_CONST); free((yyvsp[0].string)); } |
| 1979 | + |
| 1980 | + break; |
| 1981 | + |
| 1982 | + case 123: |
| 1983 | + |
| 2097 | 1984 | { (yyval.string) = NULL; } |
| 1985 | + |
| 2098 | 1986 | break; |
| 2099 | 1987 | |
| 2100 | 1988 | |
| @@ -2120,7 +2008,7 @@ yyreduce: · 19 unmodified lines |
| 2120 | 2008 | |
| 2121 | 2009 | *++yyvsp = yyval; |
| 2122 | 2010 | |
| 2123 | | − /* Now `shift' the result of the reduction. Determine what state |
| 2011 | + /* Now 'shift' the result of the reduction. Determine what state |
| 2124 | 2012 | that goes to, based on the state we popped back to and the rule |
| 2125 | 2013 | number reduced by. */ |
| 2126 | 2014 | |
| @@ -2135,9 +2023,9 @@ yyreduce: · 8 unmodified lines |
| 2135 | 2023 | goto yynewstate; |
| 2136 | 2024 | |
| 2137 | 2025 | |
| 2138 | | −/*------------------------------------. |
| 2139 | | −| yyerrlab -- here on detecting error | |
| 2140 | | −`------------------------------------*/ |
| 2026 | +/*--------------------------------------. |
| 2027 | +| yyerrlab -- here on detecting error. | |
| 2028 | +`--------------------------------------*/ |
| 2141 | 2029 | yyerrlab: |
| 2142 | 2030 | /* Make sure we have latest lookahead translation. See comments at |
| 2143 | 2031 | user semantic actions for why this is necessary. */ |
| @@ -2188,20 +2076,20 @@ yyerrlab: · 44 unmodified lines |
| 2188 | 2076 | if (yyerrstatus == 3) |
| 2189 | 2077 | { |
| 2190 | 2078 | /* If just tried and failed to reuse lookahead token after an |
| 2191 | | − error, discard it. */ |
| 2079 | + error, discard it. */ |
| 2192 | 2080 | |
| 2193 | 2081 | if (yychar <= YYEOF) |
| 2194 | | − { |
| 2195 | | − /* Return failure if at end of input. */ |
| 2196 | | − if (yychar == YYEOF) |
| 2197 | | − YYABORT; |
| 2198 | | − } |
| 2082 | + { |
| 2083 | + /* Return failure if at end of input. */ |
| 2084 | + if (yychar == YYEOF) |
| 2085 | + YYABORT; |
| 2086 | + } |
| 2199 | 2087 | else |
| 2200 | | − { |
| 2201 | | − yydestruct ("Error: discarding", |
| 2202 | | − yytoken, &yylval); |
| 2203 | | − yychar = YYEMPTY; |
| 2204 | | − } |
| 2088 | + { |
| 2089 | + yydestruct ("Error: discarding", |
| 2090 | + yytoken, &yylval); |
| 2091 | + yychar = YYEMPTY; |
| 2092 | + } |
| 2205 | 2093 | } |
| 2206 | 2094 | |
| 2207 | 2095 | /* Else will try to reuse lookahead token after shifting the error |
| @@ -2220,7 +2108,7 @@ yyerrorlab: · 12 unmodified lines |
| 2220 | 2108 | if (/*CONSTCOND*/ 0) |
| 2221 | 2109 | goto yyerrorlab; |
| 2222 | 2110 | |
| 2223 | | − /* Do not reclaim the symbols of the rule which action triggered |
| 2111 | + /* Do not reclaim the symbols of the rule whose action triggered |
| 2224 | 2112 | this YYERROR. */ |
| 2225 | 2113 | YYPOPSTACK (yylen); |
| 2226 | 2114 | yylen = 0; |
| @@ -2233,35 +2121,37 @@ yyerrorlab: · 6 unmodified lines |
| 2233 | 2121 | | yyerrlab1 -- common code for both syntax error and YYERROR. | |
| 2234 | 2122 | `-------------------------------------------------------------*/ |
| 2235 | 2123 | yyerrlab1: |
| 2236 | | − yyerrstatus = 3; /* Each real token shifted decrements this. */ |
| 2124 | + yyerrstatus = 3; /* Each real token shifted decrements this. */ |
| 2237 | 2125 | |
| 2238 | 2126 | for (;;) |
| 2239 | 2127 | { |
| 2240 | 2128 | yyn = yypact[yystate]; |
| 2241 | 2129 | if (!yypact_value_is_default (yyn)) |
| 2242 | | − { |
| 2243 | | − yyn += YYTERROR; |
| 2244 | | − if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) |
| 2245 | | − { |
| 2246 | | − yyn = yytable[yyn]; |
| 2247 | | − if (0 < yyn) |
| 2248 | | − break; |
| 2249 | | − } |
| 2250 | | − } |
| 2130 | + { |
| 2131 | + yyn += YYTERROR; |
| 2132 | + if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR) |
| 2133 | + { |
| 2134 | + yyn = yytable[yyn]; |
| 2135 | + if (0 < yyn) |
| 2136 | + break; |
| 2137 | + } |
| 2138 | + } |
| 2251 | 2139 | |
| 2252 | 2140 | /* Pop the current state because it cannot handle the error token. */ |
| 2253 | 2141 | if (yyssp == yyss) |
| 2254 | | − YYABORT; |
| 2142 | + YYABORT; |
| 2255 | 2143 | |
| 2256 | 2144 | |
| 2257 | 2145 | yydestruct ("Error: popping", |
| 2258 | | − yystos[yystate], yyvsp); |
| 2146 | + yystos[yystate], yyvsp); |
| 2259 | 2147 | YYPOPSTACK (1); |
| 2260 | 2148 | yystate = *yyssp; |
| 2261 | 2149 | YY_STACK_PRINT (yyss, yyssp); |
| 2262 | 2150 | } |
| 2263 | 2151 | |
| 2152 | + YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN |
| 2264 | 2153 | *++yyvsp = yylval; |
| 2154 | + YY_IGNORE_MAYBE_UNINITIALIZED_END |
| 2265 | 2155 | |
| 2266 | 2156 | |
| 2267 | 2157 | /* Shift the error token. */ |
| @@ -2304,14 +2194,14 @@ yyreturn: · 36 unmodified lines |
| 2304 | 2194 | yydestruct ("Cleanup: discarding lookahead", |
| 2305 | 2195 | yytoken, &yylval); |
| 2306 | 2196 | } |
| 2307 | | − /* Do not reclaim the symbols of the rule which action triggered |
| 2197 | + /* Do not reclaim the symbols of the rule whose action triggered |
| 2308 | 2198 | this YYABORT or YYACCEPT. */ |
| 2309 | 2199 | YYPOPSTACK (yylen); |
| 2310 | 2200 | YY_STACK_PRINT (yyss, yyssp); |
| 2311 | 2201 | while (yyssp != yyss) |
| 2312 | 2202 | { |
| 2313 | 2203 | yydestruct ("Cleanup: popping", |
| 2314 | | − yystos[*yyssp], yyvsp); |
| 2204 | + yystos[*yyssp], yyvsp); |
| 2315 | 2205 | YYPOPSTACK (1); |
| 2316 | 2206 | } |
| 2317 | 2207 | #ifndef yyoverflow |
| @@ -2322,14 +2212,11 @@ yyreturn: · 4 unmodified lines |
| 2322 | 2212 | if (yymsg != yymsgbuf) |
| 2323 | 2213 | YYSTACK_FREE (yymsg); |
| 2324 | 2214 | #endif |
| 2325 | | − /* Make sure YYID is used. */ |
| 2326 | | − return YYID (yyresult); |
| 2215 | + return yyresult; |
| 2327 | 2216 | } |
| 2328 | 2217 | |
| 2329 | 2218 | |
| 2330 | 2219 | |
| 2331 | | − |
| 2332 | | − |
| 2333 | 2220 | void conf_parse(const char *name) |
| 2334 | 2221 | { |
| 2335 | 2222 | struct symbol *sym; |
| @@ -2501,6 +2388,11 @@ static void print_symbol(FILE *out, struct menu *menu) · 165 unmodified lines |
| 2501 | 2388 | expr_fprint(prop->expr, out); |
| 2502 | 2389 | fputc('\n', out); |
| 2503 | 2390 | break; |
| 2391 | + case P_IMPLY: |
| 2392 | + fputs( " imply ", out); |
| 2393 | + expr_fprint(prop->expr, out); |
| 2394 | + fputc('\n', out); |
| 2395 | + break; |
| 2504 | 2396 | case P_RANGE: |
| 2505 | 2397 | fputs( " range ", out); |
| 2506 | 2398 | expr_fprint(prop->expr, out); |
| @@ -2577,4 +2469,3 @@ void zconfdump(FILE *out) · 70 unmodified lines |
| 2577 | 2469 | #include "expr.c" |
| 2578 | 2470 | #include "symbol.c" |
| 2579 | 2471 | #include "menu.c" |
| 2580 | | − |