diff options
author | Arnaud Lacombe <lacombar@gmail.com> | 2011-05-23 01:52:59 -0400 |
---|---|---|
committer | Arnaud Lacombe <lacombar@gmail.com> | 2011-06-09 14:04:42 -0400 |
commit | 58ef81c5cf147f35dfa248cffdfc60a415783690 (patch) | |
tree | 3e3dbb24ef7f7d33bdcfd3c548a08e3bd7990508 | |
parent | 880f4499bb4f6883095965bdd3b9237d927e24d8 (diff) |
genksym: regen parser
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
-rw-r--r-- | scripts/genksyms/keywords.hash.c_shipped (renamed from scripts/genksyms/keywords.c_shipped) | 96 | ||||
-rw-r--r-- | scripts/genksyms/lex.lex.c_shipped (renamed from scripts/genksyms/lex.c_shipped) | 359 | ||||
-rw-r--r-- | scripts/genksyms/parse.tab.c_shipped (renamed from scripts/genksyms/parse.c_shipped) | 198 | ||||
-rw-r--r-- | scripts/genksyms/parse.tab.h_shipped (renamed from scripts/genksyms/parse.h_shipped) | 7 |
4 files changed, 74 insertions, 586 deletions
diff --git a/scripts/genksyms/keywords.c_shipped b/scripts/genksyms/keywords.hash.c_shipped index 8060e06798b3..82062607e8c0 100644 --- a/scripts/genksyms/keywords.c_shipped +++ b/scripts/genksyms/keywords.hash.c_shipped | |||
@@ -1,5 +1,5 @@ | |||
1 | /* ANSI-C code produced by gperf version 3.0.4 */ | 1 | /* ANSI-C code produced by gperf version 3.0.4 */ |
2 | /* Command-line: gperf -L ANSI-C -a -C -E -g -H is_reserved_hash -k '1,3,$' -N is_reserved_word -p -t scripts/genksyms/keywords.gperf */ | 2 | /* Command-line: gperf -t --output-file scripts/genksyms/keywords.hash.c_shipped -a -C -E -g -k '1,3,$' -p -t scripts/genksyms/keywords.gperf */ |
3 | 3 | ||
4 | #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ | 4 | #if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \ |
5 | && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ | 5 | && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \ |
@@ -28,11 +28,11 @@ | |||
28 | #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>." |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | #line 1 "scripts/genksyms/keywords.gperf" | 31 | #line 4 "scripts/genksyms/keywords.gperf" |
32 | 32 | ||
33 | struct resword; | 33 | struct resword; |
34 | static const struct resword *is_reserved_word(register const char *str, register unsigned int len); | 34 | static const struct resword *is_reserved_word(register const char *str, register unsigned int len); |
35 | #line 5 "scripts/genksyms/keywords.gperf" | 35 | #line 8 "scripts/genksyms/keywords.gperf" |
36 | struct resword { const char *name; int token; }; | 36 | struct resword { const char *name; int token; }; |
37 | /* maximum key range = 64, duplicates = 0 */ | 37 | /* maximum key range = 64, duplicates = 0 */ |
38 | 38 | ||
@@ -99,108 +99,108 @@ is_reserved_word (register const char *str, register unsigned int len) | |||
99 | static const struct resword wordlist[] = | 99 | static const struct resword wordlist[] = |
100 | { | 100 | { |
101 | {""}, {""}, {""}, | 101 | {""}, {""}, {""}, |
102 | #line 30 "scripts/genksyms/keywords.gperf" | 102 | #line 33 "scripts/genksyms/keywords.gperf" |
103 | {"asm", ASM_KEYW}, | 103 | {"asm", ASM_KEYW}, |
104 | {""}, | 104 | {""}, |
105 | #line 12 "scripts/genksyms/keywords.gperf" | 105 | #line 15 "scripts/genksyms/keywords.gperf" |
106 | {"__asm", ASM_KEYW}, | 106 | {"__asm", ASM_KEYW}, |
107 | {""}, | 107 | {""}, |
108 | #line 13 "scripts/genksyms/keywords.gperf" | 108 | #line 16 "scripts/genksyms/keywords.gperf" |
109 | {"__asm__", ASM_KEYW}, | 109 | {"__asm__", ASM_KEYW}, |
110 | {""}, {""}, | 110 | {""}, {""}, |
111 | #line 56 "scripts/genksyms/keywords.gperf" | 111 | #line 59 "scripts/genksyms/keywords.gperf" |
112 | {"__typeof__", TYPEOF_KEYW}, | 112 | {"__typeof__", TYPEOF_KEYW}, |
113 | {""}, | 113 | {""}, |
114 | #line 16 "scripts/genksyms/keywords.gperf" | 114 | #line 19 "scripts/genksyms/keywords.gperf" |
115 | {"__const", CONST_KEYW}, | 115 | {"__const", CONST_KEYW}, |
116 | #line 15 "scripts/genksyms/keywords.gperf" | 116 | #line 18 "scripts/genksyms/keywords.gperf" |
117 | {"__attribute__", ATTRIBUTE_KEYW}, | 117 | {"__attribute__", ATTRIBUTE_KEYW}, |
118 | #line 17 "scripts/genksyms/keywords.gperf" | 118 | #line 20 "scripts/genksyms/keywords.gperf" |
119 | {"__const__", CONST_KEYW}, | 119 | {"__const__", CONST_KEYW}, |
120 | #line 22 "scripts/genksyms/keywords.gperf" | 120 | #line 25 "scripts/genksyms/keywords.gperf" |
121 | {"__signed__", SIGNED_KEYW}, | 121 | {"__signed__", SIGNED_KEYW}, |
122 | #line 48 "scripts/genksyms/keywords.gperf" | 122 | #line 51 "scripts/genksyms/keywords.gperf" |
123 | {"static", STATIC_KEYW}, | 123 | {"static", STATIC_KEYW}, |
124 | {""}, | 124 | {""}, |
125 | #line 43 "scripts/genksyms/keywords.gperf" | 125 | #line 46 "scripts/genksyms/keywords.gperf" |
126 | {"int", INT_KEYW}, | 126 | {"int", INT_KEYW}, |
127 | #line 36 "scripts/genksyms/keywords.gperf" | 127 | #line 39 "scripts/genksyms/keywords.gperf" |
128 | {"char", CHAR_KEYW}, | 128 | {"char", CHAR_KEYW}, |
129 | #line 37 "scripts/genksyms/keywords.gperf" | 129 | #line 40 "scripts/genksyms/keywords.gperf" |
130 | {"const", CONST_KEYW}, | 130 | {"const", CONST_KEYW}, |
131 | #line 49 "scripts/genksyms/keywords.gperf" | 131 | #line 52 "scripts/genksyms/keywords.gperf" |
132 | {"struct", STRUCT_KEYW}, | 132 | {"struct", STRUCT_KEYW}, |
133 | #line 28 "scripts/genksyms/keywords.gperf" | 133 | #line 31 "scripts/genksyms/keywords.gperf" |
134 | {"__restrict__", RESTRICT_KEYW}, | 134 | {"__restrict__", RESTRICT_KEYW}, |
135 | #line 29 "scripts/genksyms/keywords.gperf" | 135 | #line 32 "scripts/genksyms/keywords.gperf" |
136 | {"restrict", RESTRICT_KEYW}, | 136 | {"restrict", RESTRICT_KEYW}, |
137 | #line 9 "scripts/genksyms/keywords.gperf" | 137 | #line 12 "scripts/genksyms/keywords.gperf" |
138 | {"EXPORT_SYMBOL_GPL_FUTURE", EXPORT_SYMBOL_KEYW}, | 138 | {"EXPORT_SYMBOL_GPL_FUTURE", EXPORT_SYMBOL_KEYW}, |
139 | #line 20 "scripts/genksyms/keywords.gperf" | 139 | #line 23 "scripts/genksyms/keywords.gperf" |
140 | {"__inline__", INLINE_KEYW}, | 140 | {"__inline__", INLINE_KEYW}, |
141 | {""}, | 141 | {""}, |
142 | #line 24 "scripts/genksyms/keywords.gperf" | 142 | #line 27 "scripts/genksyms/keywords.gperf" |
143 | {"__volatile__", VOLATILE_KEYW}, | 143 | {"__volatile__", VOLATILE_KEYW}, |
144 | #line 7 "scripts/genksyms/keywords.gperf" | 144 | #line 10 "scripts/genksyms/keywords.gperf" |
145 | {"EXPORT_SYMBOL", EXPORT_SYMBOL_KEYW}, | 145 | {"EXPORT_SYMBOL", EXPORT_SYMBOL_KEYW}, |
146 | #line 27 "scripts/genksyms/keywords.gperf" | 146 | #line 30 "scripts/genksyms/keywords.gperf" |
147 | {"_restrict", RESTRICT_KEYW}, | 147 | {"_restrict", RESTRICT_KEYW}, |
148 | {""}, | 148 | {""}, |
149 | #line 14 "scripts/genksyms/keywords.gperf" | 149 | #line 17 "scripts/genksyms/keywords.gperf" |
150 | {"__attribute", ATTRIBUTE_KEYW}, | 150 | {"__attribute", ATTRIBUTE_KEYW}, |
151 | #line 8 "scripts/genksyms/keywords.gperf" | 151 | #line 11 "scripts/genksyms/keywords.gperf" |
152 | {"EXPORT_SYMBOL_GPL", EXPORT_SYMBOL_KEYW}, | 152 | {"EXPORT_SYMBOL_GPL", EXPORT_SYMBOL_KEYW}, |
153 | #line 18 "scripts/genksyms/keywords.gperf" | 153 | #line 21 "scripts/genksyms/keywords.gperf" |
154 | {"__extension__", EXTENSION_KEYW}, | 154 | {"__extension__", EXTENSION_KEYW}, |
155 | #line 39 "scripts/genksyms/keywords.gperf" | 155 | #line 42 "scripts/genksyms/keywords.gperf" |
156 | {"enum", ENUM_KEYW}, | 156 | {"enum", ENUM_KEYW}, |
157 | #line 10 "scripts/genksyms/keywords.gperf" | 157 | #line 13 "scripts/genksyms/keywords.gperf" |
158 | {"EXPORT_UNUSED_SYMBOL", EXPORT_SYMBOL_KEYW}, | 158 | {"EXPORT_UNUSED_SYMBOL", EXPORT_SYMBOL_KEYW}, |
159 | #line 40 "scripts/genksyms/keywords.gperf" | 159 | #line 43 "scripts/genksyms/keywords.gperf" |
160 | {"extern", EXTERN_KEYW}, | 160 | {"extern", EXTERN_KEYW}, |
161 | {""}, | 161 | {""}, |
162 | #line 21 "scripts/genksyms/keywords.gperf" | 162 | #line 24 "scripts/genksyms/keywords.gperf" |
163 | {"__signed", SIGNED_KEYW}, | 163 | {"__signed", SIGNED_KEYW}, |
164 | #line 11 "scripts/genksyms/keywords.gperf" | 164 | #line 14 "scripts/genksyms/keywords.gperf" |
165 | {"EXPORT_UNUSED_SYMBOL_GPL", EXPORT_SYMBOL_KEYW}, | 165 | {"EXPORT_UNUSED_SYMBOL_GPL", EXPORT_SYMBOL_KEYW}, |
166 | #line 51 "scripts/genksyms/keywords.gperf" | 166 | #line 54 "scripts/genksyms/keywords.gperf" |
167 | {"union", UNION_KEYW}, | 167 | {"union", UNION_KEYW}, |
168 | #line 55 "scripts/genksyms/keywords.gperf" | 168 | #line 58 "scripts/genksyms/keywords.gperf" |
169 | {"typeof", TYPEOF_KEYW}, | 169 | {"typeof", TYPEOF_KEYW}, |
170 | #line 50 "scripts/genksyms/keywords.gperf" | 170 | #line 53 "scripts/genksyms/keywords.gperf" |
171 | {"typedef", TYPEDEF_KEYW}, | 171 | {"typedef", TYPEDEF_KEYW}, |
172 | #line 19 "scripts/genksyms/keywords.gperf" | 172 | #line 22 "scripts/genksyms/keywords.gperf" |
173 | {"__inline", INLINE_KEYW}, | 173 | {"__inline", INLINE_KEYW}, |
174 | #line 35 "scripts/genksyms/keywords.gperf" | 174 | #line 38 "scripts/genksyms/keywords.gperf" |
175 | {"auto", AUTO_KEYW}, | 175 | {"auto", AUTO_KEYW}, |
176 | #line 23 "scripts/genksyms/keywords.gperf" | 176 | #line 26 "scripts/genksyms/keywords.gperf" |
177 | {"__volatile", VOLATILE_KEYW}, | 177 | {"__volatile", VOLATILE_KEYW}, |
178 | {""}, {""}, | 178 | {""}, {""}, |
179 | #line 52 "scripts/genksyms/keywords.gperf" | 179 | #line 55 "scripts/genksyms/keywords.gperf" |
180 | {"unsigned", UNSIGNED_KEYW}, | 180 | {"unsigned", UNSIGNED_KEYW}, |
181 | {""}, | 181 | {""}, |
182 | #line 46 "scripts/genksyms/keywords.gperf" | 182 | #line 49 "scripts/genksyms/keywords.gperf" |
183 | {"short", SHORT_KEYW}, | 183 | {"short", SHORT_KEYW}, |
184 | #line 42 "scripts/genksyms/keywords.gperf" | 184 | #line 45 "scripts/genksyms/keywords.gperf" |
185 | {"inline", INLINE_KEYW}, | 185 | {"inline", INLINE_KEYW}, |
186 | {""}, | 186 | {""}, |
187 | #line 54 "scripts/genksyms/keywords.gperf" | 187 | #line 57 "scripts/genksyms/keywords.gperf" |
188 | {"volatile", VOLATILE_KEYW}, | 188 | {"volatile", VOLATILE_KEYW}, |
189 | #line 44 "scripts/genksyms/keywords.gperf" | 189 | #line 47 "scripts/genksyms/keywords.gperf" |
190 | {"long", LONG_KEYW}, | 190 | {"long", LONG_KEYW}, |
191 | #line 26 "scripts/genksyms/keywords.gperf" | 191 | #line 29 "scripts/genksyms/keywords.gperf" |
192 | {"_Bool", BOOL_KEYW}, | 192 | {"_Bool", BOOL_KEYW}, |
193 | {""}, {""}, | 193 | {""}, {""}, |
194 | #line 45 "scripts/genksyms/keywords.gperf" | 194 | #line 48 "scripts/genksyms/keywords.gperf" |
195 | {"register", REGISTER_KEYW}, | 195 | {"register", REGISTER_KEYW}, |
196 | #line 53 "scripts/genksyms/keywords.gperf" | 196 | #line 56 "scripts/genksyms/keywords.gperf" |
197 | {"void", VOID_KEYW}, | 197 | {"void", VOID_KEYW}, |
198 | #line 41 "scripts/genksyms/keywords.gperf" | 198 | #line 44 "scripts/genksyms/keywords.gperf" |
199 | {"float", FLOAT_KEYW}, | 199 | {"float", FLOAT_KEYW}, |
200 | #line 38 "scripts/genksyms/keywords.gperf" | 200 | #line 41 "scripts/genksyms/keywords.gperf" |
201 | {"double", DOUBLE_KEYW}, | 201 | {"double", DOUBLE_KEYW}, |
202 | {""}, {""}, {""}, {""}, | 202 | {""}, {""}, {""}, {""}, |
203 | #line 47 "scripts/genksyms/keywords.gperf" | 203 | #line 50 "scripts/genksyms/keywords.gperf" |
204 | {"signed", SIGNED_KEYW} | 204 | {"signed", SIGNED_KEYW} |
205 | }; | 205 | }; |
206 | 206 | ||
diff --git a/scripts/genksyms/lex.c_shipped b/scripts/genksyms/lex.lex.c_shipped index af4939041e4b..c83cf60410be 100644 --- a/scripts/genksyms/lex.c_shipped +++ b/scripts/genksyms/lex.lex.c_shipped | |||
@@ -1,20 +1,10 @@ | |||
1 | #line 2 "scripts/genksyms/lex.c" | ||
2 | 1 | ||
3 | #line 4 "scripts/genksyms/lex.c" | 2 | #line 3 "scripts/genksyms/lex.lex.c_shipped" |
4 | 3 | ||
5 | #define YY_INT_ALIGNED short int | 4 | #define YY_INT_ALIGNED short int |
6 | 5 | ||
7 | /* A lexical scanner generated by flex */ | 6 | /* A lexical scanner generated by flex */ |
8 | 7 | ||
9 | /* %not-for-header */ | ||
10 | |||
11 | /* %if-c-only */ | ||
12 | /* %if-not-reentrant */ | ||
13 | |||
14 | /* %endif */ | ||
15 | /* %endif */ | ||
16 | /* %ok-for-header */ | ||
17 | |||
18 | #define FLEX_SCANNER | 8 | #define FLEX_SCANNER |
19 | #define YY_FLEX_MAJOR_VERSION 2 | 9 | #define YY_FLEX_MAJOR_VERSION 2 |
20 | #define YY_FLEX_MINOR_VERSION 5 | 10 | #define YY_FLEX_MINOR_VERSION 5 |
@@ -23,32 +13,16 @@ | |||
23 | #define FLEX_BETA | 13 | #define FLEX_BETA |
24 | #endif | 14 | #endif |
25 | 15 | ||
26 | /* %if-c++-only */ | ||
27 | /* %endif */ | ||
28 | |||
29 | /* %if-c-only */ | ||
30 | |||
31 | /* %endif */ | ||
32 | |||
33 | /* %if-c-only */ | ||
34 | |||
35 | /* %endif */ | ||
36 | |||
37 | /* First, we deal with platform-specific or compiler-specific issues. */ | 16 | /* First, we deal with platform-specific or compiler-specific issues. */ |
38 | 17 | ||
39 | /* begin standard C headers. */ | 18 | /* begin standard C headers. */ |
40 | /* %if-c-only */ | ||
41 | #include <stdio.h> | 19 | #include <stdio.h> |
42 | #include <string.h> | 20 | #include <string.h> |
43 | #include <errno.h> | 21 | #include <errno.h> |
44 | #include <stdlib.h> | 22 | #include <stdlib.h> |
45 | /* %endif */ | ||
46 | 23 | ||
47 | /* %if-tables-serialization */ | ||
48 | /* %endif */ | ||
49 | /* end standard C headers. */ | 24 | /* end standard C headers. */ |
50 | 25 | ||
51 | /* %if-c-or-c++ */ | ||
52 | /* flex integer type definitions */ | 26 | /* flex integer type definitions */ |
53 | 27 | ||
54 | #ifndef FLEXINT_H | 28 | #ifndef FLEXINT_H |
@@ -112,11 +86,6 @@ typedef unsigned int flex_uint32_t; | |||
112 | 86 | ||
113 | #endif /* ! FLEXINT_H */ | 87 | #endif /* ! FLEXINT_H */ |
114 | 88 | ||
115 | /* %endif */ | ||
116 | |||
117 | /* %if-c++-only */ | ||
118 | /* %endif */ | ||
119 | |||
120 | #ifdef __cplusplus | 89 | #ifdef __cplusplus |
121 | 90 | ||
122 | /* The "const" storage-class-modifier is valid. */ | 91 | /* The "const" storage-class-modifier is valid. */ |
@@ -138,13 +107,8 @@ typedef unsigned int flex_uint32_t; | |||
138 | #define yyconst | 107 | #define yyconst |
139 | #endif | 108 | #endif |
140 | 109 | ||
141 | /* %not-for-header */ | ||
142 | |||
143 | /* Returned upon end-of-file. */ | 110 | /* Returned upon end-of-file. */ |
144 | #define YY_NULL 0 | 111 | #define YY_NULL 0 |
145 | /* %ok-for-header */ | ||
146 | |||
147 | /* %not-for-header */ | ||
148 | 112 | ||
149 | /* Promotes a possibly negative, possibly signed char to an unsigned | 113 | /* Promotes a possibly negative, possibly signed char to an unsigned |
150 | * integer for use as an array index. If the signed char is negative, | 114 | * integer for use as an array index. If the signed char is negative, |
@@ -152,14 +116,6 @@ typedef unsigned int flex_uint32_t; | |||
152 | * double cast. | 116 | * double cast. |
153 | */ | 117 | */ |
154 | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) | 118 | #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) |
155 | /* %ok-for-header */ | ||
156 | |||
157 | /* %if-reentrant */ | ||
158 | /* %endif */ | ||
159 | |||
160 | /* %if-not-reentrant */ | ||
161 | |||
162 | /* %endif */ | ||
163 | 119 | ||
164 | /* Enter a start condition. This macro really ought to take a parameter, | 120 | /* Enter a start condition. This macro really ought to take a parameter, |
165 | * but we do it the disgusting crufty way forced on us by the ()-less | 121 | * but we do it the disgusting crufty way forced on us by the ()-less |
@@ -196,15 +152,9 @@ typedef unsigned int flex_uint32_t; | |||
196 | typedef struct yy_buffer_state *YY_BUFFER_STATE; | 152 | typedef struct yy_buffer_state *YY_BUFFER_STATE; |
197 | #endif | 153 | #endif |
198 | 154 | ||
199 | /* %if-not-reentrant */ | ||
200 | extern int yyleng; | 155 | extern int yyleng; |
201 | /* %endif */ | ||
202 | 156 | ||
203 | /* %if-c-only */ | ||
204 | /* %if-not-reentrant */ | ||
205 | extern FILE *yyin, *yyout; | 157 | extern FILE *yyin, *yyout; |
206 | /* %endif */ | ||
207 | /* %endif */ | ||
208 | 158 | ||
209 | #define EOB_ACT_CONTINUE_SCAN 0 | 159 | #define EOB_ACT_CONTINUE_SCAN 0 |
210 | #define EOB_ACT_END_OF_FILE 1 | 160 | #define EOB_ACT_END_OF_FILE 1 |
@@ -237,12 +187,7 @@ typedef size_t yy_size_t; | |||
237 | #define YY_STRUCT_YY_BUFFER_STATE | 187 | #define YY_STRUCT_YY_BUFFER_STATE |
238 | struct yy_buffer_state | 188 | struct yy_buffer_state |
239 | { | 189 | { |
240 | /* %if-c-only */ | ||
241 | FILE *yy_input_file; | 190 | FILE *yy_input_file; |
242 | /* %endif */ | ||
243 | |||
244 | /* %if-c++-only */ | ||
245 | /* %endif */ | ||
246 | 191 | ||
247 | char *yy_ch_buf; /* input buffer */ | 192 | char *yy_ch_buf; /* input buffer */ |
248 | char *yy_buf_pos; /* current position in input buffer */ | 193 | char *yy_buf_pos; /* current position in input buffer */ |
@@ -303,19 +248,10 @@ struct yy_buffer_state | |||
303 | }; | 248 | }; |
304 | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ | 249 | #endif /* !YY_STRUCT_YY_BUFFER_STATE */ |
305 | 250 | ||
306 | /* %if-c-only Standard (non-C++) definition */ | ||
307 | /* %not-for-header */ | ||
308 | |||
309 | /* %if-not-reentrant */ | ||
310 | |||
311 | /* Stack of input buffers. */ | 251 | /* Stack of input buffers. */ |
312 | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ | 252 | static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ |
313 | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ | 253 | static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ |
314 | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ | 254 | static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ |
315 | /* %endif */ | ||
316 | /* %ok-for-header */ | ||
317 | |||
318 | /* %endif */ | ||
319 | 255 | ||
320 | /* We provide macros for accessing buffer states in case in the | 256 | /* We provide macros for accessing buffer states in case in the |
321 | * future we want to put the buffer states in a more general | 257 | * future we want to put the buffer states in a more general |
@@ -332,11 +268,6 @@ static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ | |||
332 | */ | 268 | */ |
333 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] | 269 | #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] |
334 | 270 | ||
335 | /* %if-c-only Standard (non-C++) definition */ | ||
336 | |||
337 | /* %if-not-reentrant */ | ||
338 | /* %not-for-header */ | ||
339 | |||
340 | /* yy_hold_char holds the character lost when yytext is formed. */ | 271 | /* yy_hold_char holds the character lost when yytext is formed. */ |
341 | static char yy_hold_char; | 272 | static char yy_hold_char; |
342 | static int yy_n_chars; /* number of characters read into yy_ch_buf */ | 273 | static int yy_n_chars; /* number of characters read into yy_ch_buf */ |
@@ -351,9 +282,6 @@ static int yy_start = 0; /* start state number */ | |||
351 | * instead of setting up a fresh yyin. A bit of a hack ... | 282 | * instead of setting up a fresh yyin. A bit of a hack ... |
352 | */ | 283 | */ |
353 | static int yy_did_buffer_switch_on_eof; | 284 | static int yy_did_buffer_switch_on_eof; |
354 | /* %ok-for-header */ | ||
355 | |||
356 | /* %endif */ | ||
357 | 285 | ||
358 | void yyrestart (FILE *input_file ); | 286 | void yyrestart (FILE *input_file ); |
359 | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); | 287 | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); |
@@ -373,8 +301,6 @@ YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); | |||
373 | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); | 301 | YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); |
374 | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); | 302 | YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); |
375 | 303 | ||
376 | /* %endif */ | ||
377 | |||
378 | void *yyalloc (yy_size_t ); | 304 | void *yyalloc (yy_size_t ); |
379 | void *yyrealloc (void *,yy_size_t ); | 305 | void *yyrealloc (void *,yy_size_t ); |
380 | void yyfree (void * ); | 306 | void yyfree (void * ); |
@@ -403,14 +329,11 @@ void yyfree (void * ); | |||
403 | 329 | ||
404 | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) | 330 | #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) |
405 | 331 | ||
406 | /* %% [1.0] yytext/yyin/yyout/yy_state_type/yylineno etc. def's & init go here */ | ||
407 | /* Begin user sect3 */ | 332 | /* Begin user sect3 */ |
408 | 333 | ||
409 | #define yywrap(n) 1 | 334 | #define yywrap(n) 1 |
410 | #define YY_SKIP_YYWRAP | 335 | #define YY_SKIP_YYWRAP |
411 | 336 | ||
412 | #define FLEX_DEBUG | ||
413 | |||
414 | typedef unsigned char YY_CHAR; | 337 | typedef unsigned char YY_CHAR; |
415 | 338 | ||
416 | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; | 339 | FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; |
@@ -424,28 +347,21 @@ int yylineno = 1; | |||
424 | extern char *yytext; | 347 | extern char *yytext; |
425 | #define yytext_ptr yytext | 348 | #define yytext_ptr yytext |
426 | 349 | ||
427 | /* %if-c-only Standard (non-C++) definition */ | ||
428 | |||
429 | static yy_state_type yy_get_previous_state (void ); | 350 | static yy_state_type yy_get_previous_state (void ); |
430 | static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); | 351 | static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); |
431 | static int yy_get_next_buffer (void ); | 352 | static int yy_get_next_buffer (void ); |
432 | static void yy_fatal_error (yyconst char msg[] ); | 353 | static void yy_fatal_error (yyconst char msg[] ); |
433 | 354 | ||
434 | /* %endif */ | ||
435 | |||
436 | /* Done after the current pattern has been matched and before the | 355 | /* Done after the current pattern has been matched and before the |
437 | * corresponding action - sets up yytext. | 356 | * corresponding action - sets up yytext. |
438 | */ | 357 | */ |
439 | #define YY_DO_BEFORE_ACTION \ | 358 | #define YY_DO_BEFORE_ACTION \ |
440 | (yytext_ptr) = yy_bp; \ | 359 | (yytext_ptr) = yy_bp; \ |
441 | /* %% [2.0] code to fiddle yytext and yyleng for yymore() goes here \ */\ | ||
442 | yyleng = (size_t) (yy_cp - yy_bp); \ | 360 | yyleng = (size_t) (yy_cp - yy_bp); \ |
443 | (yy_hold_char) = *yy_cp; \ | 361 | (yy_hold_char) = *yy_cp; \ |
444 | *yy_cp = '\0'; \ | 362 | *yy_cp = '\0'; \ |
445 | /* %% [3.0] code to copy yytext_ptr to yytext[] goes here, if %array \ */\ | ||
446 | (yy_c_buf_p) = yy_cp; | 363 | (yy_c_buf_p) = yy_cp; |
447 | 364 | ||
448 | /* %% [4.0] data tables for the DFA and the user's section 1 definitions go here */ | ||
449 | #define YY_NUM_RULES 13 | 365 | #define YY_NUM_RULES 13 |
450 | #define YY_END_OF_BUFFER 14 | 366 | #define YY_END_OF_BUFFER 14 |
451 | /* This struct is not used in this scanner, | 367 | /* This struct is not used in this scanner, |
@@ -610,13 +526,7 @@ static yy_state_type yy_last_accepting_state; | |||
610 | static char *yy_last_accepting_cpos; | 526 | static char *yy_last_accepting_cpos; |
611 | 527 | ||
612 | extern int yy_flex_debug; | 528 | extern int yy_flex_debug; |
613 | int yy_flex_debug = 1; | 529 | int yy_flex_debug = 0; |
614 | |||
615 | static yyconst flex_int16_t yy_rule_linenum[13] = | ||
616 | { 0, | ||
617 | 67, 68, 69, 72, 75, 76, 77, 83, 84, 85, | ||
618 | 87, 90 | ||
619 | } ; | ||
620 | 530 | ||
621 | /* The intent behind this definition is that it'll catch | 531 | /* The intent behind this definition is that it'll catch |
622 | * any uses of REJECT which flex missed. | 532 | * any uses of REJECT which flex missed. |
@@ -626,7 +536,6 @@ static yyconst flex_int16_t yy_rule_linenum[13] = | |||
626 | #define YY_MORE_ADJ 0 | 536 | #define YY_MORE_ADJ 0 |
627 | #define YY_RESTORE_YY_MORE_OFFSET | 537 | #define YY_RESTORE_YY_MORE_OFFSET |
628 | char *yytext; | 538 | char *yytext; |
629 | #line 1 "scripts/genksyms/lex.l" | ||
630 | /* Lexical analysis for genksyms. | 539 | /* Lexical analysis for genksyms. |
631 | Copyright 1996, 1997 Linux International. | 540 | Copyright 1996, 1997 Linux International. |
632 | 541 | ||
@@ -648,7 +557,6 @@ char *yytext; | |||
648 | You should have received a copy of the GNU General Public License | 557 | You should have received a copy of the GNU General Public License |
649 | along with this program; if not, write to the Free Software Foundation, | 558 | along with this program; if not, write to the Free Software Foundation, |
650 | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ | 559 | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ |
651 | #line 25 "scripts/genksyms/lex.l" | ||
652 | 560 | ||
653 | #include <limits.h> | 561 | #include <limits.h> |
654 | #include <stdlib.h> | 562 | #include <stdlib.h> |
@@ -656,7 +564,7 @@ char *yytext; | |||
656 | #include <ctype.h> | 564 | #include <ctype.h> |
657 | 565 | ||
658 | #include "genksyms.h" | 566 | #include "genksyms.h" |
659 | #include "parse.h" | 567 | #include "parse.tab.h" |
660 | 568 | ||
661 | /* We've got a two-level lexer here. We let flex do basic tokenization | 569 | /* We've got a two-level lexer here. We let flex do basic tokenization |
662 | and then we categorize those basic tokens in the second stage. */ | 570 | and then we categorize those basic tokens in the second stage. */ |
@@ -664,7 +572,6 @@ char *yytext; | |||
664 | 572 | ||
665 | /* We don't do multiple input files. */ | 573 | /* We don't do multiple input files. */ |
666 | #define YY_NO_INPUT 1 | 574 | #define YY_NO_INPUT 1 |
667 | #line 668 "scripts/genksyms/lex.c" | ||
668 | 575 | ||
669 | #define INITIAL 0 | 576 | #define INITIAL 0 |
670 | 577 | ||
@@ -673,28 +580,15 @@ char *yytext; | |||
673 | * down here because we want the user's section 1 to have been scanned first. | 580 | * down here because we want the user's section 1 to have been scanned first. |
674 | * The user has a chance to override it with an option. | 581 | * The user has a chance to override it with an option. |
675 | */ | 582 | */ |
676 | /* %if-c-only */ | ||
677 | #include <unistd.h> | 583 | #include <unistd.h> |
678 | /* %endif */ | ||
679 | /* %if-c++-only */ | ||
680 | /* %endif */ | ||
681 | #endif | 584 | #endif |
682 | 585 | ||
683 | #ifndef YY_EXTRA_TYPE | 586 | #ifndef YY_EXTRA_TYPE |
684 | #define YY_EXTRA_TYPE void * | 587 | #define YY_EXTRA_TYPE void * |
685 | #endif | 588 | #endif |
686 | 589 | ||
687 | /* %if-c-only Reentrant structure and macros (non-C++). */ | ||
688 | /* %if-reentrant */ | ||
689 | /* %if-c-only */ | ||
690 | |||
691 | static int yy_init_globals (void ); | 590 | static int yy_init_globals (void ); |
692 | 591 | ||
693 | /* %endif */ | ||
694 | /* %if-reentrant */ | ||
695 | /* %endif */ | ||
696 | /* %endif End reentrant structures and macros. */ | ||
697 | |||
698 | /* Accessor methods to globals. | 592 | /* Accessor methods to globals. |
699 | These are made visible to non-reentrant scanners for convenience. */ | 593 | These are made visible to non-reentrant scanners for convenience. */ |
700 | 594 | ||
@@ -724,9 +618,6 @@ int yyget_lineno (void ); | |||
724 | 618 | ||
725 | void yyset_lineno (int line_number ); | 619 | void yyset_lineno (int line_number ); |
726 | 620 | ||
727 | /* %if-bison-bridge */ | ||
728 | /* %endif */ | ||
729 | |||
730 | /* Macros after this point can all be overridden by user definitions in | 621 | /* Macros after this point can all be overridden by user definitions in |
731 | * section 1. | 622 | * section 1. |
732 | */ | 623 | */ |
@@ -739,14 +630,8 @@ extern int yywrap (void ); | |||
739 | #endif | 630 | #endif |
740 | #endif | 631 | #endif |
741 | 632 | ||
742 | /* %not-for-header */ | ||
743 | |||
744 | static void yyunput (int c,char *buf_ptr ); | 633 | static void yyunput (int c,char *buf_ptr ); |
745 | 634 | ||
746 | /* %ok-for-header */ | ||
747 | |||
748 | /* %endif */ | ||
749 | |||
750 | #ifndef yytext_ptr | 635 | #ifndef yytext_ptr |
751 | static void yy_flex_strncpy (char *,yyconst char *,int ); | 636 | static void yy_flex_strncpy (char *,yyconst char *,int ); |
752 | #endif | 637 | #endif |
@@ -756,23 +641,15 @@ static int yy_flex_strlen (yyconst char * ); | |||
756 | #endif | 641 | #endif |
757 | 642 | ||
758 | #ifndef YY_NO_INPUT | 643 | #ifndef YY_NO_INPUT |
759 | /* %if-c-only Standard (non-C++) definition */ | ||
760 | /* %not-for-header */ | ||
761 | 644 | ||
762 | #ifdef __cplusplus | 645 | #ifdef __cplusplus |
763 | static int yyinput (void ); | 646 | static int yyinput (void ); |
764 | #else | 647 | #else |
765 | static int input (void ); | 648 | static int input (void ); |
766 | #endif | 649 | #endif |
767 | /* %ok-for-header */ | ||
768 | 650 | ||
769 | /* %endif */ | ||
770 | #endif | 651 | #endif |
771 | 652 | ||
772 | /* %if-c-only */ | ||
773 | |||
774 | /* %endif */ | ||
775 | |||
776 | /* Amount of stuff to slurp up with each read. */ | 653 | /* Amount of stuff to slurp up with each read. */ |
777 | #ifndef YY_READ_BUF_SIZE | 654 | #ifndef YY_READ_BUF_SIZE |
778 | #define YY_READ_BUF_SIZE 8192 | 655 | #define YY_READ_BUF_SIZE 8192 |
@@ -780,14 +657,10 @@ static int input (void ); | |||
780 | 657 | ||
781 | /* Copy whatever the last rule matched to the standard output. */ | 658 | /* Copy whatever the last rule matched to the standard output. */ |
782 | #ifndef ECHO | 659 | #ifndef ECHO |
783 | /* %if-c-only Standard (non-C++) definition */ | ||
784 | /* This used to be an fputs(), but since the string might contain NUL's, | 660 | /* This used to be an fputs(), but since the string might contain NUL's, |
785 | * we now use fwrite(). | 661 | * we now use fwrite(). |
786 | */ | 662 | */ |
787 | #define ECHO fwrite( yytext, yyleng, 1, yyout ) | 663 | #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) |
788 | /* %endif */ | ||
789 | /* %if-c++-only C++ definition */ | ||
790 | /* %endif */ | ||
791 | #endif | 664 | #endif |
792 | 665 | ||
793 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, | 666 | /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, |
@@ -795,11 +668,10 @@ static int input (void ); | |||
795 | */ | 668 | */ |
796 | #ifndef YY_INPUT | 669 | #ifndef YY_INPUT |
797 | #define YY_INPUT(buf,result,max_size) \ | 670 | #define YY_INPUT(buf,result,max_size) \ |
798 | /* %% [5.0] fread()/read() definition of YY_INPUT goes here unless we're doing C++ \ */\ | ||
799 | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ | 671 | if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ |
800 | { \ | 672 | { \ |
801 | int c = '*'; \ | 673 | int c = '*'; \ |
802 | int n; \ | 674 | unsigned n; \ |
803 | for ( n = 0; n < max_size && \ | 675 | for ( n = 0; n < max_size && \ |
804 | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ | 676 | (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ |
805 | buf[n] = (char) c; \ | 677 | buf[n] = (char) c; \ |
@@ -824,8 +696,6 @@ static int input (void ); | |||
824 | } \ | 696 | } \ |
825 | }\ | 697 | }\ |
826 | \ | 698 | \ |
827 | /* %if-c++-only C++ definition \ */\ | ||
828 | /* %endif */ | ||
829 | 699 | ||
830 | #endif | 700 | #endif |
831 | 701 | ||
@@ -844,39 +714,20 @@ static int input (void ); | |||
844 | 714 | ||
845 | /* Report a fatal error. */ | 715 | /* Report a fatal error. */ |
846 | #ifndef YY_FATAL_ERROR | 716 | #ifndef YY_FATAL_ERROR |
847 | /* %if-c-only */ | ||
848 | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) | 717 | #define YY_FATAL_ERROR(msg) yy_fatal_error( msg ) |
849 | /* %endif */ | ||
850 | /* %if-c++-only */ | ||
851 | /* %endif */ | ||
852 | #endif | 718 | #endif |
853 | 719 | ||
854 | /* %if-tables-serialization structures and prototypes */ | ||
855 | /* %not-for-header */ | ||
856 | |||
857 | /* %ok-for-header */ | ||
858 | |||
859 | /* %not-for-header */ | ||
860 | |||
861 | /* %tables-yydmap generated elements */ | ||
862 | /* %endif */ | ||
863 | /* end tables serialization structures and prototypes */ | 720 | /* end tables serialization structures and prototypes */ |
864 | 721 | ||
865 | /* %ok-for-header */ | ||
866 | |||
867 | /* Default declaration of generated scanner - a define so the user can | 722 | /* Default declaration of generated scanner - a define so the user can |
868 | * easily add parameters. | 723 | * easily add parameters. |
869 | */ | 724 | */ |
870 | #ifndef YY_DECL | 725 | #ifndef YY_DECL |
871 | #define YY_DECL_IS_OURS 1 | 726 | #define YY_DECL_IS_OURS 1 |
872 | /* %if-c-only Standard (non-C++) definition */ | ||
873 | 727 | ||
874 | extern int yylex (void); | 728 | extern int yylex (void); |
875 | 729 | ||
876 | #define YY_DECL int yylex (void) | 730 | #define YY_DECL int yylex (void) |
877 | /* %endif */ | ||
878 | /* %if-c++-only C++ definition */ | ||
879 | /* %endif */ | ||
880 | #endif /* !YY_DECL */ | 731 | #endif /* !YY_DECL */ |
881 | 732 | ||
882 | /* Code executed at the beginning of each rule, after yytext and yyleng | 733 | /* Code executed at the beginning of each rule, after yytext and yyleng |
@@ -891,15 +742,12 @@ extern int yylex (void); | |||
891 | #define YY_BREAK break; | 742 | #define YY_BREAK break; |
892 | #endif | 743 | #endif |
893 | 744 | ||
894 | /* %% [6.0] YY_RULE_SETUP definition goes here */ | ||
895 | #define YY_RULE_SETUP \ | 745 | #define YY_RULE_SETUP \ |
896 | if ( yyleng > 0 ) \ | 746 | if ( yyleng > 0 ) \ |
897 | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ | 747 | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = \ |
898 | (yytext[yyleng - 1] == '\n'); \ | 748 | (yytext[yyleng - 1] == '\n'); \ |
899 | YY_USER_ACTION | 749 | YY_USER_ACTION |
900 | 750 | ||
901 | /* %not-for-header */ | ||
902 | |||
903 | /** The main scanner function which does all the work. | 751 | /** The main scanner function which does all the work. |
904 | */ | 752 | */ |
905 | YY_DECL | 753 | YY_DECL |
@@ -908,13 +756,7 @@ YY_DECL | |||
908 | register char *yy_cp, *yy_bp; | 756 | register char *yy_cp, *yy_bp; |
909 | register int yy_act; | 757 | register int yy_act; |
910 | 758 | ||
911 | /* %% [7.0] user's declarations go here */ | ||
912 | #line 63 "scripts/genksyms/lex.l" | ||
913 | |||
914 | |||
915 | |||
916 | /* Keep track of our location in the original source files. */ | 759 | /* Keep track of our location in the original source files. */ |
917 | #line 918 "scripts/genksyms/lex.c" | ||
918 | 760 | ||
919 | if ( !(yy_init) ) | 761 | if ( !(yy_init) ) |
920 | { | 762 | { |
@@ -928,18 +770,10 @@ YY_DECL | |||
928 | (yy_start) = 1; /* first start state */ | 770 | (yy_start) = 1; /* first start state */ |
929 | 771 | ||
930 | if ( ! yyin ) | 772 | if ( ! yyin ) |
931 | /* %if-c-only */ | ||
932 | yyin = stdin; | 773 | yyin = stdin; |
933 | /* %endif */ | ||
934 | /* %if-c++-only */ | ||
935 | /* %endif */ | ||
936 | 774 | ||
937 | if ( ! yyout ) | 775 | if ( ! yyout ) |
938 | /* %if-c-only */ | ||
939 | yyout = stdout; | 776 | yyout = stdout; |
940 | /* %endif */ | ||
941 | /* %if-c++-only */ | ||
942 | /* %endif */ | ||
943 | 777 | ||
944 | if ( ! YY_CURRENT_BUFFER ) { | 778 | if ( ! YY_CURRENT_BUFFER ) { |
945 | yyensure_buffer_stack (); | 779 | yyensure_buffer_stack (); |
@@ -952,7 +786,6 @@ YY_DECL | |||
952 | 786 | ||
953 | while ( 1 ) /* loops until end-of-file is reached */ | 787 | while ( 1 ) /* loops until end-of-file is reached */ |
954 | { | 788 | { |
955 | /* %% [8.0] yymore()-related code goes here */ | ||
956 | yy_cp = (yy_c_buf_p); | 789 | yy_cp = (yy_c_buf_p); |
957 | 790 | ||
958 | /* Support of yytext. */ | 791 | /* Support of yytext. */ |
@@ -963,7 +796,6 @@ YY_DECL | |||
963 | */ | 796 | */ |
964 | yy_bp = yy_cp; | 797 | yy_bp = yy_cp; |
965 | 798 | ||
966 | /* %% [9.0] code to set up and find next match goes here */ | ||
967 | yy_current_state = (yy_start); | 799 | yy_current_state = (yy_start); |
968 | yy_current_state += YY_AT_BOL(); | 800 | yy_current_state += YY_AT_BOL(); |
969 | yy_match: | 801 | yy_match: |
@@ -987,7 +819,6 @@ yy_match: | |||
987 | while ( yy_base[yy_current_state] != 266 ); | 819 | while ( yy_base[yy_current_state] != 266 ); |
988 | 820 | ||
989 | yy_find_action: | 821 | yy_find_action: |
990 | /* %% [10.0] code to find the action number goes here */ | ||
991 | yy_act = yy_accept[yy_current_state]; | 822 | yy_act = yy_accept[yy_current_state]; |
992 | if ( yy_act == 0 ) | 823 | if ( yy_act == 0 ) |
993 | { /* have to back up */ | 824 | { /* have to back up */ |
@@ -998,30 +829,10 @@ yy_find_action: | |||
998 | 829 | ||
999 | YY_DO_BEFORE_ACTION; | 830 | YY_DO_BEFORE_ACTION; |
1000 | 831 | ||
1001 | /* %% [11.0] code for yylineno update goes here */ | ||
1002 | |||
1003 | do_action: /* This label is used only to access EOF actions. */ | 832 | do_action: /* This label is used only to access EOF actions. */ |
1004 | 833 | ||
1005 | /* %% [12.0] debug code goes here */ | ||
1006 | if ( yy_flex_debug ) | ||
1007 | { | ||
1008 | if ( yy_act == 0 ) | ||
1009 | fprintf( stderr, "--scanner backing up\n" ); | ||
1010 | else if ( yy_act < 13 ) | ||
1011 | fprintf( stderr, "--accepting rule at line %ld (\"%s\")\n", | ||
1012 | (long)yy_rule_linenum[yy_act], yytext ); | ||
1013 | else if ( yy_act == 13 ) | ||
1014 | fprintf( stderr, "--accepting default rule (\"%s\")\n", | ||
1015 | yytext ); | ||
1016 | else if ( yy_act == 14 ) | ||
1017 | fprintf( stderr, "--(end of buffer or a NUL)\n" ); | ||
1018 | else | ||
1019 | fprintf( stderr, "--EOF (start condition %d)\n", YY_START ); | ||
1020 | } | ||
1021 | |||
1022 | switch ( yy_act ) | 834 | switch ( yy_act ) |
1023 | { /* beginning of action switch */ | 835 | { /* beginning of action switch */ |
1024 | /* %% [13.0] actions go here */ | ||
1025 | case 0: /* must back up */ | 836 | case 0: /* must back up */ |
1026 | /* undo the effects of YY_DO_BEFORE_ACTION */ | 837 | /* undo the effects of YY_DO_BEFORE_ACTION */ |
1027 | *yy_cp = (yy_hold_char); | 838 | *yy_cp = (yy_hold_char); |
@@ -1032,42 +843,35 @@ do_action: /* This label is used only to access EOF actions. */ | |||
1032 | case 1: | 843 | case 1: |
1033 | /* rule 1 can match eol */ | 844 | /* rule 1 can match eol */ |
1034 | YY_RULE_SETUP | 845 | YY_RULE_SETUP |
1035 | #line 67 "scripts/genksyms/lex.l" | ||
1036 | return FILENAME; | 846 | return FILENAME; |
1037 | YY_BREAK | 847 | YY_BREAK |
1038 | case 2: | 848 | case 2: |
1039 | /* rule 2 can match eol */ | 849 | /* rule 2 can match eol */ |
1040 | YY_RULE_SETUP | 850 | YY_RULE_SETUP |
1041 | #line 68 "scripts/genksyms/lex.l" | ||
1042 | cur_line++; | 851 | cur_line++; |
1043 | YY_BREAK | 852 | YY_BREAK |
1044 | case 3: | 853 | case 3: |
1045 | /* rule 3 can match eol */ | 854 | /* rule 3 can match eol */ |
1046 | YY_RULE_SETUP | 855 | YY_RULE_SETUP |
1047 | #line 69 "scripts/genksyms/lex.l" | ||
1048 | cur_line++; | 856 | cur_line++; |
1049 | YY_BREAK | 857 | YY_BREAK |
1050 | /* Ignore all other whitespace. */ | 858 | /* Ignore all other whitespace. */ |
1051 | case 4: | 859 | case 4: |
1052 | YY_RULE_SETUP | 860 | YY_RULE_SETUP |
1053 | #line 72 "scripts/genksyms/lex.l" | ||
1054 | ; | 861 | ; |
1055 | YY_BREAK | 862 | YY_BREAK |
1056 | case 5: | 863 | case 5: |
1057 | /* rule 5 can match eol */ | 864 | /* rule 5 can match eol */ |
1058 | YY_RULE_SETUP | 865 | YY_RULE_SETUP |
1059 | #line 75 "scripts/genksyms/lex.l" | ||
1060 | return STRING; | 866 | return STRING; |
1061 | YY_BREAK | 867 | YY_BREAK |
1062 | case 6: | 868 | case 6: |
1063 | /* rule 6 can match eol */ | 869 | /* rule 6 can match eol */ |
1064 | YY_RULE_SETUP | 870 | YY_RULE_SETUP |
1065 | #line 76 "scripts/genksyms/lex.l" | ||
1066 | return CHAR; | 871 | return CHAR; |
1067 | YY_BREAK | 872 | YY_BREAK |
1068 | case 7: | 873 | case 7: |
1069 | YY_RULE_SETUP | 874 | YY_RULE_SETUP |
1070 | #line 77 "scripts/genksyms/lex.l" | ||
1071 | return IDENT; | 875 | return IDENT; |
1072 | YY_BREAK | 876 | YY_BREAK |
1073 | /* The Pedant requires that the other C multi-character tokens be | 877 | /* The Pedant requires that the other C multi-character tokens be |
@@ -1076,36 +880,29 @@ return IDENT; | |||
1076 | around them properly. */ | 880 | around them properly. */ |
1077 | case 8: | 881 | case 8: |
1078 | YY_RULE_SETUP | 882 | YY_RULE_SETUP |
1079 | #line 83 "scripts/genksyms/lex.l" | ||
1080 | return OTHER; | 883 | return OTHER; |
1081 | YY_BREAK | 884 | YY_BREAK |
1082 | case 9: | 885 | case 9: |
1083 | YY_RULE_SETUP | 886 | YY_RULE_SETUP |
1084 | #line 84 "scripts/genksyms/lex.l" | ||
1085 | return INT; | 887 | return INT; |
1086 | YY_BREAK | 888 | YY_BREAK |
1087 | case 10: | 889 | case 10: |
1088 | YY_RULE_SETUP | 890 | YY_RULE_SETUP |
1089 | #line 85 "scripts/genksyms/lex.l" | ||
1090 | return REAL; | 891 | return REAL; |
1091 | YY_BREAK | 892 | YY_BREAK |
1092 | case 11: | 893 | case 11: |
1093 | YY_RULE_SETUP | 894 | YY_RULE_SETUP |
1094 | #line 87 "scripts/genksyms/lex.l" | ||
1095 | return DOTS; | 895 | return DOTS; |
1096 | YY_BREAK | 896 | YY_BREAK |
1097 | /* All other tokens are single characters. */ | 897 | /* All other tokens are single characters. */ |
1098 | case 12: | 898 | case 12: |
1099 | YY_RULE_SETUP | 899 | YY_RULE_SETUP |
1100 | #line 90 "scripts/genksyms/lex.l" | ||
1101 | return yytext[0]; | 900 | return yytext[0]; |
1102 | YY_BREAK | 901 | YY_BREAK |
1103 | case 13: | 902 | case 13: |
1104 | YY_RULE_SETUP | 903 | YY_RULE_SETUP |
1105 | #line 93 "scripts/genksyms/lex.l" | ||
1106 | ECHO; | 904 | ECHO; |
1107 | YY_BREAK | 905 | YY_BREAK |
1108 | #line 1109 "scripts/genksyms/lex.c" | ||
1109 | case YY_STATE_EOF(INITIAL): | 906 | case YY_STATE_EOF(INITIAL): |
1110 | yyterminate(); | 907 | yyterminate(); |
1111 | 908 | ||
@@ -1172,7 +969,6 @@ case YY_STATE_EOF(INITIAL): | |||
1172 | 969 | ||
1173 | else | 970 | else |
1174 | { | 971 | { |
1175 | /* %% [14.0] code to do back-up for compressed tables and set up yy_cp goes here */ | ||
1176 | yy_cp = (yy_c_buf_p); | 972 | yy_cp = (yy_c_buf_p); |
1177 | goto yy_find_action; | 973 | goto yy_find_action; |
1178 | } | 974 | } |
@@ -1238,14 +1034,6 @@ case YY_STATE_EOF(INITIAL): | |||
1238 | } /* end of action switch */ | 1034 | } /* end of action switch */ |
1239 | } /* end of scanning one token */ | 1035 | } /* end of scanning one token */ |
1240 | } /* end of yylex */ | 1036 | } /* end of yylex */ |
1241 | /* %ok-for-header */ | ||
1242 | |||
1243 | /* %if-c++-only */ | ||
1244 | /* %not-for-header */ | ||
1245 | |||
1246 | /* %ok-for-header */ | ||
1247 | |||
1248 | /* %endif */ | ||
1249 | 1037 | ||
1250 | /* yy_get_next_buffer - try to read in a new buffer | 1038 | /* yy_get_next_buffer - try to read in a new buffer |
1251 | * | 1039 | * |
@@ -1254,11 +1042,7 @@ case YY_STATE_EOF(INITIAL): | |||
1254 | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position | 1042 | * EOB_ACT_CONTINUE_SCAN - continue scanning from current position |
1255 | * EOB_ACT_END_OF_FILE - end of file | 1043 | * EOB_ACT_END_OF_FILE - end of file |
1256 | */ | 1044 | */ |
1257 | /* %if-c-only */ | ||
1258 | static int yy_get_next_buffer (void) | 1045 | static int yy_get_next_buffer (void) |
1259 | /* %endif */ | ||
1260 | /* %if-c++-only */ | ||
1261 | /* %endif */ | ||
1262 | { | 1046 | { |
1263 | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; | 1047 | register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; |
1264 | register char *source = (yytext_ptr); | 1048 | register char *source = (yytext_ptr); |
@@ -1392,24 +1176,16 @@ static int yy_get_next_buffer (void) | |||
1392 | 1176 | ||
1393 | /* yy_get_previous_state - get the state just before the EOB char was reached */ | 1177 | /* yy_get_previous_state - get the state just before the EOB char was reached */ |
1394 | 1178 | ||
1395 | /* %if-c-only */ | ||
1396 | /* %not-for-header */ | ||
1397 | |||
1398 | static yy_state_type yy_get_previous_state (void) | 1179 | static yy_state_type yy_get_previous_state (void) |
1399 | /* %endif */ | ||
1400 | /* %if-c++-only */ | ||
1401 | /* %endif */ | ||
1402 | { | 1180 | { |
1403 | register yy_state_type yy_current_state; | 1181 | register yy_state_type yy_current_state; |
1404 | register char *yy_cp; | 1182 | register char *yy_cp; |
1405 | 1183 | ||
1406 | /* %% [15.0] code to get the start state into yy_current_state goes here */ | ||
1407 | yy_current_state = (yy_start); | 1184 | yy_current_state = (yy_start); |
1408 | yy_current_state += YY_AT_BOL(); | 1185 | yy_current_state += YY_AT_BOL(); |
1409 | 1186 | ||
1410 | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) | 1187 | for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) |
1411 | { | 1188 | { |
1412 | /* %% [16.0] code to find the next state goes here */ | ||
1413 | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); | 1189 | register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); |
1414 | if ( yy_accept[yy_current_state] ) | 1190 | if ( yy_accept[yy_current_state] ) |
1415 | { | 1191 | { |
@@ -1433,15 +1209,10 @@ static int yy_get_next_buffer (void) | |||
1433 | * synopsis | 1209 | * synopsis |
1434 | * next_state = yy_try_NUL_trans( current_state ); | 1210 | * next_state = yy_try_NUL_trans( current_state ); |
1435 | */ | 1211 | */ |
1436 | /* %if-c-only */ | ||
1437 | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) | 1212 | static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) |
1438 | /* %endif */ | ||
1439 | /* %if-c++-only */ | ||
1440 | /* %endif */ | ||
1441 | { | 1213 | { |
1442 | register int yy_is_jam; | 1214 | register int yy_is_jam; |
1443 | /* %% [17.0] code to find the next state, and perhaps do backing up, goes here */ | 1215 | register char *yy_cp = (yy_c_buf_p); |
1444 | register char *yy_cp = (yy_c_buf_p); | ||
1445 | 1216 | ||
1446 | register YY_CHAR yy_c = 1; | 1217 | register YY_CHAR yy_c = 1; |
1447 | if ( yy_accept[yy_current_state] ) | 1218 | if ( yy_accept[yy_current_state] ) |
@@ -1461,12 +1232,7 @@ static int yy_get_next_buffer (void) | |||
1461 | return yy_is_jam ? 0 : yy_current_state; | 1232 | return yy_is_jam ? 0 : yy_current_state; |
1462 | } | 1233 | } |
1463 | 1234 | ||
1464 | /* %if-c-only */ | ||
1465 | |||
1466 | static void yyunput (int c, register char * yy_bp ) | 1235 | static void yyunput (int c, register char * yy_bp ) |
1467 | /* %endif */ | ||
1468 | /* %if-c++-only */ | ||
1469 | /* %endif */ | ||
1470 | { | 1236 | { |
1471 | register char *yy_cp; | 1237 | register char *yy_cp; |
1472 | 1238 | ||
@@ -1498,17 +1264,11 @@ static int yy_get_next_buffer (void) | |||
1498 | 1264 | ||
1499 | *--yy_cp = (char) c; | 1265 | *--yy_cp = (char) c; |
1500 | 1266 | ||
1501 | /* %% [18.0] update yylineno here */ | ||
1502 | |||
1503 | (yytext_ptr) = yy_bp; | 1267 | (yytext_ptr) = yy_bp; |
1504 | (yy_hold_char) = *yy_cp; | 1268 | (yy_hold_char) = *yy_cp; |
1505 | (yy_c_buf_p) = yy_cp; | 1269 | (yy_c_buf_p) = yy_cp; |
1506 | } | 1270 | } |
1507 | /* %if-c-only */ | ||
1508 | |||
1509 | /* %endif */ | ||
1510 | 1271 | ||
1511 | /* %if-c-only */ | ||
1512 | #ifndef YY_NO_INPUT | 1272 | #ifndef YY_NO_INPUT |
1513 | #ifdef __cplusplus | 1273 | #ifdef __cplusplus |
1514 | static int yyinput (void) | 1274 | static int yyinput (void) |
@@ -1516,9 +1276,6 @@ static int yy_get_next_buffer (void) | |||
1516 | static int input (void) | 1276 | static int input (void) |
1517 | #endif | 1277 | #endif |
1518 | 1278 | ||
1519 | /* %endif */ | ||
1520 | /* %if-c++-only */ | ||
1521 | /* %endif */ | ||
1522 | { | 1279 | { |
1523 | int c; | 1280 | int c; |
1524 | 1281 | ||
@@ -1582,25 +1339,18 @@ static int yy_get_next_buffer (void) | |||
1582 | *(yy_c_buf_p) = '\0'; /* preserve yytext */ | 1339 | *(yy_c_buf_p) = '\0'; /* preserve yytext */ |
1583 | (yy_hold_char) = *++(yy_c_buf_p); | 1340 | (yy_hold_char) = *++(yy_c_buf_p); |
1584 | 1341 | ||
1585 | /* %% [19.0] update BOL and yylineno */ | ||
1586 | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); | 1342 | YY_CURRENT_BUFFER_LVALUE->yy_at_bol = (c == '\n'); |
1587 | 1343 | ||
1588 | return c; | 1344 | return c; |
1589 | } | 1345 | } |
1590 | /* %if-c-only */ | ||
1591 | #endif /* ifndef YY_NO_INPUT */ | 1346 | #endif /* ifndef YY_NO_INPUT */ |
1592 | /* %endif */ | ||
1593 | 1347 | ||
1594 | /** Immediately switch to a different input stream. | 1348 | /** Immediately switch to a different input stream. |
1595 | * @param input_file A readable stream. | 1349 | * @param input_file A readable stream. |
1596 | * | 1350 | * |
1597 | * @note This function does not reset the start condition to @c INITIAL . | 1351 | * @note This function does not reset the start condition to @c INITIAL . |
1598 | */ | 1352 | */ |
1599 | /* %if-c-only */ | ||
1600 | void yyrestart (FILE * input_file ) | 1353 | void yyrestart (FILE * input_file ) |
1601 | /* %endif */ | ||
1602 | /* %if-c++-only */ | ||
1603 | /* %endif */ | ||
1604 | { | 1354 | { |
1605 | 1355 | ||
1606 | if ( ! YY_CURRENT_BUFFER ){ | 1356 | if ( ! YY_CURRENT_BUFFER ){ |
@@ -1617,11 +1367,7 @@ static int yy_get_next_buffer (void) | |||
1617 | * @param new_buffer The new input buffer. | 1367 | * @param new_buffer The new input buffer. |
1618 | * | 1368 | * |
1619 | */ | 1369 | */ |
1620 | /* %if-c-only */ | ||
1621 | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) | 1370 | void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) |
1622 | /* %endif */ | ||
1623 | /* %if-c++-only */ | ||
1624 | /* %endif */ | ||
1625 | { | 1371 | { |
1626 | 1372 | ||
1627 | /* TODO. We should be able to replace this entire function body | 1373 | /* TODO. We should be able to replace this entire function body |
@@ -1652,11 +1398,7 @@ static int yy_get_next_buffer (void) | |||
1652 | (yy_did_buffer_switch_on_eof) = 1; | 1398 | (yy_did_buffer_switch_on_eof) = 1; |
1653 | } | 1399 | } |
1654 | 1400 | ||
1655 | /* %if-c-only */ | ||
1656 | static void yy_load_buffer_state (void) | 1401 | static void yy_load_buffer_state (void) |
1657 | /* %endif */ | ||
1658 | /* %if-c++-only */ | ||
1659 | /* %endif */ | ||
1660 | { | 1402 | { |
1661 | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; | 1403 | (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; |
1662 | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; | 1404 | (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; |
@@ -1670,11 +1412,7 @@ static void yy_load_buffer_state (void) | |||
1670 | * | 1412 | * |
1671 | * @return the allocated buffer state. | 1413 | * @return the allocated buffer state. |
1672 | */ | 1414 | */ |
1673 | /* %if-c-only */ | ||
1674 | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) | 1415 | YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) |
1675 | /* %endif */ | ||
1676 | /* %if-c++-only */ | ||
1677 | /* %endif */ | ||
1678 | { | 1416 | { |
1679 | YY_BUFFER_STATE b; | 1417 | YY_BUFFER_STATE b; |
1680 | 1418 | ||
@@ -1702,11 +1440,7 @@ static void yy_load_buffer_state (void) | |||
1702 | * @param b a buffer created with yy_create_buffer() | 1440 | * @param b a buffer created with yy_create_buffer() |
1703 | * | 1441 | * |
1704 | */ | 1442 | */ |
1705 | /* %if-c-only */ | ||
1706 | void yy_delete_buffer (YY_BUFFER_STATE b ) | 1443 | void yy_delete_buffer (YY_BUFFER_STATE b ) |
1707 | /* %endif */ | ||
1708 | /* %if-c++-only */ | ||
1709 | /* %endif */ | ||
1710 | { | 1444 | { |
1711 | 1445 | ||
1712 | if ( ! b ) | 1446 | if ( ! b ) |
@@ -1721,26 +1455,15 @@ static void yy_load_buffer_state (void) | |||
1721 | yyfree((void *) b ); | 1455 | yyfree((void *) b ); |
1722 | } | 1456 | } |
1723 | 1457 | ||
1724 | /* %if-c-only */ | ||
1725 | |||
1726 | #ifndef __cplusplus | 1458 | #ifndef __cplusplus |
1727 | extern int isatty (int ); | 1459 | extern int isatty (int ); |
1728 | #endif /* __cplusplus */ | 1460 | #endif /* __cplusplus */ |
1729 | 1461 | ||
1730 | /* %endif */ | ||
1731 | |||
1732 | /* %if-c++-only */ | ||
1733 | /* %endif */ | ||
1734 | |||
1735 | /* Initializes or reinitializes a buffer. | 1462 | /* Initializes or reinitializes a buffer. |
1736 | * This function is sometimes called more than once on the same buffer, | 1463 | * This function is sometimes called more than once on the same buffer, |
1737 | * such as during a yyrestart() or at EOF. | 1464 | * such as during a yyrestart() or at EOF. |
1738 | */ | 1465 | */ |
1739 | /* %if-c-only */ | ||
1740 | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) | 1466 | static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) |
1741 | /* %endif */ | ||
1742 | /* %if-c++-only */ | ||
1743 | /* %endif */ | ||
1744 | 1467 | ||
1745 | { | 1468 | { |
1746 | int oerrno = errno; | 1469 | int oerrno = errno; |
@@ -1759,13 +1482,8 @@ extern int isatty (int ); | |||
1759 | b->yy_bs_column = 0; | 1482 | b->yy_bs_column = 0; |
1760 | } | 1483 | } |
1761 | 1484 | ||
1762 | /* %if-c-only */ | ||
1763 | |||
1764 | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; | 1485 | b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; |
1765 | 1486 | ||
1766 | /* %endif */ | ||
1767 | /* %if-c++-only */ | ||
1768 | /* %endif */ | ||
1769 | errno = oerrno; | 1487 | errno = oerrno; |
1770 | } | 1488 | } |
1771 | 1489 | ||
@@ -1773,11 +1491,7 @@ extern int isatty (int ); | |||
1773 | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. | 1491 | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
1774 | * | 1492 | * |
1775 | */ | 1493 | */ |
1776 | /* %if-c-only */ | ||
1777 | void yy_flush_buffer (YY_BUFFER_STATE b ) | 1494 | void yy_flush_buffer (YY_BUFFER_STATE b ) |
1778 | /* %endif */ | ||
1779 | /* %if-c++-only */ | ||
1780 | /* %endif */ | ||
1781 | { | 1495 | { |
1782 | if ( ! b ) | 1496 | if ( ! b ) |
1783 | return; | 1497 | return; |
@@ -1800,18 +1514,13 @@ extern int isatty (int ); | |||
1800 | yy_load_buffer_state( ); | 1514 | yy_load_buffer_state( ); |
1801 | } | 1515 | } |
1802 | 1516 | ||
1803 | /* %if-c-or-c++ */ | ||
1804 | /** Pushes the new state onto the stack. The new state becomes | 1517 | /** Pushes the new state onto the stack. The new state becomes |
1805 | * the current state. This function will allocate the stack | 1518 | * the current state. This function will allocate the stack |
1806 | * if necessary. | 1519 | * if necessary. |
1807 | * @param new_buffer The new state. | 1520 | * @param new_buffer The new state. |
1808 | * | 1521 | * |
1809 | */ | 1522 | */ |
1810 | /* %if-c-only */ | ||
1811 | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) | 1523 | void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) |
1812 | /* %endif */ | ||
1813 | /* %if-c++-only */ | ||
1814 | /* %endif */ | ||
1815 | { | 1524 | { |
1816 | if (new_buffer == NULL) | 1525 | if (new_buffer == NULL) |
1817 | return; | 1526 | return; |
@@ -1836,18 +1545,12 @@ void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) | |||
1836 | yy_load_buffer_state( ); | 1545 | yy_load_buffer_state( ); |
1837 | (yy_did_buffer_switch_on_eof) = 1; | 1546 | (yy_did_buffer_switch_on_eof) = 1; |
1838 | } | 1547 | } |
1839 | /* %endif */ | ||
1840 | 1548 | ||
1841 | /* %if-c-or-c++ */ | ||
1842 | /** Removes and deletes the top of the stack, if present. | 1549 | /** Removes and deletes the top of the stack, if present. |
1843 | * The next element becomes the new top. | 1550 | * The next element becomes the new top. |
1844 | * | 1551 | * |
1845 | */ | 1552 | */ |
1846 | /* %if-c-only */ | ||
1847 | void yypop_buffer_state (void) | 1553 | void yypop_buffer_state (void) |
1848 | /* %endif */ | ||
1849 | /* %if-c++-only */ | ||
1850 | /* %endif */ | ||
1851 | { | 1554 | { |
1852 | if (!YY_CURRENT_BUFFER) | 1555 | if (!YY_CURRENT_BUFFER) |
1853 | return; | 1556 | return; |
@@ -1862,17 +1565,11 @@ void yypop_buffer_state (void) | |||
1862 | (yy_did_buffer_switch_on_eof) = 1; | 1565 | (yy_did_buffer_switch_on_eof) = 1; |
1863 | } | 1566 | } |
1864 | } | 1567 | } |
1865 | /* %endif */ | ||
1866 | 1568 | ||
1867 | /* %if-c-or-c++ */ | ||
1868 | /* Allocates the stack if it does not exist. | 1569 | /* Allocates the stack if it does not exist. |
1869 | * Guarantees space for at least one push. | 1570 | * Guarantees space for at least one push. |
1870 | */ | 1571 | */ |
1871 | /* %if-c-only */ | ||
1872 | static void yyensure_buffer_stack (void) | 1572 | static void yyensure_buffer_stack (void) |
1873 | /* %endif */ | ||
1874 | /* %if-c++-only */ | ||
1875 | /* %endif */ | ||
1876 | { | 1573 | { |
1877 | int num_to_alloc; | 1574 | int num_to_alloc; |
1878 | 1575 | ||
@@ -1914,9 +1611,7 @@ static void yyensure_buffer_stack (void) | |||
1914 | (yy_buffer_stack_max) = num_to_alloc; | 1611 | (yy_buffer_stack_max) = num_to_alloc; |
1915 | } | 1612 | } |
1916 | } | 1613 | } |
1917 | /* %endif */ | ||
1918 | 1614 | ||
1919 | /* %if-c-only */ | ||
1920 | /** Setup the input buffer state to scan directly from a user-specified character buffer. | 1615 | /** Setup the input buffer state to scan directly from a user-specified character buffer. |
1921 | * @param base the character buffer | 1616 | * @param base the character buffer |
1922 | * @param size the size in bytes of the character buffer | 1617 | * @param size the size in bytes of the character buffer |
@@ -1951,9 +1646,7 @@ YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) | |||
1951 | 1646 | ||
1952 | return b; | 1647 | return b; |
1953 | } | 1648 | } |
1954 | /* %endif */ | ||
1955 | 1649 | ||
1956 | /* %if-c-only */ | ||
1957 | /** Setup the input buffer state to scan a string. The next call to yylex() will | 1650 | /** Setup the input buffer state to scan a string. The next call to yylex() will |
1958 | * scan from a @e copy of @a str. | 1651 | * scan from a @e copy of @a str. |
1959 | * @param yystr a NUL-terminated string to scan | 1652 | * @param yystr a NUL-terminated string to scan |
@@ -1967,9 +1660,7 @@ YY_BUFFER_STATE yy_scan_string (yyconst char * yystr ) | |||
1967 | 1660 | ||
1968 | return yy_scan_bytes(yystr,strlen(yystr) ); | 1661 | return yy_scan_bytes(yystr,strlen(yystr) ); |
1969 | } | 1662 | } |
1970 | /* %endif */ | ||
1971 | 1663 | ||
1972 | /* %if-c-only */ | ||
1973 | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will | 1664 | /** Setup the input buffer state to scan the given bytes. The next call to yylex() will |
1974 | * scan from a @e copy of @a bytes. | 1665 | * scan from a @e copy of @a bytes. |
1975 | * @param bytes the byte buffer to scan | 1666 | * @param bytes the byte buffer to scan |
@@ -2006,21 +1697,16 @@ YY_BUFFER_STATE yy_scan_bytes (yyconst char * yybytes, int _yybytes_len ) | |||
2006 | 1697 | ||
2007 | return b; | 1698 | return b; |
2008 | } | 1699 | } |
2009 | /* %endif */ | ||
2010 | 1700 | ||
2011 | #ifndef YY_EXIT_FAILURE | 1701 | #ifndef YY_EXIT_FAILURE |
2012 | #define YY_EXIT_FAILURE 2 | 1702 | #define YY_EXIT_FAILURE 2 |
2013 | #endif | 1703 | #endif |
2014 | 1704 | ||
2015 | /* %if-c-only */ | ||
2016 | static void yy_fatal_error (yyconst char* msg ) | 1705 | static void yy_fatal_error (yyconst char* msg ) |
2017 | { | 1706 | { |
2018 | (void) fprintf( stderr, "%s\n", msg ); | 1707 | (void) fprintf( stderr, "%s\n", msg ); |
2019 | exit( YY_EXIT_FAILURE ); | 1708 | exit( YY_EXIT_FAILURE ); |
2020 | } | 1709 | } |
2021 | /* %endif */ | ||
2022 | /* %if-c++-only */ | ||
2023 | /* %endif */ | ||
2024 | 1710 | ||
2025 | /* Redefine yyless() so it works in section 3 code. */ | 1711 | /* Redefine yyless() so it works in section 3 code. */ |
2026 | 1712 | ||
@@ -2041,10 +1727,6 @@ static void yy_fatal_error (yyconst char* msg ) | |||
2041 | 1727 | ||
2042 | /* Accessor methods (get/set functions) to struct members. */ | 1728 | /* Accessor methods (get/set functions) to struct members. */ |
2043 | 1729 | ||
2044 | /* %if-c-only */ | ||
2045 | /* %if-reentrant */ | ||
2046 | /* %endif */ | ||
2047 | |||
2048 | /** Get the current line number. | 1730 | /** Get the current line number. |
2049 | * | 1731 | * |
2050 | */ | 1732 | */ |
@@ -2087,9 +1769,6 @@ char *yyget_text (void) | |||
2087 | return yytext; | 1769 | return yytext; |
2088 | } | 1770 | } |
2089 | 1771 | ||
2090 | /* %if-reentrant */ | ||
2091 | /* %endif */ | ||
2092 | |||
2093 | /** Set the current line number. | 1772 | /** Set the current line number. |
2094 | * @param line_number | 1773 | * @param line_number |
2095 | * | 1774 | * |
@@ -2126,14 +1805,6 @@ void yyset_debug (int bdebug ) | |||
2126 | yy_flex_debug = bdebug ; | 1805 | yy_flex_debug = bdebug ; |
2127 | } | 1806 | } |
2128 | 1807 | ||
2129 | /* %endif */ | ||
2130 | |||
2131 | /* %if-reentrant */ | ||
2132 | /* %if-bison-bridge */ | ||
2133 | /* %endif */ | ||
2134 | /* %endif if-c-only */ | ||
2135 | |||
2136 | /* %if-c-only */ | ||
2137 | static int yy_init_globals (void) | 1808 | static int yy_init_globals (void) |
2138 | { | 1809 | { |
2139 | /* Initialization is the same as for the non-reentrant scanner. | 1810 | /* Initialization is the same as for the non-reentrant scanner. |
@@ -2161,9 +1832,7 @@ static int yy_init_globals (void) | |||
2161 | */ | 1832 | */ |
2162 | return 0; | 1833 | return 0; |
2163 | } | 1834 | } |
2164 | /* %endif */ | ||
2165 | 1835 | ||
2166 | /* %if-c-only SNIP! this currently causes conflicts with the c++ scanner */ | ||
2167 | /* yylex_destroy is for both reentrant and non-reentrant scanners. */ | 1836 | /* yylex_destroy is for both reentrant and non-reentrant scanners. */ |
2168 | int yylex_destroy (void) | 1837 | int yylex_destroy (void) |
2169 | { | 1838 | { |
@@ -2183,11 +1852,8 @@ int yylex_destroy (void) | |||
2183 | * yylex() is called, initialization will occur. */ | 1852 | * yylex() is called, initialization will occur. */ |
2184 | yy_init_globals( ); | 1853 | yy_init_globals( ); |
2185 | 1854 | ||
2186 | /* %if-reentrant */ | ||
2187 | /* %endif */ | ||
2188 | return 0; | 1855 | return 0; |
2189 | } | 1856 | } |
2190 | /* %endif */ | ||
2191 | 1857 | ||
2192 | /* | 1858 | /* |
2193 | * Internal utility routines. | 1859 | * Internal utility routines. |
@@ -2235,21 +1901,11 @@ void yyfree (void * ptr ) | |||
2235 | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ | 1901 | free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ |
2236 | } | 1902 | } |
2237 | 1903 | ||
2238 | /* %if-tables-serialization definitions */ | ||
2239 | /* %define-yytables The name for this specific scanner's tables. */ | ||
2240 | #define YYTABLES_NAME "yytables" | 1904 | #define YYTABLES_NAME "yytables" |
2241 | /* %endif */ | ||
2242 | |||
2243 | /* %ok-for-header */ | ||
2244 | |||
2245 | #line 93 "scripts/genksyms/lex.l" | ||
2246 | |||
2247 | |||
2248 | 1905 | ||
2249 | /* Bring in the keyword recognizer. */ | 1906 | /* Bring in the keyword recognizer. */ |
2250 | 1907 | ||
2251 | #include "keywords.c" | 1908 | #include "keywords.hash.c" |
2252 | |||
2253 | 1909 | ||
2254 | /* Macros to append to our phrase collection list. */ | 1910 | /* Macros to append to our phrase collection list. */ |
2255 | 1911 | ||
@@ -2274,7 +1930,6 @@ void yyfree (void * ptr ) | |||
2274 | 1930 | ||
2275 | #define APP _APP(yytext, yyleng) | 1931 | #define APP _APP(yytext, yyleng) |
2276 | 1932 | ||
2277 | |||
2278 | /* The second stage lexer. Here we incorporate knowledge of the state | 1933 | /* The second stage lexer. Here we incorporate knowledge of the state |
2279 | of the parser to tailor the tokens that are returned. */ | 1934 | of the parser to tailor the tokens that are returned. */ |
2280 | 1935 | ||
diff --git a/scripts/genksyms/parse.c_shipped b/scripts/genksyms/parse.tab.c_shipped index 1a0b8607fb0e..61d4a5d09856 100644 --- a/scripts/genksyms/parse.c_shipped +++ b/scripts/genksyms/parse.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" |
@@ -67,8 +66,6 @@ | |||
67 | 66 | ||
68 | /* Copy the first part of user declarations. */ | 67 | /* Copy the first part of user declarations. */ |
69 | 68 | ||
70 | /* Line 189 of yacc.c */ | ||
71 | #line 24 "scripts/genksyms/parse.y" | ||
72 | 69 | ||
73 | 70 | ||
74 | #include <assert.h> | 71 | #include <assert.h> |
@@ -101,8 +98,6 @@ remove_list(struct string_list **pb, struct string_list **pe) | |||
101 | 98 | ||
102 | 99 | ||
103 | 100 | ||
104 | /* Line 189 of yacc.c */ | ||
105 | #line 106 "scripts/genksyms/parse.c" | ||
106 | 101 | ||
107 | /* Enabling traces. */ | 102 | /* Enabling traces. */ |
108 | #ifndef YYDEBUG | 103 | #ifndef YYDEBUG |
@@ -186,8 +181,6 @@ typedef int YYSTYPE; | |||
186 | /* Copy the second part of user declarations. */ | 181 | /* Copy the second part of user declarations. */ |
187 | 182 | ||
188 | 183 | ||
189 | /* Line 264 of yacc.c */ | ||
190 | #line 191 "scripts/genksyms/parse.c" | ||
191 | 184 | ||
192 | #ifdef short | 185 | #ifdef short |
193 | # undef short | 186 | # undef short |
@@ -237,7 +230,7 @@ typedef short int yytype_int16; | |||
237 | #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) | 230 | #define YYSIZE_MAXIMUM ((YYSIZE_T) -1) |
238 | 231 | ||
239 | #ifndef YY_ | 232 | #ifndef YY_ |
240 | # if YYENABLE_NLS | 233 | # if defined YYENABLE_NLS && YYENABLE_NLS |
241 | # if ENABLE_NLS | 234 | # if ENABLE_NLS |
242 | # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ | 235 | # include <libintl.h> /* INFRINGES ON USER NAME SPACE */ |
243 | # define YY_(msgid) dgettext ("bison-runtime", msgid) | 236 | # define YY_(msgid) dgettext ("bison-runtime", msgid) |
@@ -855,9 +848,18 @@ static const yytype_uint8 yystos[] = | |||
855 | 848 | ||
856 | /* Like YYERROR except do call yyerror. This remains here temporarily | 849 | /* Like YYERROR except do call yyerror. This remains here temporarily |
857 | to ease the transition to the new meaning of YYERROR, for GCC. | 850 | to ease the transition to the new meaning of YYERROR, for GCC. |
858 | Once GCC version 2 has supplanted version 1, this can go. */ | 851 | Once GCC version 2 has supplanted version 1, this can go. However, |
852 | YYFAIL appears to be in use. Nevertheless, it is formally deprecated | ||
853 | in Bison 2.4.2's NEWS entry, where a plan to phase it out is | ||
854 | discussed. */ | ||
859 | 855 | ||
860 | #define YYFAIL goto yyerrlab | 856 | #define YYFAIL goto yyerrlab |
857 | #if defined YYFAIL | ||
858 | /* This is here to suppress warnings from the GCC cpp's | ||
859 | -Wunused-macros. Normally we don't worry about that warning, but | ||
860 | some users do, and we want to make it easy for users to remove | ||
861 | YYFAIL uses, which will produce warnings from Bison 2.5. */ | ||
862 | #endif | ||
861 | 863 | ||
862 | #define YYRECOVERING() (!!yyerrstatus) | 864 | #define YYRECOVERING() (!!yyerrstatus) |
863 | 865 | ||
@@ -914,7 +916,7 @@ while (YYID (0)) | |||
914 | we won't break user code: when these are the locations we know. */ | 916 | we won't break user code: when these are the locations we know. */ |
915 | 917 | ||
916 | #ifndef YY_LOCATION_PRINT | 918 | #ifndef YY_LOCATION_PRINT |
917 | # if YYLTYPE_IS_TRIVIAL | 919 | # if defined YYLTYPE_IS_TRIVIAL && YYLTYPE_IS_TRIVIAL |
918 | # define YY_LOCATION_PRINT(File, Loc) \ | 920 | # define YY_LOCATION_PRINT(File, Loc) \ |
919 | fprintf (File, "%d.%d-%d.%d", \ | 921 | fprintf (File, "%d.%d-%d.%d", \ |
920 | (Loc).first_line, (Loc).first_column, \ | 922 | (Loc).first_line, (Loc).first_column, \ |
@@ -1653,64 +1655,46 @@ yyreduce: | |||
1653 | { | 1655 | { |
1654 | case 4: | 1656 | case 4: |
1655 | 1657 | ||
1656 | /* Line 1455 of yacc.c */ | ||
1657 | #line 109 "scripts/genksyms/parse.y" | ||
1658 | { is_typedef = 0; is_extern = 0; current_name = NULL; decl_spec = NULL; ;} | 1658 | { is_typedef = 0; is_extern = 0; current_name = NULL; decl_spec = NULL; ;} |
1659 | break; | 1659 | break; |
1660 | 1660 | ||
1661 | case 5: | 1661 | case 5: |
1662 | 1662 | ||
1663 | /* Line 1455 of yacc.c */ | ||
1664 | #line 111 "scripts/genksyms/parse.y" | ||
1665 | { free_list(*(yyvsp[(2) - (2)]), NULL); *(yyvsp[(2) - (2)]) = NULL; ;} | 1663 | { free_list(*(yyvsp[(2) - (2)]), NULL); *(yyvsp[(2) - (2)]) = NULL; ;} |
1666 | break; | 1664 | break; |
1667 | 1665 | ||
1668 | case 6: | 1666 | case 6: |
1669 | 1667 | ||
1670 | /* Line 1455 of yacc.c */ | ||
1671 | #line 115 "scripts/genksyms/parse.y" | ||
1672 | { is_typedef = 1; ;} | 1668 | { is_typedef = 1; ;} |
1673 | break; | 1669 | break; |
1674 | 1670 | ||
1675 | case 7: | 1671 | case 7: |
1676 | 1672 | ||
1677 | /* Line 1455 of yacc.c */ | ||
1678 | #line 116 "scripts/genksyms/parse.y" | ||
1679 | { (yyval) = (yyvsp[(4) - (4)]); ;} | 1673 | { (yyval) = (yyvsp[(4) - (4)]); ;} |
1680 | break; | 1674 | break; |
1681 | 1675 | ||
1682 | case 8: | 1676 | case 8: |
1683 | 1677 | ||
1684 | /* Line 1455 of yacc.c */ | ||
1685 | #line 117 "scripts/genksyms/parse.y" | ||
1686 | { is_typedef = 1; ;} | 1678 | { is_typedef = 1; ;} |
1687 | break; | 1679 | break; |
1688 | 1680 | ||
1689 | case 9: | 1681 | case 9: |
1690 | 1682 | ||
1691 | /* Line 1455 of yacc.c */ | ||
1692 | #line 118 "scripts/genksyms/parse.y" | ||
1693 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 1683 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
1694 | break; | 1684 | break; |
1695 | 1685 | ||
1696 | case 14: | 1686 | case 14: |
1697 | 1687 | ||
1698 | /* Line 1455 of yacc.c */ | ||
1699 | #line 123 "scripts/genksyms/parse.y" | ||
1700 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 1688 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
1701 | break; | 1689 | break; |
1702 | 1690 | ||
1703 | case 15: | 1691 | case 15: |
1704 | 1692 | ||
1705 | /* Line 1455 of yacc.c */ | ||
1706 | #line 124 "scripts/genksyms/parse.y" | ||
1707 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 1693 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
1708 | break; | 1694 | break; |
1709 | 1695 | ||
1710 | case 16: | 1696 | case 16: |
1711 | 1697 | ||
1712 | /* Line 1455 of yacc.c */ | ||
1713 | #line 129 "scripts/genksyms/parse.y" | ||
1714 | { if (current_name) { | 1698 | { if (current_name) { |
1715 | struct string_list *decl = (*(yyvsp[(3) - (3)]))->next; | 1699 | struct string_list *decl = (*(yyvsp[(3) - (3)]))->next; |
1716 | (*(yyvsp[(3) - (3)]))->next = NULL; | 1700 | (*(yyvsp[(3) - (3)]))->next = NULL; |
@@ -1725,15 +1709,11 @@ yyreduce: | |||
1725 | 1709 | ||
1726 | case 17: | 1710 | case 17: |
1727 | 1711 | ||
1728 | /* Line 1455 of yacc.c */ | ||
1729 | #line 142 "scripts/genksyms/parse.y" | ||
1730 | { (yyval) = NULL; ;} | 1712 | { (yyval) = NULL; ;} |
1731 | break; | 1713 | break; |
1732 | 1714 | ||
1733 | case 19: | 1715 | case 19: |
1734 | 1716 | ||
1735 | /* Line 1455 of yacc.c */ | ||
1736 | #line 148 "scripts/genksyms/parse.y" | ||
1737 | { struct string_list *decl = *(yyvsp[(1) - (1)]); | 1717 | { struct string_list *decl = *(yyvsp[(1) - (1)]); |
1738 | *(yyvsp[(1) - (1)]) = NULL; | 1718 | *(yyvsp[(1) - (1)]) = NULL; |
1739 | add_symbol(current_name, | 1719 | add_symbol(current_name, |
@@ -1745,8 +1725,6 @@ yyreduce: | |||
1745 | 1725 | ||
1746 | case 20: | 1726 | case 20: |
1747 | 1727 | ||
1748 | /* Line 1455 of yacc.c */ | ||
1749 | #line 156 "scripts/genksyms/parse.y" | ||
1750 | { struct string_list *decl = *(yyvsp[(3) - (3)]); | 1728 | { struct string_list *decl = *(yyvsp[(3) - (3)]); |
1751 | *(yyvsp[(3) - (3)]) = NULL; | 1729 | *(yyvsp[(3) - (3)]) = NULL; |
1752 | free_list(*(yyvsp[(2) - (3)]), NULL); | 1730 | free_list(*(yyvsp[(2) - (3)]), NULL); |
@@ -1760,36 +1738,26 @@ yyreduce: | |||
1760 | 1738 | ||
1761 | case 21: | 1739 | case 21: |
1762 | 1740 | ||
1763 | /* Line 1455 of yacc.c */ | ||
1764 | #line 169 "scripts/genksyms/parse.y" | ||
1765 | { (yyval) = (yyvsp[(4) - (4)]) ? (yyvsp[(4) - (4)]) : (yyvsp[(3) - (4)]) ? (yyvsp[(3) - (4)]) : (yyvsp[(2) - (4)]) ? (yyvsp[(2) - (4)]) : (yyvsp[(1) - (4)]); ;} | 1741 | { (yyval) = (yyvsp[(4) - (4)]) ? (yyvsp[(4) - (4)]) : (yyvsp[(3) - (4)]) ? (yyvsp[(3) - (4)]) : (yyvsp[(2) - (4)]) ? (yyvsp[(2) - (4)]) : (yyvsp[(1) - (4)]); ;} |
1766 | break; | 1742 | break; |
1767 | 1743 | ||
1768 | case 22: | 1744 | case 22: |
1769 | 1745 | ||
1770 | /* Line 1455 of yacc.c */ | ||
1771 | #line 174 "scripts/genksyms/parse.y" | ||
1772 | { decl_spec = NULL; ;} | 1746 | { decl_spec = NULL; ;} |
1773 | break; | 1747 | break; |
1774 | 1748 | ||
1775 | case 24: | 1749 | case 24: |
1776 | 1750 | ||
1777 | /* Line 1455 of yacc.c */ | ||
1778 | #line 179 "scripts/genksyms/parse.y" | ||
1779 | { decl_spec = *(yyvsp[(1) - (1)]); ;} | 1751 | { decl_spec = *(yyvsp[(1) - (1)]); ;} |
1780 | break; | 1752 | break; |
1781 | 1753 | ||
1782 | case 25: | 1754 | case 25: |
1783 | 1755 | ||
1784 | /* Line 1455 of yacc.c */ | ||
1785 | #line 180 "scripts/genksyms/parse.y" | ||
1786 | { decl_spec = *(yyvsp[(2) - (2)]); ;} | 1756 | { decl_spec = *(yyvsp[(2) - (2)]); ;} |
1787 | break; | 1757 | break; |
1788 | 1758 | ||
1789 | case 26: | 1759 | case 26: |
1790 | 1760 | ||
1791 | /* Line 1455 of yacc.c */ | ||
1792 | #line 185 "scripts/genksyms/parse.y" | ||
1793 | { /* Version 2 checksumming ignores storage class, as that | 1761 | { /* Version 2 checksumming ignores storage class, as that |
1794 | is really irrelevant to the linkage. */ | 1762 | is really irrelevant to the linkage. */ |
1795 | remove_node((yyvsp[(1) - (1)])); | 1763 | remove_node((yyvsp[(1) - (1)])); |
@@ -1799,43 +1767,31 @@ yyreduce: | |||
1799 | 1767 | ||
1800 | case 31: | 1768 | case 31: |
1801 | 1769 | ||
1802 | /* Line 1455 of yacc.c */ | ||
1803 | #line 197 "scripts/genksyms/parse.y" | ||
1804 | { is_extern = 1; (yyval) = (yyvsp[(1) - (1)]); ;} | 1770 | { is_extern = 1; (yyval) = (yyvsp[(1) - (1)]); ;} |
1805 | break; | 1771 | break; |
1806 | 1772 | ||
1807 | case 32: | 1773 | case 32: |
1808 | 1774 | ||
1809 | /* Line 1455 of yacc.c */ | ||
1810 | #line 198 "scripts/genksyms/parse.y" | ||
1811 | { is_extern = 0; (yyval) = (yyvsp[(1) - (1)]); ;} | 1775 | { is_extern = 0; (yyval) = (yyvsp[(1) - (1)]); ;} |
1812 | break; | 1776 | break; |
1813 | 1777 | ||
1814 | case 37: | 1778 | case 37: |
1815 | 1779 | ||
1816 | /* Line 1455 of yacc.c */ | ||
1817 | #line 210 "scripts/genksyms/parse.y" | ||
1818 | { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_STRUCT; (yyval) = (yyvsp[(2) - (2)]); ;} | 1780 | { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_STRUCT; (yyval) = (yyvsp[(2) - (2)]); ;} |
1819 | break; | 1781 | break; |
1820 | 1782 | ||
1821 | case 38: | 1783 | case 38: |
1822 | 1784 | ||
1823 | /* Line 1455 of yacc.c */ | ||
1824 | #line 212 "scripts/genksyms/parse.y" | ||
1825 | { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_UNION; (yyval) = (yyvsp[(2) - (2)]); ;} | 1785 | { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_UNION; (yyval) = (yyvsp[(2) - (2)]); ;} |
1826 | break; | 1786 | break; |
1827 | 1787 | ||
1828 | case 39: | 1788 | case 39: |
1829 | 1789 | ||
1830 | /* Line 1455 of yacc.c */ | ||
1831 | #line 214 "scripts/genksyms/parse.y" | ||
1832 | { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_ENUM; (yyval) = (yyvsp[(2) - (2)]); ;} | 1790 | { remove_node((yyvsp[(1) - (2)])); (*(yyvsp[(2) - (2)]))->tag = SYM_ENUM; (yyval) = (yyvsp[(2) - (2)]); ;} |
1833 | break; | 1791 | break; |
1834 | 1792 | ||
1835 | case 40: | 1793 | case 40: |
1836 | 1794 | ||
1837 | /* Line 1455 of yacc.c */ | ||
1838 | #line 218 "scripts/genksyms/parse.y" | ||
1839 | { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r; | 1795 | { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r; |
1840 | r = copy_node(i); r->tag = SYM_STRUCT; | 1796 | r = copy_node(i); r->tag = SYM_STRUCT; |
1841 | r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL; | 1797 | r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL; |
@@ -1846,8 +1802,6 @@ yyreduce: | |||
1846 | 1802 | ||
1847 | case 41: | 1803 | case 41: |
1848 | 1804 | ||
1849 | /* Line 1455 of yacc.c */ | ||
1850 | #line 225 "scripts/genksyms/parse.y" | ||
1851 | { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r; | 1805 | { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r; |
1852 | r = copy_node(i); r->tag = SYM_UNION; | 1806 | r = copy_node(i); r->tag = SYM_UNION; |
1853 | r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL; | 1807 | r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL; |
@@ -1858,8 +1812,6 @@ yyreduce: | |||
1858 | 1812 | ||
1859 | case 42: | 1813 | case 42: |
1860 | 1814 | ||
1861 | /* Line 1455 of yacc.c */ | ||
1862 | #line 232 "scripts/genksyms/parse.y" | ||
1863 | { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r; | 1815 | { struct string_list *s = *(yyvsp[(3) - (3)]), *i = *(yyvsp[(2) - (3)]), *r; |
1864 | r = copy_node(i); r->tag = SYM_ENUM; | 1816 | r = copy_node(i); r->tag = SYM_ENUM; |
1865 | r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL; | 1817 | r->next = (*(yyvsp[(1) - (3)]))->next; *(yyvsp[(3) - (3)]) = r; (*(yyvsp[(1) - (3)]))->next = NULL; |
@@ -1870,57 +1822,41 @@ yyreduce: | |||
1870 | 1822 | ||
1871 | case 43: | 1823 | case 43: |
1872 | 1824 | ||
1873 | /* Line 1455 of yacc.c */ | ||
1874 | #line 242 "scripts/genksyms/parse.y" | ||
1875 | { add_symbol(NULL, SYM_ENUM, NULL, 0); (yyval) = (yyvsp[(2) - (2)]); ;} | 1825 | { add_symbol(NULL, SYM_ENUM, NULL, 0); (yyval) = (yyvsp[(2) - (2)]); ;} |
1876 | break; | 1826 | break; |
1877 | 1827 | ||
1878 | case 44: | 1828 | case 44: |
1879 | 1829 | ||
1880 | /* Line 1455 of yacc.c */ | ||
1881 | #line 244 "scripts/genksyms/parse.y" | ||
1882 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 1830 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
1883 | break; | 1831 | break; |
1884 | 1832 | ||
1885 | case 45: | 1833 | case 45: |
1886 | 1834 | ||
1887 | /* Line 1455 of yacc.c */ | ||
1888 | #line 245 "scripts/genksyms/parse.y" | ||
1889 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 1835 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
1890 | break; | 1836 | break; |
1891 | 1837 | ||
1892 | case 56: | 1838 | case 56: |
1893 | 1839 | ||
1894 | /* Line 1455 of yacc.c */ | ||
1895 | #line 259 "scripts/genksyms/parse.y" | ||
1896 | { (*(yyvsp[(1) - (1)]))->tag = SYM_TYPEDEF; (yyval) = (yyvsp[(1) - (1)]); ;} | 1840 | { (*(yyvsp[(1) - (1)]))->tag = SYM_TYPEDEF; (yyval) = (yyvsp[(1) - (1)]); ;} |
1897 | break; | 1841 | break; |
1898 | 1842 | ||
1899 | case 57: | 1843 | case 57: |
1900 | 1844 | ||
1901 | /* Line 1455 of yacc.c */ | ||
1902 | #line 264 "scripts/genksyms/parse.y" | ||
1903 | { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;} | 1845 | { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;} |
1904 | break; | 1846 | break; |
1905 | 1847 | ||
1906 | case 58: | 1848 | case 58: |
1907 | 1849 | ||
1908 | /* Line 1455 of yacc.c */ | ||
1909 | #line 268 "scripts/genksyms/parse.y" | ||
1910 | { (yyval) = NULL; ;} | 1850 | { (yyval) = NULL; ;} |
1911 | break; | 1851 | break; |
1912 | 1852 | ||
1913 | case 61: | 1853 | case 61: |
1914 | 1854 | ||
1915 | /* Line 1455 of yacc.c */ | ||
1916 | #line 274 "scripts/genksyms/parse.y" | ||
1917 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 1855 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
1918 | break; | 1856 | break; |
1919 | 1857 | ||
1920 | case 65: | 1858 | case 65: |
1921 | 1859 | ||
1922 | /* Line 1455 of yacc.c */ | ||
1923 | #line 280 "scripts/genksyms/parse.y" | ||
1924 | { /* restrict has no effect in prototypes so ignore it */ | 1860 | { /* restrict has no effect in prototypes so ignore it */ |
1925 | remove_node((yyvsp[(1) - (1)])); | 1861 | remove_node((yyvsp[(1) - (1)])); |
1926 | (yyval) = (yyvsp[(1) - (1)]); | 1862 | (yyval) = (yyvsp[(1) - (1)]); |
@@ -1929,15 +1865,11 @@ yyreduce: | |||
1929 | 1865 | ||
1930 | case 66: | 1866 | case 66: |
1931 | 1867 | ||
1932 | /* Line 1455 of yacc.c */ | ||
1933 | #line 287 "scripts/genksyms/parse.y" | ||
1934 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 1868 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
1935 | break; | 1869 | break; |
1936 | 1870 | ||
1937 | case 68: | 1871 | case 68: |
1938 | 1872 | ||
1939 | /* Line 1455 of yacc.c */ | ||
1940 | #line 293 "scripts/genksyms/parse.y" | ||
1941 | { if (current_name != NULL) { | 1873 | { if (current_name != NULL) { |
1942 | error_with_pos("unexpected second declaration name"); | 1874 | error_with_pos("unexpected second declaration name"); |
1943 | YYERROR; | 1875 | YYERROR; |
@@ -1950,134 +1882,96 @@ yyreduce: | |||
1950 | 1882 | ||
1951 | case 69: | 1883 | case 69: |
1952 | 1884 | ||
1953 | /* Line 1455 of yacc.c */ | ||
1954 | #line 302 "scripts/genksyms/parse.y" | ||
1955 | { (yyval) = (yyvsp[(4) - (4)]); ;} | 1885 | { (yyval) = (yyvsp[(4) - (4)]); ;} |
1956 | break; | 1886 | break; |
1957 | 1887 | ||
1958 | case 70: | 1888 | case 70: |
1959 | 1889 | ||
1960 | /* Line 1455 of yacc.c */ | ||
1961 | #line 304 "scripts/genksyms/parse.y" | ||
1962 | { (yyval) = (yyvsp[(4) - (4)]); ;} | 1890 | { (yyval) = (yyvsp[(4) - (4)]); ;} |
1963 | break; | 1891 | break; |
1964 | 1892 | ||
1965 | case 71: | 1893 | case 71: |
1966 | 1894 | ||
1967 | /* Line 1455 of yacc.c */ | ||
1968 | #line 306 "scripts/genksyms/parse.y" | ||
1969 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 1895 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
1970 | break; | 1896 | break; |
1971 | 1897 | ||
1972 | case 72: | 1898 | case 72: |
1973 | 1899 | ||
1974 | /* Line 1455 of yacc.c */ | ||
1975 | #line 308 "scripts/genksyms/parse.y" | ||
1976 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 1900 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
1977 | break; | 1901 | break; |
1978 | 1902 | ||
1979 | case 73: | 1903 | case 73: |
1980 | 1904 | ||
1981 | /* Line 1455 of yacc.c */ | ||
1982 | #line 310 "scripts/genksyms/parse.y" | ||
1983 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 1905 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
1984 | break; | 1906 | break; |
1985 | 1907 | ||
1986 | case 74: | 1908 | case 74: |
1987 | 1909 | ||
1988 | /* Line 1455 of yacc.c */ | ||
1989 | #line 316 "scripts/genksyms/parse.y" | ||
1990 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 1910 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
1991 | break; | 1911 | break; |
1992 | 1912 | ||
1993 | case 78: | 1913 | case 78: |
1994 | 1914 | ||
1995 | /* Line 1455 of yacc.c */ | ||
1996 | #line 324 "scripts/genksyms/parse.y" | ||
1997 | { (yyval) = (yyvsp[(4) - (4)]); ;} | 1915 | { (yyval) = (yyvsp[(4) - (4)]); ;} |
1998 | break; | 1916 | break; |
1999 | 1917 | ||
2000 | case 79: | 1918 | case 79: |
2001 | 1919 | ||
2002 | /* Line 1455 of yacc.c */ | ||
2003 | #line 326 "scripts/genksyms/parse.y" | ||
2004 | { (yyval) = (yyvsp[(4) - (4)]); ;} | 1920 | { (yyval) = (yyvsp[(4) - (4)]); ;} |
2005 | break; | 1921 | break; |
2006 | 1922 | ||
2007 | case 80: | 1923 | case 80: |
2008 | 1924 | ||
2009 | /* Line 1455 of yacc.c */ | ||
2010 | #line 328 "scripts/genksyms/parse.y" | ||
2011 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 1925 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
2012 | break; | 1926 | break; |
2013 | 1927 | ||
2014 | case 81: | 1928 | case 81: |
2015 | 1929 | ||
2016 | /* Line 1455 of yacc.c */ | ||
2017 | #line 330 "scripts/genksyms/parse.y" | ||
2018 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 1930 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2019 | break; | 1931 | break; |
2020 | 1932 | ||
2021 | case 82: | 1933 | case 82: |
2022 | 1934 | ||
2023 | /* Line 1455 of yacc.c */ | ||
2024 | #line 332 "scripts/genksyms/parse.y" | ||
2025 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 1935 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2026 | break; | 1936 | break; |
2027 | 1937 | ||
2028 | case 83: | 1938 | case 83: |
2029 | 1939 | ||
2030 | /* Line 1455 of yacc.c */ | ||
2031 | #line 336 "scripts/genksyms/parse.y" | ||
2032 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 1940 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
2033 | break; | 1941 | break; |
2034 | 1942 | ||
2035 | case 85: | 1943 | case 85: |
2036 | 1944 | ||
2037 | /* Line 1455 of yacc.c */ | ||
2038 | #line 338 "scripts/genksyms/parse.y" | ||
2039 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 1945 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2040 | break; | 1946 | break; |
2041 | 1947 | ||
2042 | case 86: | 1948 | case 86: |
2043 | 1949 | ||
2044 | /* Line 1455 of yacc.c */ | ||
2045 | #line 342 "scripts/genksyms/parse.y" | ||
2046 | { (yyval) = NULL; ;} | 1950 | { (yyval) = NULL; ;} |
2047 | break; | 1951 | break; |
2048 | 1952 | ||
2049 | case 89: | 1953 | case 89: |
2050 | 1954 | ||
2051 | /* Line 1455 of yacc.c */ | ||
2052 | #line 349 "scripts/genksyms/parse.y" | ||
2053 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 1955 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2054 | break; | 1956 | break; |
2055 | 1957 | ||
2056 | case 90: | 1958 | case 90: |
2057 | 1959 | ||
2058 | /* Line 1455 of yacc.c */ | ||
2059 | #line 354 "scripts/genksyms/parse.y" | ||
2060 | { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;} | 1960 | { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;} |
2061 | break; | 1961 | break; |
2062 | 1962 | ||
2063 | case 91: | 1963 | case 91: |
2064 | 1964 | ||
2065 | /* Line 1455 of yacc.c */ | ||
2066 | #line 359 "scripts/genksyms/parse.y" | ||
2067 | { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;} | 1965 | { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;} |
2068 | break; | 1966 | break; |
2069 | 1967 | ||
2070 | case 93: | 1968 | case 93: |
2071 | 1969 | ||
2072 | /* Line 1455 of yacc.c */ | ||
2073 | #line 364 "scripts/genksyms/parse.y" | ||
2074 | { (yyval) = NULL; ;} | 1970 | { (yyval) = NULL; ;} |
2075 | break; | 1971 | break; |
2076 | 1972 | ||
2077 | case 94: | 1973 | case 94: |
2078 | 1974 | ||
2079 | /* Line 1455 of yacc.c */ | ||
2080 | #line 366 "scripts/genksyms/parse.y" | ||
2081 | { /* For version 2 checksums, we don't want to remember | 1975 | { /* For version 2 checksums, we don't want to remember |
2082 | private parameter names. */ | 1976 | private parameter names. */ |
2083 | remove_node((yyvsp[(1) - (1)])); | 1977 | remove_node((yyvsp[(1) - (1)])); |
@@ -2087,8 +1981,6 @@ yyreduce: | |||
2087 | 1981 | ||
2088 | case 95: | 1982 | case 95: |
2089 | 1983 | ||
2090 | /* Line 1455 of yacc.c */ | ||
2091 | #line 374 "scripts/genksyms/parse.y" | ||
2092 | { remove_node((yyvsp[(1) - (1)])); | 1984 | { remove_node((yyvsp[(1) - (1)])); |
2093 | (yyval) = (yyvsp[(1) - (1)]); | 1985 | (yyval) = (yyvsp[(1) - (1)]); |
2094 | ;} | 1986 | ;} |
@@ -2096,43 +1988,31 @@ yyreduce: | |||
2096 | 1988 | ||
2097 | case 96: | 1989 | case 96: |
2098 | 1990 | ||
2099 | /* Line 1455 of yacc.c */ | ||
2100 | #line 378 "scripts/genksyms/parse.y" | ||
2101 | { (yyval) = (yyvsp[(4) - (4)]); ;} | 1991 | { (yyval) = (yyvsp[(4) - (4)]); ;} |
2102 | break; | 1992 | break; |
2103 | 1993 | ||
2104 | case 97: | 1994 | case 97: |
2105 | 1995 | ||
2106 | /* Line 1455 of yacc.c */ | ||
2107 | #line 380 "scripts/genksyms/parse.y" | ||
2108 | { (yyval) = (yyvsp[(4) - (4)]); ;} | 1996 | { (yyval) = (yyvsp[(4) - (4)]); ;} |
2109 | break; | 1997 | break; |
2110 | 1998 | ||
2111 | case 98: | 1999 | case 98: |
2112 | 2000 | ||
2113 | /* Line 1455 of yacc.c */ | ||
2114 | #line 382 "scripts/genksyms/parse.y" | ||
2115 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 2001 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
2116 | break; | 2002 | break; |
2117 | 2003 | ||
2118 | case 99: | 2004 | case 99: |
2119 | 2005 | ||
2120 | /* Line 1455 of yacc.c */ | ||
2121 | #line 384 "scripts/genksyms/parse.y" | ||
2122 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 2006 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2123 | break; | 2007 | break; |
2124 | 2008 | ||
2125 | case 100: | 2009 | case 100: |
2126 | 2010 | ||
2127 | /* Line 1455 of yacc.c */ | ||
2128 | #line 386 "scripts/genksyms/parse.y" | ||
2129 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 2011 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2130 | break; | 2012 | break; |
2131 | 2013 | ||
2132 | case 101: | 2014 | case 101: |
2133 | 2015 | ||
2134 | /* Line 1455 of yacc.c */ | ||
2135 | #line 391 "scripts/genksyms/parse.y" | ||
2136 | { struct string_list *decl = *(yyvsp[(2) - (3)]); | 2016 | { struct string_list *decl = *(yyvsp[(2) - (3)]); |
2137 | *(yyvsp[(2) - (3)]) = NULL; | 2017 | *(yyvsp[(2) - (3)]) = NULL; |
2138 | add_symbol(current_name, SYM_NORMAL, decl, is_extern); | 2018 | add_symbol(current_name, SYM_NORMAL, decl, is_extern); |
@@ -2142,120 +2022,86 @@ yyreduce: | |||
2142 | 2022 | ||
2143 | case 102: | 2023 | case 102: |
2144 | 2024 | ||
2145 | /* Line 1455 of yacc.c */ | ||
2146 | #line 399 "scripts/genksyms/parse.y" | ||
2147 | { (yyval) = NULL; ;} | 2025 | { (yyval) = NULL; ;} |
2148 | break; | 2026 | break; |
2149 | 2027 | ||
2150 | case 104: | 2028 | case 104: |
2151 | 2029 | ||
2152 | /* Line 1455 of yacc.c */ | ||
2153 | #line 406 "scripts/genksyms/parse.y" | ||
2154 | { remove_list((yyvsp[(2) - (2)]), &(*(yyvsp[(1) - (2)]))->next); (yyval) = (yyvsp[(2) - (2)]); ;} | 2030 | { remove_list((yyvsp[(2) - (2)]), &(*(yyvsp[(1) - (2)]))->next); (yyval) = (yyvsp[(2) - (2)]); ;} |
2155 | break; | 2031 | break; |
2156 | 2032 | ||
2157 | case 105: | 2033 | case 105: |
2158 | 2034 | ||
2159 | /* Line 1455 of yacc.c */ | ||
2160 | #line 410 "scripts/genksyms/parse.y" | ||
2161 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 2035 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2162 | break; | 2036 | break; |
2163 | 2037 | ||
2164 | case 106: | 2038 | case 106: |
2165 | 2039 | ||
2166 | /* Line 1455 of yacc.c */ | ||
2167 | #line 411 "scripts/genksyms/parse.y" | ||
2168 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 2040 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2169 | break; | 2041 | break; |
2170 | 2042 | ||
2171 | case 107: | 2043 | case 107: |
2172 | 2044 | ||
2173 | /* Line 1455 of yacc.c */ | ||
2174 | #line 415 "scripts/genksyms/parse.y" | ||
2175 | { (yyval) = NULL; ;} | 2045 | { (yyval) = NULL; ;} |
2176 | break; | 2046 | break; |
2177 | 2047 | ||
2178 | case 110: | 2048 | case 110: |
2179 | 2049 | ||
2180 | /* Line 1455 of yacc.c */ | ||
2181 | #line 421 "scripts/genksyms/parse.y" | ||
2182 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 2050 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
2183 | break; | 2051 | break; |
2184 | 2052 | ||
2185 | case 111: | 2053 | case 111: |
2186 | 2054 | ||
2187 | /* Line 1455 of yacc.c */ | ||
2188 | #line 426 "scripts/genksyms/parse.y" | ||
2189 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 2055 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2190 | break; | 2056 | break; |
2191 | 2057 | ||
2192 | case 112: | 2058 | case 112: |
2193 | 2059 | ||
2194 | /* Line 1455 of yacc.c */ | ||
2195 | #line 428 "scripts/genksyms/parse.y" | ||
2196 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 2060 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
2197 | break; | 2061 | break; |
2198 | 2062 | ||
2199 | case 113: | 2063 | case 113: |
2200 | 2064 | ||
2201 | /* Line 1455 of yacc.c */ | ||
2202 | #line 432 "scripts/genksyms/parse.y" | ||
2203 | { (yyval) = NULL; ;} | 2065 | { (yyval) = NULL; ;} |
2204 | break; | 2066 | break; |
2205 | 2067 | ||
2206 | case 116: | 2068 | case 116: |
2207 | 2069 | ||
2208 | /* Line 1455 of yacc.c */ | ||
2209 | #line 438 "scripts/genksyms/parse.y" | ||
2210 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 2070 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2211 | break; | 2071 | break; |
2212 | 2072 | ||
2213 | case 117: | 2073 | case 117: |
2214 | 2074 | ||
2215 | /* Line 1455 of yacc.c */ | ||
2216 | #line 442 "scripts/genksyms/parse.y" | ||
2217 | { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;} | 2075 | { (yyval) = (yyvsp[(2) - (2)]) ? (yyvsp[(2) - (2)]) : (yyvsp[(1) - (2)]); ;} |
2218 | break; | 2076 | break; |
2219 | 2077 | ||
2220 | case 118: | 2078 | case 118: |
2221 | 2079 | ||
2222 | /* Line 1455 of yacc.c */ | ||
2223 | #line 443 "scripts/genksyms/parse.y" | ||
2224 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 2080 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
2225 | break; | 2081 | break; |
2226 | 2082 | ||
2227 | case 120: | 2083 | case 120: |
2228 | 2084 | ||
2229 | /* Line 1455 of yacc.c */ | ||
2230 | #line 448 "scripts/genksyms/parse.y" | ||
2231 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 2085 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
2232 | break; | 2086 | break; |
2233 | 2087 | ||
2234 | case 121: | 2088 | case 121: |
2235 | 2089 | ||
2236 | /* Line 1455 of yacc.c */ | ||
2237 | #line 452 "scripts/genksyms/parse.y" | ||
2238 | { (yyval) = NULL; ;} | 2090 | { (yyval) = NULL; ;} |
2239 | break; | 2091 | break; |
2240 | 2092 | ||
2241 | case 123: | 2093 | case 123: |
2242 | 2094 | ||
2243 | /* Line 1455 of yacc.c */ | ||
2244 | #line 457 "scripts/genksyms/parse.y" | ||
2245 | { (yyval) = (yyvsp[(3) - (3)]); ;} | 2095 | { (yyval) = (yyvsp[(3) - (3)]); ;} |
2246 | break; | 2096 | break; |
2247 | 2097 | ||
2248 | case 124: | 2098 | case 124: |
2249 | 2099 | ||
2250 | /* Line 1455 of yacc.c */ | ||
2251 | #line 458 "scripts/genksyms/parse.y" | ||
2252 | { (yyval) = (yyvsp[(4) - (4)]); ;} | 2100 | { (yyval) = (yyvsp[(4) - (4)]); ;} |
2253 | break; | 2101 | break; |
2254 | 2102 | ||
2255 | case 127: | 2103 | case 127: |
2256 | 2104 | ||
2257 | /* Line 1455 of yacc.c */ | ||
2258 | #line 467 "scripts/genksyms/parse.y" | ||
2259 | { | 2105 | { |
2260 | const char *name = strdup((*(yyvsp[(1) - (1)]))->string); | 2106 | const char *name = strdup((*(yyvsp[(1) - (1)]))->string); |
2261 | add_symbol(name, SYM_ENUM_CONST, NULL, 0); | 2107 | add_symbol(name, SYM_ENUM_CONST, NULL, 0); |
@@ -2264,8 +2110,6 @@ yyreduce: | |||
2264 | 2110 | ||
2265 | case 128: | 2111 | case 128: |
2266 | 2112 | ||
2267 | /* Line 1455 of yacc.c */ | ||
2268 | #line 472 "scripts/genksyms/parse.y" | ||
2269 | { | 2113 | { |
2270 | const char *name = strdup((*(yyvsp[(1) - (3)]))->string); | 2114 | const char *name = strdup((*(yyvsp[(1) - (3)]))->string); |
2271 | struct string_list *expr = copy_list_range(*(yyvsp[(3) - (3)]), *(yyvsp[(2) - (3)])); | 2115 | struct string_list *expr = copy_list_range(*(yyvsp[(3) - (3)]), *(yyvsp[(2) - (3)])); |
@@ -2275,29 +2119,21 @@ yyreduce: | |||
2275 | 2119 | ||
2276 | case 129: | 2120 | case 129: |
2277 | 2121 | ||
2278 | /* Line 1455 of yacc.c */ | ||
2279 | #line 479 "scripts/genksyms/parse.y" | ||
2280 | { (yyval) = (yyvsp[(2) - (2)]); ;} | 2122 | { (yyval) = (yyvsp[(2) - (2)]); ;} |
2281 | break; | 2123 | break; |
2282 | 2124 | ||
2283 | case 130: | 2125 | case 130: |
2284 | 2126 | ||
2285 | /* Line 1455 of yacc.c */ | ||
2286 | #line 483 "scripts/genksyms/parse.y" | ||
2287 | { (yyval) = NULL; ;} | 2127 | { (yyval) = NULL; ;} |
2288 | break; | 2128 | break; |
2289 | 2129 | ||
2290 | case 132: | 2130 | case 132: |
2291 | 2131 | ||
2292 | /* Line 1455 of yacc.c */ | ||
2293 | #line 489 "scripts/genksyms/parse.y" | ||
2294 | { export_symbol((*(yyvsp[(3) - (5)]))->string); (yyval) = (yyvsp[(5) - (5)]); ;} | 2132 | { export_symbol((*(yyvsp[(3) - (5)]))->string); (yyval) = (yyvsp[(5) - (5)]); ;} |
2295 | break; | 2133 | break; |
2296 | 2134 | ||
2297 | 2135 | ||
2298 | 2136 | ||
2299 | /* Line 1455 of yacc.c */ | ||
2300 | #line 2301 "scripts/genksyms/parse.c" | ||
2301 | default: break; | 2137 | default: break; |
2302 | } | 2138 | } |
2303 | YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); | 2139 | YY_SYMBOL_PRINT ("-> $$ =", yyr1[yyn], &yyval, &yyloc); |
@@ -2508,8 +2344,6 @@ yyreturn: | |||
2508 | 2344 | ||
2509 | 2345 | ||
2510 | 2346 | ||
2511 | /* Line 1675 of yacc.c */ | ||
2512 | #line 493 "scripts/genksyms/parse.y" | ||
2513 | 2347 | ||
2514 | 2348 | ||
2515 | static void | 2349 | static void |
diff --git a/scripts/genksyms/parse.h_shipped b/scripts/genksyms/parse.tab.h_shipped index 517523669251..350c2b403e21 100644 --- a/scripts/genksyms/parse.h_shipped +++ b/scripts/genksyms/parse.tab.h_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 interface for Bison's Yacc-like parsers in C | 3 | /* Skeleton interface 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 |