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 | |
parent | 378dbb2cf5cb51e41e51b115af8b3ecef086e6ff (diff) |
kconfig: regen parser
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/Makefile | 6 | ||||
-rw-r--r-- | scripts/kconfig/zconf.hash.c_shipped | 273 | ||||
-rw-r--r-- | scripts/kconfig/zconf.lex.c_shipped (renamed from scripts/kconfig/lex.zconf.c_shipped) | 26 | ||||
-rw-r--r-- | scripts/kconfig/zconf.tab.c_shipped | 68 |
4 files changed, 200 insertions, 173 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index ee3f4fa0e04f..0b4276c047b2 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -204,7 +204,7 @@ ifeq ($(gconf-target),1) | |||
204 | endif | 204 | endif |
205 | 205 | ||
206 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck .tmp_gtkcheck | 206 | clean-files := lkc_defs.h qconf.moc .tmp_qtcheck .tmp_gtkcheck |
207 | clean-files += zconf.tab.c lex.zconf.c zconf.hash.c gconf.glade.h | 207 | clean-files += zconf.tab.c zconf.lex.c zconf.hash.c gconf.glade.h |
208 | clean-files += mconf qconf gconf nconf | 208 | clean-files += mconf qconf gconf nconf |
209 | clean-files += config.pot linux.pot | 209 | clean-files += config.pot linux.pot |
210 | 210 | ||
@@ -220,7 +220,7 @@ always := dochecklxdialog | |||
220 | HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS)) | 220 | HOST_EXTRACFLAGS += $(shell $(CONFIG_SHELL) $(srctree)/$(src)/check.sh $(HOSTCC) $(HOSTCFLAGS)) |
221 | 221 | ||
222 | # generated files seem to need this to find local include files | 222 | # generated files seem to need this to find local include files |
223 | HOSTCFLAGS_lex.zconf.o := -I$(src) | 223 | HOSTCFLAGS_zconf.lex.o := -I$(src) |
224 | HOSTCFLAGS_zconf.tab.o := -I$(src) | 224 | HOSTCFLAGS_zconf.tab.o := -I$(src) |
225 | 225 | ||
226 | LEX_PREFIX_zconf := zconf | 226 | LEX_PREFIX_zconf := zconf |
@@ -319,7 +319,7 @@ $(obj)/.tmp_gtkcheck: | |||
319 | fi | 319 | fi |
320 | endif | 320 | endif |
321 | 321 | ||
322 | $(obj)/zconf.tab.o: $(obj)/lex.zconf.c $(obj)/zconf.hash.c | 322 | $(obj)/zconf.tab.o: $(obj)/zconf.lex.c $(obj)/zconf.hash.c |
323 | 323 | ||
324 | $(obj)/kconfig_load.o: $(obj)/lkc_defs.h | 324 | $(obj)/kconfig_load.o: $(obj)/lkc_defs.h |
325 | 325 | ||
diff --git a/scripts/kconfig/zconf.hash.c_shipped b/scripts/kconfig/zconf.hash.c_shipped index 4055d5de1750..40df0005daa9 100644 --- a/scripts/kconfig/zconf.hash.c_shipped +++ b/scripts/kconfig/zconf.hash.c_shipped | |||
@@ -1,6 +1,5 @@ | |||
1 | /* ANSI-C code produced by gperf version 3.0.3 */ | 1 | /* ANSI-C code produced by gperf version 3.0.4 */ |
2 | /* Command-line: gperf */ | 2 | /* Command-line: gperf -t --output-file scripts/kconfig/zconf.hash.c_shipped -a -C -E -g -k '1,3,$' -p -t scripts/kconfig/zconf.gperf */ |
3 | /* Computed positions: -k'1,3' */ | ||
4 | 3 | ||
5 | #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ | 4 | #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ |
6 | && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ | 5 | && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ |
@@ -29,10 +28,11 @@ | |||
29 | #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>." | 28 | #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>." |
30 | #endif | 29 | #endif |
31 | 30 | ||
31 | #line 10 "scripts/kconfig/zconf.gperf" | ||
32 | struct kconf_id; | 32 | struct kconf_id; |
33 | 33 | ||
34 | static struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len); | 34 | static const struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len); |
35 | /* maximum key range = 50, duplicates = 0 */ | 35 | /* maximum key range = 71, duplicates = 0 */ |
36 | 36 | ||
37 | #ifdef __GNUC__ | 37 | #ifdef __GNUC__ |
38 | __inline | 38 | __inline |
@@ -44,34 +44,34 @@ inline | |||
44 | static unsigned int | 44 | static unsigned int |
45 | kconf_id_hash (register const char *str, register unsigned int len) | 45 | kconf_id_hash (register const char *str, register unsigned int len) |
46 | { | 46 | { |
47 | static unsigned char asso_values[] = | 47 | static const unsigned char asso_values[] = |
48 | { | 48 | { |
49 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 49 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
50 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 50 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
51 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 51 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
52 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 52 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
53 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 53 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
54 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 54 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
55 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 55 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
56 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 56 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
57 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 57 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
58 | 52, 52, 52, 52, 52, 52, 52, 52, 40, 5, | 58 | 73, 73, 73, 73, 73, 73, 73, 73, 25, 25, |
59 | 0, 0, 5, 52, 0, 20, 52, 52, 10, 20, | 59 | 0, 0, 0, 5, 0, 0, 73, 73, 5, 0, |
60 | 5, 0, 35, 52, 0, 30, 0, 15, 0, 52, | 60 | 10, 5, 45, 73, 20, 20, 0, 15, 15, 73, |
61 | 15, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 61 | 20, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
62 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 62 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
63 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 63 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
64 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 64 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
65 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 65 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
66 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 66 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
67 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 67 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
68 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 68 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
69 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 69 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
70 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 70 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
71 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 71 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
72 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 72 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
73 | 52, 52, 52, 52, 52, 52, 52, 52, 52, 52, | 73 | 73, 73, 73, 73, 73, 73, 73, 73, 73, 73, |
74 | 52, 52, 52, 52, 52, 52 | 74 | 73, 73, 73, 73, 73, 73 |
75 | }; | 75 | }; |
76 | register int hval = len; | 76 | register int hval = len; |
77 | 77 | ||
@@ -85,87 +85,87 @@ kconf_id_hash (register const char *str, register unsigned int len) | |||
85 | hval += asso_values[(unsigned char)str[0]]; | 85 | hval += asso_values[(unsigned char)str[0]]; |
86 | break; | 86 | break; |
87 | } | 87 | } |
88 | return hval; | 88 | return hval + asso_values[(unsigned char)str[len - 1]]; |
89 | } | 89 | } |
90 | 90 | ||
91 | struct kconf_id_strings_t | 91 | struct kconf_id_strings_t |
92 | { | 92 | { |
93 | char kconf_id_strings_str2[sizeof("on")]; | 93 | char kconf_id_strings_str2[sizeof("if")]; |
94 | char kconf_id_strings_str3[sizeof("env")]; | 94 | char kconf_id_strings_str3[sizeof("int")]; |
95 | char kconf_id_strings_str5[sizeof("endif")]; | 95 | char kconf_id_strings_str5[sizeof("endif")]; |
96 | char kconf_id_strings_str6[sizeof("option")]; | 96 | char kconf_id_strings_str7[sizeof("default")]; |
97 | char kconf_id_strings_str7[sizeof("endmenu")]; | 97 | char kconf_id_strings_str8[sizeof("tristate")]; |
98 | char kconf_id_strings_str8[sizeof("optional")]; | ||
99 | char kconf_id_strings_str9[sizeof("endchoice")]; | 98 | char kconf_id_strings_str9[sizeof("endchoice")]; |
100 | char kconf_id_strings_str10[sizeof("range")]; | 99 | char kconf_id_strings_str12[sizeof("def_tristate")]; |
101 | char kconf_id_strings_str11[sizeof("choice")]; | ||
102 | char kconf_id_strings_str12[sizeof("default")]; | ||
103 | char kconf_id_strings_str13[sizeof("def_bool")]; | 100 | char kconf_id_strings_str13[sizeof("def_bool")]; |
104 | char kconf_id_strings_str14[sizeof("help")]; | 101 | char kconf_id_strings_str14[sizeof("defconfig_list")]; |
105 | char kconf_id_strings_str16[sizeof("config")]; | 102 | char kconf_id_strings_str17[sizeof("on")]; |
106 | char kconf_id_strings_str17[sizeof("def_tristate")]; | 103 | char kconf_id_strings_str18[sizeof("optional")]; |
107 | char kconf_id_strings_str18[sizeof("hex")]; | 104 | char kconf_id_strings_str21[sizeof("option")]; |
108 | char kconf_id_strings_str19[sizeof("defconfig_list")]; | 105 | char kconf_id_strings_str22[sizeof("endmenu")]; |
109 | char kconf_id_strings_str22[sizeof("if")]; | 106 | char kconf_id_strings_str23[sizeof("mainmenu")]; |
110 | char kconf_id_strings_str23[sizeof("int")]; | 107 | char kconf_id_strings_str25[sizeof("menuconfig")]; |
111 | char kconf_id_strings_str27[sizeof("modules")]; | 108 | char kconf_id_strings_str27[sizeof("modules")]; |
112 | char kconf_id_strings_str28[sizeof("tristate")]; | ||
113 | char kconf_id_strings_str29[sizeof("menu")]; | 109 | char kconf_id_strings_str29[sizeof("menu")]; |
110 | char kconf_id_strings_str31[sizeof("select")]; | ||
114 | char kconf_id_strings_str32[sizeof("comment")]; | 111 | char kconf_id_strings_str32[sizeof("comment")]; |
115 | char kconf_id_strings_str35[sizeof("menuconfig")]; | 112 | char kconf_id_strings_str33[sizeof("env")]; |
116 | char kconf_id_strings_str36[sizeof("string")]; | 113 | char kconf_id_strings_str35[sizeof("range")]; |
117 | char kconf_id_strings_str37[sizeof("visible")]; | 114 | char kconf_id_strings_str36[sizeof("choice")]; |
118 | char kconf_id_strings_str41[sizeof("prompt")]; | 115 | char kconf_id_strings_str39[sizeof("bool")]; |
119 | char kconf_id_strings_str42[sizeof("depends")]; | 116 | char kconf_id_strings_str41[sizeof("source")]; |
120 | char kconf_id_strings_str44[sizeof("bool")]; | 117 | char kconf_id_strings_str42[sizeof("visible")]; |
121 | char kconf_id_strings_str46[sizeof("select")]; | 118 | char kconf_id_strings_str43[sizeof("hex")]; |
119 | char kconf_id_strings_str46[sizeof("config")]; | ||
122 | char kconf_id_strings_str47[sizeof("boolean")]; | 120 | char kconf_id_strings_str47[sizeof("boolean")]; |
123 | char kconf_id_strings_str48[sizeof("mainmenu")]; | 121 | char kconf_id_strings_str51[sizeof("string")]; |
124 | char kconf_id_strings_str51[sizeof("source")]; | 122 | char kconf_id_strings_str54[sizeof("help")]; |
123 | char kconf_id_strings_str56[sizeof("prompt")]; | ||
124 | char kconf_id_strings_str72[sizeof("depends")]; | ||
125 | }; | 125 | }; |
126 | static struct kconf_id_strings_t kconf_id_strings_contents = | 126 | static const struct kconf_id_strings_t kconf_id_strings_contents = |
127 | { | 127 | { |
128 | "on", | 128 | "if", |
129 | "env", | 129 | "int", |
130 | "endif", | 130 | "endif", |
131 | "option", | ||
132 | "endmenu", | ||
133 | "optional", | ||
134 | "endchoice", | ||
135 | "range", | ||
136 | "choice", | ||
137 | "default", | 131 | "default", |
138 | "def_bool", | 132 | "tristate", |
139 | "help", | 133 | "endchoice", |
140 | "config", | ||
141 | "def_tristate", | 134 | "def_tristate", |
142 | "hex", | 135 | "def_bool", |
143 | "defconfig_list", | 136 | "defconfig_list", |
144 | "if", | 137 | "on", |
145 | "int", | 138 | "optional", |
139 | "option", | ||
140 | "endmenu", | ||
141 | "mainmenu", | ||
142 | "menuconfig", | ||
146 | "modules", | 143 | "modules", |
147 | "tristate", | ||
148 | "menu", | 144 | "menu", |
145 | "select", | ||
149 | "comment", | 146 | "comment", |
150 | "menuconfig", | 147 | "env", |
151 | "string", | 148 | "range", |
152 | "visible", | 149 | "choice", |
153 | "prompt", | ||
154 | "depends", | ||
155 | "bool", | 150 | "bool", |
156 | "select", | 151 | "source", |
152 | "visible", | ||
153 | "hex", | ||
154 | "config", | ||
157 | "boolean", | 155 | "boolean", |
158 | "mainmenu", | 156 | "string", |
159 | "source" | 157 | "help", |
158 | "prompt", | ||
159 | "depends" | ||
160 | }; | 160 | }; |
161 | #define kconf_id_strings ((const char *) &kconf_id_strings_contents) | 161 | #define kconf_id_strings ((const char *) &kconf_id_strings_contents) |
162 | #ifdef __GNUC__ | 162 | #ifdef __GNUC__ |
163 | __inline | 163 | __inline |
164 | #ifdef __GNUC_STDC_INLINE__ | 164 | #if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__ |
165 | __attribute__ ((__gnu_inline__)) | 165 | __attribute__ ((__gnu_inline__)) |
166 | #endif | 166 | #endif |
167 | #endif | 167 | #endif |
168 | struct kconf_id * | 168 | const struct kconf_id * |
169 | kconf_id_lookup (register const char *str, register unsigned int len) | 169 | kconf_id_lookup (register const char *str, register unsigned int len) |
170 | { | 170 | { |
171 | enum | 171 | enum |
@@ -174,54 +174,94 @@ kconf_id_lookup (register const char *str, register unsigned int len) | |||
174 | MIN_WORD_LENGTH = 2, | 174 | MIN_WORD_LENGTH = 2, |
175 | MAX_WORD_LENGTH = 14, | 175 | MAX_WORD_LENGTH = 14, |
176 | MIN_HASH_VALUE = 2, | 176 | MIN_HASH_VALUE = 2, |
177 | MAX_HASH_VALUE = 51 | 177 | MAX_HASH_VALUE = 72 |
178 | }; | 178 | }; |
179 | 179 | ||
180 | static struct kconf_id wordlist[] = | 180 | static const struct kconf_id wordlist[] = |
181 | { | 181 | { |
182 | {-1}, {-1}, | 182 | {-1}, {-1}, |
183 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str2, T_ON, TF_PARAM}, | 183 | #line 25 "scripts/kconfig/zconf.gperf" |
184 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str3, T_OPT_ENV, TF_OPTION}, | 184 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str2, T_IF, TF_COMMAND|TF_PARAM}, |
185 | #line 36 "scripts/kconfig/zconf.gperf" | ||
186 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str3, T_TYPE, TF_COMMAND, S_INT}, | ||
185 | {-1}, | 187 | {-1}, |
188 | #line 26 "scripts/kconfig/zconf.gperf" | ||
186 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str5, T_ENDIF, TF_COMMAND}, | 189 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str5, T_ENDIF, TF_COMMAND}, |
187 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str6, T_OPTION, TF_COMMAND}, | 190 | {-1}, |
188 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str7, T_ENDMENU, TF_COMMAND}, | 191 | #line 29 "scripts/kconfig/zconf.gperf" |
189 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str8, T_OPTIONAL, TF_COMMAND}, | 192 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str7, T_DEFAULT, TF_COMMAND, S_UNKNOWN}, |
193 | #line 31 "scripts/kconfig/zconf.gperf" | ||
194 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str8, T_TYPE, TF_COMMAND, S_TRISTATE}, | ||
195 | #line 20 "scripts/kconfig/zconf.gperf" | ||
190 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str9, T_ENDCHOICE, TF_COMMAND}, | 196 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str9, T_ENDCHOICE, TF_COMMAND}, |
191 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str10, T_RANGE, TF_COMMAND}, | 197 | {-1}, {-1}, |
192 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str11, T_CHOICE, TF_COMMAND}, | 198 | #line 32 "scripts/kconfig/zconf.gperf" |
193 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str12, T_DEFAULT, TF_COMMAND, S_UNKNOWN}, | 199 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str12, T_DEFAULT, TF_COMMAND, S_TRISTATE}, |
200 | #line 35 "scripts/kconfig/zconf.gperf" | ||
194 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str13, T_DEFAULT, TF_COMMAND, S_BOOLEAN}, | 201 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str13, T_DEFAULT, TF_COMMAND, S_BOOLEAN}, |
195 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str14, T_HELP, TF_COMMAND}, | 202 | #line 45 "scripts/kconfig/zconf.gperf" |
196 | {-1}, | 203 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str14, T_OPT_DEFCONFIG_LIST,TF_OPTION}, |
197 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str16, T_CONFIG, TF_COMMAND}, | ||
198 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str17, T_DEFAULT, TF_COMMAND, S_TRISTATE}, | ||
199 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str18, T_TYPE, TF_COMMAND, S_HEX}, | ||
200 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str19, T_OPT_DEFCONFIG_LIST,TF_OPTION}, | ||
201 | {-1}, {-1}, | 204 | {-1}, {-1}, |
202 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str22, T_IF, TF_COMMAND|TF_PARAM}, | 205 | #line 43 "scripts/kconfig/zconf.gperf" |
203 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str23, T_TYPE, TF_COMMAND, S_INT}, | 206 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str17, T_ON, TF_PARAM}, |
204 | {-1}, {-1}, {-1}, | 207 | #line 28 "scripts/kconfig/zconf.gperf" |
208 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str18, T_OPTIONAL, TF_COMMAND}, | ||
209 | {-1}, {-1}, | ||
210 | #line 42 "scripts/kconfig/zconf.gperf" | ||
211 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str21, T_OPTION, TF_COMMAND}, | ||
212 | #line 17 "scripts/kconfig/zconf.gperf" | ||
213 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str22, T_ENDMENU, TF_COMMAND}, | ||
214 | #line 15 "scripts/kconfig/zconf.gperf" | ||
215 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str23, T_MAINMENU, TF_COMMAND}, | ||
216 | {-1}, | ||
217 | #line 23 "scripts/kconfig/zconf.gperf" | ||
218 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str25, T_MENUCONFIG, TF_COMMAND}, | ||
219 | {-1}, | ||
220 | #line 44 "scripts/kconfig/zconf.gperf" | ||
205 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str27, T_OPT_MODULES, TF_OPTION}, | 221 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str27, T_OPT_MODULES, TF_OPTION}, |
206 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str28, T_TYPE, TF_COMMAND, S_TRISTATE}, | 222 | {-1}, |
223 | #line 16 "scripts/kconfig/zconf.gperf" | ||
207 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str29, T_MENU, TF_COMMAND}, | 224 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str29, T_MENU, TF_COMMAND}, |
208 | {-1}, {-1}, | 225 | {-1}, |
226 | #line 39 "scripts/kconfig/zconf.gperf" | ||
227 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str31, T_SELECT, TF_COMMAND}, | ||
228 | #line 21 "scripts/kconfig/zconf.gperf" | ||
209 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str32, T_COMMENT, TF_COMMAND}, | 229 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str32, T_COMMENT, TF_COMMAND}, |
210 | {-1}, {-1}, | 230 | #line 46 "scripts/kconfig/zconf.gperf" |
211 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str35, T_MENUCONFIG, TF_COMMAND}, | 231 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str33, T_OPT_ENV, TF_OPTION}, |
212 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str36, T_TYPE, TF_COMMAND, S_STRING}, | ||
213 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str37, T_VISIBLE, TF_COMMAND}, | ||
214 | {-1}, {-1}, {-1}, | ||
215 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str41, T_PROMPT, TF_COMMAND}, | ||
216 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str42, T_DEPENDS, TF_COMMAND}, | ||
217 | {-1}, | 232 | {-1}, |
218 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str44, T_TYPE, TF_COMMAND, S_BOOLEAN}, | 233 | #line 40 "scripts/kconfig/zconf.gperf" |
234 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str35, T_RANGE, TF_COMMAND}, | ||
235 | #line 19 "scripts/kconfig/zconf.gperf" | ||
236 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str36, T_CHOICE, TF_COMMAND}, | ||
237 | {-1}, {-1}, | ||
238 | #line 33 "scripts/kconfig/zconf.gperf" | ||
239 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str39, T_TYPE, TF_COMMAND, S_BOOLEAN}, | ||
219 | {-1}, | 240 | {-1}, |
220 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str46, T_SELECT, TF_COMMAND}, | 241 | #line 18 "scripts/kconfig/zconf.gperf" |
242 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str41, T_SOURCE, TF_COMMAND}, | ||
243 | #line 41 "scripts/kconfig/zconf.gperf" | ||
244 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str42, T_VISIBLE, TF_COMMAND}, | ||
245 | #line 37 "scripts/kconfig/zconf.gperf" | ||
246 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str43, T_TYPE, TF_COMMAND, S_HEX}, | ||
247 | {-1}, {-1}, | ||
248 | #line 22 "scripts/kconfig/zconf.gperf" | ||
249 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str46, T_CONFIG, TF_COMMAND}, | ||
250 | #line 34 "scripts/kconfig/zconf.gperf" | ||
221 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str47, T_TYPE, TF_COMMAND, S_BOOLEAN}, | 251 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str47, T_TYPE, TF_COMMAND, S_BOOLEAN}, |
222 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str48, T_MAINMENU, TF_COMMAND}, | 252 | {-1}, {-1}, {-1}, |
253 | #line 38 "scripts/kconfig/zconf.gperf" | ||
254 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str51, T_TYPE, TF_COMMAND, S_STRING}, | ||
223 | {-1}, {-1}, | 255 | {-1}, {-1}, |
224 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str51, T_SOURCE, TF_COMMAND} | 256 | #line 24 "scripts/kconfig/zconf.gperf" |
257 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str54, T_HELP, TF_COMMAND}, | ||
258 | {-1}, | ||
259 | #line 30 "scripts/kconfig/zconf.gperf" | ||
260 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str56, T_PROMPT, TF_COMMAND}, | ||
261 | {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, | ||
262 | {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, | ||
263 | #line 27 "scripts/kconfig/zconf.gperf" | ||
264 | {(int)(long)&((struct kconf_id_strings_t *)0)->kconf_id_strings_str72, T_DEPENDS, TF_COMMAND} | ||
225 | }; | 265 | }; |
226 | 266 | ||
227 | if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) | 267 | if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) |
@@ -242,4 +282,5 @@ kconf_id_lookup (register const char *str, register unsigned int len) | |||
242 | } | 282 | } |
243 | return 0; | 283 | return 0; |
244 | } | 284 | } |
285 | #line 47 "scripts/kconfig/zconf.gperf" | ||
245 | 286 | ||
diff --git a/scripts/kconfig/lex.zconf.c_shipped b/scripts/kconfig/zconf.lex.c_shipped index d9182916f724..906c09911748 100644 --- a/scripts/kconfig/lex.zconf.c_shipped +++ b/scripts/kconfig/zconf.lex.c_shipped | |||
@@ -1,5 +1,5 @@ | |||
1 | 1 | ||
2 | #line 3 "scripts/kconfig/lex.zconf.c" | 2 | #line 3 "scripts/kconfig/zconf.lex.c_shipped" |
3 | 3 | ||
4 | #define YY_INT_ALIGNED short int | 4 | #define YY_INT_ALIGNED short int |
5 | 5 | ||
@@ -72,6 +72,7 @@ typedef int flex_int32_t; | |||
72 | typedef unsigned char flex_uint8_t; | 72 | typedef unsigned char flex_uint8_t; |
73 | typedef unsigned short int flex_uint16_t; | 73 | typedef unsigned short int flex_uint16_t; |
74 | typedef unsigned int flex_uint32_t; | 74 | typedef unsigned int flex_uint32_t; |
75 | #endif /* ! C99 */ | ||
75 | 76 | ||
76 | /* Limits of integral types. */ | 77 | /* Limits of integral types. */ |
77 | #ifndef INT8_MIN | 78 | #ifndef INT8_MIN |
@@ -102,8 +103,6 @@ typedef unsigned int flex_uint32_t; | |||
102 | #define UINT32_MAX (4294967295U) | 103 | #define UINT32_MAX (4294967295U) |
103 | #endif | 104 | #endif |
104 | 105 | ||
105 | #endif /* ! C99 */ | ||
106 | |||
107 | #endif /* ! FLEXINT_H */ | 106 | #endif /* ! FLEXINT_H */ |
108 | 107 | ||
109 | #ifdef __cplusplus | 108 | #ifdef __cplusplus |
@@ -160,15 +159,7 @@ typedef unsigned int flex_uint32_t; | |||
160 | 159 | ||
161 | /* Size of default input buffer. */ | 160 | /* Size of default input buffer. */ |
162 | #ifndef YY_BUF_SIZE | 161 | #ifndef YY_BUF_SIZE |
163 | #ifdef __ia64__ | ||
164 | /* On IA-64, the buffer size is 16k, not 8k. | ||
165 | * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. | ||
166 | * Ditto for the __ia64__ case accordingly. | ||
167 | */ | ||
168 | #define YY_BUF_SIZE 32768 | ||
169 | #else | ||
170 | #define YY_BUF_SIZE 16384 | 162 | #define YY_BUF_SIZE 16384 |
171 | #endif /* __ia64__ */ | ||
172 | #endif | 163 | #endif |
173 | 164 | ||
174 | /* The state buf must be large enough to hold one state per character in the main buffer. | 165 | /* The state buf must be large enough to hold one state per character in the main buffer. |
@@ -922,12 +913,7 @@ static int input (void ); | |||
922 | 913 | ||
923 | /* Amount of stuff to slurp up with each read. */ | 914 | /* Amount of stuff to slurp up with each read. */ |
924 | #ifndef YY_READ_BUF_SIZE | 915 | #ifndef YY_READ_BUF_SIZE |
925 | #ifdef __ia64__ | ||
926 | /* On IA-64, the buffer size is 16k, not 8k */ | ||
927 | #define YY_READ_BUF_SIZE 16384 | ||
928 | #else | ||
929 | #define YY_READ_BUF_SIZE 8192 | 916 | #define YY_READ_BUF_SIZE 8192 |
930 | #endif /* __ia64__ */ | ||
931 | #endif | 917 | #endif |
932 | 918 | ||
933 | /* Copy whatever the last rule matched to the standard output. */ | 919 | /* Copy whatever the last rule matched to the standard output. */ |
@@ -1100,7 +1086,7 @@ YY_RULE_SETUP | |||
1100 | case 6: | 1086 | case 6: |
1101 | YY_RULE_SETUP | 1087 | YY_RULE_SETUP |
1102 | { | 1088 | { |
1103 | struct kconf_id *id = kconf_id_lookup(zconftext, zconfleng); | 1089 | const struct kconf_id *id = kconf_id_lookup(zconftext, zconfleng); |
1104 | BEGIN(PARAM); | 1090 | BEGIN(PARAM); |
1105 | current_pos.file = current_file; | 1091 | current_pos.file = current_file; |
1106 | current_pos.lineno = current_file->lineno; | 1092 | current_pos.lineno = current_file->lineno; |
@@ -1175,7 +1161,7 @@ YY_RULE_SETUP | |||
1175 | case 19: | 1161 | case 19: |
1176 | YY_RULE_SETUP | 1162 | YY_RULE_SETUP |
1177 | { | 1163 | { |
1178 | struct kconf_id *id = kconf_id_lookup(zconftext, zconfleng); | 1164 | const struct kconf_id *id = kconf_id_lookup(zconftext, zconfleng); |
1179 | if (id && id->flags & TF_PARAM) { | 1165 | if (id && id->flags & TF_PARAM) { |
1180 | zconflval.id = id; | 1166 | zconflval.id = id; |
1181 | return id->token; | 1167 | return id->token; |
@@ -2073,8 +2059,8 @@ YY_BUFFER_STATE zconf_scan_string (yyconst char * yystr ) | |||
2073 | 2059 | ||
2074 | /** Setup the input buffer state to scan the given bytes. The next call to zconflex() will | 2060 | /** Setup the input buffer state to scan the given bytes. The next call to zconflex() will |
2075 | * scan from a @e copy of @a bytes. | 2061 | * scan from a @e copy of @a bytes. |
2076 | * @param yybytes the byte buffer to scan | 2062 | * @param bytes the byte buffer to scan |
2077 | * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. | 2063 | * @param len the number of bytes in the buffer pointed to by @a bytes. |
2078 | * | 2064 | * |
2079 | * @return the newly allocated buffer state object. | 2065 | * @return the newly allocated buffer state object. |
2080 | */ | 2066 | */ |
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" |