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