| @@ -1,7 +1,7 @@ |
| 1 | | −/* A Bison parser, made by GNU Bison 2.0. */ |
| 1 | +/* A Bison parser, made by GNU Bison 2.1. */ |
| 2 | 2 | |
| 3 | 3 | /* Skeleton parser for Yacc-like parsing with Bison, |
| 4 | | − Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |
| 4 | + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. |
| 5 | 5 | |
| 6 | 6 | This program is free software; you can redistribute it and/or modify |
| 7 | 7 | it under the terms of the GNU General Public License as published by |
| @@ -15,8 +15,8 @@ · 7 unmodified lines |
| 15 | 15 | |
| 16 | 16 | You should have received a copy of the GNU General Public License |
| 17 | 17 | along with this program; if not, write to the Free Software |
| 18 | | − Foundation, Inc., 59 Temple Place - Suite 330, |
| 19 | | − Boston, MA 02111-1307, USA. */ |
| 18 | + Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 19 | + Boston, MA 02110-1301, USA. */ |
| 20 | 20 | |
| 21 | 21 | /* As a special exception, when this file is copied by Bison into a |
| 22 | 22 | Bison output file, you may use that output file without restriction. |
| @@ -36,6 +36,9 @@ · 13 unmodified lines |
| 36 | 36 | /* Identify Bison output. */ |
| 37 | 37 | #define YYBISON 1 |
| 38 | 38 | |
| 39 | +/* Bison version. */ |
| 40 | +#define YYBISON_VERSION "2.1" |
| 41 | + |
| 39 | 42 | /* Skeleton name. */ |
| 40 | 43 | #define YYSKELETON_NAME "yacc.c" |
| 41 | 44 | |
| @@ -82,19 +85,21 @@ · 40 unmodified lines |
| 82 | 85 | T_DEFAULT = 276, |
| 83 | 86 | T_SELECT = 277, |
| 84 | 87 | T_RANGE = 278, |
| 85 | | − T_ON = 279, |
| 86 | | − T_WORD = 280, |
| 87 | | − T_WORD_QUOTE = 281, |
| 88 | | − T_UNEQUAL = 282, |
| 89 | | − T_CLOSE_PAREN = 283, |
| 90 | | − T_OPEN_PAREN = 284, |
| 91 | | − T_EOL = 285, |
| 92 | | − T_OR = 286, |
| 93 | | − T_AND = 287, |
| 94 | | − T_EQUAL = 288, |
| 95 | | − T_NOT = 289 |
| 88 | + T_OPTION = 279, |
| 89 | + T_ON = 280, |
| 90 | + T_WORD = 281, |
| 91 | + T_WORD_QUOTE = 282, |
| 92 | + T_UNEQUAL = 283, |
| 93 | + T_CLOSE_PAREN = 284, |
| 94 | + T_OPEN_PAREN = 285, |
| 95 | + T_EOL = 286, |
| 96 | + T_OR = 287, |
| 97 | + T_AND = 288, |
| 98 | + T_EQUAL = 289, |
| 99 | + T_NOT = 290 |
| 96 | 100 | }; |
| 97 | 101 | #endif |
| 102 | +/* Tokens. */ |
| 98 | 103 | #define T_MAINMENU 258 |
| 99 | 104 | #define T_MENU 259 |
| 100 | 105 | #define T_ENDMENU 260 |
| @@ -116,17 +121,18 @@ · 15 unmodified lines |
| 116 | 121 | #define T_DEFAULT 276 |
| 117 | 122 | #define T_SELECT 277 |
| 118 | 123 | #define T_RANGE 278 |
| 119 | | −#define T_ON 279 |
| 120 | | −#define T_WORD 280 |
| 121 | | −#define T_WORD_QUOTE 281 |
| 122 | | −#define T_UNEQUAL 282 |
| 123 | | −#define T_CLOSE_PAREN 283 |
| 124 | | −#define T_OPEN_PAREN 284 |
| 125 | | −#define T_EOL 285 |
| 126 | | −#define T_OR 286 |
| 127 | | −#define T_AND 287 |
| 128 | | −#define T_EQUAL 288 |
| 129 | | −#define T_NOT 289 |
| 124 | +#define T_OPTION 279 |
| 125 | +#define T_ON 280 |
| 126 | +#define T_WORD 281 |
| 127 | +#define T_WORD_QUOTE 282 |
| 128 | +#define T_UNEQUAL 283 |
| 129 | +#define T_CLOSE_PAREN 284 |
| 130 | +#define T_OPEN_PAREN 285 |
| 131 | +#define T_EOL 286 |
| 132 | +#define T_OR 287 |
| 133 | +#define T_AND 288 |
| 134 | +#define T_EQUAL 289 |
| 135 | +#define T_NOT 290 |
| 130 | 136 | |
| 131 | 137 | |
| 132 | 138 | |
| @@ -187,6 +193,11 @@ static struct menu *current_menu, *current_entry; · 54 unmodified lines |
| 187 | 193 | # define YYERROR_VERBOSE 0 |
| 188 | 194 | #endif |
| 189 | 195 | |
| 196 | +/* Enabling the token table. */ |
| 197 | +#ifndef YYTOKEN_TABLE |
| 198 | +# define YYTOKEN_TABLE 0 |
| 199 | +#endif |
| 200 | + |
| 190 | 201 | #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED) |
| 191 | 202 | |
| 192 | 203 | typedef union YYSTYPE { |
| @@ -197,7 +208,7 @@ typedef union YYSTYPE { · 4 unmodified lines |
| 197 | 208 | struct menu *menu; |
| 198 | 209 | struct kconf_id *id; |
| 199 | 210 | } YYSTYPE; |
| 200 | | −/* Line 190 of yacc.c. */ |
| 211 | +/* Line 196 of yacc.c. */ |
| 201 | 212 | |
| 202 | 213 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */ |
| 203 | 214 | # define YYSTYPE_IS_DECLARED 1 |
| @@ -209,17 +220,36 @@ typedef union YYSTYPE { · 5 unmodified lines |
| 209 | 220 | /* Copy the second part of user declarations. */ |
| 210 | 221 | |
| 211 | 222 | |
| 212 | | −/* Line 213 of yacc.c. */ |
| 223 | +/* Line 219 of yacc.c. */ |
| 213 | 224 | |
| 214 | 225 | |
| 215 | | −#if ! defined (yyoverflow) || YYERROR_VERBOSE |
| 226 | +#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) |
| 227 | +# define YYSIZE_T __SIZE_TYPE__ |
| 228 | +#endif |
| 229 | +#if ! defined (YYSIZE_T) && defined (size_t) |
| 230 | +# define YYSIZE_T size_t |
| 231 | +#endif |
| 232 | +#if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus)) |
| 233 | +# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ |
| 234 | +# define YYSIZE_T size_t |
| 235 | +#endif |
| 236 | +#if ! defined (YYSIZE_T) |
| 237 | +# define YYSIZE_T unsigned int |
| 238 | +#endif |
| 216 | 239 | |
| 217 | | −# ifndef YYFREE |
| 218 | | −# define YYFREE free |
| 240 | +#ifndef YY_ |
| 241 | +# if YYENABLE_NLS |
| 242 | +# if ENABLE_NLS |
| 243 | +# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
| 244 | +# define YY_(msgid) dgettext ("bison-runtime", msgid) |
| 245 | +# endif |
| 219 | 246 | # endif |
| 220 | | −# ifndef YYMALLOC |
| 221 | | −# define YYMALLOC malloc |
| 247 | +# ifndef YY_ |
| 248 | +# define YY_(msgid) msgid |
| 222 | 249 | # endif |
| 250 | +#endif |
| 251 | + |
| 252 | +#if ! defined (yyoverflow) || YYERROR_VERBOSE |
| 223 | 253 | |
| 224 | 254 | /* The parser invokes alloca or malloc; define the necessary symbols. */ |
| 225 | 255 | |
| @@ -229,6 +259,10 @@ typedef union YYSTYPE { · 3 unmodified lines |
| 229 | 259 | # define YYSTACK_ALLOC __builtin_alloca |
| 230 | 260 | # else |
| 231 | 261 | # define YYSTACK_ALLOC alloca |
| 262 | +# if defined (__STDC__) || defined (__cplusplus) |
| 263 | +# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 264 | +# define YYINCLUDED_STDLIB_H |
| 265 | +# endif |
| 232 | 266 | # endif |
| 233 | 267 | # endif |
| 234 | 268 | # endif |
| @@ -236,13 +270,39 @@ typedef union YYSTYPE { · 1 unmodified line |
| 236 | 270 | # ifdef YYSTACK_ALLOC |
| 237 | 271 | /* Pacify GCC's `empty if-body' warning. */ |
| 238 | 272 | # define YYSTACK_FREE(Ptr) do { /* empty */; } while (0) |
| 239 | | −# else |
| 240 | | −# if defined (__STDC__) || defined (__cplusplus) |
| 241 | | −# include <stdlib.h> /* INFRINGES ON USER NAME SPACE */ |
| 242 | | −# define YYSIZE_T size_t |
| 273 | +# ifndef YYSTACK_ALLOC_MAXIMUM |
| 274 | + /* The OS might guarantee only one guard page at the bottom of the stack, |
| 275 | + and a page size can be as small as 4096 bytes. So we cannot safely |
| 276 | + invoke alloca (N) if N exceeds 4096. Use a slightly smaller number |
| 277 | + to allow for a few compiler-allocated temporary stack slots. */ |
| 278 | +# define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */ |
| 243 | 279 | # endif |
| 280 | +# else |
| 244 | 281 | # define YYSTACK_ALLOC YYMALLOC |
| 245 | 282 | # define YYSTACK_FREE YYFREE |
| 283 | +# ifndef YYSTACK_ALLOC_MAXIMUM |
| 284 | +# define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1) |
| 285 | +# endif |
| 286 | +# ifdef __cplusplus |
| 287 | +extern "C" { |
| 288 | +# endif |
| 289 | +# ifndef YYMALLOC |
| 290 | +# define YYMALLOC malloc |
| 291 | +# if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \ |
| 292 | + && (defined (__STDC__) || defined (__cplusplus))) |
| 293 | +void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */ |
| 294 | +# endif |
| 295 | +# endif |
| 296 | +# ifndef YYFREE |
| 297 | +# define YYFREE free |
| 298 | +# if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \ |
| 299 | + && (defined (__STDC__) || defined (__cplusplus))) |
| 300 | +void free (void *); /* INFRINGES ON USER NAME SPACE */ |
| 301 | +# endif |
| 302 | +# endif |
| 303 | +# ifdef __cplusplus |
| 304 | +} |
| 305 | +# endif |
| 246 | 306 | # endif |
| 247 | 307 | #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */ |
| 248 | 308 | |
| @@ -277,7 +337,7 @@ union yyalloc · 28 unmodified lines |
| 277 | 337 | # define YYCOPY(To, From, Count) \ |
| 278 | 338 | do \ |
| 279 | 339 | { \ |
| 280 | | − register YYSIZE_T yyi; \ |
| 340 | + YYSIZE_T yyi; \ |
| 281 | 341 | for (yyi = 0; yyi < (Count); yyi++) \ |
| 282 | 342 | (To)[yyi] = (From)[yyi]; \ |
| 283 | 343 | } \ |
| @@ -312,22 +372,22 @@ union yyalloc · 28 unmodified lines |
| 312 | 372 | /* YYFINAL -- State number of the termination state. */ |
| 313 | 373 | #define YYFINAL 3 |
| 314 | 374 | /* YYLAST -- Last index in YYTABLE. */ |
| 315 | | −#define YYLAST 264 |
| 375 | +#define YYLAST 275 |
| 316 | 376 | |
| 317 | 377 | /* YYNTOKENS -- Number of terminals. */ |
| 318 | | −#define YYNTOKENS 35 |
| 378 | +#define YYNTOKENS 36 |
| 319 | 379 | /* YYNNTS -- Number of nonterminals. */ |
| 320 | | −#define YYNNTS 42 |
| 380 | +#define YYNNTS 45 |
| 321 | 381 | /* YYNRULES -- Number of rules. */ |
| 322 | | −#define YYNRULES 104 |
| 382 | +#define YYNRULES 110 |
| 323 | 383 | /* YYNRULES -- Number of states. */ |
| 324 | | −#define YYNSTATES 175 |
| 384 | +#define YYNSTATES 183 |
| 325 | 385 | |
| 326 | 386 | /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */ |
| 327 | 387 | #define YYUNDEFTOK 2 |
| 328 | | −#define YYMAXUTOK 289 |
| 388 | +#define YYMAXUTOK 290 |
| 329 | 389 | |
| 330 | | −#define YYTRANSLATE(YYX) \ |
| 390 | +#define YYTRANSLATE(YYX) \ |
| 331 | 391 | ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK) |
| 332 | 392 | |
| 333 | 393 | /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX. */ |
| @@ -361,7 +421,8 @@ static const unsigned char yytranslate[] = · 27 unmodified lines |
| 361 | 421 | 2, 2, 2, 2, 2, 2, 1, 2, 3, 4, |
| 362 | 422 | 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, |
| 363 | 423 | 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, |
| 364 | | − 25, 26, 27, 28, 29, 30, 31, 32, 33, 34 |
| 424 | + 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, |
| 425 | + 35 |
| 365 | 426 | }; |
| 366 | 427 | |
| 367 | 428 | #if YYDEBUG |
| @@ -372,72 +433,75 @@ static const unsigned short int yyprhs[] = · 4 unmodified lines |
| 372 | 433 | 0, 0, 3, 5, 6, 9, 12, 15, 20, 23, |
| 373 | 434 | 28, 33, 37, 39, 41, 43, 45, 47, 49, 51, |
| 374 | 435 | 53, 55, 57, 59, 61, 63, 67, 70, 74, 77, |
| 375 | | − 81, 84, 85, 88, 91, 94, 97, 100, 104, 109, |
| 376 | | − 114, 119, 125, 128, 131, 133, 137, 138, 141, 144, |
| 377 | | − 147, 150, 153, 158, 162, 165, 170, 171, 174, 178, |
| 378 | | − 180, 184, 185, 188, 191, 194, 198, 201, 203, 207, |
| 379 | | − 208, 211, 214, 217, 221, 225, 228, 231, 234, 235, |
| 380 | | − 238, 241, 244, 249, 253, 257, 258, 261, 263, 265, |
| 381 | | − 268, 271, 274, 276, 279, 280, 283, 285, 289, 293, |
| 382 | | − 297, 300, 304, 308, 310 |
| 436 | + 81, 84, 85, 88, 91, 94, 97, 100, 103, 107, |
| 437 | + 112, 117, 122, 128, 132, 133, 137, 138, 141, 144, |
| 438 | + 147, 149, 153, 154, 157, 160, 163, 166, 169, 174, |
| 439 | + 178, 181, 186, 187, 190, 194, 196, 200, 201, 204, |
| 440 | + 207, 210, 214, 217, 219, 223, 224, 227, 230, 233, |
| 441 | + 237, 241, 244, 247, 250, 251, 254, 257, 260, 265, |
| 442 | + 269, 273, 274, 277, 279, 281, 284, 287, 290, 292, |
| 443 | + 295, 296, 299, 301, 305, 309, 313, 316, 320, 324, |
| 444 | + 326 |
| 383 | 445 | }; |
| 384 | 446 | |
| 385 | 447 | /* YYRHS -- A `-1'-separated list of the rules' RHS. */ |
| 386 | 448 | static const yysigned_char yyrhs[] = |
| 387 | 449 | { |
| 388 | | − 36, 0, -1, 37, -1, -1, 37, 39, -1, 37, |
| 389 | | − 50, -1, 37, 61, -1, 37, 3, 71, 73, -1, |
| 390 | | − 37, 72, -1, 37, 25, 1, 30, -1, 37, 38, |
| 391 | | − 1, 30, -1, 37, 1, 30, -1, 16, -1, 19, |
| 450 | + 37, 0, -1, 38, -1, -1, 38, 40, -1, 38, |
| 451 | + 54, -1, 38, 65, -1, 38, 3, 75, 77, -1, |
| 452 | + 38, 76, -1, 38, 26, 1, 31, -1, 38, 39, |
| 453 | + 1, 31, -1, 38, 1, 31, -1, 16, -1, 19, |
| 392 | 454 | -1, 20, -1, 22, -1, 18, -1, 23, -1, 21, |
| 393 | | − -1, 30, -1, 56, -1, 65, -1, 42, -1, 44, |
| 394 | | − -1, 63, -1, 25, 1, 30, -1, 1, 30, -1, |
| 395 | | − 10, 25, 30, -1, 41, 45, -1, 11, 25, 30, |
| 396 | | − -1, 43, 45, -1, -1, 45, 46, -1, 45, 69, |
| 397 | | − -1, 45, 67, -1, 45, 40, -1, 45, 30, -1, |
| 398 | | − 20, 70, 30, -1, 19, 71, 74, 30, -1, 21, |
| 399 | | − 75, 74, 30, -1, 22, 25, 74, 30, -1, 23, |
| 400 | | − 76, 76, 74, 30, -1, 7, 30, -1, 47, 51, |
| 401 | | − -1, 72, -1, 48, 53, 49, -1, -1, 51, 52, |
| 402 | | − -1, 51, 69, -1, 51, 67, -1, 51, 30, -1, |
| 403 | | − 51, 40, -1, 19, 71, 74, 30, -1, 20, 70, |
| 404 | | − 30, -1, 18, 30, -1, 21, 25, 74, 30, -1, |
| 405 | | − -1, 53, 39, -1, 14, 75, 73, -1, 72, -1, |
| 406 | | − 54, 57, 55, -1, -1, 57, 39, -1, 57, 61, |
| 407 | | − -1, 57, 50, -1, 4, 71, 30, -1, 58, 68, |
| 408 | | − -1, 72, -1, 59, 62, 60, -1, -1, 62, 39, |
| 409 | | − -1, 62, 61, -1, 62, 50, -1, 6, 71, 30, |
| 410 | | − -1, 9, 71, 30, -1, 64, 68, -1, 12, 30, |
| 411 | | − -1, 66, 13, -1, -1, 68, 69, -1, 68, 30, |
| 412 | | − -1, 68, 40, -1, 16, 24, 75, 30, -1, 16, |
| 413 | | − 75, 30, -1, 17, 75, 30, -1, -1, 71, 74, |
| 414 | | − -1, 25, -1, 26, -1, 5, 30, -1, 8, 30, |
| 415 | | − -1, 15, 30, -1, 30, -1, 73, 30, -1, -1, |
| 416 | | − 14, 75, -1, 76, -1, 76, 33, 76, -1, 76, |
| 417 | | − 27, 76, -1, 29, 75, 28, -1, 34, 75, -1, |
| 418 | | − 75, 31, 75, -1, 75, 32, 75, -1, 25, -1, |
| 419 | | − 26, -1 |
| 455 | + -1, 31, -1, 60, -1, 69, -1, 43, -1, 45, |
| 456 | + -1, 67, -1, 26, 1, 31, -1, 1, 31, -1, |
| 457 | + 10, 26, 31, -1, 42, 46, -1, 11, 26, 31, |
| 458 | + -1, 44, 46, -1, -1, 46, 47, -1, 46, 48, |
| 459 | + -1, 46, 73, -1, 46, 71, -1, 46, 41, -1, |
| 460 | + 46, 31, -1, 20, 74, 31, -1, 19, 75, 78, |
| 461 | + 31, -1, 21, 79, 78, 31, -1, 22, 26, 78, |
| 462 | + 31, -1, 23, 80, 80, 78, 31, -1, 24, 49, |
| 463 | + 31, -1, -1, 49, 26, 50, -1, -1, 34, 75, |
| 464 | + -1, 7, 31, -1, 51, 55, -1, 76, -1, 52, |
| 465 | + 57, 53, -1, -1, 55, 56, -1, 55, 73, -1, |
| 466 | + 55, 71, -1, 55, 31, -1, 55, 41, -1, 19, |
| 467 | + 75, 78, 31, -1, 20, 74, 31, -1, 18, 31, |
| 468 | + -1, 21, 26, 78, 31, -1, -1, 57, 40, -1, |
| 469 | + 14, 79, 77, -1, 76, -1, 58, 61, 59, -1, |
| 470 | + -1, 61, 40, -1, 61, 65, -1, 61, 54, -1, |
| 471 | + 4, 75, 31, -1, 62, 72, -1, 76, -1, 63, |
| 472 | + 66, 64, -1, -1, 66, 40, -1, 66, 65, -1, |
| 473 | + 66, 54, -1, 6, 75, 31, -1, 9, 75, 31, |
| 474 | + -1, 68, 72, -1, 12, 31, -1, 70, 13, -1, |
| 475 | + -1, 72, 73, -1, 72, 31, -1, 72, 41, -1, |
| 476 | + 16, 25, 79, 31, -1, 16, 79, 31, -1, 17, |
| 477 | + 79, 31, -1, -1, 75, 78, -1, 26, -1, 27, |
| 478 | + -1, 5, 31, -1, 8, 31, -1, 15, 31, -1, |
| 479 | + 31, -1, 77, 31, -1, -1, 14, 79, -1, 80, |
| 480 | + -1, 80, 34, 80, -1, 80, 28, 80, -1, 30, |
| 481 | + 79, 29, -1, 35, 79, -1, 79, 32, 79, -1, |
| 482 | + 79, 33, 79, -1, 26, -1, 27, -1 |
| 420 | 483 | }; |
| 421 | 484 | |
| 422 | 485 | /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ |
| 423 | 486 | static const unsigned short int yyrline[] = |
| 424 | 487 | { |
| 425 | | − 0, 103, 103, 105, 107, 108, 109, 110, 111, 112, |
| 426 | | − 113, 117, 121, 121, 121, 121, 121, 121, 121, 125, |
| 427 | | − 126, 127, 128, 129, 130, 134, 135, 141, 149, 155, |
| 428 | | − 163, 173, 175, 176, 177, 178, 179, 182, 190, 196, |
| 429 | | − 206, 212, 220, 229, 234, 242, 245, 247, 248, 249, |
| 430 | | − 250, 251, 254, 260, 271, 277, 287, 289, 294, 302, |
| 431 | | − 310, 313, 315, 316, 317, 322, 329, 334, 342, 345, |
| 432 | | − 347, 348, 349, 352, 360, 367, 374, 380, 387, 389, |
| 433 | | − 390, 391, 394, 399, 404, 412, 414, 419, 420, 423, |
| 434 | | − 424, 425, 429, 430, 433, 434, 437, 438, 439, 440, |
| 435 | | − 441, 442, 443, 446, 447 |
| 488 | + 0, 105, 105, 107, 109, 110, 111, 112, 113, 114, |
| 489 | + 115, 119, 123, 123, 123, 123, 123, 123, 123, 127, |
| 490 | + 128, 129, 130, 131, 132, 136, 137, 143, 151, 157, |
| 491 | + 165, 175, 177, 178, 179, 180, 181, 182, 185, 193, |
| 492 | + 199, 209, 215, 221, 224, 226, 237, 238, 243, 252, |
| 493 | + 257, 265, 268, 270, 271, 272, 273, 274, 277, 283, |
| 494 | + 294, 300, 310, 312, 317, 325, 333, 336, 338, 339, |
| 495 | + 340, 345, 352, 357, 365, 368, 370, 371, 372, 375, |
| 496 | + 383, 390, 397, 403, 410, 412, 413, 414, 417, 422, |
| 497 | + 427, 435, 437, 442, 443, 446, 447, 448, 452, 453, |
| 498 | + 456, 457, 460, 461, 462, 463, 464, 465, 466, 469, |
| 499 | + 470 |
| 436 | 500 | }; |
| 437 | 501 | #endif |
| 438 | 502 | |
| 439 | | −#if YYDEBUG || YYERROR_VERBOSE |
| 440 | | −/* YYTNME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
| 503 | +#if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE |
| 504 | +/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM. |
| 441 | 505 | First, the terminals, then, starting at YYNTOKENS, nonterminals. */ |
| 442 | 506 | static const char *const yytname[] = |
| 443 | 507 | { |
| @@ -445,17 +509,18 @@ static const char *const yytname[] = · 1 unmodified line |
| 445 | 509 | "T_SOURCE", "T_CHOICE", "T_ENDCHOICE", "T_COMMENT", "T_CONFIG", |
| 446 | 510 | "T_MENUCONFIG", "T_HELP", "T_HELPTEXT", "T_IF", "T_ENDIF", "T_DEPENDS", |
| 447 | 511 | "T_REQUIRES", "T_OPTIONAL", "T_PROMPT", "T_TYPE", "T_DEFAULT", |
| 448 | | − "T_SELECT", "T_RANGE", "T_ON", "T_WORD", "T_WORD_QUOTE", "T_UNEQUAL", |
| 449 | | − "T_CLOSE_PAREN", "T_OPEN_PAREN", "T_EOL", "T_OR", "T_AND", "T_EQUAL", |
| 450 | | − "T_NOT", "$accept", "input", "stmt_list", "option_name", "common_stmt", |
| 451 | | − "option_error", "config_entry_start", "config_stmt", |
| 512 | + "T_SELECT", "T_RANGE", "T_OPTION", "T_ON", "T_WORD", "T_WORD_QUOTE", |
| 513 | + "T_UNEQUAL", "T_CLOSE_PAREN", "T_OPEN_PAREN", "T_EOL", "T_OR", "T_AND", |
| 514 | + "T_EQUAL", "T_NOT", "$accept", "input", "stmt_list", "option_name", |
| 515 | + "common_stmt", "option_error", "config_entry_start", "config_stmt", |
| 452 | 516 | "menuconfig_entry_start", "menuconfig_stmt", "config_option_list", |
| 453 | | − "config_option", "choice", "choice_entry", "choice_end", "choice_stmt", |
| 454 | | − "choice_option_list", "choice_option", "choice_block", "if_entry", |
| 455 | | − "if_end", "if_stmt", "if_block", "menu", "menu_entry", "menu_end", |
| 456 | | − "menu_stmt", "menu_block", "source_stmt", "comment", "comment_stmt", |
| 457 | | − "help_start", "help", "depends_list", "depends", "prompt_stmt_opt", |
| 458 | | − "prompt", "end", "nl", "if_expr", "expr", "symbol", 0 |
| 517 | + "config_option", "symbol_option", "symbol_option_list", |
| 518 | + "symbol_option_arg", "choice", "choice_entry", "choice_end", |
| 519 | + "choice_stmt", "choice_option_list", "choice_option", "choice_block", |
| 520 | + "if_entry", "if_end", "if_stmt", "if_block", "menu", "menu_entry", |
| 521 | + "menu_end", "menu_stmt", "menu_block", "source_stmt", "comment", |
| 522 | + "comment_stmt", "help_start", "help", "depends_list", "depends", |
| 523 | + "prompt_stmt_opt", "prompt", "end", "nl", "if_expr", "expr", "symbol", 0 |
| 459 | 524 | }; |
| 460 | 525 | #endif |
| 461 | 526 | |
| @@ -467,24 +532,25 @@ static const unsigned short int yytoknum[] = · 5 unmodified lines |
| 467 | 532 | 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, |
| 468 | 533 | 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, |
| 469 | 534 | 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, |
| 470 | | − 285, 286, 287, 288, 289 |
| 535 | + 285, 286, 287, 288, 289, 290 |
| 471 | 536 | }; |
| 472 | 537 | # endif |
| 473 | 538 | |
| 474 | 539 | /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */ |
| 475 | 540 | static const unsigned char yyr1[] = |
| 476 | 541 | { |
| 477 | | − 0, 35, 36, 37, 37, 37, 37, 37, 37, 37, |
| 478 | | − 37, 37, 38, 38, 38, 38, 38, 38, 38, 39, |
| 479 | | − 39, 39, 39, 39, 39, 40, 40, 41, 42, 43, |
| 480 | | − 44, 45, 45, 45, 45, 45, 45, 46, 46, 46, |
| 481 | | − 46, 46, 47, 48, 49, 50, 51, 51, 51, 51, |
| 482 | | − 51, 51, 52, 52, 52, 52, 53, 53, 54, 55, |
| 483 | | − 56, 57, 57, 57, 57, 58, 59, 60, 61, 62, |
| 484 | | − 62, 62, 62, 63, 64, 65, 66, 67, 68, 68, |
| 485 | | − 68, 68, 69, 69, 69, 70, 70, 71, 71, 72, |
| 486 | | − 72, 72, 73, 73, 74, 74, 75, 75, 75, 75, |
| 487 | | − 75, 75, 75, 76, 76 |
| 542 | + 0, 36, 37, 38, 38, 38, 38, 38, 38, 38, |
| 543 | + 38, 38, 39, 39, 39, 39, 39, 39, 39, 40, |
| 544 | + 40, 40, 40, 40, 40, 41, 41, 42, 43, 44, |
| 545 | + 45, 46, 46, 46, 46, 46, 46, 46, 47, 47, |
| 546 | + 47, 47, 47, 48, 49, 49, 50, 50, 51, 52, |
| 547 | + 53, 54, 55, 55, 55, 55, 55, 55, 56, 56, |
| 548 | + 56, 56, 57, 57, 58, 59, 60, 61, 61, 61, |
| 549 | + 61, 62, 63, 64, 65, 66, 66, 66, 66, 67, |
| 550 | + 68, 69, 70, 71, 72, 72, 72, 72, 73, 73, |
| 551 | + 73, 74, 74, 75, 75, 76, 76, 76, 77, 77, |
| 552 | + 78, 78, 79, 79, 79, 79, 79, 79, 79, 80, |
| 553 | + 80 |
| 488 | 554 | }; |
| 489 | 555 | |
| 490 | 556 | /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */ |
| @@ -493,14 +559,15 @@ static const unsigned char yyr2[] = · 2 unmodified lines |
| 493 | 559 | 0, 2, 1, 0, 2, 2, 2, 4, 2, 4, |
| 494 | 560 | 4, 3, 1, 1, 1, 1, 1, 1, 1, 1, |
| 495 | 561 | 1, 1, 1, 1, 1, 3, 2, 3, 2, 3, |
| 496 | | − 2, 0, 2, 2, 2, 2, 2, 3, 4, 4, |
| 497 | | − 4, 5, 2, 2, 1, 3, 0, 2, 2, 2, |
| 498 | | − 2, 2, 4, 3, 2, 4, 0, 2, 3, 1, |
| 499 | | − 3, 0, 2, 2, 2, 3, 2, 1, 3, 0, |
| 500 | | − 2, 2, 2, 3, 3, 2, 2, 2, 0, 2, |
| 501 | | − 2, 2, 4, 3, 3, 0, 2, 1, 1, 2, |
| 502 | | − 2, 2, 1, 2, 0, 2, 1, 3, 3, 3, |
| 503 | | − 2, 3, 3, 1, 1 |
| 562 | + 2, 0, 2, 2, 2, 2, 2, 2, 3, 4, |
| 563 | + 4, 4, 5, 3, 0, 3, 0, 2, 2, 2, |
| 564 | + 1, 3, 0, 2, 2, 2, 2, 2, 4, 3, |
| 565 | + 2, 4, 0, 2, 3, 1, 3, 0, 2, 2, |
| 566 | + 2, 3, 2, 1, 3, 0, 2, 2, 2, 3, |
| 567 | + 3, 2, 2, 2, 0, 2, 2, 2, 4, 3, |
| 568 | + 3, 0, 2, 1, 1, 2, 2, 2, 1, 2, |
| 569 | + 0, 2, 1, 3, 3, 3, 2, 3, 3, 1, |
| 570 | + 1 |
| 504 | 571 | }; |
| 505 | 572 | |
| 506 | 573 | /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state |
| @@ -511,175 +578,164 @@ static const unsigned char yydefact[] = · 4 unmodified lines |
| 511 | 578 | 3, 0, 0, 1, 0, 0, 0, 0, 0, 0, |
| 512 | 579 | 0, 0, 0, 0, 0, 0, 12, 16, 13, 14, |
| 513 | 580 | 18, 15, 17, 0, 19, 0, 4, 31, 22, 31, |
| 514 | | − 23, 46, 56, 5, 61, 20, 78, 69, 6, 24, |
| 515 | | − 78, 21, 8, 11, 87, 88, 0, 0, 89, 0, |
| 516 | | − 42, 90, 0, 0, 0, 103, 104, 0, 0, 0, |
| 517 | | − 96, 91, 0, 0, 0, 0, 0, 0, 0, 0, |
| 518 | | − 0, 0, 92, 7, 65, 73, 74, 27, 29, 0, |
| 519 | | − 100, 0, 0, 58, 0, 0, 9, 10, 0, 0, |
| 520 | | − 0, 0, 0, 85, 0, 0, 0, 0, 36, 35, |
| 521 | | − 32, 0, 34, 33, 0, 0, 85, 0, 50, 51, |
| 522 | | − 47, 49, 48, 57, 45, 44, 62, 64, 60, 63, |
| 523 | | − 59, 80, 81, 79, 70, 72, 68, 71, 67, 93, |
| 524 | | − 99, 101, 102, 98, 97, 26, 76, 0, 0, 0, |
| 525 | | − 94, 0, 94, 94, 94, 0, 0, 77, 54, 94, |
| 526 | | − 0, 94, 0, 83, 84, 0, 0, 37, 86, 0, |
| 527 | | − 0, 94, 25, 0, 53, 0, 82, 95, 38, 39, |
| 528 | | − 40, 0, 52, 55, 41 |
| 581 | + 23, 52, 62, 5, 67, 20, 84, 75, 6, 24, |
| 582 | + 84, 21, 8, 11, 93, 94, 0, 0, 95, 0, |
| 583 | + 48, 96, 0, 0, 0, 109, 110, 0, 0, 0, |
| 584 | + 102, 97, 0, 0, 0, 0, 0, 0, 0, 0, |
| 585 | + 0, 0, 98, 7, 71, 79, 80, 27, 29, 0, |
| 586 | + 106, 0, 0, 64, 0, 0, 9, 10, 0, 0, |
| 587 | + 0, 0, 0, 91, 0, 0, 0, 44, 0, 37, |
| 588 | + 36, 32, 33, 0, 35, 34, 0, 0, 91, 0, |
| 589 | + 56, 57, 53, 55, 54, 63, 51, 50, 68, 70, |
| 590 | + 66, 69, 65, 86, 87, 85, 76, 78, 74, 77, |
| 591 | + 73, 99, 105, 107, 108, 104, 103, 26, 82, 0, |
| 592 | + 0, 0, 100, 0, 100, 100, 100, 0, 0, 0, |
| 593 | + 83, 60, 100, 0, 100, 0, 89, 90, 0, 0, |
| 594 | + 38, 92, 0, 0, 100, 46, 43, 25, 0, 59, |
| 595 | + 0, 88, 101, 39, 40, 41, 0, 0, 45, 58, |
| 596 | + 61, 42, 47 |
| 529 | 597 | }; |
| 530 | 598 | |
| 531 | 599 | /* YYDEFGOTO[NTERM-NUM]. */ |
| 532 | 600 | static const short int yydefgoto[] = |
| 533 | 601 | { |
| 534 | | − -1, 1, 2, 25, 26, 99, 27, 28, 29, 30, |
| 535 | | − 64, 100, 31, 32, 114, 33, 66, 110, 67, 34, |
| 536 | | − 118, 35, 68, 36, 37, 126, 38, 70, 39, 40, |
| 537 | | − 41, 101, 102, 69, 103, 141, 142, 42, 73, 156, |
| 538 | | − 59, 60 |
| 602 | + -1, 1, 2, 25, 26, 100, 27, 28, 29, 30, |
| 603 | + 64, 101, 102, 148, 178, 31, 32, 116, 33, 66, |
| 604 | + 112, 67, 34, 120, 35, 68, 36, 37, 128, 38, |
| 605 | + 70, 39, 40, 41, 103, 104, 69, 105, 143, 144, |
| 606 | + 42, 73, 159, 59, 60 |
| 539 | 607 | }; |
| 540 | 608 | |
| 541 | 609 | /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing |
| 542 | 610 | STATE-NUM. */ |
| 543 | | −#define YYPACT_NINF -78 |
| 611 | +#define YYPACT_NINF -135 |
| 544 | 612 | static const short int yypact[] = |
| 545 | 613 | { |
| 546 | | − -78, 2, 159, -78, -21, 0, 0, -12, 0, 1, |
| 547 | | − 4, 0, 27, 38, 60, 58, -78, -78, -78, -78, |
| 548 | | − -78, -78, -78, 100, -78, 104, -78, -78, -78, -78, |
| 549 | | − -78, -78, -78, -78, -78, -78, -78, -78, -78, -78, |
| 550 | | − -78, -78, -78, -78, -78, -78, 86, 113, -78, 114, |
| 551 | | − -78, -78, 125, 127, 128, -78, -78, 60, 60, 210, |
| 552 | | − 65, -78, 141, 142, 39, 103, 182, 200, 6, 66, |
| 553 | | − 6, 131, -78, 146, -78, -78, -78, -78, -78, 196, |
| 554 | | − -78, 60, 60, 146, 40, 40, -78, -78, 155, 156, |
| 555 | | − -2, 60, 0, 0, 60, 105, 40, 194, -78, -78, |
| 556 | | − -78, 206, -78, -78, 183, 0, 0, 195, -78, -78, |
| 557 | | − -78, -78, -78, -78, -78, -78, -78, -78, -78, -78, |
| 558 | | − -78, -78, -78, -78, -78, -78, -78, -78, -78, -78, |
| 559 | | − -78, 197, -78, -78, -78, -78, -78, 60, 213, 216, |
| 560 | | − 212, 203, 212, 190, 212, 40, 208, -78, -78, 212, |
| 561 | | − 222, 212, 219, -78, -78, 60, 223, -78, -78, 224, |
| 562 | | − 225, 212, -78, 226, -78, 227, -78, 47, -78, -78, |
| 563 | | − -78, 228, -78, -78, -78 |
| 614 | + -135, 2, 170, -135, -14, 56, 56, -8, 56, 24, |
| 615 | + 67, 56, 7, 14, 62, 97, -135, -135, -135, -135, |
| 616 | + -135, -135, -135, 156, -135, 166, -135, -135, -135, -135, |
| 617 | + -135, -135, -135, -135, -135, -135, -135, -135, -135, -135, |
| 618 | + -135, -135, -135, -135, -135, -135, 138, 151, -135, 152, |
| 619 | + -135, -135, 163, 167, 176, -135, -135, 62, 62, 185, |
| 620 | + -19, -135, 188, 190, 42, 103, 194, 85, 70, 222, |
| 621 | + 70, 132, -135, 191, -135, -135, -135, -135, -135, 127, |
| 622 | + -135, 62, 62, 191, 104, 104, -135, -135, 193, 203, |
| 623 | + 9, 62, 56, 56, 62, 161, 104, -135, 196, -135, |
| 624 | + -135, -135, -135, 233, -135, -135, 204, 56, 56, 221, |
| 625 | + -135, -135, -135, -135, -135, -135, -135, -135, -135, -135, |
| 626 | + -135, -135, -135, -135, -135, -135, -135, -135, -135, -135, |
| 627 | + -135, -135, -135, 219, -135, -135, -135, -135, -135, 62, |
| 628 | + 209, 212, 240, 224, 240, -1, 240, 104, 41, 225, |
| 629 | + -135, -135, 240, 226, 240, 218, -135, -135, 62, 227, |
| 630 | + -135, -135, 228, 229, 240, 230, -135, -135, 231, -135, |
| 631 | + 232, -135, 112, -135, -135, -135, 234, 56, -135, -135, |
| 632 | + -135, -135, -135 |
| 564 | 633 | }; |
| 565 | 634 | |
| 566 | 635 | /* YYPGOTO[NTERM-NUM]. */ |
| 567 | 636 | static const short int yypgoto[] = |
| 568 | 637 | { |
| 569 | | − -78, -78, -78, -78, 164, -36, -78, -78, -78, -78, |
| 570 | | − 230, -78, -78, -78, -78, 29, -78, -78, -78, -78, |
| 571 | | − -78, -78, -78, -78, -78, -78, 59, -78, -78, -78, |
| 572 | | − -78, -78, 198, 220, 24, 157, -5, 169, 202, 74, |
| 573 | | − -53, -77 |
| 638 | + -135, -135, -135, -135, 94, -45, -135, -135, -135, -135, |
| 639 | + 237, -135, -135, -135, -135, -135, -135, -135, -54, -135, |
| 640 | + -135, -135, -135, -135, -135, -135, -135, -135, -135, 1, |
| 641 | + -135, -135, -135, -135, -135, 195, 235, -44, 159, -5, |
| 642 | + 98, 210, -134, -53, -77 |
| 574 | 643 | }; |
| 575 | 644 | |
| 576 | 645 | /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If |
| 577 | 646 | positive, shift that token. If negative, reduce the rule which |
| 578 | 647 | number is the opposite. If zero, do what YYDEFACT says. |
| 579 | 648 | If YYTABLE_NINF, syntax error. */ |
| 580 | | −#define YYTABLE_NINF -76 |
| 649 | +#define YYTABLE_NINF -82 |
| 581 | 650 | static const short int yytable[] = |
| 582 | 651 | { |
| 583 | | − 46, 47, 3, 49, 79, 80, 52, 133, 134, 43, |
| 584 | | − 6, 7, 8, 9, 10, 11, 12, 13, 48, 145, |
| 585 | | − 14, 15, 137, 55, 56, 44, 45, 57, 131, 132, |
| 586 | | − 109, 50, 58, 122, 51, 122, 24, 138, 139, -28, |
| 587 | | − 88, 143, -28, -28, -28, -28, -28, -28, -28, -28, |
| 588 | | − -28, 89, 53, -28, -28, 90, 91, -28, 92, 93, |
| 589 | | − 94, 95, 96, 54, 97, 55, 56, 88, 161, 98, |
| 590 | | − -66, -66, -66, -66, -66, -66, -66, -66, 81, 82, |
| 591 | | − -66, -66, 90, 91, 152, 55, 56, 140, 61, 57, |
| 592 | | − 112, 97, 84, 123, 58, 123, 121, 117, 85, 125, |
| 593 | | − 149, 62, 167, -30, 88, 63, -30, -30, -30, -30, |
| 594 | | − -30, -30, -30, -30, -30, 89, 72, -30, -30, 90, |
| 595 | | − 91, -30, 92, 93, 94, 95, 96, 119, 97, 127, |
| 596 | | − 144, -75, 88, 98, -75, -75, -75, -75, -75, -75, |
| 597 | | − -75, -75, -75, 74, 75, -75, -75, 90, 91, -75, |
| 598 | | − -75, -75, -75, -75, -75, 76, 97, 77, 78, -2, |
| 599 | | − 4, 121, 5, 6, 7, 8, 9, 10, 11, 12, |
| 600 | | − 13, 86, 87, 14, 15, 16, 129, 17, 18, 19, |
| 601 | | − 20, 21, 22, 88, 23, 135, 136, -43, -43, 24, |
| 602 | | − -43, -43, -43, -43, 89, 146, -43, -43, 90, 91, |
| 603 | | − 104, 105, 106, 107, 155, 7, 8, 97, 10, 11, |
| 604 | | − 12, 13, 108, 148, 14, 15, 158, 159, 160, 147, |
| 605 | | − 151, 81, 82, 163, 130, 165, 155, 81, 82, 82, |
| 606 | | − 24, 113, 116, 157, 124, 171, 115, 120, 162, 128, |
| 607 | | − 72, 81, 82, 153, 81, 82, 154, 81, 82, 166, |
| 608 | | − 81, 82, 164, 168, 169, 170, 172, 173, 174, 65, |
| 609 | | − 71, 83, 0, 150, 111 |
| 652 | + 46, 47, 3, 49, 79, 80, 52, 135, 136, 84, |
| 653 | + 161, 162, 163, 158, 119, 85, 127, 43, 168, 147, |
| 654 | + 170, 111, 114, 48, 124, 125, 124, 125, 133, 134, |
| 655 | + 176, 81, 82, 53, 139, 55, 56, 140, 141, 57, |
| 656 | + 54, 145, -28, 88, 58, -28, -28, -28, -28, -28, |
| 657 | + -28, -28, -28, -28, 89, 50, -28, -28, 90, 91, |
| 658 | + -28, 92, 93, 94, 95, 96, 97, 165, 98, 121, |
| 659 | + 164, 129, 166, 99, 6, 7, 8, 9, 10, 11, |
| 660 | + 12, 13, 44, 45, 14, 15, 155, 142, 55, 56, |
| 661 | + 7, 8, 57, 10, 11, 12, 13, 58, 51, 14, |
| 662 | + 15, 24, 152, -30, 88, 172, -30, -30, -30, -30, |
| 663 | + -30, -30, -30, -30, -30, 89, 24, -30, -30, 90, |
| 664 | + 91, -30, 92, 93, 94, 95, 96, 97, 61, 98, |
| 665 | + 55, 56, -81, 88, 99, -81, -81, -81, -81, -81, |
| 666 | + -81, -81, -81, -81, 81, 82, -81, -81, 90, 91, |
| 667 | + -81, -81, -81, -81, -81, -81, 132, 62, 98, 81, |
| 668 | + 82, 115, 118, 123, 126, 117, 122, 63, 130, 72, |
| 669 | + -2, 4, 182, 5, 6, 7, 8, 9, 10, 11, |
| 670 | + 12, 13, 74, 75, 14, 15, 16, 146, 17, 18, |
| 671 | + 19, 20, 21, 22, 76, 88, 23, 149, 77, -49, |
| 672 | + -49, 24, -49, -49, -49, -49, 89, 78, -49, -49, |
| 673 | + 90, 91, 106, 107, 108, 109, 72, 81, 82, 86, |
| 674 | + 98, 87, 131, 88, 137, 110, -72, -72, -72, -72, |
| 675 | + -72, -72, -72, -72, 138, 151, -72, -72, 90, 91, |
| 676 | + 156, 81, 82, 157, 81, 82, 150, 154, 98, 171, |
| 677 | + 81, 82, 82, 123, 158, 160, 167, 169, 173, 174, |
| 678 | + 175, 113, 179, 180, 177, 181, 65, 153, 0, 83, |
| 679 | + 0, 0, 0, 0, 0, 71 |
| 610 | 680 | }; |
| 611 | 681 | |
| 612 | 682 | static const short int yycheck[] = |
| 613 | 683 | { |
| 614 | | − 5, 6, 0, 8, 57, 58, 11, 84, 85, 30, |
| 615 | | − 4, 5, 6, 7, 8, 9, 10, 11, 30, 96, |
| 616 | | − 14, 15, 24, 25, 26, 25, 26, 29, 81, 82, |
| 617 | | − 66, 30, 34, 69, 30, 71, 30, 90, 91, 0, |
| 618 | | − 1, 94, 3, 4, 5, 6, 7, 8, 9, 10, |
| 619 | | − 11, 12, 25, 14, 15, 16, 17, 18, 19, 20, |
| 620 | | − 21, 22, 23, 25, 25, 25, 26, 1, 145, 30, |
| 621 | | − 4, 5, 6, 7, 8, 9, 10, 11, 31, 32, |
| 622 | | − 14, 15, 16, 17, 137, 25, 26, 92, 30, 29, |
| 623 | | − 66, 25, 27, 69, 34, 71, 30, 68, 33, 70, |
| 624 | | − 105, 1, 155, 0, 1, 1, 3, 4, 5, 6, |
| 625 | | − 7, 8, 9, 10, 11, 12, 30, 14, 15, 16, |
| 626 | | − 17, 18, 19, 20, 21, 22, 23, 68, 25, 70, |
| 627 | | − 25, 0, 1, 30, 3, 4, 5, 6, 7, 8, |
| 628 | | − 9, 10, 11, 30, 30, 14, 15, 16, 17, 18, |
| 629 | | − 19, 20, 21, 22, 23, 30, 25, 30, 30, 0, |
| 630 | | − 1, 30, 3, 4, 5, 6, 7, 8, 9, 10, |
| 631 | | − 11, 30, 30, 14, 15, 16, 30, 18, 19, 20, |
| 632 | | − 21, 22, 23, 1, 25, 30, 30, 5, 6, 30, |
| 633 | | − 8, 9, 10, 11, 12, 1, 14, 15, 16, 17, |
| 634 | | − 18, 19, 20, 21, 14, 5, 6, 25, 8, 9, |
| 635 | | − 10, 11, 30, 30, 14, 15, 142, 143, 144, 13, |
| 636 | | − 25, 31, 32, 149, 28, 151, 14, 31, 32, 32, |
| 637 | | − 30, 67, 68, 30, 70, 161, 67, 68, 30, 70, |
| 638 | | − 30, 31, 32, 30, 31, 32, 30, 31, 32, 30, |
| 639 | | − 31, 32, 30, 30, 30, 30, 30, 30, 30, 29, |
| 640 | | − 40, 59, -1, 106, 66 |
| 684 | + 5, 6, 0, 8, 57, 58, 11, 84, 85, 28, |
| 685 | + 144, 145, 146, 14, 68, 34, 70, 31, 152, 96, |
| 686 | + 154, 66, 66, 31, 69, 69, 71, 71, 81, 82, |
| 687 | + 164, 32, 33, 26, 25, 26, 27, 90, 91, 30, |
| 688 | + 26, 94, 0, 1, 35, 3, 4, 5, 6, 7, |
| 689 | + 8, 9, 10, 11, 12, 31, 14, 15, 16, 17, |
| 690 | + 18, 19, 20, 21, 22, 23, 24, 26, 26, 68, |
| 691 | + 147, 70, 31, 31, 4, 5, 6, 7, 8, 9, |
| 692 | + 10, 11, 26, 27, 14, 15, 139, 92, 26, 27, |
| 693 | + 5, 6, 30, 8, 9, 10, 11, 35, 31, 14, |
| 694 | + 15, 31, 107, 0, 1, 158, 3, 4, 5, 6, |
| 695 | + 7, 8, 9, 10, 11, 12, 31, 14, 15, 16, |
| 696 | + 17, 18, 19, 20, 21, 22, 23, 24, 31, 26, |
| 697 | + 26, 27, 0, 1, 31, 3, 4, 5, 6, 7, |
| 698 | + 8, 9, 10, 11, 32, 33, 14, 15, 16, 17, |
| 699 | + 18, 19, 20, 21, 22, 23, 29, 1, 26, 32, |
| 700 | + 33, 67, 68, 31, 70, 67, 68, 1, 70, 31, |
| 701 | + 0, 1, 177, 3, 4, 5, 6, 7, 8, 9, |
| 702 | + 10, 11, 31, 31, 14, 15, 16, 26, 18, 19, |
| 703 | + 20, 21, 22, 23, 31, 1, 26, 1, 31, 5, |
| 704 | + 6, 31, 8, 9, 10, 11, 12, 31, 14, 15, |
| 705 | + 16, 17, 18, 19, 20, 21, 31, 32, 33, 31, |
| 706 | + 26, 31, 31, 1, 31, 31, 4, 5, 6, 7, |
| 707 | + 8, 9, 10, 11, 31, 31, 14, 15, 16, 17, |
| 708 | + 31, 32, 33, 31, 32, 33, 13, 26, 26, 31, |
| 709 | + 32, 33, 33, 31, 14, 31, 31, 31, 31, 31, |
| 710 | + 31, 66, 31, 31, 34, 31, 29, 108, -1, 59, |
| 711 | + -1, -1, -1, -1, -1, 40 |
| 641 | 712 | }; |
| 642 | 713 | |
| 643 | 714 | /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing |
| 644 | 715 | symbol of state STATE-NUM. */ |
| 645 | 716 | static const unsigned char yystos[] = |
| 646 | 717 | { |
| 647 | | − 0, 36, 37, 0, 1, 3, 4, 5, 6, 7, |
| 718 | + 0, 37, 38, 0, 1, 3, 4, 5, 6, 7, |
| 648 | 719 | 8, 9, 10, 11, 14, 15, 16, 18, 19, 20, |
| 649 | | − 21, 22, 23, 25, 30, 38, 39, 41, 42, 43, |
| 650 | | − 44, 47, 48, 50, 54, 56, 58, 59, 61, 63, |
| 651 | | − 64, 65, 72, 30, 25, 26, 71, 71, 30, 71, |
| 652 | | − 30, 30, 71, 25, 25, 25, 26, 29, 34, 75, |
| 653 | | − 76, 30, 1, 1, 45, 45, 51, 53, 57, 68, |
| 654 | | − 62, 68, 30, 73, 30, 30, 30, 30, 30, 75, |
| 655 | | − 75, 31, 32, 73, 27, 33, 30, 30, 1, 12, |
| 656 | | − 16, 17, 19, 20, 21, 22, 23, 25, 30, 40, |
| 657 | | − 46, 66, 67, 69, 18, 19, 20, 21, 30, 40, |
| 658 | | − 52, 67, 69, 39, 49, 72, 39, 50, 55, 61, |
| 659 | | − 72, 30, 40, 69, 39, 50, 60, 61, 72, 30, |
| 660 | | − 28, 75, 75, 76, 76, 30, 30, 24, 75, 75, |
| 661 | | − 71, 70, 71, 75, 25, 76, 1, 13, 30, 71, |
| 662 | | − 70, 25, 75, 30, 30, 14, 74, 30, 74, 74, |
| 663 | | − 74, 76, 30, 74, 30, 74, 30, 75, 30, 30, |
| 664 | | − 30, 74, 30, 30, 30 |
| 720 | + 21, 22, 23, 26, 31, 39, 40, 42, 43, 44, |
| 721 | + 45, 51, 52, 54, 58, 60, 62, 63, 65, 67, |
| 722 | + 68, 69, 76, 31, 26, 27, 75, 75, 31, 75, |
| 723 | + 31, 31, 75, 26, 26, 26, 27, 30, 35, 79, |
| 724 | + 80, 31, 1, 1, 46, 46, 55, 57, 61, 72, |
| 725 | + 66, 72, 31, 77, 31, 31, 31, 31, 31, 79, |
| 726 | + 79, 32, 33, 77, 28, 34, 31, 31, 1, 12, |
| 727 | + 16, 17, 19, 20, 21, 22, 23, 24, 26, 31, |
| 728 | + 41, 47, 48, 70, 71, 73, 18, 19, 20, 21, |
| 729 | + 31, 41, 56, 71, 73, 40, 53, 76, 40, 54, |
| 730 | + 59, 65, 76, 31, 41, 73, 40, 54, 64, 65, |
| 731 | + 76, 31, 29, 79, 79, 80, 80, 31, 31, 25, |
| 732 | + 79, 79, 75, 74, 75, 79, 26, 80, 49, 1, |
| 733 | + 13, 31, 75, 74, 26, 79, 31, 31, 14, 78, |
| 734 | + 31, 78, 78, 78, 80, 26, 31, 31, 78, 31, |
| 735 | + 78, 31, 79, 31, 31, 31, 78, 34, 50, 31, |
| 736 | + 31, 31, 75 |
| 665 | 737 | }; |
| 666 | 738 | |
| 667 | | −#if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__) |
| 668 | | −# define YYSIZE_T __SIZE_TYPE__ |
| 669 | | −#endif |
| 670 | | −#if ! defined (YYSIZE_T) && defined (size_t) |
| 671 | | −# define YYSIZE_T size_t |
| 672 | | −#endif |
| 673 | | −#if ! defined (YYSIZE_T) |
| 674 | | −# if defined (__STDC__) || defined (__cplusplus) |
| 675 | | −# include <stddef.h> /* INFRINGES ON USER NAME SPACE */ |
| 676 | | −# define YYSIZE_T size_t |
| 677 | | −# endif |
| 678 | | −#endif |
| 679 | | −#if ! defined (YYSIZE_T) |
| 680 | | −# define YYSIZE_T unsigned int |
| 681 | | −#endif |
| 682 | | − |
| 683 | 739 | #define yyerrok (yyerrstatus = 0) |
| 684 | 740 | #define yyclearin (yychar = YYEMPTY) |
| 685 | 741 | #define YYEMPTY (-2) |
| @@ -709,8 +765,8 @@ do \ · 23 unmodified lines |
| 709 | 765 | goto yybackup; \ |
| 710 | 766 | } \ |
| 711 | 767 | else \ |
| 712 | | − { \ |
| 713 | | − yyerror ("syntax error: cannot back up");\ |
| 768 | + { \ |
| 769 | + yyerror (YY_("syntax error: cannot back up")); \ |
| 714 | 770 | YYERROR; \ |
| 715 | 771 | } \ |
| 716 | 772 | while (0) |
| @@ -789,7 +845,7 @@ do { \ · 72 unmodified lines |
| 789 | 845 | if (yydebug) \ |
| 790 | 846 | { \ |
| 791 | 847 | YYFPRINTF (stderr, "%s ", Title); \ |
| 792 | | − yysymprint (stderr, \ |
| 848 | + yysymprint (stderr, \ |
| 793 | 849 | Type, Value); \ |
| 794 | 850 | YYFPRINTF (stderr, "\n"); \ |
| 795 | 851 | } \ |
| @@ -837,13 +893,13 @@ yy_reduce_print (yyrule) · 41 unmodified lines |
| 837 | 893 | #endif |
| 838 | 894 | { |
| 839 | 895 | int yyi; |
| 840 | | − unsigned int yylno = yyrline[yyrule]; |
| 841 | | − YYFPRINTF (stderr, "Reducing stack by rule %d (line %u), ", |
| 896 | + unsigned long int yylno = yyrline[yyrule]; |
| 897 | + YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu), ", |
| 842 | 898 | yyrule - 1, yylno); |
| 843 | 899 | /* Print the symbols being reduced, and their result. */ |
| 844 | 900 | for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++) |
| 845 | | − YYFPRINTF (stderr, "%s ", yytname [yyrhs[yyi]]); |
| 846 | | − YYFPRINTF (stderr, "-> %s\n", yytname [yyr1[yyrule]]); |
| 901 | + YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]); |
| 902 | + YYFPRINTF (stderr, "-> %s\n", yytname[yyr1[yyrule]]); |
| 847 | 903 | } |
| 848 | 904 | |
| 849 | 905 | # define YY_REDUCE_PRINT(Rule) \ |
| @@ -872,7 +928,7 @@ int yydebug; · 22 unmodified lines |
| 872 | 928 | if the built-in stack extension method is used). |
| 873 | 929 | |
| 874 | 930 | Do not make this value too large; the results are undefined if |
| 875 | | − SIZE_MAX < YYSTACK_BYTES (YYMAXDEPTH) |
| 931 | + YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH) |
| 876 | 932 | evaluated with infinite-precision integer arithmetic. */ |
| 877 | 933 | |
| 878 | 934 | #ifndef YYMAXDEPTH |
| @@ -896,7 +952,7 @@ yystrlen (yystr) · 17 unmodified lines |
| 896 | 952 | const char *yystr; |
| 897 | 953 | # endif |
| 898 | 954 | { |
| 899 | | − register const char *yys = yystr; |
| 955 | + const char *yys = yystr; |
| 900 | 956 | |
| 901 | 957 | while (*yys++ != '\0') |
| 902 | 958 | continue; |
| @@ -921,8 +977,8 @@ yystpcpy (yydest, yysrc) · 18 unmodified lines |
| 921 | 977 | const char *yysrc; |
| 922 | 978 | # endif |
| 923 | 979 | { |
| 924 | | − register char *yyd = yydest; |
| 925 | | − register const char *yys = yysrc; |
| 980 | + char *yyd = yydest; |
| 981 | + const char *yys = yysrc; |
| 926 | 982 | |
| 927 | 983 | while ((*yyd++ = *yys++) != '\0') |
| 928 | 984 | continue; |
| @@ -932,7 +988,55 @@ yystpcpy (yydest, yysrc) · 3 unmodified lines |
| 932 | 988 | # endif |
| 933 | 989 | # endif |
| 934 | 990 | |
| 935 | | −#endif /* !YYERROR_VERBOSE */ |
| 991 | +# ifndef yytnamerr |
| 992 | +/* Copy to YYRES the contents of YYSTR after stripping away unnecessary |
| 993 | + quotes and backslashes, so that it's suitable for yyerror. The |
| 994 | + heuristic is that double-quoting is unnecessary unless the string |
| 995 | + contains an apostrophe, a comma, or backslash (other than |
| 996 | + backslash-backslash). YYSTR is taken from yytname. If YYRES is |
| 997 | + null, do not copy; instead, return the length of what the result |
| 998 | + would have been. */ |
| 999 | +static YYSIZE_T |
| 1000 | +yytnamerr (char *yyres, const char *yystr) |
| 1001 | +{ |
| 1002 | + if (*yystr == '"') |
| 1003 | + { |
| 1004 | + size_t yyn = 0; |
| 1005 | + char const *yyp = yystr; |
| 1006 | + |
| 1007 | + for (;;) |
| 1008 | + switch (*++yyp) |
| 1009 | + { |
| 1010 | + case '\'': |
| 1011 | + case ',': |
| 1012 | + goto do_not_strip_quotes; |
| 1013 | + |
| 1014 | + case '\\': |
| 1015 | + if (*++yyp != '\\') |
| 1016 | + goto do_not_strip_quotes; |
| 1017 | + /* Fall through. */ |
| 1018 | + default: |
| 1019 | + if (yyres) |
| 1020 | + yyres[yyn] = *yyp; |
| 1021 | + yyn++; |
| 1022 | + break; |
| 1023 | + |
| 1024 | + case '"': |
| 1025 | + if (yyres) |
| 1026 | + yyres[yyn] = '\0'; |
| 1027 | + return yyn; |
| 1028 | + } |
| 1029 | + do_not_strip_quotes: ; |
| 1030 | + } |
| 1031 | + |
| 1032 | + if (! yyres) |
| 1033 | + return yystrlen (yystr); |
| 1034 | + |
| 1035 | + return yystpcpy (yyres, yystr) - yyres; |
| 1036 | +} |
| 1037 | +# endif |
| 1038 | + |
| 1039 | +#endif /* YYERROR_VERBOSE */ |
| 936 | 1040 | |
| 937 | 1041 | |
| 938 | 1042 | |
| @@ -998,7 +1102,7 @@ yydestruct (yymsg, yytype, yyvaluep) · 59 unmodified lines |
| 998 | 1102 | |
| 999 | 1103 | switch (yytype) |
| 1000 | 1104 | { |
| 1001 | | − case 48: /* choice_entry */ |
| 1105 | + case 52: /* "choice_entry" */ |
| 1002 | 1106 | |
| 1003 | 1107 | { |
| 1004 | 1108 | fprintf(stderr, "%s:%d: missing end statement for this entry\n", |
| @@ -1008,7 +1112,7 @@ yydestruct (yymsg, yytype, yyvaluep) · 3 unmodified lines |
| 1008 | 1112 | }; |
| 1009 | 1113 | |
| 1010 | 1114 | break; |
| 1011 | | − case 54: /* if_entry */ |
| 1115 | + case 58: /* "if_entry" */ |
| 1012 | 1116 | |
| 1013 | 1117 | { |
| 1014 | 1118 | fprintf(stderr, "%s:%d: missing end statement for this entry\n", |
| @@ -1018,7 +1122,7 @@ yydestruct (yymsg, yytype, yyvaluep) · 3 unmodified lines |
| 1018 | 1122 | }; |
| 1019 | 1123 | |
| 1020 | 1124 | break; |
| 1021 | | − case 59: /* menu_entry */ |
| 1125 | + case 63: /* "menu_entry" */ |
| 1022 | 1126 | |
| 1023 | 1127 | { |
| 1024 | 1128 | fprintf(stderr, "%s:%d: missing end statement for this entry\n", |
| @@ -1082,13 +1186,13 @@ yyparse (void) · 57 unmodified lines |
| 1082 | 1186 | #else |
| 1083 | 1187 | int |
| 1084 | 1188 | yyparse () |
| 1085 | | − |
| 1189 | + ; |
| 1086 | 1190 | #endif |
| 1087 | 1191 | #endif |
| 1088 | 1192 | { |
| 1089 | 1193 | |
| 1090 | | − register int yystate; |
| 1091 | | − register int yyn; |
| 1194 | + int yystate; |
| 1195 | + int yyn; |
| 1092 | 1196 | int yyresult; |
| 1093 | 1197 | /* Number of tokens to shift before error messages enabled. */ |
| 1094 | 1198 | int yyerrstatus; |
| @@ -1106,12 +1210,12 @@ yyparse () · 11 unmodified lines |
| 1106 | 1210 | /* The state stack. */ |
| 1107 | 1211 | short int yyssa[YYINITDEPTH]; |
| 1108 | 1212 | short int *yyss = yyssa; |
| 1109 | | − register short int *yyssp; |
| 1213 | + short int *yyssp; |
| 1110 | 1214 | |
| 1111 | 1215 | /* The semantic value stack. */ |
| 1112 | 1216 | YYSTYPE yyvsa[YYINITDEPTH]; |
| 1113 | 1217 | YYSTYPE *yyvs = yyvsa; |
| 1114 | | − register YYSTYPE *yyvsp; |
| 1218 | + YYSTYPE *yyvsp; |
| 1115 | 1219 | |
| 1116 | 1220 | |
| 1117 | 1221 | |
| @@ -1143,9 +1247,6 @@ yyparse () · 25 unmodified lines |
| 1143 | 1247 | yyssp = yyss; |
| 1144 | 1248 | yyvsp = yyvs; |
| 1145 | 1249 | |
| 1146 | | − |
| 1147 | | − yyvsp[0] = yylval; |
| 1148 | | − |
| 1149 | 1250 | goto yysetstate; |
| 1150 | 1251 | |
| 1151 | 1252 | /*------------------------------------------------------------. |
| @@ -1178,7 +1279,7 @@ yyparse () · 26 unmodified lines |
| 1178 | 1279 | data in use in that stack, in bytes. This used to be a |
| 1179 | 1280 | conditional around just the two extra args, but that might |
| 1180 | 1281 | be undefined if yyoverflow is a macro. */ |
| 1181 | | − yyoverflow ("parser stack overflow", |
| 1282 | + yyoverflow (YY_("memory exhausted"), |
| 1182 | 1283 | &yyss1, yysize * sizeof (*yyssp), |
| 1183 | 1284 | &yyvs1, yysize * sizeof (*yyvsp), |
| 1184 | 1285 | |
| @@ -1189,11 +1290,11 @@ yyparse () · 4 unmodified lines |
| 1189 | 1290 | } |
| 1190 | 1291 | #else /* no yyoverflow */ |
| 1191 | 1292 | # ifndef YYSTACK_RELOCATE |
| 1192 | | − goto yyoverflowlab; |
| 1293 | + goto yyexhaustedlab; |
| 1193 | 1294 | # else |
| 1194 | 1295 | /* Extend the stack our own way. */ |
| 1195 | 1296 | if (YYMAXDEPTH <= yystacksize) |
| 1196 | | − goto yyoverflowlab; |
| 1297 | + goto yyexhaustedlab; |
| 1197 | 1298 | yystacksize *= 2; |
| 1198 | 1299 | if (YYMAXDEPTH < yystacksize) |
| 1199 | 1300 | yystacksize = YYMAXDEPTH; |
| @@ -1203,7 +1304,7 @@ yyparse () · 3 unmodified lines |
| 1203 | 1304 | union yyalloc *yyptr = |
| 1204 | 1305 | (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); |
| 1205 | 1306 | if (! yyptr) |
| 1206 | | − goto yyoverflowlab; |
| 1307 | + goto yyexhaustedlab; |
| 1207 | 1308 | YYSTACK_RELOCATE (yyss); |
| 1208 | 1309 | YYSTACK_RELOCATE (yyvs); |
| 1209 | 1310 | |
| @@ -1403,7 +1504,7 @@ yyreduce: · 193 unmodified lines |
| 1403 | 1504 | ;} |
| 1404 | 1505 | break; |
| 1405 | 1506 | |
| 1406 | | − case 37: |
| 1507 | + case 38: |
| 1407 | 1508 | |
| 1408 | 1509 | { |
| 1409 | 1510 | menu_set_type((yyvsp[-2].id)->stype); |
| @@ -1413,7 +1514,7 @@ yyreduce: · 3 unmodified lines |
| 1413 | 1514 | ;} |
| 1414 | 1515 | break; |
| 1415 | 1516 | |
| 1416 | | − case 38: |
| 1517 | + case 39: |
| 1417 | 1518 | |
| 1418 | 1519 | { |
| 1419 | 1520 | menu_add_prompt(P_PROMPT, (yyvsp[-2].string), (yyvsp[-1].expr)); |
| @@ -1421,7 +1522,7 @@ yyreduce: · 1 unmodified line |
| 1421 | 1522 | ;} |
| 1422 | 1523 | break; |
| 1423 | 1524 | |
| 1424 | | − case 39: |
| 1525 | + case 40: |
| 1425 | 1526 | |
| 1426 | 1527 | { |
| 1427 | 1528 | menu_add_expr(P_DEFAULT, (yyvsp[-2].expr), (yyvsp[-1].expr)); |
| @@ -1433,7 +1534,7 @@ yyreduce: · 5 unmodified lines |
| 1433 | 1534 | ;} |
| 1434 | 1535 | break; |
| 1435 | 1536 | |
| 1436 | | − case 40: |
| 1537 | + case 41: |
| 1437 | 1538 | |
| 1438 | 1539 | { |
| 1439 | 1540 | menu_add_symbol(P_SELECT, sym_lookup((yyvsp[-2].string), 0), (yyvsp[-1].expr)); |
| @@ -1441,7 +1542,7 @@ yyreduce: · 1 unmodified line |
| 1441 | 1542 | ;} |
| 1442 | 1543 | break; |
| 1443 | 1544 | |
| 1444 | | − case 41: |
| 1545 | + case 42: |
| 1445 | 1546 | |
| 1446 | 1547 | { |
| 1447 | 1548 | menu_add_expr(P_RANGE, expr_alloc_comp(E_RANGE,(yyvsp[-3].symbol), (yyvsp[-2].symbol)), (yyvsp[-1].expr)); |
| @@ -1449,7 +1550,29 @@ yyreduce: · 1 unmodified line |
| 1449 | 1550 | ;} |
| 1450 | 1551 | break; |
| 1451 | 1552 | |
| 1452 | | − case 42: |
| 1553 | + case 45: |
| 1554 | + |
| 1555 | + { |
| 1556 | + struct kconf_id *id = kconf_id_lookup((yyvsp[-1].string), strlen((yyvsp[-1].string))); |
| 1557 | + if (id && id->flags & TF_OPTION) |
| 1558 | + menu_add_option(id->token, (yyvsp[0].string)); |
| 1559 | + else |
| 1560 | + zconfprint("warning: ignoring unknown option %s", (yyvsp[-1].string)); |
| 1561 | + free((yyvsp[-1].string)); |
| 1562 | +;} |
| 1563 | + break; |
| 1564 | + |
| 1565 | + case 46: |
| 1566 | + |
| 1567 | + { (yyval.string) = NULL; ;} |
| 1568 | + break; |
| 1569 | + |
| 1570 | + case 47: |
| 1571 | + |
| 1572 | + { (yyval.string) = (yyvsp[0].string); ;} |
| 1573 | + break; |
| 1574 | + |
| 1575 | + case 48: |
| 1453 | 1576 | |
| 1454 | 1577 | { |
| 1455 | 1578 | struct symbol *sym = sym_lookup(NULL, 0); |
| @@ -1460,14 +1583,14 @@ yyreduce: · 4 unmodified lines |
| 1460 | 1583 | ;} |
| 1461 | 1584 | break; |
| 1462 | 1585 | |
| 1463 | | − case 43: |
| 1586 | + case 49: |
| 1464 | 1587 | |
| 1465 | 1588 | { |
| 1466 | 1589 | (yyval.menu) = menu_add_menu(); |
| 1467 | 1590 | ;} |
| 1468 | 1591 | break; |
| 1469 | 1592 | |
| 1470 | | − case 44: |
| 1593 | + case 50: |
| 1471 | 1594 | |
| 1472 | 1595 | { |
| 1473 | 1596 | if (zconf_endtoken((yyvsp[0].id), T_CHOICE, T_ENDCHOICE)) { |
| @@ -1477,7 +1600,7 @@ yyreduce: · 3 unmodified lines |
| 1477 | 1600 | ;} |
| 1478 | 1601 | break; |
| 1479 | 1602 | |
| 1480 | | − case 52: |
| 1603 | + case 58: |
| 1481 | 1604 | |
| 1482 | 1605 | { |
| 1483 | 1606 | menu_add_prompt(P_PROMPT, (yyvsp[-2].string), (yyvsp[-1].expr)); |
| @@ -1485,7 +1608,7 @@ yyreduce: · 1 unmodified line |
| 1485 | 1608 | ;} |
| 1486 | 1609 | break; |
| 1487 | 1610 | |
| 1488 | | − case 53: |
| 1611 | + case 59: |
| 1489 | 1612 | |
| 1490 | 1613 | { |
| 1491 | 1614 | if ((yyvsp[-2].id)->stype == S_BOOLEAN || (yyvsp[-2].id)->stype == S_TRISTATE) { |
| @@ -1498,7 +1621,7 @@ yyreduce: · 6 unmodified lines |
| 1498 | 1621 | ;} |
| 1499 | 1622 | break; |
| 1500 | 1623 | |
| 1501 | | − case 54: |
| 1624 | + case 60: |
| 1502 | 1625 | |
| 1503 | 1626 | { |
| 1504 | 1627 | current_entry->sym->flags |= SYMBOL_OPTIONAL; |
| @@ -1506,7 +1629,7 @@ yyreduce: · 1 unmodified line |
| 1506 | 1629 | ;} |
| 1507 | 1630 | break; |
| 1508 | 1631 | |
| 1509 | | − case 55: |
| 1632 | + case 61: |
| 1510 | 1633 | |
| 1511 | 1634 | { |
| 1512 | 1635 | if ((yyvsp[-3].id)->stype == S_UNKNOWN) { |
| @@ -1518,7 +1641,7 @@ yyreduce: · 5 unmodified lines |
| 1518 | 1641 | ;} |
| 1519 | 1642 | break; |
| 1520 | 1643 | |
| 1521 | | − case 58: |
| 1644 | + case 64: |
| 1522 | 1645 | |
| 1523 | 1646 | { |
| 1524 | 1647 | printd(DEBUG_PARSE, "%s:%d:if\n", zconf_curname(), zconf_lineno()); |
| @@ -1528,7 +1651,7 @@ yyreduce: · 3 unmodified lines |
| 1528 | 1651 | ;} |
| 1529 | 1652 | break; |
| 1530 | 1653 | |
| 1531 | | − case 59: |
| 1654 | + case 65: |
| 1532 | 1655 | |
| 1533 | 1656 | { |
| 1534 | 1657 | if (zconf_endtoken((yyvsp[0].id), T_IF, T_ENDIF)) { |
| @@ -1538,7 +1661,7 @@ yyreduce: · 3 unmodified lines |
| 1538 | 1661 | ;} |
| 1539 | 1662 | break; |
| 1540 | 1663 | |
| 1541 | | − case 65: |
| 1664 | + case 71: |
| 1542 | 1665 | |
| 1543 | 1666 | { |
| 1544 | 1667 | menu_add_entry(NULL); |
| @@ -1547,14 +1670,14 @@ yyreduce: · 2 unmodified lines |
| 1547 | 1670 | ;} |
| 1548 | 1671 | break; |
| 1549 | 1672 | |
| 1550 | | − case 66: |
| 1673 | + case 72: |
| 1551 | 1674 | |
| 1552 | 1675 | { |
| 1553 | 1676 | (yyval.menu) = menu_add_menu(); |
| 1554 | 1677 | ;} |
| 1555 | 1678 | break; |
| 1556 | 1679 | |
| 1557 | | − case 67: |
| 1680 | + case 73: |
| 1558 | 1681 | |
| 1559 | 1682 | { |
| 1560 | 1683 | if (zconf_endtoken((yyvsp[0].id), T_MENU, T_ENDMENU)) { |
| @@ -1564,7 +1687,7 @@ yyreduce: · 3 unmodified lines |
| 1564 | 1687 | ;} |
| 1565 | 1688 | break; |
| 1566 | 1689 | |
| 1567 | | − case 73: |
| 1690 | + case 79: |
| 1568 | 1691 | |
| 1569 | 1692 | { |
| 1570 | 1693 | printd(DEBUG_PARSE, "%s:%d:source %s\n", zconf_curname(), zconf_lineno(), (yyvsp[-1].string)); |
| @@ -1572,7 +1695,7 @@ yyreduce: · 1 unmodified line |
| 1572 | 1695 | ;} |
| 1573 | 1696 | break; |
| 1574 | 1697 | |
| 1575 | | − case 74: |
| 1698 | + case 80: |
| 1576 | 1699 | |
| 1577 | 1700 | { |
| 1578 | 1701 | menu_add_entry(NULL); |
| @@ -1581,14 +1704,14 @@ yyreduce: · 2 unmodified lines |
| 1581 | 1704 | ;} |
| 1582 | 1705 | break; |
| 1583 | 1706 | |
| 1584 | | − case 75: |
| 1707 | + case 81: |
| 1585 | 1708 | |
| 1586 | 1709 | { |
| 1587 | 1710 | menu_end_entry(); |
| 1588 | 1711 | ;} |
| 1589 | 1712 | break; |
| 1590 | 1713 | |
| 1591 | | − case 76: |
| 1714 | + case 82: |
| 1592 | 1715 | |
| 1593 | 1716 | { |
| 1594 | 1717 | printd(DEBUG_PARSE, "%s:%d:help\n", zconf_curname(), zconf_lineno()); |
| @@ -1596,14 +1719,14 @@ yyreduce: · 1 unmodified line |
| 1596 | 1719 | ;} |
| 1597 | 1720 | break; |
| 1598 | 1721 | |
| 1599 | | − case 77: |
| 1722 | + case 83: |
| 1600 | 1723 | |
| 1601 | 1724 | { |
| 1602 | 1725 | current_entry->sym->help = (yyvsp[0].string); |
| 1603 | 1726 | ;} |
| 1604 | 1727 | break; |
| 1605 | 1728 | |
| 1606 | | − case 82: |
| 1729 | + case 88: |
| 1607 | 1730 | |
| 1608 | 1731 | { |
| 1609 | 1732 | menu_add_dep((yyvsp[-1].expr)); |
| @@ -1611,7 +1734,7 @@ yyreduce: · 1 unmodified line |
| 1611 | 1734 | ;} |
| 1612 | 1735 | break; |
| 1613 | 1736 | |
| 1614 | | − case 83: |
| 1737 | + case 89: |
| 1615 | 1738 | |
| 1616 | 1739 | { |
| 1617 | 1740 | menu_add_dep((yyvsp[-1].expr)); |
| @@ -1619,7 +1742,7 @@ yyreduce: · 1 unmodified line |
| 1619 | 1742 | ;} |
| 1620 | 1743 | break; |
| 1621 | 1744 | |
| 1622 | | − case 84: |
| 1745 | + case 90: |
| 1623 | 1746 | |
| 1624 | 1747 | { |
| 1625 | 1748 | menu_add_dep((yyvsp[-1].expr)); |
| @@ -1627,87 +1750,88 @@ yyreduce: · 1 unmodified line |
| 1627 | 1750 | ;} |
| 1628 | 1751 | break; |
| 1629 | 1752 | |
| 1630 | | − case 86: |
| 1753 | + case 92: |
| 1631 | 1754 | |
| 1632 | 1755 | { |
| 1633 | 1756 | menu_add_prompt(P_PROMPT, (yyvsp[-1].string), (yyvsp[0].expr)); |
| 1634 | 1757 | ;} |
| 1635 | 1758 | break; |
| 1636 | 1759 | |
| 1637 | | − case 89: |
| 1760 | + case 95: |
| 1638 | 1761 | |
| 1639 | 1762 | { (yyval.id) = (yyvsp[-1].id); ;} |
| 1640 | 1763 | break; |
| 1641 | 1764 | |
| 1642 | | − case 90: |
| 1765 | + case 96: |
| 1643 | 1766 | |
| 1644 | 1767 | { (yyval.id) = (yyvsp[-1].id); ;} |
| 1645 | 1768 | break; |
| 1646 | 1769 | |
| 1647 | | − case 91: |
| 1770 | + case 97: |
| 1648 | 1771 | |
| 1649 | 1772 | { (yyval.id) = (yyvsp[-1].id); ;} |
| 1650 | 1773 | break; |
| 1651 | 1774 | |
| 1652 | | − case 94: |
| 1775 | + case 100: |
| 1653 | 1776 | |
| 1654 | 1777 | { (yyval.expr) = NULL; ;} |
| 1655 | 1778 | break; |
| 1656 | 1779 | |
| 1657 | | − case 95: |
| 1780 | + case 101: |
| 1658 | 1781 | |
| 1659 | 1782 | { (yyval.expr) = (yyvsp[0].expr); ;} |
| 1660 | 1783 | break; |
| 1661 | 1784 | |
| 1662 | | − case 96: |
| 1785 | + case 102: |
| 1663 | 1786 | |
| 1664 | 1787 | { (yyval.expr) = expr_alloc_symbol((yyvsp[0].symbol)); ;} |
| 1665 | 1788 | break; |
| 1666 | 1789 | |
| 1667 | | − case 97: |
| 1790 | + case 103: |
| 1668 | 1791 | |
| 1669 | 1792 | { (yyval.expr) = expr_alloc_comp(E_EQUAL, (yyvsp[-2].symbol), (yyvsp[0].symbol)); ;} |
| 1670 | 1793 | break; |
| 1671 | 1794 | |
| 1672 | | − case 98: |
| 1795 | + case 104: |
| 1673 | 1796 | |
| 1674 | 1797 | { (yyval.expr) = expr_alloc_comp(E_UNEQUAL, (yyvsp[-2].symbol), (yyvsp[0].symbol)); ;} |
| 1675 | 1798 | break; |
| 1676 | 1799 | |
| 1677 | | − case 99: |
| 1800 | + case 105: |
| 1678 | 1801 | |
| 1679 | 1802 | { (yyval.expr) = (yyvsp[-1].expr); ;} |
| 1680 | 1803 | break; |
| 1681 | 1804 | |
| 1682 | | − case 100: |
| 1805 | + case 106: |
| 1683 | 1806 | |
| 1684 | 1807 | { (yyval.expr) = expr_alloc_one(E_NOT, (yyvsp[0].expr)); ;} |
| 1685 | 1808 | break; |
| 1686 | 1809 | |
| 1687 | | − case 101: |
| 1810 | + case 107: |
| 1688 | 1811 | |
| 1689 | 1812 | { (yyval.expr) = expr_alloc_two(E_OR, (yyvsp[-2].expr), (yyvsp[0].expr)); ;} |
| 1690 | 1813 | break; |
| 1691 | 1814 | |
| 1692 | | − case 102: |
| 1815 | + case 108: |
| 1693 | 1816 | |
| 1694 | 1817 | { (yyval.expr) = expr_alloc_two(E_AND, (yyvsp[-2].expr), (yyvsp[0].expr)); ;} |
| 1695 | 1818 | break; |
| 1696 | 1819 | |
| 1697 | | − case 103: |
| 1820 | + case 109: |
| 1698 | 1821 | |
| 1699 | 1822 | { (yyval.symbol) = sym_lookup((yyvsp[0].string), 0); free((yyvsp[0].string)); ;} |
| 1700 | 1823 | break; |
| 1701 | 1824 | |
| 1702 | | − case 104: |
| 1825 | + case 110: |
| 1703 | 1826 | |
| 1704 | 1827 | { (yyval.symbol) = sym_lookup((yyvsp[0].string), 1); free((yyvsp[0].string)); ;} |
| 1705 | 1828 | break; |
| 1706 | 1829 | |
| 1707 | 1830 | |
| 1831 | + default: break; |
| 1708 | 1832 | } |
| 1709 | 1833 | |
| 1710 | | −/* Line 1037 of yacc.c. */ |
| 1834 | +/* Line 1126 of yacc.c. */ |
| 1711 | 1835 | |
| 1712 | 1836 | |
| 1713 | 1837 | yyvsp -= yylen; |
| @@ -1747,12 +1871,36 @@ yyerrlab: · 33 unmodified lines |
| 1747 | 1871 | |
| 1748 | 1872 | if (YYPACT_NINF < yyn && yyn < YYLAST) |
| 1749 | 1873 | { |
| 1750 | | − YYSIZE_T yysize = 0; |
| 1751 | 1874 | int yytype = YYTRANSLATE (yychar); |
| 1752 | | − const char* yyprefix; |
| 1753 | | − char *yymsg; |
| 1875 | + YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]); |
| 1876 | + YYSIZE_T yysize = yysize0; |
| 1877 | + YYSIZE_T yysize1; |
| 1878 | + int yysize_overflow = 0; |
| 1879 | + char *yymsg = 0; |
| 1880 | +# define YYERROR_VERBOSE_ARGS_MAXIMUM 5 |
| 1881 | + char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; |
| 1754 | 1882 | int yyx; |
| 1755 | 1883 | |
| 1884 | +#if 0 |
| 1885 | + /* This is so xgettext sees the translatable formats that are |
| 1886 | + constructed on the fly. */ |
| 1887 | + YY_("syntax error, unexpected %s"); |
| 1888 | + YY_("syntax error, unexpected %s, expecting %s"); |
| 1889 | + YY_("syntax error, unexpected %s, expecting %s or %s"); |
| 1890 | + YY_("syntax error, unexpected %s, expecting %s or %s or %s"); |
| 1891 | + YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s"); |
| 1892 | +#endif |
| 1893 | + char *yyfmt; |
| 1894 | + char const *yyf; |
| 1895 | + static char const yyunexpected[] = "syntax error, unexpected %s"; |
| 1896 | + static char const yyexpecting[] = ", expecting %s"; |
| 1897 | + static char const yyor[] = " or %s"; |
| 1898 | + char yyformat[sizeof yyunexpected |
| 1899 | + + sizeof yyexpecting - 1 |
| 1900 | + + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2) |
| 1901 | + * (sizeof yyor - 1))]; |
| 1902 | + char const *yyprefix = yyexpecting; |
| 1903 | + |
| 1756 | 1904 | /* Start YYX at -YYN if negative to avoid negative indexes in |
| 1757 | 1905 | YYCHECK. */ |
| 1758 | 1906 | int yyxbegin = yyn < 0 ? -yyn : 0; |
| @@ -1760,48 +1908,68 @@ yyerrlab: · 1 unmodified line |
| 1760 | 1908 | /* Stay within bounds of both yycheck and yytname. */ |
| 1761 | 1909 | int yychecklim = YYLAST - yyn; |
| 1762 | 1910 | int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS; |
| 1763 | | − int yycount = 0; |
| 1911 | + int yycount = 1; |
| 1912 | + |
| 1913 | + yyarg[0] = yytname[yytype]; |
| 1914 | + yyfmt = yystpcpy (yyformat, yyunexpected); |
| 1764 | 1915 | |
| 1765 | | − yyprefix = ", expecting "; |
| 1766 | 1916 | for (yyx = yyxbegin; yyx < yyxend; ++yyx) |
| 1767 | 1917 | if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) |
| 1768 | 1918 | { |
| 1769 | | − yysize += yystrlen (yyprefix) + yystrlen (yytname [yyx]); |
| 1770 | | − yycount += 1; |
| 1771 | | − if (yycount == 5) |
| 1919 | + if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM) |
| 1772 | 1920 | { |
| 1773 | | − yysize = 0; |
| 1921 | + yycount = 1; |
| 1922 | + yysize = yysize0; |
| 1923 | + yyformat[sizeof yyunexpected - 1] = '\0'; |
| 1774 | 1924 | break; |
| 1775 | 1925 | } |
| 1926 | + yyarg[yycount++] = yytname[yyx]; |
| 1927 | + yysize1 = yysize + yytnamerr (0, yytname[yyx]); |
| 1928 | + yysize_overflow |= yysize1 < yysize; |
| 1929 | + yysize = yysize1; |
| 1930 | + yyfmt = yystpcpy (yyfmt, yyprefix); |
| 1931 | + yyprefix = yyor; |
| 1776 | 1932 | } |
| 1777 | | − yysize += (sizeof ("syntax error, unexpected ") |
| 1778 | | − + yystrlen (yytname[yytype])); |
| 1779 | | − yymsg = (char *) YYSTACK_ALLOC (yysize); |
| 1780 | | − if (yymsg != 0) |
| 1781 | | − { |
| 1782 | | − char *yyp = yystpcpy (yymsg, "syntax error, unexpected "); |
| 1783 | | − yyp = yystpcpy (yyp, yytname[yytype]); |
| 1784 | 1933 | |
| 1785 | | − if (yycount < 5) |
| 1934 | + yyf = YY_(yyformat); |
| 1935 | + yysize1 = yysize + yystrlen (yyf); |
| 1936 | + yysize_overflow |= yysize1 < yysize; |
| 1937 | + yysize = yysize1; |
| 1938 | + |
| 1939 | + if (!yysize_overflow && yysize <= YYSTACK_ALLOC_MAXIMUM) |
| 1940 | + yymsg = (char *) YYSTACK_ALLOC (yysize); |
| 1941 | + if (yymsg) |
| 1942 | + { |
| 1943 | + /* Avoid sprintf, as that infringes on the user's name space. |
| 1944 | + Don't have undefined behavior even if the translation |
| 1945 | + produced a string with the wrong number of "%s"s. */ |
| 1946 | + char *yyp = yymsg; |
| 1947 | + int yyi = 0; |
| 1948 | + while ((*yyp = *yyf)) |
| 1786 | 1949 | { |
| 1787 | | − yyprefix = ", expecting "; |
| 1788 | | − for (yyx = yyxbegin; yyx < yyxend; ++yyx) |
| 1789 | | − if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR) |
| 1790 | | − { |
| 1791 | | − yyp = yystpcpy (yyp, yyprefix); |
| 1792 | | − yyp = yystpcpy (yyp, yytname[yyx]); |
| 1793 | | − yyprefix = " or "; |
| 1794 | | − } |
| 1950 | + if (*yyp == '%' && yyf[1] == 's' && yyi < yycount) |
| 1951 | + { |
| 1952 | + yyp += yytnamerr (yyp, yyarg[yyi++]); |
| 1953 | + yyf += 2; |
| 1954 | + } |
| 1955 | + else |
| 1956 | + { |
| 1957 | + yyp++; |
| 1958 | + yyf++; |
| 1959 | + } |
| 1795 | 1960 | } |
| 1796 | 1961 | yyerror (yymsg); |
| 1797 | 1962 | YYSTACK_FREE (yymsg); |
| 1798 | 1963 | } |
| 1799 | 1964 | else |
| 1800 | | − yyerror ("syntax error; also virtual memory exhausted"); |
| 1965 | + { |
| 1966 | + yyerror (YY_("syntax error")); |
| 1967 | + goto yyexhaustedlab; |
| 1968 | + } |
| 1801 | 1969 | } |
| 1802 | 1970 | else |
| 1803 | 1971 | #endif /* YYERROR_VERBOSE */ |
| 1804 | | − yyerror ("syntax error"); |
| 1972 | + yyerror (YY_("syntax error")); |
| 1805 | 1973 | } |
| 1806 | 1974 | |
| 1807 | 1975 | |
| @@ -1813,18 +1981,9 @@ yyerrlab: · 5 unmodified lines |
| 1813 | 1981 | |
| 1814 | 1982 | if (yychar <= YYEOF) |
| 1815 | 1983 | { |
| 1816 | | − /* If at end of input, pop the error token, |
| 1817 | | − then the rest of the stack, then return failure. */ |
| 1984 | + /* Return failure if at end of input. */ |
| 1818 | 1985 | if (yychar == YYEOF) |
| 1819 | | − for (;;) |
| 1820 | | − { |
| 1821 | | − |
| 1822 | | − YYPOPSTACK; |
| 1823 | | − if (yyssp == yyss) |
| 1824 | | − YYABORT; |
| 1825 | | − yydestruct ("Error: popping", |
| 1826 | | − yystos[*yyssp], yyvsp); |
| 1827 | | − } |
| 1986 | + YYABORT; |
| 1828 | 1987 | } |
| 1829 | 1988 | else |
| 1830 | 1989 | { |
| @@ -1843,12 +2002,11 @@ yyerrlab: · 12 unmodified lines |
| 1843 | 2002 | `---------------------------------------------------*/ |
| 1844 | 2003 | yyerrorlab: |
| 1845 | 2004 | |
| 1846 | | −#ifdef __GNUC__ |
| 1847 | | − /* Pacify GCC when the user code never invokes YYERROR and the label |
| 1848 | | − yyerrorlab therefore never appears in user code. */ |
| 2005 | + /* Pacify compilers like GCC when the user code never invokes |
| 2006 | + YYERROR and the label yyerrorlab therefore never appears in user |
| 2007 | + code. */ |
| 1849 | 2008 | if (0) |
| 1850 | 2009 | goto yyerrorlab; |
| 1851 | | −#endif |
| 1852 | 2010 | |
| 1853 | 2011 | yyvsp -= yylen; |
| 1854 | 2012 | yyssp -= yylen; |
| @@ -1911,23 +2069,29 @@ yyacceptlab: · 56 unmodified lines |
| 1911 | 2069 | | yyabortlab -- YYABORT comes here. | |
| 1912 | 2070 | `-----------------------------------*/ |
| 1913 | 2071 | yyabortlab: |
| 1914 | | − yydestruct ("Error: discarding lookahead", |
| 1915 | | − yytoken, &yylval); |
| 1916 | | − yychar = YYEMPTY; |
| 1917 | 2072 | yyresult = 1; |
| 1918 | 2073 | goto yyreturn; |
| 1919 | 2074 | |
| 1920 | 2075 | #ifndef yyoverflow |
| 1921 | | −/*----------------------------------------------. |
| 1922 | | −| yyoverflowlab -- parser overflow comes here. | |
| 1923 | | −`----------------------------------------------*/ |
| 1924 | | −yyoverflowlab: |
| 1925 | | − yyerror ("parser stack overflow"); |
| 2076 | +/*-------------------------------------------------. |
| 2077 | +| yyexhaustedlab -- memory exhaustion comes here. | |
| 2078 | +`-------------------------------------------------*/ |
| 2079 | +yyexhaustedlab: |
| 2080 | + yyerror (YY_("memory exhausted")); |
| 1926 | 2081 | yyresult = 2; |
| 1927 | 2082 | /* Fall through. */ |
| 1928 | 2083 | #endif |
| 1929 | 2084 | |
| 1930 | 2085 | yyreturn: |
| 2086 | + if (yychar != YYEOF && yychar != YYEMPTY) |
| 2087 | + yydestruct ("Cleanup: discarding lookahead", |
| 2088 | + yytoken, &yylval); |
| 2089 | + while (yyssp != yyss) |
| 2090 | + { |
| 2091 | + yydestruct ("Cleanup: popping", |
| 2092 | + yystos[*yyssp], yyvsp); |
| 2093 | + YYPOPSTACK; |
| 2094 | + } |
| 1931 | 2095 | #ifndef yyoverflow |
| 1932 | 2096 | if (yyss != yyssa) |
| 1933 | 2097 | YYSTACK_FREE (yyss); |