llvm.org GIT mirror llvm / cf78659
regenerate git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45424 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
8 changed file(s) with 6984 addition(s) and 5323 deletion(s). Raw diff Collapse all Expand all
11 //
22 // The LLVM Compiler Infrastructure
33 //
4 // This file was developed by the LLVM research group and is distributed under
5 // the University of Illinois Open Source License. See LICENSE.TXT for details.
4 // This file is distributed under the University of Illinois Open Source
5 // License. See LICENSE.TXT for details.
66 //
77 //===----------------------------------------------------------------------===//
88 //
None #define yy_create_buffer Upgrade_create_buffer
1 #define yy_delete_buffer Upgrade_delete_buffer
2 #define yy_scan_buffer Upgrade_scan_buffer
3 #define yy_scan_string Upgrade_scan_string
4 #define yy_scan_bytes Upgrade_scan_bytes
5 #define yy_flex_debug Upgrade_flex_debug
6 #define yy_init_buffer Upgrade_init_buffer
7 #define yy_flush_buffer Upgrade_flush_buffer
8 #define yy_load_buffer_state Upgrade_load_buffer_state
9 #define yy_switch_to_buffer Upgrade_switch_to_buffer
10 #define yyin Upgradein
11 #define yyleng Upgradeleng
12 #define yylex Upgradelex
13 #define yyout Upgradeout
14 #define yyrestart Upgraderestart
15 #define yytext Upgradetext
16 #define yylineno Upgradelineno
17
18 #line 20 "UpgradeLexer.cpp"
0 #line 2 "UpgradeLexer.cpp"
1
2 #line 4 "UpgradeLexer.cpp"
3
4 #define YY_INT_ALIGNED short int
5
196 /* A lexical scanner generated by flex */
20
21 /* Scanner skeleton version:
22 * $Header: /cvs/root/flex/flex/skel.c,v 1.2 2004/05/07 00:28:17 jkh Exp $
23 */
247
258 #define FLEX_SCANNER
269 #define YY_FLEX_MAJOR_VERSION 2
2710 #define YY_FLEX_MINOR_VERSION 5
28
11 #define YY_FLEX_SUBMINOR_VERSION 33
12 #if YY_FLEX_SUBMINOR_VERSION > 0
13 #define FLEX_BETA
14 #endif
15
16 /* First, we deal with platform-specific or compiler-specific issues. */
17
18 /* begin standard C headers. */
2919 #include
30
31
32 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
33 #ifdef c_plusplus
34 #ifndef __cplusplus
35 #define __cplusplus
36 #endif
37 #endif
38
20 #include
21 #include
22 #include
23
24 /* end standard C headers. */
25
26 /* flex integer type definitions */
27
28 #ifndef FLEXINT_H
29 #define FLEXINT_H
30
31 /* C99 systems have . Non-C99 systems may or may not. */
32
33 #if __STDC_VERSION__ >= 199901L
34
35 /* C99 says to define __STDC_LIMIT_MACROS before including stdint.h,
36 * if you want the limit (max/min) macros for int types.
37 */
38 #ifndef __STDC_LIMIT_MACROS
39 #define __STDC_LIMIT_MACROS 1
40 #endif
41
42 #include
43 typedef int8_t flex_int8_t;
44 typedef uint8_t flex_uint8_t;
45 typedef int16_t flex_int16_t;
46 typedef uint16_t flex_uint16_t;
47 typedef int32_t flex_int32_t;
48 typedef uint32_t flex_uint32_t;
49 #else
50 typedef signed char flex_int8_t;
51 typedef short int flex_int16_t;
52 typedef int flex_int32_t;
53 typedef unsigned char flex_uint8_t;
54 typedef unsigned short int flex_uint16_t;
55 typedef unsigned int flex_uint32_t;
56 #endif /* ! C99 */
57
58 /* Limits of integral types. */
59 #ifndef INT8_MIN
60 #define INT8_MIN (-128)
61 #endif
62 #ifndef INT16_MIN
63 #define INT16_MIN (-32767-1)
64 #endif
65 #ifndef INT32_MIN
66 #define INT32_MIN (-2147483647-1)
67 #endif
68 #ifndef INT8_MAX
69 #define INT8_MAX (127)
70 #endif
71 #ifndef INT16_MAX
72 #define INT16_MAX (32767)
73 #endif
74 #ifndef INT32_MAX
75 #define INT32_MAX (2147483647)
76 #endif
77 #ifndef UINT8_MAX
78 #define UINT8_MAX (255U)
79 #endif
80 #ifndef UINT16_MAX
81 #define UINT16_MAX (65535U)
82 #endif
83 #ifndef UINT32_MAX
84 #define UINT32_MAX (4294967295U)
85 #endif
86
87 #endif /* ! FLEXINT_H */
3988
4089 #ifdef __cplusplus
41
42 #include
43 #include
44
45 /* Use prototypes in function declarations. */
46 #define YY_USE_PROTOS
4790
4891 /* The "const" storage-class-modifier is valid. */
4992 #define YY_USE_CONST
5295
5396 #if __STDC__
5497
55 #define YY_USE_PROTOS
5698 #define YY_USE_CONST
5799
58100 #endif /* __STDC__ */
59101 #endif /* ! __cplusplus */
60
61 #ifdef __TURBOC__
62 #pragma warn -rch
63 #pragma warn -use
64 #include
65 #include
66 #define YY_USE_CONST
67 #define YY_USE_PROTOS
68 #endif
69102
70103 #ifdef YY_USE_CONST
71104 #define yyconst const
73106 #define yyconst
74107 #endif
75108
76
77 #ifdef YY_USE_PROTOS
78 #define YY_PROTO(proto) proto
79 #else
80 #define YY_PROTO(proto) ()
81 #endif
82
83109 /* Returned upon end-of-file. */
84110 #define YY_NULL 0
85111
94120 * but we do it the disgusting crufty way forced on us by the ()-less
95121 * definition of BEGIN.
96122 */
97 #define BEGIN yy_start = 1 + 2 *
123 #define BEGIN (yy_start) = 1 + 2 *
98124
99125 /* Translate the current start state into a value that can be later handed
100126 * to BEGIN to return to the state. The YYSTATE alias is for lex
101127 * compatibility.
102128 */
103 #define YY_START ((yy_start - 1) / 2)
129 #define YY_START (((yy_start) - 1) / 2)
104130 #define YYSTATE YY_START
105131
106132 /* Action number for EOF rule of a given start state. */
107133 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
108134
109135 /* Special action meaning "start processing a new file". */
110 #define YY_NEW_FILE yyrestart( yyin )
136 #define YY_NEW_FILE Upgraderestart(Upgradein )
111137
112138 #define YY_END_OF_BUFFER_CHAR 0
113139
114140 /* Size of default input buffer. */
141 #ifndef YY_BUF_SIZE
115142 #define YY_BUF_SIZE (16384*64)
116
143 #endif
144
145 /* The state buf must be large enough to hold one state per character in the main buffer.
146 */
147 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
148
149 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
150 #define YY_TYPEDEF_YY_BUFFER_STATE
117151 typedef struct yy_buffer_state *YY_BUFFER_STATE;
118
119 extern int yyleng;
120 extern FILE *yyin, *yyout;
152 #endif
153
154 extern int Upgradeleng;
155
156 extern FILE *Upgradein, *Upgradeout;
121157
122158 #define EOB_ACT_CONTINUE_SCAN 0
123159 #define EOB_ACT_END_OF_FILE 1
124160 #define EOB_ACT_LAST_MATCH 2
125161
126 /* The funky do-while in the following #define is used to turn the definition
127 * int a single C statement (which needs a semi-colon terminator). This
128 * avoids problems with code like:
129 *
130 * if ( condition_holds )
131 * yyless( 5 );
132 * else
133 * do_something_else();
134 *
135 * Prior to using the do-while the compiler would get upset at the
136 * "else" because it interpreted the "if" statement as being all
137 * done when it reached the ';' after the yyless() call.
138 */
139
140 /* Return all but the first 'n' matched characters back to the input stream. */
141
162 /* Note: We specifically omit the test for yy_rule_can_match_eol because it requires
163 * access to the local variable yy_act. Since yyless() is a macro, it would break
164 * existing scanners that call yyless() from OUTSIDE Upgradelex.
165 * One obvious solution it to make yy_act a global. I tried that, and saw
166 * a 5% performance hit in a non-Upgradelineno scanner, because yy_act is
167 * normally declared as a register variable-- so it is not worth it.
168 */
169 #define YY_LESS_LINENO(n) \
170 do { \
171 int yyl;\
172 for ( yyl = n; yyl < Upgradeleng; ++yyl )\
173 if ( Upgradetext[yyl] == '\n' )\
174 --Upgradelineno;\
175 }while(0)
176
177 /* Return all but the first "n" matched characters back to the input stream. */
142178 #define yyless(n) \
143179 do \
144180 { \
145 /* Undo effects of setting up yytext. */ \
146 *yy_cp = yy_hold_char; \
181 /* Undo effects of setting up Upgradetext. */ \
182 int yyless_macro_arg = (n); \
183 YY_LESS_LINENO(yyless_macro_arg);\
184 *yy_cp = (yy_hold_char); \
147185 YY_RESTORE_YY_MORE_OFFSET \
148 yy_c_buf_p = yy_cp = yy_bp + n - YY_MORE_ADJ; \
149 YY_DO_BEFORE_ACTION; /* set up yytext again */ \
186 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
187 YY_DO_BEFORE_ACTION; /* set up Upgradetext again */ \
150188 } \
151189 while ( 0 )
152190
153 #define unput(c) yyunput( c, yytext_ptr )
191 #define unput(c) yyunput( c, (yytext_ptr) )
154192
155193 /* The following is because we cannot portably get our hands on size_t
156194 * (without autoconf's help, which isn't available because we want
157195 * flex-generated scanners to compile on their own).
158196 */
197
198 #ifndef YY_TYPEDEF_YY_SIZE_T
199 #define YY_TYPEDEF_YY_SIZE_T
159200 typedef unsigned int yy_size_t;
160
161
201 #endif
202
203 #ifndef YY_STRUCT_YY_BUFFER_STATE
204 #define YY_STRUCT_YY_BUFFER_STATE
162205 struct yy_buffer_state
163206 {
164207 FILE *yy_input_file;
195238 */
196239 int yy_at_bol;
197240
241 int yy_bs_lineno; /**< The line count. */
242 int yy_bs_column; /**< The column count. */
243
198244 /* Whether to try to fill the input buffer when we reach the
199245 * end of it.
200246 */
201247 int yy_fill_buffer;
202248
203249 int yy_buffer_status;
250
204251 #define YY_BUFFER_NEW 0
205252 #define YY_BUFFER_NORMAL 1
206253 /* When an EOF's been seen but there's still some text to process
210257 * possible backing-up.
211258 *
212259 * When we actually see the EOF, we change the status to "new"
213 * (via yyrestart()), so that the user can continue scanning by
214 * just pointing yyin at a new input file.
260 * (via Upgraderestart()), so that the user can continue scanning by
261 * just pointing Upgradein at a new input file.
215262 */
216263 #define YY_BUFFER_EOF_PENDING 2
264
217265 };
218
219 static YY_BUFFER_STATE yy_current_buffer = 0;
266 #endif /* !YY_STRUCT_YY_BUFFER_STATE */
267
268 /* Stack of input buffers. */
269 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */
270 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */
271 static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */
220272
221273 /* We provide macros for accessing buffer states in case in the
222274 * future we want to put the buffer states in a more general
223275 * "scanner state".
224 */
225 #define YY_CURRENT_BUFFER yy_current_buffer
226
227
228 /* yy_hold_char holds the character lost when yytext is formed. */
276 *
277 * Returns the top of the stack, or NULL.
278 */
279 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
280 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
281 : NULL)
282
283 /* Same as previous macro, but useful when we know that the buffer stack is not
284 * NULL or when we need an lvalue. For internal use only.
285 */
286 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
287
288 /* yy_hold_char holds the character lost when Upgradetext is formed. */
229289 static char yy_hold_char;
230
231290 static int yy_n_chars; /* number of characters read into yy_ch_buf */
232
233
234 int yyleng;
291 int Upgradeleng;
235292
236293 /* Points to current character in buffer. */
237294 static char *yy_c_buf_p = (char *) 0;
238 static int yy_init = 1; /* whether we need to initialize */
295 static int yy_init = 0; /* whether we need to initialize */
239296 static int yy_start = 0; /* start state number */
240297
241 /* Flag which is used to allow yywrap()'s to do buffer switches
242 * instead of setting up a fresh yyin. A bit of a hack ...
298 /* Flag which is used to allow Upgradewrap()'s to do buffer switches
299 * instead of setting up a fresh Upgradein. A bit of a hack ...
243300 */
244301 static int yy_did_buffer_switch_on_eof;
245302
246 void yyrestart YY_PROTO(( FILE *input_file ));
247
248 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer ));
249 void yy_load_buffer_state YY_PROTO(( void ));
250 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size ));
251 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b ));
252 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file ));
253 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b ));
254 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer )
255
256 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size ));
257 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str ));
258 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len ));
259
260 static void *yy_flex_alloc YY_PROTO(( yy_size_t ));
261 static inline void *yy_flex_realloc YY_PROTO(( void *, yy_size_t ));
262 static void yy_flex_free YY_PROTO(( void * ));
263
264 #define yy_new_buffer yy_create_buffer
303 void Upgraderestart (FILE *input_file );
304 void Upgrade_switch_to_buffer (YY_BUFFER_STATE new_buffer );
305 YY_BUFFER_STATE Upgrade_create_buffer (FILE *file,int size );
306 void Upgrade_delete_buffer (YY_BUFFER_STATE b );
307 void Upgrade_flush_buffer (YY_BUFFER_STATE b );
308 void Upgradepush_buffer_state (YY_BUFFER_STATE new_buffer );
309 void Upgradepop_buffer_state (void );
310
311 static void Upgradeensure_buffer_stack (void );
312 static void Upgrade_load_buffer_state (void );
313 static void Upgrade_init_buffer (YY_BUFFER_STATE b,FILE *file );
314
315 #define YY_FLUSH_BUFFER Upgrade_flush_buffer(YY_CURRENT_BUFFER )
316
317 YY_BUFFER_STATE Upgrade_scan_buffer (char *base,yy_size_t size );
318 YY_BUFFER_STATE Upgrade_scan_string (yyconst char *yy_str );
319 YY_BUFFER_STATE Upgrade_scan_bytes (yyconst char *bytes,int len );
320
321 void *Upgradealloc (yy_size_t );
322 void *Upgraderealloc (void *,yy_size_t );
323 void Upgradefree (void * );
324
325 #define yy_new_buffer Upgrade_create_buffer
265326
266327 #define yy_set_interactive(is_interactive) \
267328 { \
268 if ( ! yy_current_buffer ) \
269 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
270 yy_current_buffer->yy_is_interactive = is_interactive; \
329 if ( ! YY_CURRENT_BUFFER ){ \
330 Upgradeensure_buffer_stack (); \
331 YY_CURRENT_BUFFER_LVALUE = \
332 Upgrade_create_buffer(Upgradein,YY_BUF_SIZE ); \
333 } \
334 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
271335 }
272336
273337 #define yy_set_bol(at_bol) \
274338 { \
275 if ( ! yy_current_buffer ) \
276 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \
277 yy_current_buffer->yy_at_bol = at_bol; \
339 if ( ! YY_CURRENT_BUFFER ){\
340 Upgradeensure_buffer_stack (); \
341 YY_CURRENT_BUFFER_LVALUE = \
342 Upgrade_create_buffer(Upgradein,YY_BUF_SIZE ); \
343 } \
344 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
278345 }
279346
280 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol)
281
282
283 #define YY_USES_REJECT
284
285 #define yywrap() 1
347 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
348
349 /* Begin user sect3 */
350
351 #define Upgradewrap(n) 1
286352 #define YY_SKIP_YYWRAP
353
287354 typedef unsigned char YY_CHAR;
288 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0;
355
356 FILE *Upgradein = (FILE *) 0, *Upgradeout = (FILE *) 0;
357
289358 typedef int yy_state_type;
290 extern int yylineno;
291 int yylineno = 1;
292 extern char *yytext;
293 #define yytext_ptr yytext
294
295 static yy_state_type yy_get_previous_state YY_PROTO(( void ));
296 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));
297 static int yy_get_next_buffer YY_PROTO(( void ));
298 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));
359
360 extern int Upgradelineno;
361
362 int Upgradelineno = 1;
363
364 extern char *Upgradetext;
365 #define yytext_ptr Upgradetext
366
367 static yy_state_type yy_get_previous_state (void );
368 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
369 static int yy_get_next_buffer (void );
370 static void yy_fatal_error (yyconst char msg[] );
299371
300372 /* Done after the current pattern has been matched and before the
301 * corresponding action - sets up yytext.
373 * corresponding action - sets up Upgradetext.
302374 */
303375 #define YY_DO_BEFORE_ACTION \
304 yytext_ptr = yy_bp; \
305 yyleng = (int) (yy_cp - yy_bp); \
306 yy_hold_char = *yy_cp; \
376 (yytext_ptr) = yy_bp; \
377 Upgradeleng = (size_t) (yy_cp - yy_bp); \
378 (yy_hold_char) = *yy_cp; \
307379 *yy_cp = '\0'; \
308 yy_c_buf_p = yy_cp;
380 (yy_c_buf_p) = yy_cp;
309381
310382 #define YY_NUM_RULES 161
311383 #define YY_END_OF_BUFFER 162
312 static yyconst short int yy_acclist[241] =
384 /* This struct is not used in this scanner,
385 but its presence is necessary. */
386 struct yy_trans_info
387 {
388 flex_int32_t yy_verify;
389 flex_int32_t yy_nxt;
390 };
391 static yyconst flex_int16_t yy_accept[620] =
313392 { 0,
314 162, 160, 161, 159, 160, 161, 159, 161, 160, 161,
315 160, 161, 160, 161, 160, 161, 160, 161, 160, 161,
316 152, 160, 161, 152, 160, 161, 1, 160, 161, 160,
317 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
318 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
319 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
320 161, 160, 161, 160, 161, 160, 161, 160, 161, 160,
321 161, 160, 161, 151, 149, 148, 148, 155, 153, 157,
322 152, 1, 134, 41, 94, 62, 50, 95, 80, 23,
323 151, 148, 148, 156, 157, 20, 157, 158, 68, 79,
324
325 39, 34, 42, 71, 3, 53, 56, 59, 54, 70,
326 25, 104, 109, 107, 108, 106, 105, 110, 114, 75,
327 133, 99, 97, 88, 89, 98, 96, 69, 112, 103,
328 101, 102, 100, 113, 111, 81, 150, 157, 157, 91,
329 61, 115, 116, 93, 74, 141, 78, 92, 142, 57,
330 90, 22, 154, 73, 119, 77, 26, 4, 66, 72,
331 55, 76, 60, 11, 118, 157, 36, 2, 5, 63,
332 121, 65, 48, 83, 87, 85, 86, 84, 82, 51,
333 143, 117, 49, 58, 21, 131, 140, 45, 64, 30,
334 24, 44, 123, 122, 7, 136, 33, 139, 38, 67,
335
336 129, 125, 135, 27, 28, 124, 137, 52, 132, 130,
337 128, 43, 6, 29, 120, 37, 8, 17, 9, 127,
338 10, 126, 35, 12, 14, 13, 32, 40, 15, 31,
339 138, 144, 146, 147, 16, 46, 145, 18, 47, 19
393 0, 0, 162, 160, 159, 159, 160, 160, 160, 160,
394 160, 160, 152, 152, 1, 160, 160, 160, 160, 160,
395 160, 160, 160, 160, 160, 160, 160, 160, 160, 160,
396 160, 160, 160, 160, 160, 160, 160, 0, 151, 0,
397 149, 148, 148, 155, 0, 153, 0, 157, 152, 0,
398 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
399 134, 0, 41, 0, 0, 0, 0, 0, 0, 0,
400 0, 94, 0, 0, 0, 0, 0, 0, 0, 0,
401 0, 62, 0, 0, 50, 0, 0, 0, 0, 0,
402 0, 0, 0, 0, 0, 95, 0, 0, 0, 0,
403
404 0, 0, 0, 80, 0, 0, 0, 0, 0, 0,
405 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
406 0, 23, 0, 0, 0, 0, 0, 0, 0, 0,
407 0, 0, 0, 0, 0, 0, 0, 0, 0, 151,
408 148, 148, 157, 20, 157, 0, 158, 0, 68, 0,
409 0, 79, 0, 0, 39, 0, 34, 0, 0, 0,
410 0, 42, 0, 0, 0, 0, 0, 0, 71, 0,
411 0, 3, 0, 0, 0, 0, 0, 0, 0, 0,
412 0, 0, 0, 0, 53, 56, 59, 0, 0, 0,
413 54, 0, 0, 0, 0, 0, 0, 0, 0, 0,
414
415 70, 25, 0, 104, 109, 107, 108, 106, 105, 0,
416 110, 114, 0, 0, 75, 133, 0, 0, 0, 0,
417 0, 0, 0, 99, 97, 88, 0, 89, 0, 0,
418 0, 98, 96, 0, 0, 69, 0, 0, 0, 0,
419 0, 0, 0, 0, 112, 103, 101, 0, 0, 102,
420 0, 100, 0, 113, 0, 111, 0, 0, 0, 0,
421 0, 0, 0, 0, 0, 0, 0, 81, 0, 0,
422 150, 157, 0, 0, 0, 157, 0, 0, 0, 91,
423 0, 0, 61, 115, 116, 0, 0, 0, 0, 0,
424 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
425
426 93, 74, 0, 0, 0, 0, 141, 78, 0, 0,
427 92, 0, 0, 0, 0, 0, 0, 0, 0, 142,
428 57, 90, 0, 0, 22, 0, 0, 0, 154, 0,
429 73, 0, 0, 0, 0, 0, 0, 119, 0, 0,
430 0, 0, 77, 0, 0, 26, 0, 0, 4, 0,
431 66, 0, 72, 55, 0, 0, 0, 0, 0, 0,
432 76, 0, 0, 0, 0, 60, 0, 11, 0, 0,
433 118, 157, 36, 0, 0, 2, 0, 0, 0, 0,
434 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
435 5, 0, 63, 121, 0, 0, 0, 0, 0, 0,
436
437 0, 0, 0, 0, 65, 0, 0, 0, 0, 0,
438 0, 0, 48, 0, 0, 83, 87, 85, 86, 84,
439 82, 51, 0, 0, 0, 143, 0, 0, 0, 117,
440 49, 0, 58, 21, 0, 0, 0, 0, 0, 131,
441 0, 0, 0, 0, 0, 140, 0, 0, 45, 0,
442 0, 0, 0, 0, 0, 0, 64, 30, 24, 0,
443 0, 44, 123, 122, 0, 0, 7, 0, 0, 0,
444 0, 136, 0, 33, 139, 38, 67, 0, 0, 0,
445 129, 0, 0, 125, 135, 27, 28, 124, 0, 0,
446 137, 52, 132, 130, 0, 0, 0, 0, 0, 128,
447
448 0, 43, 0, 6, 29, 0, 0, 0, 0, 0,
449 120, 0, 0, 0, 0, 0, 0, 0, 0, 37,
450 0, 0, 0, 0, 0, 0, 0, 0, 0, 8,
451 0, 0, 0, 0, 17, 0, 0, 0, 0, 9,
452 127, 10, 0, 126, 0, 0, 0, 0, 35, 0,
453 0, 0, 12, 0, 14, 13, 0, 0, 0, 0,
454 0, 0, 0, 0, 0, 0, 0, 0, 0, 32,
455 0, 0, 0, 0, 0, 0, 0, 40, 0, 0,
456 0, 0, 0, 15, 0, 0, 0, 0, 31, 0,
457 0, 138, 0, 0, 0, 0, 0, 0, 0, 0,
458
459 0, 0, 0, 0, 0, 144, 0, 146, 147, 16,
460 0, 46, 0, 145, 18, 47, 0, 19, 0
340461 } ;
341462
342 static yyconst short int yy_accept[621] =
343 { 0,
344 1, 1, 1, 2, 4, 7, 9, 11, 13, 15,
345 17, 19, 21, 24, 27, 30, 32, 34, 36, 38,
346 40, 42, 44, 46, 48, 50, 52, 54, 56, 58,
347 60, 62, 64, 66, 68, 70, 72, 74, 74, 75,
348 75, 76, 77, 78, 79, 79, 80, 80, 81, 82,
349 82, 83, 83, 83, 83, 83, 83, 83, 83, 83,
350 83, 84, 84, 85, 85, 85, 85, 85, 85, 85,
351 85, 85, 86, 86, 86, 86, 86, 86, 86, 86,
352 86, 86, 87, 87, 87, 88, 88, 88, 88, 88,
353 88, 88, 88, 88, 88, 88, 89, 89, 89, 89,
354
355 89, 89, 89, 89, 90, 90, 90, 90, 90, 90,
356 90, 90, 90, 90, 90, 90, 90, 90, 90, 90,
357 90, 90, 91, 91, 91, 91, 91, 91, 91, 91,
358 91, 91, 91, 91, 91, 91, 91, 91, 91, 91,
359 92, 93, 95, 96, 97, 98, 98, 99, 99, 100,
360 100, 100, 101, 101, 101, 102, 102, 103, 103, 103,
361 103, 103, 104, 104, 104, 104, 104, 104, 104, 105,
362 105, 105, 106, 106, 106, 106, 106, 106, 106, 106,
363 106, 106, 106, 106, 106, 107, 108, 109, 109, 109,
364 109, 110, 110, 110, 110, 110, 110, 110, 110, 110,
365
366 110, 111, 112, 112, 113, 114, 115, 116, 117, 118,
367 118, 119, 120, 120, 120, 121, 122, 122, 122, 122,
368 122, 122, 122, 122, 123, 124, 125, 125, 126, 126,
369 126, 126, 127, 128, 128, 128, 129, 129, 129, 129,
370 129, 129, 129, 129, 129, 130, 131, 132, 132, 132,
371 133, 133, 134, 134, 135, 135, 136, 136, 136, 136,
372 136, 136, 136, 136, 136, 136, 136, 136, 137, 137,
373 137, 138, 139, 139, 139, 139, 140, 140, 140, 140,
374 141, 141, 141, 142, 143, 144, 144, 144, 144, 144,
375 144, 144, 144, 144, 144, 144, 144, 144, 144, 144,
376
377 144, 145, 146, 146, 146, 146, 146, 147, 148, 148,
378 148, 149, 149, 149, 149, 149, 149, 149, 149, 149,
379 150, 151, 152, 152, 152, 153, 153, 153, 153, 154,
380 154, 155, 155, 155, 155, 155, 155, 155, 156, 156,
381 156, 156, 156, 157, 157, 157, 158, 158, 158, 159,
382 159, 160, 160, 161, 162, 162, 162, 162, 162, 162,
383 162, 163, 163, 163, 163, 163, 164, 164, 165, 165,
384 165, 166, 167, 168, 168, 168, 169, 169, 169, 169,
385 169, 169, 169, 169, 169, 169, 169, 169, 169, 169,
386 169, 170, 170, 171, 172, 172, 172, 172, 172, 172,
387
388 172, 172, 172, 172, 172, 173, 173, 173, 173, 173,
389 173, 173, 173, 174, 174, 174, 175, 176, 177, 178,
390 179, 180, 181, 181, 181, 181, 182, 182, 182, 182,
391 183, 184, 184, 185, 186, 186, 186, 186, 186, 186,
392 187, 187, 187, 187, 187, 187, 188, 188, 188, 189,
393 189, 189, 189, 189, 189, 189, 189, 190, 191, 192,
394 192, 192, 193, 194, 195, 195, 195, 196, 196, 196,
395 196, 196, 197, 197, 198, 199, 200, 201, 201, 201,
396 201, 202, 202, 202, 203, 204, 205, 206, 207, 207,
397 207, 208, 209, 210, 211, 211, 211, 211, 211, 211,
398
399 212, 212, 213, 213, 214, 215, 215, 215, 215, 215,
400 215, 216, 216, 216, 216, 216, 216, 216, 216, 216,
401 217, 217, 217, 217, 217, 217, 217, 217, 217, 217,
402 218, 218, 218, 218, 218, 219, 219, 219, 219, 219,
403 220, 221, 222, 222, 223, 223, 223, 223, 223, 224,
404 224, 224, 224, 225, 225, 226, 227, 227, 227, 227,
405 227, 227, 227, 227, 227, 227, 227, 227, 227, 227,
406 228, 228, 228, 228, 228, 228, 228, 228, 229, 229,
407 229, 229, 229, 229, 230, 230, 230, 230, 230, 231,
408 231, 231, 232, 232, 232, 232, 232, 232, 232, 232,
409
410 232, 232, 232, 232, 232, 232, 233, 233, 234, 235,
411 236, 236, 237, 237, 238, 239, 240, 240, 241, 241
412 } ;
413
414 static yyconst int yy_ec[256] =
463 static yyconst flex_int32_t yy_ec[256] =
415464 { 0,
416465 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
417466 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
443492 1, 1, 1, 1, 1
444493 } ;
445494
446 static yyconst int yy_meta[49] =
495 static yyconst flex_int32_t yy_meta[49] =
447496 { 0,
448497 1, 1, 2, 1, 3, 1, 4, 5, 3, 6,
449498 6, 6, 6, 6, 6, 6, 6, 7, 1, 1,
452501 3, 3, 3, 3, 3, 3, 3, 3
453502 } ;
454503
455 static yyconst short int yy_base[630] =
504 static yyconst flex_int16_t yy_base[630] =
456505 { 0,
457506 0, 0, 1336, 1337, 1337, 1337, 1331, 1316, 41, 0,
458507 49, 59, 69, 1287, 0, 112, 69, 72, 93, 113,
525574 1172, 1178, 192, 1186, 1192, 70, 1200, 1203, 1208
526575 } ;
527576
528 static yyconst short int yy_def[630] =
577 static yyconst flex_int16_t yy_def[630] =
529578 { 0,
530579 619, 1, 619, 619, 619, 619, 620, 621, 622, 623,
531580 621, 621, 11, 13, 624, 622, 621, 621, 621, 621,
598647 619, 619, 619, 619, 619, 619, 619, 619, 619
599648 } ;
600649
601 static yyconst short int yy_nxt[1386] =
650 static yyconst flex_int16_t yy_nxt[1386] =
602651 { 0,
603652 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
604653 14, 14, 14, 14, 14, 14, 14, 4, 15, 16,
754803 619, 619, 619, 619, 619
755804 } ;
756805
757 static yyconst short int yy_chk[1386] =
806 static yyconst flex_int16_t yy_chk[1386] =
758807 { 0,
759808 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
760809 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
910959 619, 619, 619, 619, 619
911960 } ;
912961
913 static yy_state_type yy_state_buf[YY_BUF_SIZE + 2], *yy_state_ptr;
914 static char *yy_full_match;
915 static int yy_lp;
916 #define REJECT \
917 { \
918 *yy_cp = yy_hold_char; /* undo effects of setting up yytext */ \
919 yy_cp = yy_full_match; /* restore poss. backed-over text */ \
920 ++yy_lp; \
921 goto find_rule; \
922 }
962 /* Table of booleans, true if rule could match eol. */
963 static yyconst flex_int32_t yy_rule_can_match_eol[162] =
964 { 0,
965 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
966 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
967 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
968 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
969 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
970 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
971 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
972 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1,
973 0, 0, };
974
975 static yy_state_type yy_last_accepting_state;
976 static char *yy_last_accepting_cpos;
977
978 extern int Upgrade_flex_debug;
979 int Upgrade_flex_debug = 0;
980
981 /* The intent behind this definition is that it'll catch
982 * any uses of REJECT which flex missed.
983 */
984 #define REJECT reject_used_but_not_detected
923985 #define yymore() yymore_used_but_not_detected
924986 #define YY_MORE_ADJ 0
925987 #define YY_RESTORE_YY_MORE_OFFSET
926 char *yytext;
927 #line 1 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
928 #define INITIAL 0
988 char *Upgradetext;
989 #line 1 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
929990 /*===-- UpgradeLexer.l - Scanner for 1.9 assembly files --------*- C++ -*--===//
930991 //
931992 // The LLVM Compiler Infrastructure
932993 //
933 // This file was developed by Reid Spencer and is distributed under the
934 // University of Illinois Open Source License. See LICENSE.TXT for details.
994 // This file is distributed under the University of Illinois Open Source
995 // License. See LICENSE.TXT for details.
935996 //
936997 //===----------------------------------------------------------------------===//
937998 //
9391000 // This doesn't handle long double constants, since LLVM 1.9 did not have them.
9401001 //
9411002 //===----------------------------------------------------------------------===*/
942 #define YY_NEVER_INTERACTIVE 1
943 #line 29 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1003 #line 29 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
9441004 #include "UpgradeInternals.h"
9451005 #include "llvm/Module.h"
9461006 #include
10811141 /* HexIntConstant - Hexadecimal constant generated by the CFE to avoid forcing
10821142 * it to deal with 64 bit numbers.
10831143 */
1084 #line 1086 "UpgradeLexer.cpp"
1144 #line 1146 "UpgradeLexer.cpp"
1145
1146 #define INITIAL 0
1147
1148 #ifndef YY_NO_UNISTD_H
1149 /* Special case for "unistd.h", since it is non-ANSI. We include it way
1150 * down here because we want the user's section 1 to have been scanned first.
1151 * The user has a chance to override it with an option.
1152 */
1153 #include
1154 #endif
1155
1156 #ifndef YY_EXTRA_TYPE
1157 #define YY_EXTRA_TYPE void *
1158 #endif
1159
1160 static int yy_init_globals (void );
10851161
10861162 /* Macros after this point can all be overridden by user definitions in
10871163 * section 1.
10891165
10901166 #ifndef YY_SKIP_YYWRAP
10911167 #ifdef __cplusplus
1092 extern "C" int yywrap YY_PROTO(( void ));
1168 extern "C" int Upgradewrap (void );
10931169 #else
1094 extern int yywrap YY_PROTO(( void ));
1095 #endif
1096 #endif
1097
1098 #ifndef YY_NO_UNPUT
1099 static inline void yyunput YY_PROTO(( int c, char *buf_ptr ));
1100 #endif
1101
1170 extern int Upgradewrap (void );
1171 #endif
1172 #endif
1173
1174 static inline void yyunput (int c,char *buf_ptr );
1175
11021176 #ifndef yytext_ptr
1103 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));
1177 static void yy_flex_strncpy (char *,yyconst char *,int );
11041178 #endif
11051179
11061180 #ifdef YY_NEED_STRLEN
1107 static int yy_flex_strlen YY_PROTO(( yyconst char * ));
1181 static int yy_flex_strlen (yyconst char * );
11081182 #endif
11091183
11101184 #ifndef YY_NO_INPUT
1185
11111186 #ifdef __cplusplus
1112 static int yyinput YY_PROTO(( void ));
1187 static int yyinput (void );
11131188 #else
1114 static int input YY_PROTO(( void ));
1115 #endif
1116 #endif
1117
1118 #if YY_STACK_USED
1119 static int yy_start_stack_ptr = 0;
1120 static int yy_start_stack_depth = 0;
1121 static int *yy_start_stack = 0;
1122 #ifndef YY_NO_PUSH_STATE
1123 static void yy_push_state YY_PROTO(( int new_state ));
1124 #endif
1125 #ifndef YY_NO_POP_STATE
1126 static void yy_pop_state YY_PROTO(( void ));
1127 #endif
1128 #ifndef YY_NO_TOP_STATE
1129 static int yy_top_state YY_PROTO(( void ));
1130 #endif
1131
1132 #else
1133 #define YY_NO_PUSH_STATE 1
1134 #define YY_NO_POP_STATE 1
1135 #define YY_NO_TOP_STATE 1
1136 #endif
1137
1138 #ifdef YY_MALLOC_DECL
1139 YY_MALLOC_DECL
1140 #else
1141 #if __STDC__
1142 #ifndef __cplusplus
1143 #include
1144 #endif
1145 #else
1146 /* Just try to get by without declaring the routines. This will fail
1147 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int)
1148 * or sizeof(void*) != sizeof(int).
1149 */
1150 #endif
1189 static int input (void );
1190 #endif
1191
11511192 #endif
11521193
11531194 /* Amount of stuff to slurp up with each read. */
11561197 #endif
11571198
11581199 /* Copy whatever the last rule matched to the standard output. */
1159
11601200 #ifndef ECHO
11611201 /* This used to be an fputs(), but since the string might contain NUL's,
11621202 * we now use fwrite().
11631203 */
1164 #define ECHO (void) fwrite( yytext, yyleng, 1, yyout )
1204 #define ECHO (void) fwrite( Upgradetext, Upgradeleng, 1, Upgradeout )
11651205 #endif
11661206
11671207 /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL,
11691209 */
11701210 #ifndef YY_INPUT
11711211 #define YY_INPUT(buf,result,max_size) \
1172 if ( yy_current_buffer->yy_is_interactive ) \
1212 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
11731213 { \
1174 int c = '*', n; \
1214 int c = '*'; \
1215 size_t n; \
11751216 for ( n = 0; n < max_size && \
1176 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
1217 (c = getc( Upgradein )) != EOF && c != '\n'; ++n ) \
11771218 buf[n] = (char) c; \
11781219 if ( c == '\n' ) \
11791220 buf[n++] = (char) c; \
1180 if ( c == EOF && ferror( yyin ) ) \
1221 if ( c == EOF && ferror( Upgradein ) ) \
11811222 YY_FATAL_ERROR( "input in flex scanner failed" ); \
11821223 result = n; \
11831224 } \
1184 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
1185 && ferror( yyin ) ) \
1186 YY_FATAL_ERROR( "input in flex scanner failed" );
1225 else \
1226 { \
1227 errno=0; \
1228 while ( (result = fread(buf, 1, max_size, Upgradein))==0 && ferror(Upgradein)) \
1229 { \
1230 if( errno != EINTR) \
1231 { \
1232 YY_FATAL_ERROR( "input in flex scanner failed" ); \
1233 break; \
1234 } \
1235 errno=0; \
1236 clearerr(Upgradein); \
1237 } \
1238 }\
1239 \
1240
11871241 #endif
11881242
11891243 /* No semi-colon after return; correct usage is to write "yyterminate();" -
12041258 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
12051259 #endif
12061260
1261 /* end tables serialization structures and prototypes */
1262
12071263 /* Default declaration of generated scanner - a define so the user can
12081264 * easily add parameters.
12091265 */
12101266 #ifndef YY_DECL
1211 #define YY_DECL int yylex YY_PROTO(( void ))
1212 #endif
1213
1214 /* Code executed at the beginning of each rule, after yytext and yyleng
1267 #define YY_DECL_IS_OURS 1
1268
1269 extern int Upgradelex (void);
1270
1271 #define YY_DECL int Upgradelex (void)
1272 #endif /* !YY_DECL */
1273
1274 /* Code executed at the beginning of each rule, after Upgradetext and Upgradeleng
12151275 * have been set up.
12161276 */
12171277 #ifndef YY_USER_ACTION
12261286 #define YY_RULE_SETUP \
12271287 YY_USER_ACTION
12281288
1289 /** The main scanner function which does all the work.
1290 */
12291291 YY_DECL
1230 {
1292 {
12311293 register yy_state_type yy_current_state;
12321294 register char *yy_cp, *yy_bp;
12331295 register int yy_act;
1234
1235 #line 195 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1236
1237
1238 #line 1240 "UpgradeLexer.cpp"
1239
1240 if ( yy_init )
1296
1297 #line 195 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1298
1299
1300 #line 1302 "UpgradeLexer.cpp"
1301
1302 if ( !(yy_init) )
12411303 {
1242 yy_init = 0;
1304 (yy_init) = 1;
12431305
12441306 #ifdef YY_USER_INIT
12451307 YY_USER_INIT;
12461308 #endif
12471309
1248 if ( ! yy_start )
1249 yy_start = 1; /* first start state */
1250
1251 if ( ! yyin )
1252 yyin = stdin;
1253
1254 if ( ! yyout )
1255 yyout = stdout;
1256
1257 if ( ! yy_current_buffer )
1258 yy_current_buffer =
1259 yy_create_buffer( yyin, YY_BUF_SIZE );
1260
1261 yy_load_buffer_state();
1310 if ( ! (yy_start) )
1311 (yy_start) = 1; /* first start state */
1312
1313 if ( ! Upgradein )
1314 Upgradein = stdin;
1315
1316 if ( ! Upgradeout )
1317 Upgradeout = stdout;
1318
1319 if ( ! YY_CURRENT_BUFFER ) {
1320 Upgradeensure_buffer_stack ();
1321 YY_CURRENT_BUFFER_LVALUE =
1322 Upgrade_create_buffer(Upgradein,YY_BUF_SIZE );
1323 }
1324
1325 Upgrade_load_buffer_state( );
12621326 }
12631327
12641328 while ( 1 ) /* loops until end-of-file is reached */
12651329 {
1266 yy_cp = yy_c_buf_p;
1267
1268 /* Support of yytext. */
1269 *yy_cp = yy_hold_char;
1330 yy_cp = (yy_c_buf_p);
1331
1332 /* Support of Upgradetext. */
1333 *yy_cp = (yy_hold_char);
12701334
12711335 /* yy_bp points to the position in yy_ch_buf of the start of
12721336 * the current run.
12731337 */
12741338 yy_bp = yy_cp;
12751339
1276 yy_current_state = yy_start;
1277 yy_state_ptr = yy_state_buf;
1278 *yy_state_ptr++ = yy_current_state;
1340 yy_current_state = (yy_start);
12791341 yy_match:
12801342 do
12811343 {
12821344 register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1345 if ( yy_accept[yy_current_state] )
1346 {
1347 (yy_last_accepting_state) = yy_current_state;
1348 (yy_last_accepting_cpos) = yy_cp;
1349 }
12831350 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
12841351 {
12851352 yy_current_state = (int) yy_def[yy_current_state];
12871354 yy_c = yy_meta[(unsigned int) yy_c];
12881355 }
12891356 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1290 *yy_state_ptr++ = yy_current_state;
12911357 ++yy_cp;
12921358 }
12931359 while ( yy_current_state != 619 );
1360 yy_cp = (yy_last_accepting_cpos);
1361 yy_current_state = (yy_last_accepting_state);
12941362
12951363 yy_find_action:
1296 yy_current_state = *--yy_state_ptr;
1297 yy_lp = yy_accept[yy_current_state];
1298 find_rule: /* we branch to this label when backing up */
1299 for ( ; ; ) /* until we find what rule we matched */
1300 {
1301 if ( yy_lp && yy_lp < yy_accept[yy_current_state + 1] )
1302 {
1303 yy_act = yy_acclist[yy_lp];
1304 {
1305 yy_full_match = yy_cp;
1306 break;
1307 }
1308 }
1309 --yy_cp;
1310 yy_current_state = *--yy_state_ptr;
1311 yy_lp = yy_accept[yy_current_state];
1312 }
1364 yy_act = yy_accept[yy_current_state];
13131365
13141366 YY_DO_BEFORE_ACTION;
13151367
1316 if ( yy_act != YY_END_OF_BUFFER )
1368 if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )
13171369 {
13181370 int yyl;
1319 for ( yyl = 0; yyl < yyleng; ++yyl )
1320 if ( yytext[yyl] == '\n' )
1321 ++yylineno;
1371 for ( yyl = 0; yyl < Upgradeleng; ++yyl )
1372 if ( Upgradetext[yyl] == '\n' )
1373
1374 Upgradelineno++;
1375 ;
13221376 }
13231377
13241378 do_action: /* This label is used only to access EOF actions. */
1325
13261379
13271380 switch ( yy_act )
13281381 { /* beginning of action switch */
1382 case 0: /* must back up */
1383 /* undo the effects of YY_DO_BEFORE_ACTION */
1384 *yy_cp = (yy_hold_char);
1385 yy_cp = (yy_last_accepting_cpos);
1386 yy_current_state = (yy_last_accepting_state);
1387 goto yy_find_action;
1388
13291389 case 1:
13301390 YY_RULE_SETUP
1331 #line 197 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1391 #line 197 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13321392 { /* Ignore comments for now */ }
13331393 YY_BREAK
13341394 case 2:
13351395 YY_RULE_SETUP
1336 #line 199 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1396 #line 199 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13371397 { return BEGINTOK; }
13381398 YY_BREAK
13391399 case 3:
13401400 YY_RULE_SETUP
1341 #line 200 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1401 #line 200 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13421402 { return ENDTOK; }
13431403 YY_BREAK
13441404 case 4:
13451405 YY_RULE_SETUP
1346 #line 201 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1406 #line 201 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13471407 { return TRUETOK; }
13481408 YY_BREAK
13491409 case 5:
13501410 YY_RULE_SETUP
1351 #line 202 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1411 #line 202 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13521412 { return FALSETOK; }
13531413 YY_BREAK
13541414 case 6:
13551415 YY_RULE_SETUP
1356 #line 203 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1416 #line 203 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13571417 { return DECLARE; }
13581418 YY_BREAK
13591419 case 7:
13601420 YY_RULE_SETUP
1361 #line 204 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1421 #line 204 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13621422 { return GLOBAL; }
13631423 YY_BREAK
13641424 case 8:
13651425 YY_RULE_SETUP
1366 #line 205 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1426 #line 205 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13671427 { return CONSTANT; }
13681428 YY_BREAK
13691429 case 9:
13701430 YY_RULE_SETUP
1371 #line 206 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1431 #line 206 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13721432 { return INTERNAL; }
13731433 YY_BREAK
13741434 case 10:
13751435 YY_RULE_SETUP
1376 #line 207 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1436 #line 207 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13771437 { return LINKONCE; }
13781438 YY_BREAK
13791439 case 11:
13801440 YY_RULE_SETUP
1381 #line 208 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1441 #line 208 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13821442 { return WEAK; }
13831443 YY_BREAK
13841444 case 12:
13851445 YY_RULE_SETUP
1386 #line 209 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1446 #line 209 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13871447 { return APPENDING; }
13881448 YY_BREAK
13891449 case 13:
13901450 YY_RULE_SETUP
1391 #line 210 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1451 #line 210 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13921452 { return DLLIMPORT; }
13931453 YY_BREAK
13941454 case 14:
13951455 YY_RULE_SETUP
1396 #line 211 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1456 #line 211 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
13971457 { return DLLEXPORT; }
13981458 YY_BREAK
13991459 case 15:
14001460 YY_RULE_SETUP
1401 #line 212 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1461 #line 212 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14021462 { return EXTERN_WEAK; }
14031463 YY_BREAK
14041464 case 16:
14051465 YY_RULE_SETUP
1406 #line 213 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1466 #line 213 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14071467 { return EXTERNAL; } /* Deprecated, turn into external */
14081468 YY_BREAK
14091469 case 17:
14101470 YY_RULE_SETUP
1411 #line 214 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1471 #line 214 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14121472 { return EXTERNAL; }
14131473 YY_BREAK
14141474 case 18:
14151475 YY_RULE_SETUP
1416 #line 215 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1476 #line 215 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14171477 { return IMPLEMENTATION; }
14181478 YY_BREAK
14191479 case 19:
14201480 YY_RULE_SETUP
1421 #line 216 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1481 #line 216 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14221482 { return ZEROINITIALIZER; }
14231483 YY_BREAK
14241484 case 20:
14251485 YY_RULE_SETUP
1426 #line 217 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1486 #line 217 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14271487 { return DOTDOTDOT; }
14281488 YY_BREAK
14291489 case 21:
14301490 YY_RULE_SETUP
1431 #line 218 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1491 #line 218 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14321492 { return UNDEF; }
14331493 YY_BREAK
14341494 case 22:
14351495 YY_RULE_SETUP
1436 #line 219 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1496 #line 219 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14371497 { return NULL_TOK; }
14381498 YY_BREAK
14391499 case 23:
14401500 YY_RULE_SETUP
1441 #line 220 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1501 #line 220 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14421502 { return TO; }
14431503 YY_BREAK
14441504 case 24:
14451505 YY_RULE_SETUP
1446 #line 221 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1506 #line 221 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14471507 { return EXCEPT; }
14481508 YY_BREAK
14491509 case 25:
14501510 YY_RULE_SETUP
1451 #line 222 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1511 #line 222 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14521512 { return NOT; } /* Deprecated, turned into XOR */
14531513 YY_BREAK
14541514 case 26:
14551515 YY_RULE_SETUP
1456 #line 223 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1516 #line 223 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14571517 { return TAIL; }
14581518 YY_BREAK
14591519 case 27:
14601520 YY_RULE_SETUP
1461 #line 224 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1521 #line 224 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14621522 { return TARGET; }
14631523 YY_BREAK
14641524 case 28:
14651525 YY_RULE_SETUP
1466 #line 225 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1526 #line 225 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14671527 { return TRIPLE; }
14681528 YY_BREAK
14691529 case 29:
14701530 YY_RULE_SETUP
1471 #line 226 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1531 #line 226 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14721532 { return DEPLIBS; }
14731533 YY_BREAK
14741534 case 30:
14751535 YY_RULE_SETUP
1476 #line 227 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1536 #line 227 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14771537 { return ENDIAN; }
14781538 YY_BREAK
14791539 case 31:
14801540 YY_RULE_SETUP
1481 #line 228 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1541 #line 228 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14821542 { return POINTERSIZE; }
14831543 YY_BREAK
14841544 case 32:
14851545 YY_RULE_SETUP
1486 #line 229 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1546 #line 229 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14871547 { return DATALAYOUT; }
14881548 YY_BREAK
14891549 case 33:
14901550 YY_RULE_SETUP
1491 #line 230 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1551 #line 230 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14921552 { return LITTLE; }
14931553 YY_BREAK
14941554 case 34:
14951555 YY_RULE_SETUP
1496 #line 231 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1556 #line 231 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
14971557 { return BIG; }
14981558 YY_BREAK
14991559 case 35:
15001560 YY_RULE_SETUP
1501 #line 232 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1561 #line 232 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15021562 { return VOLATILE; }
15031563 YY_BREAK
15041564 case 36:
15051565 YY_RULE_SETUP
1506 #line 233 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1566 #line 233 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15071567 { return ALIGN; }
15081568 YY_BREAK
15091569 case 37:
15101570 YY_RULE_SETUP
1511 #line 234 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1571 #line 234 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15121572 { return SECTION; }
15131573 YY_BREAK
15141574 case 38:
15151575 YY_RULE_SETUP
1516 #line 235 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1576 #line 235 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15171577 { return MODULE; }
15181578 YY_BREAK
15191579 case 39:
15201580 YY_RULE_SETUP
1521 #line 236 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1581 #line 236 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15221582 { return ASM_TOK; }
15231583 YY_BREAK
15241584 case 40:
15251585 YY_RULE_SETUP
1526 #line 237 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1586 #line 237 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15271587 { return SIDEEFFECT; }
15281588 YY_BREAK
15291589 case 41:
15301590 YY_RULE_SETUP
1531 #line 239 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1591 #line 239 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15321592 { return CC_TOK; }
15331593 YY_BREAK
15341594 case 42:
15351595 YY_RULE_SETUP
1536 #line 240 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1596 #line 240 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15371597 { return CCC_TOK; }
15381598 YY_BREAK
15391599 case 43:
15401600 YY_RULE_SETUP
1541 #line 241 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1601 #line 241 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15421602 { return CSRETCC_TOK; }
15431603 YY_BREAK
15441604 case 44:
15451605 YY_RULE_SETUP
1546 #line 242 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1606 #line 242 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15471607 { return FASTCC_TOK; }
15481608 YY_BREAK
15491609 case 45:
15501610 YY_RULE_SETUP
1551 #line 243 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1611 #line 243 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15521612 { return COLDCC_TOK; }
15531613 YY_BREAK
15541614 case 46:
15551615 YY_RULE_SETUP
1556 #line 244 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1616 #line 244 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15571617 { return X86_STDCALLCC_TOK; }
15581618 YY_BREAK
15591619 case 47:
15601620 YY_RULE_SETUP
1561 #line 245 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1621 #line 245 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15621622 { return X86_FASTCALLCC_TOK; }
15631623 YY_BREAK
15641624 case 48:
15651625 YY_RULE_SETUP
1566 #line 247 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1626 #line 247 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15671627 { RET_TY(SBYTE, Type::Int8Ty, 2); }
15681628 YY_BREAK
15691629 case 49:
15701630 YY_RULE_SETUP
1571 #line 248 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1631 #line 248 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15721632 { RET_TY(UBYTE, Type::Int8Ty, 1); }
15731633 YY_BREAK
15741634 case 50:
15751635 YY_RULE_SETUP
1576 #line 249 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1636 #line 249 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15771637 { RET_TY(UBYTE, Type::Int8Ty, 1); }
15781638 YY_BREAK
15791639 case 51:
15801640 YY_RULE_SETUP
1581 #line 250 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1641 #line 250 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15821642 { RET_TY(SHORT, Type::Int16Ty, 2); }
15831643 YY_BREAK
15841644 case 52:
15851645 YY_RULE_SETUP
1586 #line 251 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1646 #line 251 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15871647 { RET_TY(USHORT, Type::Int16Ty, 1); }
15881648 YY_BREAK
15891649 case 53:
15901650 YY_RULE_SETUP
1591 #line 252 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1651 #line 252 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15921652 { RET_TY(USHORT, Type::Int16Ty, 1); }
15931653 YY_BREAK
15941654 case 54:
15951655 YY_RULE_SETUP
1596 #line 253 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1656 #line 253 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
15971657 { RET_TY(INT, Type::Int32Ty, 2); }
15981658 YY_BREAK
15991659 case 55:
16001660 YY_RULE_SETUP
1601 #line 254 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1661 #line 254 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16021662 { RET_TY(UINT, Type::Int32Ty, 1); }
16031663 YY_BREAK
16041664 case 56:
16051665 YY_RULE_SETUP
1606 #line 255 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1666 #line 255 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16071667 { RET_TY(UINT, Type::Int32Ty, 1); }
16081668 YY_BREAK
16091669 case 57:
16101670 YY_RULE_SETUP
1611 #line 256 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1671 #line 256 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16121672 { RET_TY(LONG, Type::Int64Ty, 2); }
16131673 YY_BREAK
16141674 case 58:
16151675 YY_RULE_SETUP
1616 #line 257 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1676 #line 257 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16171677 { RET_TY(ULONG, Type::Int64Ty, 1); }
16181678 YY_BREAK
16191679 case 59:
16201680 YY_RULE_SETUP
1621 #line 258 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1681 #line 258 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16221682 { RET_TY(ULONG, Type::Int64Ty, 1); }
16231683 YY_BREAK
16241684 case 60:
16251685 YY_RULE_SETUP
1626 #line 259 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1686 #line 259 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16271687 { RET_TY(VOID, Type::VoidTy, 0); }
16281688 YY_BREAK
16291689 case 61:
16301690 YY_RULE_SETUP
1631 #line 260 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1691 #line 260 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16321692 { RET_TY(BOOL, Type::Int1Ty, 1); }
16331693 YY_BREAK
16341694 case 62:
16351695 YY_RULE_SETUP
1636 #line 261 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1696 #line 261 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16371697 { RET_TY(BOOL, Type::Int1Ty, 1); }
16381698 YY_BREAK
16391699 case 63:
16401700 YY_RULE_SETUP
1641 #line 262 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1701 #line 262 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16421702 { RET_TY(FLOAT, Type::FloatTy, 0); }
16431703 YY_BREAK
16441704 case 64:
16451705 YY_RULE_SETUP
1646 #line 263 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1706 #line 263 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16471707 { RET_TY(DOUBLE, Type::DoubleTy,0); }
16481708 YY_BREAK
16491709 case 65:
16501710 YY_RULE_SETUP
1651 #line 264 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1711 #line 264 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16521712 { RET_TY(LABEL, Type::LabelTy, 0); }
16531713 YY_BREAK
16541714 case 66:
16551715 YY_RULE_SETUP
1656 #line 265 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1716 #line 265 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16571717 { return TYPE; }
16581718 YY_BREAK
16591719 case 67:
16601720 YY_RULE_SETUP
1661 #line 266 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1721 #line 266 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16621722 { return OPAQUE; }
16631723 YY_BREAK
16641724 case 68:
16651725 YY_RULE_SETUP
1666 #line 268 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1726 #line 268 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16671727 { RET_TOK(BinaryOpVal, AddOp, ADD); }
16681728 YY_BREAK
16691729 case 69:
16701730 YY_RULE_SETUP
1671 #line 269 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1731 #line 269 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16721732 { RET_TOK(BinaryOpVal, SubOp, SUB); }
16731733 YY_BREAK
16741734 case 70:
16751735 YY_RULE_SETUP
1676 #line 270 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1736 #line 270 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16771737 { RET_TOK(BinaryOpVal, MulOp, MUL); }
16781738 YY_BREAK
16791739 case 71:
16801740 YY_RULE_SETUP
1681 #line 271 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1741 #line 271 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16821742 { RET_TOK(BinaryOpVal, DivOp, DIV); }
16831743 YY_BREAK
16841744 case 72:
16851745 YY_RULE_SETUP
1686 #line 272 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1746 #line 272 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16871747 { RET_TOK(BinaryOpVal, UDivOp, UDIV); }
16881748 YY_BREAK
16891749 case 73:
16901750 YY_RULE_SETUP
1691 #line 273 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1751 #line 273 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16921752 { RET_TOK(BinaryOpVal, SDivOp, SDIV); }
16931753 YY_BREAK
16941754 case 74:
16951755 YY_RULE_SETUP
1696 #line 274 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1756 #line 274 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
16971757 { RET_TOK(BinaryOpVal, FDivOp, FDIV); }
16981758 YY_BREAK
16991759 case 75:
17001760 YY_RULE_SETUP
1701 #line 275 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1761 #line 275 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17021762 { RET_TOK(BinaryOpVal, RemOp, REM); }
17031763 YY_BREAK
17041764 case 76:
17051765 YY_RULE_SETUP
1706 #line 276 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1766 #line 276 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17071767 { RET_TOK(BinaryOpVal, URemOp, UREM); }
17081768 YY_BREAK
17091769 case 77:
17101770 YY_RULE_SETUP
1711 #line 277 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1771 #line 277 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17121772 { RET_TOK(BinaryOpVal, SRemOp, SREM); }
17131773 YY_BREAK
17141774 case 78:
17151775 YY_RULE_SETUP
1716 #line 278 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1776 #line 278 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17171777 { RET_TOK(BinaryOpVal, FRemOp, FREM); }
17181778 YY_BREAK
17191779 case 79:
17201780 YY_RULE_SETUP
1721 #line 279 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1781 #line 279 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17221782 { RET_TOK(BinaryOpVal, AndOp, AND); }
17231783 YY_BREAK
17241784 case 80:
17251785 YY_RULE_SETUP
1726 #line 280 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1786 #line 280 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17271787 { RET_TOK(BinaryOpVal, OrOp , OR ); }
17281788 YY_BREAK
17291789 case 81:
17301790 YY_RULE_SETUP
1731 #line 281 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1791 #line 281 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17321792 { RET_TOK(BinaryOpVal, XorOp, XOR); }
17331793 YY_BREAK
17341794 case 82:
17351795 YY_RULE_SETUP
1736 #line 282 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1796 #line 282 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17371797 { RET_TOK(BinaryOpVal, SetNE, SETNE); }
17381798 YY_BREAK
17391799 case 83:
17401800 YY_RULE_SETUP
1741 #line 283 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1801 #line 283 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17421802 { RET_TOK(BinaryOpVal, SetEQ, SETEQ); }
17431803 YY_BREAK
17441804 case 84:
17451805 YY_RULE_SETUP
1746 #line 284 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1806 #line 284 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17471807 { RET_TOK(BinaryOpVal, SetLT, SETLT); }
17481808 YY_BREAK
17491809 case 85:
17501810 YY_RULE_SETUP
1751 #line 285 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1811 #line 285 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17521812 { RET_TOK(BinaryOpVal, SetGT, SETGT); }
17531813 YY_BREAK
17541814 case 86:
17551815 YY_RULE_SETUP
1756 #line 286 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1816 #line 286 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17571817 { RET_TOK(BinaryOpVal, SetLE, SETLE); }
17581818 YY_BREAK
17591819 case 87:
17601820 YY_RULE_SETUP
1761 #line 287 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1821 #line 287 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17621822 { RET_TOK(BinaryOpVal, SetGE, SETGE); }
17631823 YY_BREAK
17641824 case 88:
17651825 YY_RULE_SETUP
1766 #line 288 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1826 #line 288 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17671827 { RET_TOK(BinaryOpVal, ShlOp, SHL); }
17681828 YY_BREAK
17691829 case 89:
17701830 YY_RULE_SETUP
1771 #line 289 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1831 #line 289 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17721832 { RET_TOK(BinaryOpVal, ShrOp, SHR); }
17731833 YY_BREAK
17741834 case 90:
17751835 YY_RULE_SETUP
1776 #line 290 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1836 #line 290 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17771837 { RET_TOK(BinaryOpVal, LShrOp, LSHR); }
17781838 YY_BREAK
17791839 case 91:
17801840 YY_RULE_SETUP
1781 #line 291 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1841 #line 291 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17821842 { RET_TOK(BinaryOpVal, AShrOp, ASHR); }
17831843 YY_BREAK
17841844 case 92:
17851845 YY_RULE_SETUP
1786 #line 293 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1846 #line 293 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17871847 { RET_TOK(OtherOpVal, ICmpOp, ICMP); }
17881848 YY_BREAK
17891849 case 93:
17901850 YY_RULE_SETUP
1791 #line 294 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1851 #line 294 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17921852 { RET_TOK(OtherOpVal, FCmpOp, FCMP); }
17931853 YY_BREAK
17941854 case 94:
17951855 YY_RULE_SETUP
1796 #line 296 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1856 #line 296 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
17971857 { return EQ; }
17981858 YY_BREAK
17991859 case 95:
18001860 YY_RULE_SETUP
1801 #line 297 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1861 #line 297 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18021862 { return NE; }
18031863 YY_BREAK
18041864 case 96:
18051865 YY_RULE_SETUP
1806 #line 298 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1866 #line 298 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18071867 { return SLT; }
18081868 YY_BREAK
18091869 case 97:
18101870 YY_RULE_SETUP
1811 #line 299 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1871 #line 299 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18121872 { return SGT; }
18131873 YY_BREAK
18141874 case 98:
18151875 YY_RULE_SETUP
1816 #line 300 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1876 #line 300 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18171877 { return SLE; }
18181878 YY_BREAK
18191879 case 99:
18201880 YY_RULE_SETUP
1821 #line 301 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1881 #line 301 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18221882 { return SGE; }
18231883 YY_BREAK
18241884 case 100:
18251885 YY_RULE_SETUP
1826 #line 302 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1886 #line 302 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18271887 { return ULT; }
18281888 YY_BREAK
18291889 case 101:
18301890 YY_RULE_SETUP
1831 #line 303 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1891 #line 303 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18321892 { return UGT; }
18331893 YY_BREAK
18341894 case 102:
18351895 YY_RULE_SETUP
1836 #line 304 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1896 #line 304 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18371897 { return ULE; }
18381898 YY_BREAK
18391899 case 103:
18401900 YY_RULE_SETUP
1841 #line 305 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1901 #line 305 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18421902 { return UGE; }
18431903 YY_BREAK
18441904 case 104:
18451905 YY_RULE_SETUP
1846 #line 306 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1906 #line 306 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18471907 { return OEQ; }
18481908 YY_BREAK
18491909 case 105:
18501910 YY_RULE_SETUP
1851 #line 307 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1911 #line 307 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18521912 { return ONE; }
18531913 YY_BREAK
18541914 case 106:
18551915 YY_RULE_SETUP
1856 #line 308 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1916 #line 308 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18571917 { return OLT; }
18581918 YY_BREAK
18591919 case 107:
18601920 YY_RULE_SETUP
1861 #line 309 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1921 #line 309 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18621922 { return OGT; }
18631923 YY_BREAK
18641924 case 108:
18651925 YY_RULE_SETUP
1866 #line 310 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1926 #line 310 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18671927 { return OLE; }
18681928 YY_BREAK
18691929 case 109:
18701930 YY_RULE_SETUP
1871 #line 311 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1931 #line 311 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18721932 { return OGE; }
18731933 YY_BREAK
18741934 case 110:
18751935 YY_RULE_SETUP
1876 #line 312 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1936 #line 312 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18771937 { return ORD; }
18781938 YY_BREAK
18791939 case 111:
18801940 YY_RULE_SETUP
1881 #line 313 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1941 #line 313 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18821942 { return UNO; }
18831943 YY_BREAK
18841944 case 112:
18851945 YY_RULE_SETUP
1886 #line 314 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1946 #line 314 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18871947 { return UEQ; }
18881948 YY_BREAK
18891949 case 113:
18901950 YY_RULE_SETUP
1891 #line 315 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1951 #line 315 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18921952 { return UNE; }
18931953 YY_BREAK
18941954 case 114:
18951955 YY_RULE_SETUP
1896 #line 317 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1956 #line 317 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
18971957 { RET_TOK(OtherOpVal, PHIOp, PHI_TOK); }
18981958 YY_BREAK
18991959 case 115:
19001960 YY_RULE_SETUP
1901 #line 318 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1961 #line 318 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19021962 { RET_TOK(OtherOpVal, CallOp, CALL); }
19031963 YY_BREAK
19041964 case 116:
19051965 YY_RULE_SETUP
1906 #line 319 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1966 #line 319 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19071967 { RET_TOK(CastOpVal, CastOp, CAST); }
19081968 YY_BREAK
19091969 case 117:
19101970 YY_RULE_SETUP
1911 #line 320 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1971 #line 320 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19121972 { RET_TOK(CastOpVal, TruncOp, TRUNC); }
19131973 YY_BREAK
19141974 case 118:
19151975 YY_RULE_SETUP
1916 #line 321 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1976 #line 321 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19171977 { RET_TOK(CastOpVal, ZExtOp , ZEXT); }
19181978 YY_BREAK
19191979 case 119:
19201980 YY_RULE_SETUP
1921 #line 322 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1981 #line 322 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19221982 { RET_TOK(CastOpVal, SExtOp, SEXT); }
19231983 YY_BREAK
19241984 case 120:
19251985 YY_RULE_SETUP
1926 #line 323 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1986 #line 323 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19271987 { RET_TOK(CastOpVal, FPTruncOp, FPTRUNC); }
19281988 YY_BREAK
19291989 case 121:
19301990 YY_RULE_SETUP
1931 #line 324 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1991 #line 324 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19321992 { RET_TOK(CastOpVal, FPExtOp, FPEXT); }
19331993 YY_BREAK
19341994 case 122:
19351995 YY_RULE_SETUP
1936 #line 325 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
1996 #line 325 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19371997 { RET_TOK(CastOpVal, FPToUIOp, FPTOUI); }
19381998 YY_BREAK
19391999 case 123:
19402000 YY_RULE_SETUP
1941 #line 326 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2001 #line 326 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19422002 { RET_TOK(CastOpVal, FPToSIOp, FPTOSI); }
19432003 YY_BREAK
19442004 case 124:
19452005 YY_RULE_SETUP
1946 #line 327 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2006 #line 327 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19472007 { RET_TOK(CastOpVal, UIToFPOp, UITOFP); }
19482008 YY_BREAK
19492009 case 125:
19502010 YY_RULE_SETUP
1951 #line 328 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2011 #line 328 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19522012 { RET_TOK(CastOpVal, SIToFPOp, SITOFP); }
19532013 YY_BREAK
19542014 case 126:
19552015 YY_RULE_SETUP
1956 #line 329 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2016 #line 329 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19572017 { RET_TOK(CastOpVal, PtrToIntOp, PTRTOINT); }
19582018 YY_BREAK
19592019 case 127:
19602020 YY_RULE_SETUP
1961 #line 330 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2021 #line 330 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19622022 { RET_TOK(CastOpVal, IntToPtrOp, INTTOPTR); }
19632023 YY_BREAK
19642024 case 128:
19652025 YY_RULE_SETUP
1966 #line 331 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2026 #line 331 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19672027 { RET_TOK(CastOpVal, BitCastOp, BITCAST); }
19682028 YY_BREAK
19692029 case 129:
19702030 YY_RULE_SETUP
1971 #line 332 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2031 #line 332 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19722032 { RET_TOK(OtherOpVal, SelectOp, SELECT); }
19732033 YY_BREAK
19742034 case 130:
19752035 YY_RULE_SETUP
1976 #line 333 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2036 #line 333 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19772037 { return VANEXT_old; }
19782038 YY_BREAK
19792039 case 131:
19802040 YY_RULE_SETUP
1981 #line 334 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2041 #line 334 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19822042 { return VAARG_old; }
19832043 YY_BREAK
19842044 case 132:
19852045 YY_RULE_SETUP
1986 #line 335 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2046 #line 335 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19872047 { RET_TOK(OtherOpVal, VAArg , VAARG); }
19882048 YY_BREAK
19892049 case 133:
19902050 YY_RULE_SETUP
1991 #line 336 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2051 #line 336 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19922052 { RET_TOK(TermOpVal, RetOp, RET); }
19932053 YY_BREAK
19942054 case 134:
19952055 YY_RULE_SETUP
1996 #line 337 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2056 #line 337 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
19972057 { RET_TOK(TermOpVal, BrOp, BR); }
19982058 YY_BREAK
19992059 case 135:
20002060 YY_RULE_SETUP
2001 #line 338 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2061 #line 338 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20022062 { RET_TOK(TermOpVal, SwitchOp, SWITCH); }
20032063 YY_BREAK
20042064 case 136:
20052065 YY_RULE_SETUP
2006 #line 339 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2066 #line 339 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20072067 { RET_TOK(TermOpVal, InvokeOp, INVOKE); }
20082068 YY_BREAK
20092069 case 137:
20102070 YY_RULE_SETUP
2011 #line 340 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2071 #line 340 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20122072 { return UNWIND; }
20132073 YY_BREAK
20142074 case 138:
20152075 YY_RULE_SETUP
2016 #line 341 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2076 #line 341 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20172077 { RET_TOK(TermOpVal, UnreachableOp, UNREACHABLE); }
20182078 YY_BREAK
20192079 case 139:
20202080 YY_RULE_SETUP
2021 #line 343 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2081 #line 343 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20222082 { RET_TOK(MemOpVal, MallocOp, MALLOC); }
20232083 YY_BREAK
20242084 case 140:
20252085 YY_RULE_SETUP
2026 #line 344 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2086 #line 344 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20272087 { RET_TOK(MemOpVal, AllocaOp, ALLOCA); }
20282088 YY_BREAK
20292089 case 141:
20302090 YY_RULE_SETUP
2031 #line 345 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2091 #line 345 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20322092 { RET_TOK(MemOpVal, FreeOp, FREE); }
20332093 YY_BREAK
20342094 case 142:
20352095 YY_RULE_SETUP
2036 #line 346 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2096 #line 346 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20372097 { RET_TOK(MemOpVal, LoadOp, LOAD); }
20382098 YY_BREAK
20392099 case 143:
20402100 YY_RULE_SETUP
2041 #line 347 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2101 #line 347 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20422102 { RET_TOK(MemOpVal, StoreOp, STORE); }
20432103 YY_BREAK
20442104 case 144:
20452105 YY_RULE_SETUP
2046 #line 348 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2106 #line 348 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20472107 { RET_TOK(MemOpVal, GetElementPtrOp, GETELEMENTPTR); }
20482108 YY_BREAK
20492109 case 145:
20502110 YY_RULE_SETUP
2051 #line 350 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2111 #line 350 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20522112 { RET_TOK(OtherOpVal, ExtractElementOp, EXTRACTELEMENT); }
20532113 YY_BREAK
20542114 case 146:
20552115 YY_RULE_SETUP
2056 #line 351 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2116 #line 351 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20572117 { RET_TOK(OtherOpVal, InsertElementOp, INSERTELEMENT); }
20582118 YY_BREAK
20592119 case 147:
20602120 YY_RULE_SETUP
2061 #line 352 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2121 #line 352 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20622122 { RET_TOK(OtherOpVal, ShuffleVectorOp, SHUFFLEVECTOR); }
20632123 YY_BREAK
20642124 case 148:
20652125 YY_RULE_SETUP
2066 #line 355 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2067 {
2068 UnEscapeLexed(yytext+1);
2069 Upgradelval.StrVal = strdup(yytext+1); // Skip %
2126 #line 355 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2127 {
2128 UnEscapeLexed(Upgradetext+1);
2129 Upgradelval.StrVal = strdup(Upgradetext+1); // Skip %
20702130 return VAR_ID;
20712131 }
20722132 YY_BREAK
20732133 case 149:
20742134 YY_RULE_SETUP
2075 #line 360 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2076 {
2077 yytext[strlen(yytext)-1] = 0; // nuke colon
2078 UnEscapeLexed(yytext);
2079 Upgradelval.StrVal = strdup(yytext);
2135 #line 360 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2136 {
2137 Upgradetext[strlen(Upgradetext)-1] = 0; // nuke colon
2138 UnEscapeLexed(Upgradetext);
2139 Upgradelval.StrVal = strdup(Upgradetext);
20802140 return LABELSTR;
20812141 }
20822142 YY_BREAK
20832143 case 150:
2084 YY_RULE_SETUP
2085 #line 366 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2086 {
2087 yytext[strlen(yytext)-2] = 0; // nuke colon, end quote
2088 UnEscapeLexed(yytext+1);
2089 Upgradelval.StrVal = strdup(yytext+1);
2144 /* rule 150 can match eol */
2145 YY_RULE_SETUP
2146 #line 366 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2147 {
2148 Upgradetext[strlen(Upgradetext)-2] = 0; // nuke colon, end quote
2149 UnEscapeLexed(Upgradetext+1);
2150 Upgradelval.StrVal = strdup(Upgradetext+1);
20902151 return LABELSTR;
20912152 }
20922153 YY_BREAK
20932154 case 151:
2094 YY_RULE_SETUP
2095 #line 373 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2155 /* rule 151 can match eol */
2156 YY_RULE_SETUP
2157 #line 373 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
20962158 { // Note that we cannot unescape a string constant here! The
20972159 // string constant might contain a \00 which would not be
20982160 // understood by the string stuff. It is valid to make a
20992161 // [sbyte] c"Hello World\00" constant, for example.
21002162 //
2101 yytext[strlen(yytext)-1] = 0; // nuke end quote
2102 Upgradelval.StrVal = strdup(yytext+1); // Nuke start quote
2163 Upgradetext[strlen(Upgradetext)-1] = 0; // nuke end quote
2164 Upgradelval.StrVal = strdup(Upgradetext+1); // Nuke start quote
21032165 return STRINGCONSTANT;
21042166 }
21052167 YY_BREAK
21062168 case 152:
21072169 YY_RULE_SETUP
2108 #line 384 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2109 { Upgradelval.UInt64Val = atoull(yytext); return EUINT64VAL; }
2170 #line 384 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2171 { Upgradelval.UInt64Val = atoull(Upgradetext); return EUINT64VAL; }
21102172 YY_BREAK
21112173 case 153:
21122174 YY_RULE_SETUP
2113 #line 385 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2114 {
2115 uint64_t Val = atoull(yytext+1);
2175 #line 385 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2176 {
2177 uint64_t Val = atoull(Upgradetext+1);
21162178 // +1: we have bigger negative range
21172179 if (Val > (uint64_t)INT64_MAX+1)
21182180 error("Constant too large for signed 64 bits!");
21222184 YY_BREAK
21232185 case 154:
21242186 YY_RULE_SETUP
2125 #line 393 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2126 {
2127 Upgradelval.UInt64Val = HexIntToVal(yytext+3);
2128 return yytext[0] == 's' ? ESINT64VAL : EUINT64VAL;
2187 #line 393 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2188 {
2189 Upgradelval.UInt64Val = HexIntToVal(Upgradetext+3);
2190 return Upgradetext[0] == 's' ? ESINT64VAL : EUINT64VAL;
21292191 }
21302192 YY_BREAK
21312193 case 155:
21322194 YY_RULE_SETUP
2133 #line 398 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2134 {
2135 uint64_t Val = atoull(yytext+1);
2195 #line 398 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2196 {
2197 uint64_t Val = atoull(Upgradetext+1);
21362198 if ((unsigned)Val != Val)
21372199 error("Invalid value number (too large)!");
21382200 Upgradelval.UIntVal = unsigned(Val);
21412203 YY_BREAK
21422204 case 156:
21432205 YY_RULE_SETUP
2144 #line 405 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2145 {
2146 uint64_t Val = atoull(yytext+2);
2206 #line 405 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2207 {
2208 uint64_t Val = atoull(Upgradetext+2);
21472209 // +1: we have bigger negative range
21482210 if (Val > (uint64_t)INT32_MAX+1)
21492211 error("Constant too large for signed 32 bits!");
21532215 YY_BREAK
21542216 case 157:
21552217 YY_RULE_SETUP
2156 #line 414 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2157 { Upgradelval.FPVal = new APFloat(atof(yytext)); return FPVAL; }
2218 #line 414 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2219 { Upgradelval.FPVal = new APFloat(atof(Upgradetext)); return FPVAL; }
21582220 YY_BREAK
21592221 case 158:
21602222 YY_RULE_SETUP
2161 #line 415 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2162 { Upgradelval.FPVal = new APFloat(HexToFP(yytext));
2223 #line 415 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2224 { Upgradelval.FPVal = new APFloat(HexToFP(Upgradetext));
21632225 return FPVAL;
21642226 }
21652227 YY_BREAK
21662228 case YY_STATE_EOF(INITIAL):
2167 #line 419 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2229 #line 419 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21682230 {
21692231 /* Make sure to free the internal buffers for flex when we are
21702232 * done reading our input!
21712233 */
2172 yy_delete_buffer(YY_CURRENT_BUFFER);
2234 Upgrade_delete_buffer(YY_CURRENT_BUFFER);
21732235 return EOF;
21742236 }
21752237 YY_BREAK
21762238 case 159:
2177 YY_RULE_SETUP
2178 #line 427 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2239 /* rule 159 can match eol */
2240 YY_RULE_SETUP
2241 #line 427 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21792242 { /* Ignore whitespace */ }
21802243 YY_BREAK
21812244 case 160:
21822245 YY_RULE_SETUP
2183 #line 428 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2184 { return yytext[0]; }
2246 #line 428 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2247 { return Upgradetext[0]; }
21852248 YY_BREAK
21862249 case 161:
21872250 YY_RULE_SETUP
2188 #line 430 "/Volumes/MacOS9/gcc/llvm/tools/llvm-upgrade/UpgradeLexer.l"
2251 #line 430 "/Users/sabre/llvm/tools/llvm-upgrade/UpgradeLexer.l"
21892252 YY_FATAL_ERROR( "flex scanner jammed" );
21902253 YY_BREAK
2191 #line 2193 "UpgradeLexer.cpp"
2254 #line 2256 "UpgradeLexer.cpp"
21922255
21932256 case YY_END_OF_BUFFER:
21942257 {
21952258 /* Amount of text matched not including the EOB char. */
2196 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;
2259 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
21972260
21982261 /* Undo the effects of YY_DO_BEFORE_ACTION. */
2199 *yy_cp = yy_hold_char;
2262 *yy_cp = (yy_hold_char);
22002263 YY_RESTORE_YY_MORE_OFFSET
22012264
2202 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )
2265 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
22032266 {
22042267 /* We're scanning a new file or input source. It's
22052268 * possible that this happened because the user
2206 * just pointed yyin at a new source and called
2207 * yylex(). If so, then we have to assure
2208 * consistency between yy_current_buffer and our
2269 * just pointed Upgradein at a new source and called
2270 * Upgradelex(). If so, then we have to assure
2271 * consistency between YY_CURRENT_BUFFER and our
22092272 * globals. Here is the right place to do so, because
22102273 * this is the first action (other than possibly a
22112274 * back-up) that will match for the new input source.
22122275 */
2213 yy_n_chars = yy_current_buffer->yy_n_chars;
2214 yy_current_buffer->yy_input_file = yyin;
2215 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;
2276 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2277 YY_CURRENT_BUFFER_LVALUE->yy_input_file = Upgradein;
2278 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
22162279 }
22172280
22182281 /* Note that here we test for yy_c_buf_p "<=" to the position
22222285 * end-of-buffer state). Contrast this with the test
22232286 * in input().
22242287 */
2225 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2288 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
22262289 { /* This was really a NUL. */
22272290 yy_state_type yy_next_state;
22282291
2229 yy_c_buf_p = yytext_ptr + yy_amount_of_matched_text;
2230
2231 yy_current_state = yy_get_previous_state();
2292 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
2293
2294 yy_current_state = yy_get_previous_state( );
22322295
22332296 /* Okay, we're now positioned to make the NUL
22342297 * transition. We couldn't have
22412304
22422305 yy_next_state = yy_try_NUL_trans( yy_current_state );
22432306
2244 yy_bp = yytext_ptr + YY_MORE_ADJ;
2307 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
22452308
22462309 if ( yy_next_state )
22472310 {
22482311 /* Consume the NUL. */
2249 yy_cp = ++yy_c_buf_p;
2312 yy_cp = ++(yy_c_buf_p);
22502313 yy_current_state = yy_next_state;
22512314 goto yy_match;
22522315 }
22532316
22542317 else
22552318 {
2256 yy_cp = yy_c_buf_p;
2319 yy_cp = (yy_last_accepting_cpos);
2320 yy_current_state = (yy_last_accepting_state);
22572321 goto yy_find_action;
22582322 }
22592323 }
22602324
2261 else switch ( yy_get_next_buffer() )
2325 else switch ( yy_get_next_buffer( ) )
22622326 {
22632327 case EOB_ACT_END_OF_FILE:
22642328 {
2265 yy_did_buffer_switch_on_eof = 0;
2266
2267 if ( yywrap() )
2329 (yy_did_buffer_switch_on_eof) = 0;
2330
2331 if ( Upgradewrap( ) )
22682332 {
22692333 /* Note: because we've taken care in
22702334 * yy_get_next_buffer() to have set up
2271 * yytext, we can now set up
2335 * Upgradetext, we can now set up
22722336 * yy_c_buf_p so that if some total
22732337 * hoser (like flex itself) wants to
22742338 * call the scanner after we return the
22752339 * YY_NULL, it'll still work - another
22762340 * YY_NULL will get returned.
22772341 */
2278 yy_c_buf_p = yytext_ptr + YY_MORE_ADJ;
2342 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ;
22792343
22802344 yy_act = YY_STATE_EOF(YY_START);
22812345 goto do_action;
22832347
22842348 else
22852349 {
2286 if ( ! yy_did_buffer_switch_on_eof )
2350 if ( ! (yy_did_buffer_switch_on_eof) )
22872351 YY_NEW_FILE;
22882352 }
22892353 break;
22902354 }
22912355
22922356 case EOB_ACT_CONTINUE_SCAN:
2293 yy_c_buf_p =
2294 yytext_ptr + yy_amount_of_matched_text;
2295
2296 yy_current_state = yy_get_previous_state();
2297
2298 yy_cp = yy_c_buf_p;
2299 yy_bp = yytext_ptr + YY_MORE_ADJ;
2357 (yy_c_buf_p) =
2358 (yytext_ptr) + yy_amount_of_matched_text;
2359
2360 yy_current_state = yy_get_previous_state( );
2361
2362 yy_cp = (yy_c_buf_p);
2363 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
23002364 goto yy_match;
23012365
23022366 case EOB_ACT_LAST_MATCH:
2303 yy_c_buf_p =
2304 &yy_current_buffer->yy_ch_buf[yy_n_chars];
2305
2306 yy_current_state = yy_get_previous_state();
2307
2308 yy_cp = yy_c_buf_p;
2309 yy_bp = yytext_ptr + YY_MORE_ADJ;
2367 (yy_c_buf_p) =
2368 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
2369
2370 yy_current_state = yy_get_previous_state( );
2371
2372 yy_cp = (yy_c_buf_p);
2373 yy_bp = (yytext_ptr) + YY_MORE_ADJ;
23102374 goto yy_find_action;
23112375 }
23122376 break;
23172381 "fatal flex scanner internal error--no action found" );
23182382 } /* end of action switch */
23192383 } /* end of scanning one token */
2320 } /* end of yylex */
2321
2384 } /* end of Upgradelex */
23222385
23232386 /* yy_get_next_buffer - try to read in a new buffer
23242387 *
23272390 * EOB_ACT_CONTINUE_SCAN - continue scanning from current position
23282391 * EOB_ACT_END_OF_FILE - end of file
23292392 */
2330
2331 static int yy_get_next_buffer()
2332 {
2333 register char *dest = yy_current_buffer->yy_ch_buf;
2334 register char *source = yytext_ptr;
2393 static int yy_get_next_buffer (void)
2394 {
2395 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
2396 register char *source = (yytext_ptr);
23352397 register int number_to_move, i;
23362398 int ret_val;
23372399
2338 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars + 1] )
2400 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
23392401 YY_FATAL_ERROR(
23402402 "fatal flex scanner internal error--end of buffer missed" );
23412403
2342 if ( yy_current_buffer->yy_fill_buffer == 0 )
2404 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
23432405 { /* Don't try to fill the buffer, so this is an EOF. */
2344 if ( yy_c_buf_p - yytext_ptr - YY_MORE_ADJ == 1 )
2406 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
23452407 {
23462408 /* We matched a single character, the EOB, so
23472409 * treat this as a final EOF.
23612423 /* Try to read more data. */
23622424
23632425 /* First move last chars to start of buffer. */
2364 number_to_move = (int) (yy_c_buf_p - yytext_ptr) - 1;
2426 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
23652427
23662428 for ( i = 0; i < number_to_move; ++i )
23672429 *(dest++) = *(source++);
23682430
2369 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )
2431 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
23702432 /* don't do the read, it's not guaranteed to return an EOF,
23712433 * just force an EOF
23722434 */
2373 yy_current_buffer->yy_n_chars = yy_n_chars = 0;
2435 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
23742436
23752437 else
23762438 {
2377 int num_to_read =
2378 yy_current_buffer->yy_buf_size - number_to_move - 1;
2439 int num_to_read =
2440 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
23792441
23802442 while ( num_to_read <= 0 )
23812443 { /* Not enough room in the buffer - grow it. */
2382 #ifdef YY_USES_REJECT
2383 YY_FATAL_ERROR(
2384 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );
2385 #else
23862444
23872445 /* just a shorter name for the current buffer */
2388 YY_BUFFER_STATE b = yy_current_buffer;
2446 YY_BUFFER_STATE b = YY_CURRENT_BUFFER;
23892447
23902448 int yy_c_buf_p_offset =
2391 (int) (yy_c_buf_p - b->yy_ch_buf);
2449 (int) ((yy_c_buf_p) - b->yy_ch_buf);
23922450
23932451 if ( b->yy_is_our_buffer )
23942452 {
24012459
24022460 b->yy_ch_buf = (char *)
24032461 /* Include room in for 2 EOB chars. */
2404 yy_flex_realloc( (void *) b->yy_ch_buf,
2405 b->yy_buf_size + 2 );
2462 Upgraderealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
24062463 }
24072464 else
24082465 /* Can't grow it, we don't own it. */
24122469 YY_FATAL_ERROR(
24132470 "fatal error - scanner input buffer overflow" );
24142471
2415 yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
2416
2417 num_to_read = yy_current_buffer->yy_buf_size -
2472 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
2473
2474 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
24182475 number_to_move - 1;
2419 #endif
2476
24202477 }
24212478
24222479 if ( num_to_read > YY_READ_BUF_SIZE )
24232480 num_to_read = YY_READ_BUF_SIZE;
24242481
24252482 /* Read in more data. */
2426 YY_INPUT( (&yy_current_buffer->yy_ch_buf[number_to_move]),
2427 yy_n_chars, num_to_read );
2428
2429 yy_current_buffer->yy_n_chars = yy_n_chars;
2483 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2484 (yy_n_chars), num_to_read );
2485
2486 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
24302487 }
24312488
2432 if ( yy_n_chars == 0 )
2489 if ( (yy_n_chars) == 0 )
24332490 {
24342491 if ( number_to_move == YY_MORE_ADJ )
24352492 {
24362493 ret_val = EOB_ACT_END_OF_FILE;
2437 yyrestart( yyin );
2494 Upgraderestart(Upgradein );
24382495 }
24392496
24402497 else
24412498 {
24422499 ret_val = EOB_ACT_LAST_MATCH;
2443 yy_current_buffer->yy_buffer_status =
2500 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
24442501 YY_BUFFER_EOF_PENDING;
24452502 }
24462503 }
24482505 else
24492506 ret_val = EOB_ACT_CONTINUE_SCAN;
24502507
2451 yy_n_chars += number_to_move;
2452 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;
2453 yy_current_buffer->yy_ch_buf[yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
2454
2455 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];
2508 (yy_n_chars) += number_to_move;
2509 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR;
2510 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR;
2511
2512 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
24562513
24572514 return ret_val;
2458 }
2459
2515 }
24602516
24612517 /* yy_get_previous_state - get the state just before the EOB char was reached */
24622518
2463 static yy_state_type yy_get_previous_state()
2464 {
2519 static yy_state_type yy_get_previous_state (void)
2520 {
24652521 register yy_state_type yy_current_state;
24662522 register char *yy_cp;
2467
2468 yy_current_state = yy_start;
2469 yy_state_ptr = yy_state_buf;
2470 *yy_state_ptr++ = yy_current_state;
2471
2472 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )
2523
2524 yy_current_state = (yy_start);
2525
2526 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
24732527 {
24742528 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2529 if ( yy_accept[yy_current_state] )
2530 {
2531 (yy_last_accepting_state) = yy_current_state;
2532 (yy_last_accepting_cpos) = yy_cp;
2533 }
24752534 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
24762535 {
24772536 yy_current_state = (int) yy_def[yy_current_state];
24792538 yy_c = yy_meta[(unsigned int) yy_c];
24802539 }
24812540 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2482 *yy_state_ptr++ = yy_current_state;
24832541 }
24842542
24852543 return yy_current_state;
2486 }
2487
2544 }
24882545
24892546 /* yy_try_NUL_trans - try to make a transition on the NUL character
24902547 *
24912548 * synopsis
24922549 * next_state = yy_try_NUL_trans( current_state );
24932550 */
2494
2495 #ifdef YY_USE_PROTOS
2496 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state )
2497 #else
2498 static yy_state_type yy_try_NUL_trans( yy_current_state )
2499 yy_state_type yy_current_state;
2500 #endif
2501 {
2551 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
2552 {
25022553 register int yy_is_jam;
2554 register char *yy_cp = (yy_c_buf_p);
25032555
25042556 register YY_CHAR yy_c = 1;
2557 if ( yy_accept[yy_current_state] )
2558 {
2559 (yy_last_accepting_state) = yy_current_state;
2560 (yy_last_accepting_cpos) = yy_cp;
2561 }
25052562 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
25062563 {
25072564 yy_current_state = (int) yy_def[yy_current_state];
25102567 }
25112568 yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
25122569 yy_is_jam = (yy_current_state == 619);
2513 if ( ! yy_is_jam )
2514 *yy_state_ptr++ = yy_current_state;
25152570
25162571 return yy_is_jam ? 0 : yy_current_state;
2517 }
2518
2519
2520 #ifndef YY_NO_UNPUT
2521 #ifdef YY_USE_PROTOS
2522 static inline void yyunput( int c, register char *yy_bp )
2523 #else
2524 static inline void yyunput( c, yy_bp )
2525 int c;
2526 register char *yy_bp;
2527 #endif
2528 {
2529 register char *yy_cp = yy_c_buf_p;
2530
2531 /* undo effects of setting up yytext */
2532 *yy_cp = yy_hold_char;
2533
2534 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2572 }
2573
2574 static inline void yyunput (int c, register char * yy_bp )
2575 {
2576 register char *yy_cp;
2577
2578 yy_cp = (yy_c_buf_p);
2579
2580 /* undo effects of setting up Upgradetext */
2581 *yy_cp = (yy_hold_char);
2582
2583 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
25352584 { /* need to shift things up to make room */
25362585 /* +2 for EOB chars. */
2537 register int number_to_move = yy_n_chars + 2;
2538 register char *dest = &yy_current_buffer->yy_ch_buf[
2539 yy_current_buffer->yy_buf_size + 2];
2586 register int number_to_move = (yy_n_chars) + 2;
2587 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
2588 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
25402589 register char *source =
2541 &yy_current_buffer->yy_ch_buf[number_to_move];
2542
2543 while ( source > yy_current_buffer->yy_ch_buf )
2590 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
2591
2592 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
25442593 *--dest = *--source;
25452594
25462595 yy_cp += (int) (dest - source);
25472596 yy_bp += (int) (dest - source);
2548 yy_current_buffer->yy_n_chars =
2549 yy_n_chars = yy_current_buffer->yy_buf_size;
2550
2551 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )
2597 YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
2598 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
2599
2600 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
25522601 YY_FATAL_ERROR( "flex scanner push-back overflow" );
25532602 }
25542603
25552604 *--yy_cp = (char) c;
25562605
2557 if ( c == '\n' )
2558 --yylineno;
2559
2560 yytext_ptr = yy_bp;
2561 yy_hold_char = *yy_cp;
2562 yy_c_buf_p = yy_cp;
2563 }
2564 #endif /* ifndef YY_NO_UNPUT */
2565
2566
2606 if ( c == '\n' ){
2607 --Upgradelineno;
2608 }
2609
2610 (yytext_ptr) = yy_bp;
2611 (yy_hold_char) = *yy_cp;
2612 (yy_c_buf_p) = yy_cp;
2613 }
2614
2615 #ifndef YY_NO_INPUT
25672616 #ifdef __cplusplus
2568 static int yyinput()
2617 static int yyinput (void)
25692618 #else
2570 static int input()
2571 #endif
2572 {
2619 static int input (void)
2620 #endif
2621
2622 {
25732623 int c;
2574
2575 *yy_c_buf_p = yy_hold_char;
2576
2577 if ( *yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2624
2625 *(yy_c_buf_p) = (yy_hold_char);
2626
2627 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
25782628 {
25792629 /* yy_c_buf_p now points to the character we want to return.
25802630 * If this occurs *before* the EOB characters, then it's a
25812631 * valid NUL; if not, then we've hit the end of the buffer.
25822632 */
2583 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )
2633 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
25842634 /* This was really a NUL. */
2585 *yy_c_buf_p = '\0';
2635 *(yy_c_buf_p) = '\0';
25862636
25872637 else
25882638 { /* need more input */
2589 int offset = yy_c_buf_p - yytext_ptr;
2590 ++yy_c_buf_p;
2591
2592 switch ( yy_get_next_buffer() )
2639 int offset = (yy_c_buf_p) - (yytext_ptr);
2640 ++(yy_c_buf_p);
2641
2642 switch ( yy_get_next_buffer( ) )
25932643 {
25942644 case EOB_ACT_LAST_MATCH:
25952645 /* This happens because yy_g_n_b()
26032653 */
26042654
26052655 /* Reset buffer status. */
2606 yyrestart( yyin );
2607
2608 /* fall through */
2656 Upgraderestart(Upgradein );
2657
2658 /*FALLTHROUGH*/
26092659
26102660 case EOB_ACT_END_OF_FILE:
26112661 {
2612 if ( yywrap() )
2613 return EOF;
2614
2615 if ( ! yy_did_buffer_switch_on_eof )
2662 if ( Upgradewrap( ) )
2663 return 0;
2664
2665 if ( ! (yy_did_buffer_switch_on_eof) )
26162666 YY_NEW_FILE;
26172667 #ifdef __cplusplus
26182668 return yyinput();
26222672 }
26232673
26242674 case EOB_ACT_CONTINUE_SCAN:
2625 yy_c_buf_p = yytext_ptr + offset;
2675 (yy_c_buf_p) = (yytext_ptr) + offset;
26262676 break;
26272677 }
26282678 }
26292679 }
26302680
2631 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */
2632 *yy_c_buf_p = '\0'; /* preserve yytext */
2633 yy_hold_char = *++yy_c_buf_p;
2681 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
2682 *(yy_c_buf_p) = '\0'; /* preserve Upgradetext */
2683 (yy_hold_char) = *++(yy_c_buf_p);
26342684
26352685 if ( c == '\n' )
2636 ++yylineno;
2686
2687 Upgradelineno++;
2688 ;
26372689
26382690 return c;
2691 }
2692 #endif /* ifndef YY_NO_INPUT */
2693
2694 /** Immediately switch to a different input stream.
2695 * @param input_file A readable stream.
2696 *
2697 * @note This function does not reset the start condition to @c INITIAL .
2698 */
2699 void Upgraderestart (FILE * input_file )
2700 {
2701
2702 if ( ! YY_CURRENT_BUFFER ){
2703 Upgradeensure_buffer_stack ();
2704 YY_CURRENT_BUFFER_LVALUE =
2705 Upgrade_create_buffer(Upgradein,YY_BUF_SIZE );
26392706 }
26402707
2641
2642 #ifdef YY_USE_PROTOS
2643 void yyrestart( FILE *input_file )
2644 #else
2645 void yyrestart( input_file )
2646 FILE *input_file;
2647 #endif
2648 {
2649 if ( ! yy_current_buffer )
2650 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE );
2651
2652 yy_init_buffer( yy_current_buffer, input_file );
2653 yy_load_buffer_state();
2654 }
2655
2656
2657 #ifdef YY_USE_PROTOS
2658 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer )
2659 #else
2660 void yy_switch_to_buffer( new_buffer )
2661 YY_BUFFER_STATE new_buffer;
2662 #endif
2663 {
2664 if ( yy_current_buffer == new_buffer )
2708 Upgrade_init_buffer(YY_CURRENT_BUFFER,input_file );
2709 Upgrade_load_buffer_state( );
2710 }
2711
2712 /** Switch to a different input buffer.
2713 * @param new_buffer The new input buffer.
2714 *
2715 */
2716 void Upgrade_switch_to_buffer (YY_BUFFER_STATE new_buffer )
2717 {
2718
2719 /* TODO. We should be able to replace this entire function body
2720 * with
2721 * Upgradepop_buffer_state();
2722 * Upgradepush_buffer_state(new_buffer);
2723 */
2724 Upgradeensure_buffer_stack ();
2725 if ( YY_CURRENT_BUFFER == new_buffer )
26652726 return;
26662727
2667 if ( yy_current_buffer )
2728 if ( YY_CURRENT_BUFFER )
26682729 {
26692730 /* Flush out information for old buffer. */
2670 *yy_c_buf_p = yy_hold_char;
2671 yy_current_buffer->yy_buf_pos = yy_c_buf_p;
2672 yy_current_buffer->yy_n_chars = yy_n_chars;
2731 *(yy_c_buf_p) = (yy_hold_char);
2732 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2733 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
26732734 }
26742735
2675 yy_current_buffer = new_buffer;
2676 yy_load_buffer_state();
2736 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2737 Upgrade_load_buffer_state( );
26772738
26782739 /* We don't actually know whether we did this switch during
2679 * EOF (yywrap()) processing, but the only time this flag
2680 * is looked at is after yywrap() is called, so it's safe
2740 * EOF (Upgradewrap()) processing, but the only time this flag
2741 * is looked at is after Upgradewrap() is called, so it's safe
26812742 * to go ahead and always set it.
26822743 */
2683 yy_did_buffer_switch_on_eof = 1;
2684 }
2685
2686
2687 #ifdef YY_USE_PROTOS
2688 void yy_load_buffer_state( void )
2689 #else
2690 void yy_load_buffer_state()
2691 #endif
2692 {
2693 yy_n_chars = yy_current_buffer->yy_n_chars;
2694 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos;
2695 yyin = yy_current_buffer->yy_input_file;
2696 yy_hold_char = *yy_c_buf_p;
2697 }
2698
2699
2700 #ifdef YY_USE_PROTOS
2701 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size )
2702 #else
2703 YY_BUFFER_STATE yy_create_buffer( file, size )
2704 FILE *file;
2705 int size;
2706 #endif
2707 {
2744 (yy_did_buffer_switch_on_eof) = 1;
2745 }
2746
2747 static void Upgrade_load_buffer_state (void)
2748 {
2749 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2750 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2751 Upgradein = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2752 (yy_hold_char) = *(yy_c_buf_p);
2753 }
2754
2755 /** Allocate and initialize an input buffer state.
2756 * @param file A readable stream.
2757 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE.
2758 *
2759 * @return the allocated buffer state.
2760 */
2761 YY_BUFFER_STATE Upgrade_create_buffer (FILE * file, int size )
2762 {
27082763 YY_BUFFER_STATE b;
2709
2710 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2764
2765 b = (YY_BUFFER_STATE) Upgradealloc(sizeof( struct yy_buffer_state ) );
27112766 if ( ! b )
2712 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2767 YY_FATAL_ERROR( "out of dynamic memory in Upgrade_create_buffer()" );
27132768
27142769 b->yy_buf_size = size;
27152770
27162771 /* yy_ch_buf has to be 2 characters longer than the size given because
27172772 * we need to put in 2 end-of-buffer characters.
27182773 */
2719 b->yy_ch_buf = (char *) yy_flex_alloc( b->yy_buf_size + 2 );
2774 b->yy_ch_buf = (char *) Upgradealloc(b->yy_buf_size + 2 );
27202775 if ( ! b->yy_ch_buf )
2721 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2776 YY_FATAL_ERROR( "out of dynamic memory in Upgrade_create_buffer()" );
27222777
27232778 b->yy_is_our_buffer = 1;
27242779
2725 yy_init_buffer( b, file );
2780 Upgrade_init_buffer(b,file );
27262781
27272782 return b;
2728 }
2729
2730
2731 #ifdef YY_USE_PROTOS
2732 void yy_delete_buffer( YY_BUFFER_STATE b )
2733 #else
2734 void yy_delete_buffer( b )
2735 YY_BUFFER_STATE b;
2736 #endif
2737 {
2783 }
2784
2785 /** Destroy the buffer.
2786 * @param b a buffer created with Upgrade_create_buffer()
2787 *
2788 */
2789 void Upgrade_delete_buffer (YY_BUFFER_STATE b )
2790 {
2791
27382792 if ( ! b )
27392793 return;
27402794
2741 if ( b == yy_current_buffer )
2742 yy_current_buffer = (YY_BUFFER_STATE) 0;
2795 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2796 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0;
27432797
27442798 if ( b->yy_is_our_buffer )
2745 yy_flex_free( (void *) b->yy_ch_buf );
2746
2747 yy_flex_free( (void *) b );
2748 }
2749
2750
2751 #ifndef YY_ALWAYS_INTERACTIVE
2752 #ifndef YY_NEVER_INTERACTIVE
2753 extern int isatty YY_PROTO(( int ));
2754 #endif
2755 #endif
2756
2757 #ifdef YY_USE_PROTOS
2758 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
2759 #else
2760 void yy_init_buffer( b, file )
2761 YY_BUFFER_STATE b;
2762 FILE *file;
2763 #endif
2764
2765
2766 {
2767 yy_flush_buffer( b );
2799 Upgradefree((void *) b->yy_ch_buf );
2800
2801 Upgradefree((void *) b );
2802 }
2803
2804 /* Initializes or reinitializes a buffer.
2805 * This function is sometimes called more than once on the same buffer,
2806 * such as during a Upgraderestart() or at EOF.
2807 */
2808 static void Upgrade_init_buffer (YY_BUFFER_STATE b, FILE * file )
2809
2810 {
2811 int oerrno = errno;
2812
2813 Upgrade_flush_buffer(b );
27682814
27692815 b->yy_input_file = file;
27702816 b->yy_fill_buffer = 1;
27712817
2772 #if YY_ALWAYS_INTERACTIVE
2773 b->yy_is_interactive = 1;
2774 #else
2775 #if YY_NEVER_INTERACTIVE
2776 b->yy_is_interactive = 0;
2777 #else
2778 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2779 #endif
2780 #endif
2781 }
2782
2783
2784 #ifdef YY_USE_PROTOS
2785 void yy_flush_buffer( YY_BUFFER_STATE b )
2786 #else
2787 void yy_flush_buffer( b )
2788 YY_BUFFER_STATE b;
2789 #endif
2790
2791 {
2792 if ( ! b )
2818 /* If b is the current buffer, then Upgrade_init_buffer was _probably_
2819 * called from Upgraderestart() or through yy_get_next_buffer.
2820 * In that case, we don't want to reset the lineno or column.
2821 */
2822 if (b != YY_CURRENT_BUFFER){
2823 b->yy_bs_lineno = 1;
2824 b->yy_bs_column = 0;
2825 }
2826
2827 b->yy_is_interactive = 0;
2828
2829 errno = oerrno;
2830 }
2831
2832 /** Discard all buffered characters. On the next scan, YY_INPUT will be called.
2833 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER.
2834 *
2835 */
2836 void Upgrade_flush_buffer (YY_BUFFER_STATE b )
2837 {
2838 if ( ! b )
27932839 return;
27942840
27952841 b->yy_n_chars = 0;
28062852 b->yy_at_bol = 1;
28072853 b->yy_buffer_status = YY_BUFFER_NEW;
28082854
2809 if ( b == yy_current_buffer )
2810 yy_load_buffer_state();
2855 if ( b == YY_CURRENT_BUFFER )
2856 Upgrade_load_buffer_state( );
2857 }
2858
2859 /** Pushes the new state onto the stack. The new state becomes
2860 * the current state. This function will allocate the stack
2861 * if necessary.
2862 * @param new_buffer The new state.
2863 *
2864 */
2865 void Upgradepush_buffer_state (YY_BUFFER_STATE new_buffer )
2866 {
2867 if (new_buffer == NULL)
2868 return;
2869
2870 Upgradeensure_buffer_stack();
2871
2872 /* This block is copied from Upgrade_switch_to_buffer. */
2873 if ( YY_CURRENT_BUFFER )
2874 {
2875 /* Flush out information for old buffer. */
2876 *(yy_c_buf_p) = (yy_hold_char);
2877 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2878 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2879 }
2880
2881 /* Only push if top exists. Otherwise, replace top. */
2882 if (YY_CURRENT_BUFFER)
2883 (yy_buffer_stack_top)++;
2884 YY_CURRENT_BUFFER_LVALUE = new_buffer;
2885
2886 /* copied from Upgrade_switch_to_buffer. */
2887 Upgrade_load_buffer_state( );
2888 (yy_did_buffer_switch_on_eof) = 1;
2889 }
2890
2891 /** Removes and deletes the top of the stack, if present.
2892 * The next element becomes the new top.
2893 *
2894 */
2895 void Upgradepop_buffer_state (void)
2896 {
2897 if (!YY_CURRENT_BUFFER)
2898 return;
2899
2900 Upgrade_delete_buffer(YY_CURRENT_BUFFER );
2901 YY_CURRENT_BUFFER_LVALUE = NULL;
2902 if ((yy_buffer_stack_top) > 0)
2903 --(yy_buffer_stack_top);
2904
2905 if (YY_CURRENT_BUFFER) {
2906 Upgrade_load_buffer_state( );
2907 (yy_did_buffer_switch_on_eof) = 1;
28112908 }
2812
2813
2814 #ifndef YY_NO_SCAN_BUFFER
2815 #ifdef YY_USE_PROTOS
2816 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size )
2817 #else
2818 YY_BUFFER_STATE yy_scan_buffer( base, size )
2819 char *base;
2820 yy_size_t size;
2821 #endif
2822 {
2909 }
2910
2911 /* Allocates the stack if it does not exist.
2912 * Guarantees space for at least one push.
2913 */
2914 static void Upgradeensure_buffer_stack (void)
2915 {
2916 int num_to_alloc;
2917
2918 if (!(yy_buffer_stack)) {
2919
2920 /* First allocation is just for 2 elements, since we don't know if this
2921 * scanner will even need a stack. We use 2 instead of 1 to avoid an
2922 * immediate realloc on the next call.
2923 */
2924 num_to_alloc = 1;
2925 (yy_buffer_stack) = (struct yy_buffer_state**)Upgradealloc
2926 (num_to_alloc * sizeof(struct yy_buffer_state*)
2927 );
2928
2929 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2930
2931 (yy_buffer_stack_max) = num_to_alloc;
2932 (yy_buffer_stack_top) = 0;
2933 return;
2934 }
2935
2936 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2937
2938 /* Increase the buffer to prepare for a possible push. */
2939 int grow_size = 8 /* arbitrary grow size */;
2940
2941 num_to_alloc = (yy_buffer_stack_max) + grow_size;
2942 (yy_buffer_stack) = (struct yy_buffer_state**)Upgraderealloc
2943 ((yy_buffer_stack),
2944 num_to_alloc * sizeof(struct yy_buffer_state*)
2945 );
2946
2947 /* zero only the new slots.*/
2948 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
2949 (yy_buffer_stack_max) = num_to_alloc;
2950 }
2951 }
2952
2953 /** Setup the input buffer state to scan directly from a user-specified character buffer.
2954 * @param base the character buffer
2955 * @param size the size in bytes of the character buffer
2956 *
2957 * @return the newly allocated buffer state object.
2958 */
2959 YY_BUFFER_STATE Upgrade_scan_buffer (char * base, yy_size_t size )
2960 {
28232961 YY_BUFFER_STATE b;
2824
2962
28252963 if ( size < 2 ||
28262964 base[size-2] != YY_END_OF_BUFFER_CHAR ||
28272965 base[size-1] != YY_END_OF_BUFFER_CHAR )
28282966 /* They forgot to leave room for the EOB's. */
28292967 return 0;
28302968
2831 b = (YY_BUFFER_STATE) yy_flex_alloc( sizeof( struct yy_buffer_state ) );
2969 b = (YY_BUFFER_STATE) Upgradealloc(sizeof( struct yy_buffer_state ) );
28322970 if ( ! b )
2833 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2971 YY_FATAL_ERROR( "out of dynamic memory in Upgrade_scan_buffer()" );
28342972
28352973 b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
28362974 b->yy_buf_pos = b->yy_ch_buf = base;
28422980 b->yy_fill_buffer = 0;
28432981 b->yy_buffer_status = YY_BUFFER_NEW;
28442982
2845 yy_switch_to_buffer( b );
2983 Upgrade_switch_to_buffer(b );
28462984
28472985 return b;
2848 }
2849 #endif
2850
2851
2852 #ifndef YY_NO_SCAN_STRING
2853 #ifdef YY_USE_PROTOS
2854 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str )
2855 #else
2856 YY_BUFFER_STATE yy_scan_string( yy_str )
2857 yyconst char *yy_str;
2858 #endif
2859 {
2860 int len;
2861 for ( len = 0; yy_str[len]; ++len )
2862 ;
2863
2864 return yy_scan_bytes( yy_str, len );
2865 }
2866 #endif
2867
2868
2869 #ifndef YY_NO_SCAN_BYTES
2870 #ifdef YY_USE_PROTOS
2871 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len )
2872 #else
2873 YY_BUFFER_STATE yy_scan_bytes( bytes, len )
2874 yyconst char *bytes;
2875 int len;
2876 #endif
2877 {
2986 }
2987
2988 /** Setup the input buffer state to scan a string. The next call to Upgradelex() will
2989 * scan from a @e copy of @a str.
2990 * @param str a NUL-terminated string to scan
2991 *
2992 * @return the newly allocated buffer state object.
2993 * @note If you want to scan bytes that may contain NUL values, then use
2994 * Upgrade_scan_bytes() instead.
2995 */
2996 YY_BUFFER_STATE Upgrade_scan_string (yyconst char * yystr )
2997 {
2998
2999 return Upgrade_scan_bytes(yystr,strlen(yystr) );
3000 }
3001
3002 /** Setup the input buffer state to scan the given bytes. The next call to Upgradelex() will
3003 * scan from a @e copy of @a bytes.
3004 * @param bytes the byte buffer to scan
3005 * @param len the number of bytes in the buffer pointed to by @a bytes.
3006 *
3007 * @return the newly allocated buffer state object.
3008 */
3009 YY_BUFFER_STATE Upgrade_scan_bytes (yyconst char * yybytes, int _yybytes_len )
3010 {
28783011 YY_BUFFER_STATE b;
28793012 char *buf;
28803013 yy_size_t n;
28813014 int i;
2882
3015
28833016 /* Get memory for full buffer, including space for trailing EOB's. */
2884 n = len + 2;
2885 buf = (char *) yy_flex_alloc( n );
3017 n = _yybytes_len + 2;
3018 buf = (char *) Upgradealloc(n );
28863019 if ( ! buf )
2887 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2888
2889 for ( i = 0; i < len; ++i )
2890 buf[i] = bytes[i];
2891
2892 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR;
2893
2894 b = yy_scan_buffer( buf, n );
3020 YY_FATAL_ERROR( "out of dynamic memory in Upgrade_scan_bytes()" );
3021
3022 for ( i = 0; i < _yybytes_len; ++i )
3023 buf[i] = yybytes[i];
3024
3025 buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
3026
3027 b = Upgrade_scan_buffer(buf,n );
28953028 if ( ! b )
2896 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
3029 YY_FATAL_ERROR( "bad buffer in Upgrade_scan_bytes()" );
28973030
28983031 /* It's okay to grow etc. this buffer, and we should throw it
28993032 * away when we're done.
29013034 b->yy_is_our_buffer = 1;
29023035
29033036 return b;
2904 }
2905 #endif
2906
2907
2908 #ifndef YY_NO_PUSH_STATE
2909 #ifdef YY_USE_PROTOS
2910 static void yy_push_state( int new_state )
2911 #else
2912 static void yy_push_state( new_state )
2913 int new_state;
2914 #endif
2915 {
2916 if ( yy_start_stack_ptr >= yy_start_stack_depth )
2917 {
2918 yy_size_t new_size;
2919
2920 yy_start_stack_depth += YY_START_STACK_INCR;
2921 new_size = yy_start_stack_depth * sizeof( int );
2922
2923 if ( ! yy_start_stack )
2924 yy_start_stack = (int *) yy_flex_alloc( new_size );
2925
2926 else
2927 yy_start_stack = (int *) yy_flex_realloc(
2928 (void *) yy_start_stack, new_size );
2929
2930 if ( ! yy_start_stack )
2931 YY_FATAL_ERROR(
2932 "out of memory expanding start-condition stack" );
2933 }
2934
2935 yy_start_stack[yy_start_stack_ptr++] = YY_START;
2936
2937 BEGIN(new_state);
2938 }
2939 #endif
2940
2941
2942 #ifndef YY_NO_POP_STATE
2943 static void yy_pop_state()
2944 {
2945 if ( --yy_start_stack_ptr < 0 )
2946 YY_FATAL_ERROR( "start-condition stack underflow" );
2947
2948 BEGIN(yy_start_stack[yy_start_stack_ptr]);
2949 }
2950 #endif
2951
2952
2953 #ifndef YY_NO_TOP_STATE
2954 static int yy_top_state()
2955 {
2956 return yy_start_stack[yy_start_stack_ptr - 1];
2957 }
2958 #endif
3037 }
29593038
29603039 #ifndef YY_EXIT_FAILURE
29613040 #define YY_EXIT_FAILURE 2
29623041 #endif
29633042
2964 #ifdef YY_USE_PROTOS
2965 static void yy_fatal_error( yyconst char msg[] )
2966 #else
2967 static void yy_fatal_error( msg )
2968 char msg[];
2969 #endif
2970 {
2971 (void) fprintf( stderr, "%s\n", msg );
3043 static void yy_fatal_error (yyconst char* msg )
3044 {
3045 (void) fprintf( stderr, "%s\n", msg );
29723046 exit( YY_EXIT_FAILURE );
2973 }
2974
2975
3047 }
29763048
29773049 /* Redefine yyless() so it works in section 3 code. */
29783050
29803052 #define yyless(n) \
29813053 do \
29823054 { \
2983 /* Undo effects of setting up yytext. */ \
2984 yytext[yyleng] = yy_hold_char; \
2985 yy_c_buf_p = yytext + n; \
2986 yy_hold_char = *yy_c_buf_p; \
2987 *yy_c_buf_p = '\0'; \
2988 yyleng = n; \
3055 /* Undo effects of setting up Upgradetext. */ \
3056 int yyless_macro_arg = (n); \
3057 YY_LESS_LINENO(yyless_macro_arg);\
3058 Upgradetext[Upgradeleng] = (yy_hold_char); \
3059