aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/zconf.tab.c_shipped
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/kconfig/zconf.tab.c_shipped')
-rw-r--r--scripts/kconfig/zconf.tab.c_shipped69
1 files changed, 34 insertions, 35 deletions
diff --git a/scripts/kconfig/zconf.tab.c_shipped b/scripts/kconfig/zconf.tab.c_shipped
index 4c5495ea205..f636141e7bf 100644
--- a/scripts/kconfig/zconf.tab.c_shipped
+++ b/scripts/kconfig/zconf.tab.c_shipped
@@ -1,10 +1,9 @@
1 1/* A Bison parser, made by GNU Bison 2.4.3. */
2/* A Bison parser, made by GNU Bison 2.4.1. */
3 2
4/* Skeleton implementation for Bison's Yacc-like parsers in C 3/* Skeleton implementation for Bison's Yacc-like parsers in C
5 4
6 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 5 Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
7 Free Software Foundation, Inc. 6 2009, 2010 Free Software Foundation, Inc.
8 7
9 This program is free software: you can redistribute it and/or modify 8 This program is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by 9 it under the terms of the GNU General Public License as published by
@@ -46,7 +45,7 @@
46#define YYBISON 1 45#define YYBISON 1
47 46
48/* Bison version. */ 47/* Bison version. */
49#define YYBISON_VERSION "2.4.1" 48#define YYBISON_VERSION "2.4.3"
50 49
51/* Skeleton name. */ 50/* Skeleton name. */
52#define YYSKELETON_NAME "yacc.c" 51#define YYSKELETON_NAME "yacc.c"
@@ -88,7 +87,6 @@
88#include <string.h> 87#include <string.h>
89#include <stdbool.h> 88#include <stdbool.h>
90 89
91#define LKC_DIRECT_LINK
92#include "lkc.h" 90#include "lkc.h"
93 91
94#define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt) 92#define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt)
@@ -102,22 +100,18 @@ extern int zconflex(void);
102static void zconfprint(const char *err, ...); 100static void zconfprint(const char *err, ...);
103static void zconf_error(const char *err, ...); 101static void zconf_error(const char *err, ...);
104static void zconferror(const char *err); 102static void zconferror(const char *err);
105static bool zconf_endtoken(struct kconf_id *id, int starttoken, int endtoken); 103static bool zconf_endtoken(const struct kconf_id *id, int starttoken, int endtoken);
106 104
107struct symbol *symbol_hash[SYMBOL_HASHSIZE]; 105struct symbol *symbol_hash[SYMBOL_HASHSIZE];
108 106
109static struct menu *current_menu, *current_entry; 107static struct menu *current_menu, *current_entry;
110 108
111#define YYDEBUG 0
112#if YYDEBUG
113#define YYERROR_VERBOSE
114#endif
115 109
116 110
117 111
118/* Enabling traces. */ 112/* Enabling traces. */
119#ifndef YYDEBUG 113#ifndef YYDEBUG
120# define YYDEBUG 0 114# define YYDEBUG 1
121#endif 115#endif
122 116
123/* Enabling verbose error messages. */ 117/* Enabling verbose error messages. */
@@ -188,7 +182,7 @@ typedef union YYSTYPE
188 struct symbol *symbol; 182 struct symbol *symbol;
189 struct expr *expr; 183 struct expr *expr;
190 struct menu *menu; 184 struct menu *menu;
191 struct kconf_id *id; 185 const struct kconf_id *id;
192 186
193 187
194 188
@@ -255,7 +249,7 @@ typedef short int yytype_int16;
255#define YYSIZE_MAXIMUM ((YYSIZE_T) -1) 249#define YYSIZE_MAXIMUM ((YYSIZE_T) -1)
256 250
257#ifndef YY_ 251#ifndef YY_
258# if YYENABLE_NLS 252# if defined YYENABLE_NLS && YYENABLE_NLS
259# if ENABLE_NLS 253# if ENABLE_NLS
260# include <libintl.h> /* INFRINGES ON USER NAME SPACE */ 254# include <libintl.h> /* INFRINGES ON USER NAME SPACE */
261# define YY_(msgid) dgettext ("bison-runtime", msgid) 255# define YY_(msgid) dgettext ("bison-runtime", msgid)
@@ -535,18 +529,18 @@ static const yytype_int8 yyrhs[] =
535/* YYRLINE[YYN] -- source line where rule number YYN was defined. */ 529/* YYRLINE[YYN] -- source line where rule number YYN was defined. */
536static const yytype_uint16 yyrline[] = 530static const yytype_uint16 yyrline[] =
537{ 531{
538 0, 108, 108, 108, 110, 110, 112, 114, 115, 116, 532 0, 104, 104, 104, 106, 106, 108, 110, 111, 112,
539 117, 118, 119, 123, 127, 127, 127, 127, 127, 127, 533 113, 114, 115, 119, 123, 123, 123, 123, 123, 123,
540 127, 127, 131, 132, 133, 134, 135, 136, 140, 141, 534 123, 123, 127, 128, 129, 130, 131, 132, 136, 137,
541 147, 155, 161, 169, 179, 181, 182, 183, 184, 185, 535 143, 151, 157, 165, 175, 177, 178, 179, 180, 181,
542 186, 189, 197, 203, 213, 219, 225, 228, 230, 241, 536 182, 185, 193, 199, 209, 215, 221, 224, 226, 237,
543 242, 247, 256, 261, 269, 272, 274, 275, 276, 277, 537 238, 243, 252, 257, 265, 268, 270, 271, 272, 273,
544 278, 281, 287, 298, 304, 314, 316, 321, 329, 337, 538 274, 277, 283, 294, 300, 310, 312, 317, 325, 333,
545 340, 342, 343, 344, 349, 356, 363, 368, 376, 379, 539 336, 338, 339, 340, 345, 352, 359, 364, 372, 375,
546 381, 382, 383, 386, 394, 401, 408, 414, 421, 423, 540 377, 378, 379, 382, 390, 397, 404, 410, 417, 419,
547 424, 425, 428, 436, 438, 439, 442, 449, 451, 456, 541 420, 421, 424, 432, 434, 435, 438, 445, 447, 452,
548 457, 460, 461, 462, 466, 467, 470, 471, 474, 475, 542 453, 456, 457, 458, 462, 463, 466, 467, 470, 471,
549 476, 477, 478, 479, 480, 483, 484, 487, 488 543 472, 473, 474, 475, 476, 479, 480, 483, 484
550}; 544};
551#endif 545#endif
552 546
@@ -806,9 +800,18 @@ static const yytype_uint8 yystos[] =
806 800
807/* Like YYERROR except do call yyerror. This remains here temporarily 801/* Like YYERROR except do call yyerror. This remains here temporarily
808 to ease the transition to the new meaning of YYERROR, for GCC. 802 to ease the transition to the new meaning of YYERROR, for GCC.
809 Once GCC version 2 has supplanted version 1, this can go. */ 803 Once GCC version 2 has supplanted version 1, this can go. However,
804 YYFAIL appears to be in use. Nevertheless, it is formally deprecated
805 in Bison 2.4.2's NEWS entry, where a plan to phase it out is
806 discussed. */
810 807
811#define YYFAIL goto yyerrlab 808#define YYFAIL goto yyerrlab
809#if defined YYFAIL
810 /* This is here to suppress warnings from the GCC cpp's
811 -Wunused-macros. Normally we don't worry about that warning, but
812 some users do, and we want to make it easy for users to remove
813 YYFAIL uses, which will produce warnings from Bison 2.5. */
814#endif
812 815
813#define YYRECOVERING() (!!yyerrstatus) 816#define YYRECOVERING() (!!yyerrstatus)
814 817
@@ -865,7 +868,7 @@ while (YYID (0))
865 we won't break user code: when these are the locations we know. */ 868 we won't break user code: when these are the locations we know. */
866 869
867#ifndef YY_LOCATION_PRINT 870#ifndef YY_LOCATION_PRINT
868# if YYLTYPE_IS_TRIVIAL 871# if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL
869# define YY_LOCATION_PRINT(File, Loc) \ 872# define YY_LOCATION_PRINT(File, Loc) \
870 fprintf (File, "%d.%d-%d.%d", \ 873 fprintf (File, "%d.%d-%d.%d", \
871 (Loc).first_line, (Loc).first_column, \ 874 (Loc).first_line, (Loc).first_column, \
@@ -1753,7 +1756,7 @@ yyreduce:
1753 case 48: 1756 case 48:
1754 1757
1755 { 1758 {
1756 struct kconf_id *id = kconf_id_lookup((yyvsp[(2) - (3)].string), strlen((yyvsp[(2) - (3)].string))); 1759 const struct kconf_id *id = kconf_id_lookup((yyvsp[(2) - (3)].string), strlen((yyvsp[(2) - (3)].string)));
1757 if (id && id->flags & TF_OPTION) 1760 if (id && id->flags & TF_OPTION)
1758 menu_add_option(id->token, (yyvsp[(3) - (3)].string)); 1761 menu_add_option(id->token, (yyvsp[(3) - (3)].string));
1759 else 1762 else
@@ -2258,10 +2261,8 @@ void conf_parse(const char *name)
2258 modules_sym->flags |= SYMBOL_AUTO; 2261 modules_sym->flags |= SYMBOL_AUTO;
2259 rootmenu.prompt = menu_add_prompt(P_MENU, "Linux Kernel Configuration", NULL); 2262 rootmenu.prompt = menu_add_prompt(P_MENU, "Linux Kernel Configuration", NULL);
2260 2263
2261#if YYDEBUG
2262 if (getenv("ZCONF_DEBUG")) 2264 if (getenv("ZCONF_DEBUG"))
2263 zconfdebug = 1; 2265 zconfdebug = 1;
2264#endif
2265 zconfparse(); 2266 zconfparse();
2266 if (zconfnerrs) 2267 if (zconfnerrs)
2267 exit(1); 2268 exit(1);
@@ -2300,7 +2301,7 @@ static const char *zconf_tokenname(int token)
2300 return "<token>"; 2301 return "<token>";
2301} 2302}
2302 2303
2303static bool zconf_endtoken(struct kconf_id *id, int starttoken, int endtoken) 2304static bool zconf_endtoken(const struct kconf_id *id, int starttoken, int endtoken)
2304{ 2305{
2305 if (id->token != endtoken) { 2306 if (id->token != endtoken) {
2306 zconf_error("unexpected '%s' within %s block", 2307 zconf_error("unexpected '%s' within %s block",
@@ -2345,9 +2346,7 @@ static void zconf_error(const char *err, ...)
2345 2346
2346static void zconferror(const char *err) 2347static void zconferror(const char *err)
2347{ 2348{
2348#if YYDEBUG
2349 fprintf(stderr, "%s:%d: %s\n", zconf_curname(), zconf_lineno() + 1, err); 2349 fprintf(stderr, "%s:%d: %s\n", zconf_curname(), zconf_lineno() + 1, err);
2350#endif
2351} 2350}
2352 2351
2353static void print_quoted_string(FILE *out, const char *str) 2352static void print_quoted_string(FILE *out, const char *str)
@@ -2496,7 +2495,7 @@ void zconfdump(FILE *out)
2496 } 2495 }
2497} 2496}
2498 2497
2499#include "lex.zconf.c" 2498#include "zconf.lex.c"
2500#include "util.c" 2499#include "util.c"
2501#include "confdata.c" 2500#include "confdata.c"
2502#include "expr.c" 2501#include "expr.c"