Changeset 609 for branches/GNU/src/binutils/binutils/rclex.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/binutils/rclex.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 2 #line 3 "lex.yy.c" 3 4 #define YY_INT_ALIGNED short int 5 1 6 /* A lexical scanner generated by flex */ 2 3 /* Scanner skeleton version:4 * $Header: /cvs/src/src/binutils/Attic/rclex.c,v 1.1.4.2 2001/06/10 15:37:28 pb Exp $5 */6 7 7 8 #define FLEX_SCANNER 8 9 #define YY_FLEX_MAJOR_VERSION 2 9 10 #define YY_FLEX_MINOR_VERSION 5 10 11 #define YY_FLEX_SUBMINOR_VERSION 31 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. */ 11 19 #include <stdio.h> 12 13 14 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */ 15 #ifdef c_plusplus 16 #ifndef __cplusplus 17 #define __cplusplus 18 #endif 19 #endif 20 20 #include <string.h> 21 #include <errno.h> 22 #include <stdlib.h> 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 <inttypes.h>. Non-C99 systems may or may not. */ 32 33 #if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L 34 #include <inttypes.h> 35 typedef int8_t flex_int8_t; 36 typedef uint8_t flex_uint8_t; 37 typedef int16_t flex_int16_t; 38 typedef uint16_t flex_uint16_t; 39 typedef int32_t flex_int32_t; 40 typedef uint32_t flex_uint32_t; 41 #else 42 typedef signed char flex_int8_t; 43 typedef short int flex_int16_t; 44 typedef int flex_int32_t; 45 typedef unsigned char flex_uint8_t; 46 typedef unsigned short int flex_uint16_t; 47 typedef unsigned int flex_uint32_t; 48 #endif /* ! C99 */ 49 50 /* Limits of integral types. */ 51 #ifndef INT8_MIN 52 #define INT8_MIN (-128) 53 #endif 54 #ifndef INT16_MIN 55 #define INT16_MIN (-32767-1) 56 #endif 57 #ifndef INT32_MIN 58 #define INT32_MIN (-2147483647-1) 59 #endif 60 #ifndef INT8_MAX 61 #define INT8_MAX (127) 62 #endif 63 #ifndef INT16_MAX 64 #define INT16_MAX (32767) 65 #endif 66 #ifndef INT32_MAX 67 #define INT32_MAX (2147483647) 68 #endif 69 #ifndef UINT8_MAX 70 #define UINT8_MAX (255U) 71 #endif 72 #ifndef UINT16_MAX 73 #define UINT16_MAX (65535U) 74 #endif 75 #ifndef UINT32_MAX 76 #define UINT32_MAX (4294967295U) 77 #endif 78 79 #endif /* ! FLEXINT_H */ 21 80 22 81 #ifdef __cplusplus 23 24 #include <stdlib.h>25 #include <unistd.h>26 27 /* Use prototypes in function declarations. */28 #define YY_USE_PROTOS29 82 30 83 /* The "const" storage-class-modifier is valid. */ … … 35 88 #if __STDC__ 36 89 37 #define YY_USE_PROTOS38 90 #define YY_USE_CONST 39 91 40 92 #endif /* __STDC__ */ 41 93 #endif /* ! __cplusplus */ 42 43 #ifdef __TURBOC__44 #pragma warn -rch45 #pragma warn -use46 #include <io.h>47 #include <stdlib.h>48 #define YY_USE_CONST49 #define YY_USE_PROTOS50 #endif51 94 52 95 #ifdef YY_USE_CONST … … 56 99 #endif 57 100 58 59 #ifdef YY_USE_PROTOS60 #define YY_PROTO(proto) proto61 #else62 #define YY_PROTO(proto) ()63 #endif64 65 101 /* Returned upon end-of-file. */ 66 102 #define YY_NULL 0 … … 77 113 * definition of BEGIN. 78 114 */ 79 #define BEGIN yy_start= 1 + 2 *115 #define BEGIN (yy_start) = 1 + 2 * 80 116 81 117 /* Translate the current start state into a value that can be later handed … … 83 119 * compatibility. 84 120 */ 85 #define YY_START (( yy_start- 1) / 2)121 #define YY_START (((yy_start) - 1) / 2) 86 122 #define YYSTATE YY_START 87 123 … … 90 126 91 127 /* Special action meaning "start processing a new file". */ 92 #define YY_NEW_FILE yyrestart( yyin)128 #define YY_NEW_FILE yyrestart(yyin ) 93 129 94 130 #define YY_END_OF_BUFFER_CHAR 0 95 131 96 132 /* Size of default input buffer. */ 133 #ifndef YY_BUF_SIZE 97 134 #define YY_BUF_SIZE 16384 98 135 #endif 136 137 #ifndef YY_TYPEDEF_YY_BUFFER_STATE 138 #define YY_TYPEDEF_YY_BUFFER_STATE 99 139 typedef struct yy_buffer_state *YY_BUFFER_STATE; 140 #endif 100 141 101 142 extern int yyleng; 143 102 144 extern FILE *yyin, *yyout; 103 145 … … 106 148 #define EOB_ACT_LAST_MATCH 2 107 149 108 /* The funky do-while in the following #define is used to turn the definition 109 * int a single C statement (which needs a semi-colon terminator). This 110 * avoids problems with code like: 111 * 112 * if ( condition_holds ) 113 * yyless( 5 ); 114 * else 115 * do_something_else(); 116 * 117 * Prior to using the do-while the compiler would get upset at the 118 * "else" because it interpreted the "if" statement as being all 119 * done when it reached the ';' after the yyless() call. 120 */ 121 122 /* Return all but the first 'n' matched characters back to the input stream. */ 123 150 #define YY_LESS_LINENO(n) 151 152 /* Return all but the first "n" matched characters back to the input stream. */ 124 153 #define yyless(n) \ 125 154 do \ 126 155 { \ 127 156 /* Undo effects of setting up yytext. */ \ 128 *yy_cp = yy_hold_char; \ 157 int yyless_macro_arg = (n); \ 158 YY_LESS_LINENO(yyless_macro_arg);\ 159 *yy_cp = (yy_hold_char); \ 129 160 YY_RESTORE_YY_MORE_OFFSET \ 130 yy_c_buf_p = yy_cp = yy_bp + n- YY_MORE_ADJ; \161 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \ 131 162 YY_DO_BEFORE_ACTION; /* set up yytext again */ \ 132 163 } \ 133 164 while ( 0 ) 134 165 135 #define unput(c) yyunput( c, yytext_ptr)166 #define unput(c) yyunput( c, (yytext_ptr) ) 136 167 137 168 /* The following is because we cannot portably get our hands on size_t … … 139 170 * flex-generated scanners to compile on their own). 140 171 */ 172 173 #ifndef YY_TYPEDEF_YY_SIZE_T 174 #define YY_TYPEDEF_YY_SIZE_T 141 175 typedef unsigned int yy_size_t; 142 143 176 #endif 177 178 #ifndef YY_STRUCT_YY_BUFFER_STATE 179 #define YY_STRUCT_YY_BUFFER_STATE 144 180 struct yy_buffer_state 145 181 { … … 178 214 int yy_at_bol; 179 215 216 int yy_bs_lineno; /**< The line count. */ 217 int yy_bs_column; /**< The column count. */ 218 180 219 /* Whether to try to fill the input buffer when we reach the 181 220 * end of it. … … 184 223 185 224 int yy_buffer_status; 225 186 226 #define YY_BUFFER_NEW 0 187 227 #define YY_BUFFER_NORMAL 1 … … 197 237 */ 198 238 #define YY_BUFFER_EOF_PENDING 2 239 199 240 }; 200 201 static YY_BUFFER_STATE yy_current_buffer = 0; 241 #endif /* !YY_STRUCT_YY_BUFFER_STATE */ 242 243 /* Stack of input buffers. */ 244 static size_t yy_buffer_stack_top = 0; /**< index of top of stack. */ 245 static size_t yy_buffer_stack_max = 0; /**< capacity of stack. */ 246 static YY_BUFFER_STATE * yy_buffer_stack = 0; /**< Stack as an array. */ 202 247 203 248 /* We provide macros for accessing buffer states in case in the 204 249 * future we want to put the buffer states in a more general 205 250 * "scanner state". 206 */ 207 #define YY_CURRENT_BUFFER yy_current_buffer 208 251 * 252 * Returns the top of the stack, or NULL. 253 */ 254 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \ 255 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \ 256 : NULL) 257 258 /* Same as previous macro, but useful when we know that the buffer stack is not 259 * NULL or when we need an lvalue. For internal use only. 260 */ 261 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)] 209 262 210 263 /* yy_hold_char holds the character lost when yytext is formed. */ 211 264 static char yy_hold_char; 212 213 265 static int yy_n_chars; /* number of characters read into yy_ch_buf */ 214 215 216 266 int yyleng; 217 267 … … 226 276 static int yy_did_buffer_switch_on_eof; 227 277 228 void yyrestart YY_PROTO(( FILE *input_file )); 229 230 void yy_switch_to_buffer YY_PROTO(( YY_BUFFER_STATE new_buffer )); 231 void yy_load_buffer_state YY_PROTO(( void )); 232 YY_BUFFER_STATE yy_create_buffer YY_PROTO(( FILE *file, int size )); 233 void yy_delete_buffer YY_PROTO(( YY_BUFFER_STATE b )); 234 void yy_init_buffer YY_PROTO(( YY_BUFFER_STATE b, FILE *file )); 235 void yy_flush_buffer YY_PROTO(( YY_BUFFER_STATE b )); 236 #define YY_FLUSH_BUFFER yy_flush_buffer( yy_current_buffer ) 237 238 YY_BUFFER_STATE yy_scan_buffer YY_PROTO(( char *base, yy_size_t size )); 239 YY_BUFFER_STATE yy_scan_string YY_PROTO(( yyconst char *yy_str )); 240 YY_BUFFER_STATE yy_scan_bytes YY_PROTO(( yyconst char *bytes, int len )); 241 242 static void *yy_flex_alloc YY_PROTO(( yy_size_t )); 243 static void *yy_flex_realloc YY_PROTO(( void *, yy_size_t )); 244 static void yy_flex_free YY_PROTO(( void * )); 278 void yyrestart (FILE *input_file ); 279 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ); 280 YY_BUFFER_STATE yy_create_buffer (FILE *file,int size ); 281 void yy_delete_buffer (YY_BUFFER_STATE b ); 282 void yy_flush_buffer (YY_BUFFER_STATE b ); 283 void yypush_buffer_state (YY_BUFFER_STATE new_buffer ); 284 void yypop_buffer_state (void ); 285 286 static void yyensure_buffer_stack (void ); 287 static void yy_load_buffer_state (void ); 288 static void yy_init_buffer (YY_BUFFER_STATE b,FILE *file ); 289 290 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER ) 291 292 YY_BUFFER_STATE yy_scan_buffer (char *base,yy_size_t size ); 293 YY_BUFFER_STATE yy_scan_string (yyconst char *yy_str ); 294 YY_BUFFER_STATE yy_scan_bytes (yyconst char *bytes,int len ); 295 296 void *yyalloc (yy_size_t ); 297 void *yyrealloc (void *,yy_size_t ); 298 void yyfree (void * ); 245 299 246 300 #define yy_new_buffer yy_create_buffer … … 248 302 #define yy_set_interactive(is_interactive) \ 249 303 { \ 250 if ( ! yy_current_buffer ) \ 251 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ 252 yy_current_buffer->yy_is_interactive = is_interactive; \ 304 if ( ! YY_CURRENT_BUFFER ){ \ 305 yyensure_buffer_stack (); \ 306 YY_CURRENT_BUFFER_LVALUE = \ 307 yy_create_buffer(yyin,YY_BUF_SIZE ); \ 308 } \ 309 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ 253 310 } 254 311 255 312 #define yy_set_bol(at_bol) \ 256 313 { \ 257 if ( ! yy_current_buffer ) \ 258 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); \ 259 yy_current_buffer->yy_at_bol = at_bol; \ 314 if ( ! YY_CURRENT_BUFFER ){\ 315 yyensure_buffer_stack (); \ 316 YY_CURRENT_BUFFER_LVALUE = \ 317 yy_create_buffer(yyin,YY_BUF_SIZE ); \ 318 } \ 319 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ 260 320 } 261 321 262 #define YY_AT_BOL() (yy_current_buffer->yy_at_bol) 322 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) 323 324 /* Begin user sect3 */ 263 325 264 326 typedef unsigned char YY_CHAR; 327 265 328 FILE *yyin = (FILE *) 0, *yyout = (FILE *) 0; 329 266 330 typedef int yy_state_type; 331 332 extern int yylineno; 333 334 int yylineno = 1; 335 267 336 extern char *yytext; 268 337 #define yytext_ptr yytext 269 338 270 static yy_state_type yy_get_previous_state YY_PROTO(( void ));271 static yy_state_type yy_try_NUL_trans YY_PROTO(( yy_state_type current_state ));272 static int yy_get_next_buffer YY_PROTO(( void ));273 static void yy_fatal_error YY_PROTO(( yyconst char msg[] ));339 static yy_state_type yy_get_previous_state (void ); 340 static yy_state_type yy_try_NUL_trans (yy_state_type current_state ); 341 static int yy_get_next_buffer (void ); 342 static void yy_fatal_error (yyconst char msg[] ); 274 343 275 344 /* Done after the current pattern has been matched and before the … … 277 346 */ 278 347 #define YY_DO_BEFORE_ACTION \ 279 yytext_ptr= yy_bp; \280 yyleng = ( int) (yy_cp - yy_bp); \281 yy_hold_char= *yy_cp; \348 (yytext_ptr) = yy_bp; \ 349 yyleng = (size_t) (yy_cp - yy_bp); \ 350 (yy_hold_char) = *yy_cp; \ 282 351 *yy_cp = '\0'; \ 283 yy_c_buf_p= yy_cp;352 (yy_c_buf_p) = yy_cp; 284 353 285 354 #define YY_NUM_RULES 86 286 355 #define YY_END_OF_BUFFER 87 287 static yyconst short int yy_accept[470] = 356 /* This struct is not used in this scanner, 357 but its presence is necessary. */ 358 struct yy_trans_info 359 { 360 flex_int32_t yy_verify; 361 flex_int32_t yy_nxt; 362 }; 363 static yyconst flex_int16_t yy_accept[470] = 288 364 { 0, 289 365 0, 0, 87, 85, 84, 83, 85, 78, 80, 82, … … 340 416 } ; 341 417 342 static yyconst int yy_ec[256] =418 static yyconst flex_int32_t yy_ec[256] = 343 419 { 0, 344 420 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, … … 372 448 } ; 373 449 374 static yyconst int yy_meta[36] =450 static yyconst flex_int32_t yy_meta[36] = 375 451 { 0, 376 452 1, 2, 3, 2, 1, 4, 2, 5, 5, 5, … … 380 456 } ; 381 457 382 static yyconst short int yy_base[476] =458 static yyconst flex_int16_t yy_base[476] = 383 459 { 0, 384 0, 0, 51 5, 516, 34, 516, 509, 0, 492, 25,385 26, 45, 25, 28, 24, 48 6, 497, 49, 0, 40,386 43, 48 6, 51, 66, 67, 482, 35, 516, 516, 81,387 50 3, 84, 0, 486, 516, 0, 494, 477, 492, 475,388 7 4, 474, 477, 475, 46, 489, 69, 484, 471, 481,389 55, 47 7, 481, 466, 67, 469, 83, 83, 467, 477,390 46 4, 478, 464, 459, 475, 470, 74, 453, 81, 457,391 8 6, 76, 468, 467, 465, 452, 452, 458, 95, 461,392 45 3, 447, 446, 106, 466, 456, 0, 451, 444, 449,393 4 48, 443, 452, 435, 436, 449, 433, 448, 430, 426,394 395 4 29, 430, 433, 441, 424, 0, 423, 436, 435, 420,396 41 5, 417, 427, 419, 420, 424, 412, 428, 423, 410,397 42 4, 405, 406, 407, 419, 409, 0, 402, 409, 416,398 41 4, 410, 408, 415, 393, 399, 412, 406, 392, 401,399 39 7, 391, 387, 388, 386, 392, 394, 103, 383, 387,400 399, 388, 389, 396, 385, 377, 379, 376, 373, 376,401 37 0, 374, 387, 368, 363, 98, 381, 0, 379, 367,402 36 3, 0, 0, 362, 363, 360, 358, 375, 361, 356,403 105, 37 3, 372, 351, 355, 355, 349, 0, 366, 352,404 34 7, 346, 352, 346, 343, 356, 346, 354, 356, 352,405 406 34 7, 344, 349, 0, 335, 344, 350, 0, 0, 334,407 1 15, 334, 345, 119, 0, 345, 331, 0, 328, 326,408 33 6, 325, 336, 328, 327, 320, 317, 313, 330, 0,409 33 0, 331, 0, 0, 327, 322, 329, 314, 314, 0,410 11 4, 305, 307, 318, 322, 318, 0, 321, 318, 107,411 3 18, 318, 0, 306, 316, 0, 316, 308, 0, 294,412 0, 298, 307, 294, 291, 304, 304, 0, 132, 137,413 29 3, 287, 290, 300, 288, 290, 0, 293, 295, 295,414 27 6, 292, 295, 0, 293, 278, 276, 0, 277, 0,415 27 0, 283, 267, 285, 270, 281, 0, 280, 279, 271,416 417 26 5, 277, 261, 257, 259, 257, 0, 274, 256, 0,418 25 5, 254, 258, 248, 269, 268, 265, 258, 270, 143,419 2 69, 149, 0, 259, 241, 0, 240, 0, 259, 238,420 2 58, 239, 0, 250, 237, 250, 236, 231, 247, 246,421 0, 2 49, 247, 247, 234, 227, 240, 225, 0, 222,422 0, 22 3, 222, 239, 224, 237, 218, 227, 0, 216,423 21 5, 222, 217, 235, 213, 0, 0, 209, 0, 226,424 0, 2 09, 203, 0, 216, 0, 0, 0, 212, 206,425 21 1, 0, 220, 0, 0, 215, 204, 199, 200, 199,426 21 3, 199, 199, 197, 206, 208, 207, 199, 188, 194,427 428 19 2, 188, 188, 190, 196, 0, 198, 182, 184, 182,429 0, 0, 18 4, 181, 188, 176, 0, 177, 171, 172,430 17 0, 183, 186, 181, 171, 0, 183, 171, 164, 0,431 16 7, 175, 0, 164, 160, 155, 157, 156, 159, 0,432 15 5, 0, 0, 160, 165, 156, 0, 0, 0, 0,433 0, 14 1, 150, 141, 139, 0, 0, 128, 122, 126,434 0, 0, 10 9, 91, 79, 0, 0, 0, 516, 156,435 16 1, 65, 166, 171, 176460 0, 0, 517, 518, 34, 518, 511, 0, 494, 25, 461 26, 45, 25, 28, 24, 488, 499, 49, 0, 40, 462 43, 488, 51, 66, 67, 484, 35, 518, 518, 81, 463 505, 84, 0, 488, 518, 0, 496, 479, 494, 477, 464 75, 476, 479, 477, 46, 491, 70, 486, 473, 483, 465 55, 479, 483, 468, 69, 471, 86, 84, 469, 479, 466 466, 480, 466, 461, 477, 472, 75, 455, 81, 459, 467 87, 77, 470, 469, 467, 454, 454, 460, 96, 463, 468 455, 449, 448, 110, 468, 458, 0, 453, 446, 451, 469 450, 445, 454, 437, 438, 451, 435, 450, 432, 428, 470 471 431, 432, 435, 443, 426, 0, 425, 438, 437, 422, 472 417, 419, 429, 421, 422, 426, 414, 430, 425, 412, 473 426, 407, 408, 409, 421, 411, 0, 404, 411, 418, 474 416, 412, 410, 417, 395, 401, 414, 408, 394, 403, 475 399, 393, 389, 390, 388, 394, 396, 105, 385, 389, 476 401, 390, 391, 398, 387, 379, 381, 378, 375, 378, 477 372, 376, 389, 370, 365, 105, 383, 0, 381, 369, 478 365, 0, 0, 364, 365, 362, 360, 377, 363, 358, 479 105, 375, 374, 353, 357, 357, 351, 0, 368, 354, 480 349, 348, 354, 348, 345, 358, 348, 356, 358, 354, 481 482 349, 346, 351, 0, 337, 346, 352, 0, 0, 336, 483 122, 336, 347, 107, 0, 347, 333, 0, 330, 328, 484 338, 327, 338, 330, 329, 322, 319, 315, 332, 0, 485 332, 333, 0, 0, 329, 324, 331, 316, 316, 0, 486 116, 307, 309, 320, 324, 320, 0, 323, 320, 110, 487 320, 320, 0, 308, 318, 0, 318, 310, 0, 296, 488 0, 300, 309, 296, 293, 306, 306, 0, 135, 139, 489 295, 289, 292, 302, 290, 292, 0, 295, 297, 297, 490 278, 294, 297, 0, 295, 280, 278, 0, 279, 0, 491 272, 285, 269, 287, 272, 283, 0, 282, 281, 273, 492 493 267, 279, 263, 259, 261, 259, 0, 276, 258, 0, 494 257, 256, 260, 250, 271, 270, 267, 260, 272, 145, 495 271, 151, 0, 261, 243, 0, 242, 0, 261, 240, 496 260, 241, 0, 252, 239, 252, 238, 233, 249, 248, 497 0, 251, 249, 249, 236, 229, 242, 227, 0, 224, 498 0, 225, 224, 241, 226, 239, 220, 229, 0, 218, 499 217, 224, 219, 237, 215, 0, 0, 211, 0, 228, 500 0, 211, 205, 0, 218, 0, 0, 0, 214, 208, 501 213, 0, 222, 0, 0, 217, 206, 201, 202, 201, 502 215, 201, 201, 199, 208, 210, 209, 201, 190, 196, 503 504 194, 190, 190, 192, 198, 0, 200, 184, 186, 184, 505 0, 0, 186, 183, 190, 178, 0, 179, 173, 174, 506 172, 185, 188, 183, 173, 0, 185, 173, 166, 0, 507 169, 177, 0, 166, 162, 157, 159, 158, 161, 0, 508 157, 0, 0, 162, 167, 158, 0, 0, 0, 0, 509 0, 143, 152, 143, 141, 0, 0, 130, 124, 124, 510 0, 0, 107, 85, 80, 0, 0, 0, 518, 158, 511 163, 65, 168, 173, 178 436 512 } ; 437 513 438 static yyconst short int yy_def[476] =514 static yyconst flex_int16_t yy_def[476] = 439 515 { 0, 440 516 469, 1, 469, 469, 469, 469, 470, 471, 472, 473, … … 492 568 } ; 493 569 494 static yyconst short int yy_nxt[552] =570 static yyconst flex_int16_t yy_nxt[554] = 495 571 { 0, 496 572 4, 5, 6, 5, 7, 8, 4, 9, 9, 10, … … 502 578 59, 45, 60, 65, 103, 46, 68, 66, 47, 34, 503 579 61, 62, 48, 49, 70, 73, 71, 74, 76, 72, 504 77, 104, 30, 78, 30, 84, 90, 108, 85, 91,505 9 8, 99, 111, 75, 79, 113, 123, 109, 126, 129,506 507 12 4, 131, 132, 114, 139, 468, 112, 84, 127, 130,508 85, 205, 225, 467, 206, 241, 269, 269, 242, 270,509 140, 226, 243, 295, 227, 228, 141, 229, 207, 273,510 304, 466, 274, 269, 269, 305, 319, 465, 321, 296,511 321, 322, 36, 321, 321, 464, 321, 322, 36, 321,512 321, 463, 321, 322, 36, 321, 31, 31, 462, 31,513 31, 33, 33, 461, 33, 33, 36, 460, 459, 36,514 36, 320, 320, 458, 320, 320, 321, 321, 457, 456,515 321, 455, 454, 453, 452, 451, 450, 449, 448, 447,516 44 6, 445, 444, 443, 442, 441, 440, 439, 438, 437,517 518 43 6, 435, 434, 433, 432, 431, 430, 429, 428, 427,519 42 6, 425, 424, 423, 422, 421, 420, 419, 418, 417,520 41 6, 415, 414, 413, 412, 411, 410, 409, 408, 407,521 40 6, 405, 404, 403, 402, 401, 400, 399, 398, 364,522 39 7, 396, 395, 394, 393, 392, 391, 390, 389, 388,523 38 7, 386, 385, 384, 383, 382, 381, 380, 379, 378,524 37 7, 376, 375, 374, 373, 372, 371, 370, 369, 368,525 36 7, 366, 365, 364, 364, 363, 362, 361, 360, 359,526 3 58, 357, 356, 355, 354, 353, 352, 351, 350, 349,527 3 48, 347, 346, 345, 344, 343, 342, 341, 340, 339,528 529 3 38, 337, 336, 335, 334, 333, 332, 331, 330, 329,530 3 28, 327, 326, 325, 324, 323, 318, 317, 316, 315,531 31 4, 313, 312, 311, 310, 309, 308, 307, 306, 303,532 30 2, 301, 300, 299, 298, 297, 294, 293, 292, 291,533 29 0, 289, 288, 287, 286, 285, 284, 283, 282, 281,534 28 0, 279, 278, 277, 276, 275, 272, 271, 268, 267,535 26 6, 265, 264, 263, 262, 261, 260, 259, 258, 257,536 25 6, 255, 254, 253, 252, 251, 250, 249, 248, 247,537 24 6, 245, 244, 240, 239, 238, 237, 236, 235, 234,538 23 3, 232, 231, 230, 224, 223, 222, 221, 220, 219,539 540 2 18, 217, 216, 215, 214, 213, 212, 211, 210, 209,541 2 08, 204, 203, 202, 201, 200, 199, 198, 197, 196,542 19 5, 194, 193, 192, 191, 190, 189, 188, 187, 186,543 18 5, 184, 183, 182, 181, 180, 179, 178, 177, 176,544 17 5, 174, 173, 172, 171, 170, 169, 168, 167, 166,545 16 5, 164, 163, 162, 161, 160, 159, 158, 157, 156,546 15 5, 154, 153, 152, 151, 150, 149, 148, 147, 146,547 32, 145, 144, 143, 142, 138, 137, 136, 135, 134,548 13 3, 128, 125, 122, 121, 120, 119, 118, 117, 116,549 11 5, 110, 107, 106, 105, 102, 101, 100, 97, 94,550 551 9 3, 92, 89, 88, 87, 86, 35, 32, 80, 69,552 58, 57, 35, 32, 469, 3, 469, 469, 469, 469,580 77, 104, 30, 78, 30, 84, 84, 90, 85, 108, 581 91, 98, 99, 75, 79, 111, 113, 123, 126, 109, 582 583 129, 124, 131, 132, 114, 139, 468, 467, 127, 112, 584 130, 84, 84, 205, 85, 241, 206, 273, 242, 225, 585 274, 140, 243, 269, 269, 295, 270, 141, 226, 466, 586 207, 227, 228, 304, 229, 465, 269, 269, 305, 319, 587 321, 296, 321, 322, 36, 321, 321, 464, 321, 322, 588 36, 321, 321, 463, 321, 322, 36, 321, 31, 31, 589 462, 31, 31, 33, 33, 461, 33, 33, 36, 460, 590 459, 36, 36, 320, 320, 458, 320, 320, 321, 321, 591 457, 456, 321, 455, 454, 453, 452, 451, 450, 449, 592 448, 447, 446, 445, 444, 443, 442, 441, 440, 439, 593 594 438, 437, 436, 435, 434, 433, 432, 431, 430, 429, 595 428, 427, 426, 425, 424, 423, 422, 421, 420, 419, 596 418, 417, 416, 415, 414, 413, 412, 411, 410, 409, 597 408, 407, 406, 405, 404, 403, 402, 401, 400, 399, 598 398, 364, 397, 396, 395, 394, 393, 392, 391, 390, 599 389, 388, 387, 386, 385, 384, 383, 382, 381, 380, 600 379, 378, 377, 376, 375, 374, 373, 372, 371, 370, 601 369, 368, 367, 366, 365, 364, 364, 363, 362, 361, 602 360, 359, 358, 357, 356, 355, 354, 353, 352, 351, 603 350, 349, 348, 347, 346, 345, 344, 343, 342, 341, 604 605 340, 339, 338, 337, 336, 335, 334, 333, 332, 331, 606 330, 329, 328, 327, 326, 325, 324, 323, 318, 317, 607 316, 315, 314, 313, 312, 311, 310, 309, 308, 307, 608 306, 303, 302, 301, 300, 299, 298, 297, 294, 293, 609 292, 291, 290, 289, 288, 287, 286, 285, 284, 283, 610 282, 281, 280, 279, 278, 277, 276, 275, 272, 271, 611 268, 267, 266, 265, 264, 263, 262, 261, 260, 259, 612 258, 257, 256, 255, 254, 253, 252, 251, 250, 249, 613 248, 247, 246, 245, 244, 240, 239, 238, 237, 236, 614 235, 234, 233, 232, 231, 230, 224, 223, 222, 221, 615 616 220, 219, 218, 217, 216, 215, 214, 213, 212, 211, 617 210, 209, 208, 204, 203, 202, 201, 200, 199, 198, 618 197, 196, 195, 194, 193, 192, 191, 190, 189, 188, 619 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 620 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 621 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 622 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 623 147, 146, 32, 145, 144, 143, 142, 138, 137, 136, 624 135, 134, 133, 128, 125, 122, 121, 120, 119, 118, 625 117, 116, 115, 110, 107, 106, 105, 102, 101, 100, 626 627 97, 94, 93, 92, 89, 88, 87, 86, 35, 32, 628 80, 69, 58, 57, 35, 32, 469, 3, 469, 469, 553 629 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 554 630 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 555 631 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 556 469 632 469, 469, 469 557 633 } ; 558 634 559 static yyconst short int yy_chk[552] =635 static yyconst flex_int16_t yy_chk[554] = 560 636 { 0, 561 637 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, … … 567 643 18, 12, 18, 20, 51, 12, 21, 20, 12, 472, 568 644 18, 18, 12, 12, 23, 24, 23, 24, 25, 23, 569 25, 51, 30, 25, 30, 32, 41, 55, 32, 41,570 4 7, 47, 57, 24, 25, 58, 67, 55, 69, 71,571 572 67, 72, 72, 58, 79, 465, 57, 84, 69, 71,573 84, 148, 166, 464, 148, 181, 211, 211, 181, 211,574 79, 166, 181, 241, 166, 166, 79, 166, 148, 214,575 250, 463, 214, 269, 269, 250, 269, 460, 270, 241,576 270, 2 70, 270, 270, 320, 459, 320, 320, 320, 320,577 32 2, 458, 322, 322, 322, 322, 470, 470, 455, 470,578 4 70, 471, 471, 454, 471, 471, 473, 453, 452, 473,579 4 73, 474, 474, 446, 474, 474, 475, 475, 445, 444,580 4 75, 441, 439, 438, 437, 436, 435, 434, 432, 431,581 4 29, 428, 427, 425, 424, 423, 422, 421, 420, 419,582 583 4 18, 416, 415, 414, 413, 410, 409, 408, 407, 405,584 40 4, 403, 402, 401, 400, 399, 398, 397, 396, 395,585 39 4, 393, 392, 391, 390, 389, 388, 387, 386, 383,586 38 1, 380, 379, 375, 373, 372, 370, 368, 365, 364,587 36 3, 362, 361, 360, 358, 357, 356, 355, 354, 353,588 35 2, 350, 348, 347, 346, 345, 344, 343, 342, 340,589 3 39, 338, 337, 336, 335, 334, 332, 331, 330, 329,590 3 27, 325, 324, 321, 319, 318, 317, 316, 315, 314,591 31 3, 312, 311, 309, 308, 306, 305, 304, 303, 302,592 30 1, 300, 299, 298, 296, 295, 294, 293, 292, 291,593 594 2 89, 287, 286, 285, 283, 282, 281, 280, 279, 278,595 27 6, 275, 274, 273, 272, 271, 267, 266, 265, 264,596 26 3, 262, 260, 258, 257, 255, 254, 252, 251, 249,597 2 48, 246, 245, 244, 243, 242, 239, 238, 237, 236,598 23 5, 232, 231, 229, 228, 227, 226, 225, 224, 223,599 22 2, 221, 220, 219, 217, 216, 213, 212, 210, 207,600 2 06, 205, 203, 202, 201, 200, 199, 198, 197, 196,601 19 5, 194, 193, 192, 191, 190, 189, 187, 186, 185,602 18 4, 183, 182, 180, 179, 178, 177, 176, 175, 174,603 17 1, 170, 169, 167, 165, 164, 163, 162, 161, 160,604 605 1 59, 158, 157, 156, 155, 154, 153, 152, 151, 150,606 1 49, 147, 146, 145, 144, 143, 142, 141, 140, 139,607 1 38, 137, 136, 135, 134, 133, 132, 131, 130, 129,608 1 28, 126, 125, 124, 123, 122, 121, 120, 119, 118,609 11 7, 116, 115, 114, 113, 112, 111, 110, 109, 108,610 10 7, 105, 104, 103, 102, 101, 100, 99, 98, 97,611 9 6, 95, 94, 93, 92, 91, 90, 89, 88, 86,612 8 5, 83, 82, 81, 80, 78, 77, 76, 75, 74,613 7 3, 70, 68, 66, 65, 64, 63, 62, 61, 60,614 59, 56, 54, 53, 52, 50, 49, 48, 46, 44,615 616 4 3, 42, 40, 39, 38, 37, 34, 31, 26, 22,617 17, 16, 9, 7, 3, 469, 469, 469, 469, 469,645 25, 51, 30, 25, 30, 32, 32, 41, 32, 55, 646 41, 47, 47, 24, 25, 57, 58, 67, 69, 55, 647 648 71, 67, 72, 72, 58, 79, 465, 464, 69, 57, 649 71, 84, 84, 148, 84, 181, 148, 214, 181, 166, 650 214, 79, 181, 211, 211, 241, 211, 79, 166, 463, 651 148, 166, 166, 250, 166, 460, 269, 269, 250, 269, 652 270, 241, 270, 270, 270, 270, 320, 459, 320, 320, 653 320, 320, 322, 458, 322, 322, 322, 322, 470, 470, 654 455, 470, 470, 471, 471, 454, 471, 471, 473, 453, 655 452, 473, 473, 474, 474, 446, 474, 474, 475, 475, 656 445, 444, 475, 441, 439, 438, 437, 436, 435, 434, 657 432, 431, 429, 428, 427, 425, 424, 423, 422, 421, 658 659 420, 419, 418, 416, 415, 414, 413, 410, 409, 408, 660 407, 405, 404, 403, 402, 401, 400, 399, 398, 397, 661 396, 395, 394, 393, 392, 391, 390, 389, 388, 387, 662 386, 383, 381, 380, 379, 375, 373, 372, 370, 368, 663 365, 364, 363, 362, 361, 360, 358, 357, 356, 355, 664 354, 353, 352, 350, 348, 347, 346, 345, 344, 343, 665 342, 340, 339, 338, 337, 336, 335, 334, 332, 331, 666 330, 329, 327, 325, 324, 321, 319, 318, 317, 316, 667 315, 314, 313, 312, 311, 309, 308, 306, 305, 304, 668 303, 302, 301, 300, 299, 298, 296, 295, 294, 293, 669 670 292, 291, 289, 287, 286, 285, 283, 282, 281, 280, 671 279, 278, 276, 275, 274, 273, 272, 271, 267, 266, 672 265, 264, 263, 262, 260, 258, 257, 255, 254, 252, 673 251, 249, 248, 246, 245, 244, 243, 242, 239, 238, 674 237, 236, 235, 232, 231, 229, 228, 227, 226, 225, 675 224, 223, 222, 221, 220, 219, 217, 216, 213, 212, 676 210, 207, 206, 205, 203, 202, 201, 200, 199, 198, 677 197, 196, 195, 194, 193, 192, 191, 190, 189, 187, 678 186, 185, 184, 183, 182, 180, 179, 178, 177, 176, 679 175, 174, 171, 170, 169, 167, 165, 164, 163, 162, 680 681 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 682 151, 150, 149, 147, 146, 145, 144, 143, 142, 141, 683 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 684 130, 129, 128, 126, 125, 124, 123, 122, 121, 120, 685 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 686 109, 108, 107, 105, 104, 103, 102, 101, 100, 99, 687 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 688 88, 86, 85, 83, 82, 81, 80, 78, 77, 76, 689 75, 74, 73, 70, 68, 66, 65, 64, 63, 62, 690 61, 60, 59, 56, 54, 53, 52, 50, 49, 48, 691 692 46, 44, 43, 42, 40, 39, 38, 37, 34, 31, 693 26, 22, 17, 16, 9, 7, 3, 469, 469, 469, 618 694 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 619 695 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 620 696 469, 469, 469, 469, 469, 469, 469, 469, 469, 469, 621 469 697 469, 469, 469 622 698 } ; 623 699 624 700 static yy_state_type yy_last_accepting_state; 625 701 static char *yy_last_accepting_cpos; 702 703 extern int yy_flex_debug; 704 int yy_flex_debug = 0; 626 705 627 706 /* The intent behind this definition is that it'll catch … … 634 713 char *yytext; 635 714 #line 1 "rclex.l" 636 #define INITIAL 0637 715 #line 2 "rclex.l" 638 /* Copyright 1997, 1998, 1999 Free Software Foundation, Inc.716 /* Copyright 1997, 1998, 1999, 2001, 2002 Free Software Foundation, Inc. 639 717 Written by Ian Lance Taylor, Cygnus Support. 640 718 … … 663 741 #include "bucomm.h" 664 742 #include "libiberty.h" 743 #include "safe-ctype.h" 665 744 #include "windres.h" 666 745 #include "rcparse.h" 667 746 668 #include <ctype.h>669 747 #include <assert.h> 670 748 … … 707 785 static char *get_string PARAMS ((int)); 708 786 709 #line 710 "lex.yy.c" 787 #line 788 "lex.yy.c" 788 789 #define INITIAL 0 790 791 /* Special case for "unistd.h", since it is non-ANSI. We include it way 792 * down here because we want the user's section 1 to have been scanned first. 793 * The user has a chance to override it with an option. 794 */ 795 #include <unistd.h> 796 797 #ifndef YY_EXTRA_TYPE 798 #define YY_EXTRA_TYPE void * 799 #endif 710 800 711 801 /* Macros after this point can all be overridden by user definitions in … … 715 805 #ifndef YY_SKIP_YYWRAP 716 806 #ifdef __cplusplus 717 extern "C" int yywrap YY_PROTO(( void ));807 extern "C" int yywrap (void ); 718 808 #else 719 extern int yywrap YY_PROTO(( void )); 720 #endif 721 #endif 722 723 #ifndef YY_NO_UNPUT 724 static void yyunput YY_PROTO(( int c, char *buf_ptr )); 725 #endif 726 809 extern int yywrap (void ); 810 #endif 811 #endif 812 813 static void yyunput (int c,char *buf_ptr ); 814 727 815 #ifndef yytext_ptr 728 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));816 static void yy_flex_strncpy (char *,yyconst char *,int ); 729 817 #endif 730 818 731 819 #ifdef YY_NEED_STRLEN 732 static int yy_flex_strlen YY_PROTO(( yyconst char * ));820 static int yy_flex_strlen (yyconst char * ); 733 821 #endif 734 822 735 823 #ifndef YY_NO_INPUT 824 736 825 #ifdef __cplusplus 737 static int yyinput YY_PROTO(( void ));826 static int yyinput (void ); 738 827 #else 739 static int input YY_PROTO(( void )); 740 #endif 741 #endif 742 743 #if YY_STACK_USED 744 static int yy_start_stack_ptr = 0; 745 static int yy_start_stack_depth = 0; 746 static int *yy_start_stack = 0; 747 #ifndef YY_NO_PUSH_STATE 748 static void yy_push_state YY_PROTO(( int new_state )); 749 #endif 750 #ifndef YY_NO_POP_STATE 751 static void yy_pop_state YY_PROTO(( void )); 752 #endif 753 #ifndef YY_NO_TOP_STATE 754 static int yy_top_state YY_PROTO(( void )); 755 #endif 756 757 #else 758 #define YY_NO_PUSH_STATE 1 759 #define YY_NO_POP_STATE 1 760 #define YY_NO_TOP_STATE 1 761 #endif 762 763 #ifdef YY_MALLOC_DECL 764 YY_MALLOC_DECL 765 #else 766 #if __STDC__ 767 #ifndef __cplusplus 768 #include <stdlib.h> 769 #endif 770 #else 771 /* Just try to get by without declaring the routines. This will fail 772 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) 773 * or sizeof(void*) != sizeof(int). 774 */ 775 #endif 828 static int input (void ); 829 #endif 830 776 831 #endif 777 832 … … 782 837 783 838 /* Copy whatever the last rule matched to the standard output. */ 784 785 839 #ifndef ECHO 786 840 /* This used to be an fputs(), but since the string might contain NUL's, … … 795 849 #ifndef YY_INPUT 796 850 #define YY_INPUT(buf,result,max_size) \ 797 if ( yy_current_buffer->yy_is_interactive ) \851 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ 798 852 { \ 799 int c = '*', n; \ 853 int c = '*'; \ 854 size_t n; \ 800 855 for ( n = 0; n < max_size && \ 801 856 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ … … 807 862 result = n; \ 808 863 } \ 809 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ 810 && ferror( yyin ) ) \ 811 YY_FATAL_ERROR( "input in flex scanner failed" ); 864 else \ 865 { \ 866 errno=0; \ 867 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ 868 { \ 869 if( errno != EINTR) \ 870 { \ 871 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 872 break; \ 873 } \ 874 errno=0; \ 875 clearerr(yyin); \ 876 } \ 877 }\ 878 \ 879 812 880 #endif 813 881 … … 830 898 #endif 831 899 900 /* end tables serialization structures and prototypes */ 901 832 902 /* Default declaration of generated scanner - a define so the user can 833 903 * easily add parameters. 834 904 */ 835 905 #ifndef YY_DECL 836 #define YY_DECL int yylex YY_PROTO(( void )) 837 #endif 906 #define YY_DECL_IS_OURS 1 907 908 extern int yylex (void); 909 910 #define YY_DECL int yylex (void) 911 #endif /* !YY_DECL */ 838 912 839 913 /* Code executed at the beginning of each rule, after yytext and yyleng … … 852 926 YY_USER_ACTION 853 927 928 /** The main scanner function which does all the work. 929 */ 854 930 YY_DECL 855 931 { 856 932 register yy_state_type yy_current_state; 857 933 register char *yy_cp, *yy_bp; 858 934 register int yy_act; 859 935 860 936 #line 75 "rclex.l" 861 937 862 938 863 #line 864"lex.yy.c"864 865 if ( yy_init)939 #line 940 "lex.yy.c" 940 941 if ( (yy_init) ) 866 942 { 867 yy_init= 0;943 (yy_init) = 0; 868 944 869 945 #ifdef YY_USER_INIT … … 871 947 #endif 872 948 873 if ( ! yy_start)874 yy_start= 1; /* first start state */949 if ( ! (yy_start) ) 950 (yy_start) = 1; /* first start state */ 875 951 876 952 if ( ! yyin ) … … 880 956 yyout = stdout; 881 957 882 if ( ! yy_current_buffer ) 883 yy_current_buffer = 884 yy_create_buffer( yyin, YY_BUF_SIZE ); 885 886 yy_load_buffer_state(); 958 if ( ! YY_CURRENT_BUFFER ) { 959 yyensure_buffer_stack (); 960 YY_CURRENT_BUFFER_LVALUE = 961 yy_create_buffer(yyin,YY_BUF_SIZE ); 962 } 963 964 yy_load_buffer_state( ); 887 965 } 888 966 889 967 while ( 1 ) /* loops until end-of-file is reached */ 890 968 { 891 yy_cp = yy_c_buf_p;969 yy_cp = (yy_c_buf_p); 892 970 893 971 /* Support of yytext. */ 894 *yy_cp = yy_hold_char;972 *yy_cp = (yy_hold_char); 895 973 896 974 /* yy_bp points to the position in yy_ch_buf of the start of … … 899 977 yy_bp = yy_cp; 900 978 901 yy_current_state = yy_start;979 yy_current_state = (yy_start); 902 980 yy_match: 903 981 do … … 906 984 if ( yy_accept[yy_current_state] ) 907 985 { 908 yy_last_accepting_state= yy_current_state;909 yy_last_accepting_cpos= yy_cp;986 (yy_last_accepting_state) = yy_current_state; 987 (yy_last_accepting_cpos) = yy_cp; 910 988 } 911 989 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) … … 918 996 ++yy_cp; 919 997 } 920 while ( yy_base[yy_current_state] != 51 6);998 while ( yy_base[yy_current_state] != 518 ); 921 999 922 1000 yy_find_action: … … 924 1002 if ( yy_act == 0 ) 925 1003 { /* have to back up */ 926 yy_cp = yy_last_accepting_cpos;927 yy_current_state = yy_last_accepting_state;1004 yy_cp = (yy_last_accepting_cpos); 1005 yy_current_state = (yy_last_accepting_state); 928 1006 yy_act = yy_accept[yy_current_state]; 929 1007 } … … 931 1009 YY_DO_BEFORE_ACTION; 932 1010 933 934 1011 do_action: /* This label is used only to access EOF actions. */ 935 936 1012 937 1013 switch ( yy_act ) … … 939 1015 case 0: /* must back up */ 940 1016 /* undo the effects of YY_DO_BEFORE_ACTION */ 941 *yy_cp = yy_hold_char;942 yy_cp = yy_last_accepting_cpos;943 yy_current_state = yy_last_accepting_state;1017 *yy_cp = (yy_hold_char); 1018 yy_cp = (yy_last_accepting_cpos); 1019 yy_current_state = (yy_last_accepting_state); 944 1020 goto yy_find_action; 945 1021 … … 1325 1401 YY_BREAK 1326 1402 case 77: 1403 /* rule 77 can match eol */ 1327 1404 YY_RULE_SETUP 1328 1405 #line 154 "rclex.l" … … 1382 1459 YY_BREAK 1383 1460 case 81: 1461 /* rule 81 can match eol */ 1384 1462 YY_RULE_SETUP 1385 1463 #line 199 "rclex.l" … … 1421 1499 YY_BREAK 1422 1500 case 83: 1501 /* rule 83 can match eol */ 1423 1502 YY_RULE_SETUP 1424 1503 #line 232 "rclex.l" … … 1440 1519 ECHO; 1441 1520 YY_BREAK 1442 #line 1 443"lex.yy.c"1521 #line 1522 "lex.yy.c" 1443 1522 case YY_STATE_EOF(INITIAL): 1444 1523 yyterminate(); … … 1447 1526 { 1448 1527 /* Amount of text matched not including the EOB char. */ 1449 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;1528 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; 1450 1529 1451 1530 /* Undo the effects of YY_DO_BEFORE_ACTION. */ 1452 *yy_cp = yy_hold_char;1531 *yy_cp = (yy_hold_char); 1453 1532 YY_RESTORE_YY_MORE_OFFSET 1454 1533 1455 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )1534 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) 1456 1535 { 1457 1536 /* We're scanning a new file or input source. It's … … 1459 1538 * just pointed yyin at a new source and called 1460 1539 * yylex(). If so, then we have to assure 1461 * consistency between yy_current_bufferand our1540 * consistency between YY_CURRENT_BUFFER and our 1462 1541 * globals. Here is the right place to do so, because 1463 1542 * this is the first action (other than possibly a 1464 1543 * back-up) that will match for the new input source. 1465 1544 */ 1466 yy_n_chars = yy_current_buffer->yy_n_chars;1467 yy_current_buffer->yy_input_file = yyin;1468 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;1545 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; 1546 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; 1547 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; 1469 1548 } 1470 1549 … … 1476 1555 * in input(). 1477 1556 */ 1478 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )1557 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) 1479 1558 { /* This was really a NUL. */ 1480 1559 yy_state_type yy_next_state; 1481 1560 1482 yy_c_buf_p = yytext_ptr+ yy_amount_of_matched_text;1483 1484 yy_current_state = yy_get_previous_state( );1561 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; 1562 1563 yy_current_state = yy_get_previous_state( ); 1485 1564 1486 1565 /* Okay, we're now positioned to make the NUL … … 1495 1574 yy_next_state = yy_try_NUL_trans( yy_current_state ); 1496 1575 1497 yy_bp = yytext_ptr+ YY_MORE_ADJ;1576 yy_bp = (yytext_ptr) + YY_MORE_ADJ; 1498 1577 1499 1578 if ( yy_next_state ) 1500 1579 { 1501 1580 /* Consume the NUL. */ 1502 yy_cp = ++ yy_c_buf_p;1581 yy_cp = ++(yy_c_buf_p); 1503 1582 yy_current_state = yy_next_state; 1504 1583 goto yy_match; … … 1507 1586 else 1508 1587 { 1509 yy_cp = yy_c_buf_p;1588 yy_cp = (yy_c_buf_p); 1510 1589 goto yy_find_action; 1511 1590 } 1512 1591 } 1513 1592 1514 else switch ( yy_get_next_buffer( ) )1593 else switch ( yy_get_next_buffer( ) ) 1515 1594 { 1516 1595 case EOB_ACT_END_OF_FILE: 1517 1596 { 1518 yy_did_buffer_switch_on_eof= 0;1519 1520 if ( yywrap( ) )1597 (yy_did_buffer_switch_on_eof) = 0; 1598 1599 if ( yywrap( ) ) 1521 1600 { 1522 1601 /* Note: because we've taken care in … … 1529 1608 * YY_NULL will get returned. 1530 1609 */ 1531 yy_c_buf_p = yytext_ptr+ YY_MORE_ADJ;1610 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; 1532 1611 1533 1612 yy_act = YY_STATE_EOF(YY_START); … … 1537 1616 else 1538 1617 { 1539 if ( ! yy_did_buffer_switch_on_eof)1618 if ( ! (yy_did_buffer_switch_on_eof) ) 1540 1619 YY_NEW_FILE; 1541 1620 } … … 1544 1623 1545 1624 case EOB_ACT_CONTINUE_SCAN: 1546 yy_c_buf_p=1547 yytext_ptr+ yy_amount_of_matched_text;1548 1549 yy_current_state = yy_get_previous_state( );1550 1551 yy_cp = yy_c_buf_p;1552 yy_bp = yytext_ptr+ YY_MORE_ADJ;1625 (yy_c_buf_p) = 1626 (yytext_ptr) + yy_amount_of_matched_text; 1627 1628 yy_current_state = yy_get_previous_state( ); 1629 1630 yy_cp = (yy_c_buf_p); 1631 yy_bp = (yytext_ptr) + YY_MORE_ADJ; 1553 1632 goto yy_match; 1554 1633 1555 1634 case EOB_ACT_LAST_MATCH: 1556 yy_c_buf_p=1557 & yy_current_buffer->yy_ch_buf[yy_n_chars];1558 1559 yy_current_state = yy_get_previous_state( );1560 1561 yy_cp = yy_c_buf_p;1562 yy_bp = yytext_ptr+ YY_MORE_ADJ;1635 (yy_c_buf_p) = 1636 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; 1637 1638 yy_current_state = yy_get_previous_state( ); 1639 1640 yy_cp = (yy_c_buf_p); 1641 yy_bp = (yytext_ptr) + YY_MORE_ADJ; 1563 1642 goto yy_find_action; 1564 1643 } … … 1571 1650 } /* end of action switch */ 1572 1651 } /* end of scanning one token */ 1573 } /* end of yylex */ 1574 1652 } /* end of yylex */ 1575 1653 1576 1654 /* yy_get_next_buffer - try to read in a new buffer … … 1581 1659 * EOB_ACT_END_OF_FILE - end of file 1582 1660 */ 1583 1584 static int yy_get_next_buffer() 1585 { 1586 register char *dest = yy_current_buffer->yy_ch_buf; 1587 register char *source = yytext_ptr; 1661 static int yy_get_next_buffer (void) 1662 { 1663 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; 1664 register char *source = (yytext_ptr); 1588 1665 register int number_to_move, i; 1589 1666 int ret_val; 1590 1667 1591 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars+ 1] )1668 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) 1592 1669 YY_FATAL_ERROR( 1593 1670 "fatal flex scanner internal error--end of buffer missed" ); 1594 1671 1595 if ( yy_current_buffer->yy_fill_buffer == 0 )1672 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) 1596 1673 { /* Don't try to fill the buffer, so this is an EOF. */ 1597 if ( yy_c_buf_p - yytext_ptr- YY_MORE_ADJ == 1 )1674 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) 1598 1675 { 1599 1676 /* We matched a single character, the EOB, so … … 1615 1692 1616 1693 /* First move last chars to start of buffer. */ 1617 number_to_move = (int) ( yy_c_buf_p - yytext_ptr) - 1;1694 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; 1618 1695 1619 1696 for ( i = 0; i < number_to_move; ++i ) 1620 1697 *(dest++) = *(source++); 1621 1698 1622 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )1699 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) 1623 1700 /* don't do the read, it's not guaranteed to return an EOF, 1624 1701 * just force an EOF 1625 1702 */ 1626 yy_current_buffer->yy_n_chars = yy_n_chars= 0;1703 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; 1627 1704 1628 1705 else 1629 1706 { 1630 int num_to_read =1631 yy_current_buffer->yy_buf_size - number_to_move - 1;1707 size_t num_to_read = 1708 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; 1632 1709 1633 1710 while ( num_to_read <= 0 ) 1634 1711 { /* Not enough room in the buffer - grow it. */ 1635 #ifdef YY_USES_REJECT1636 YY_FATAL_ERROR(1637 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );1638 #else1639 1712 1640 1713 /* just a shorter name for the current buffer */ 1641 YY_BUFFER_STATE b = yy_current_buffer;1714 YY_BUFFER_STATE b = YY_CURRENT_BUFFER; 1642 1715 1643 1716 int yy_c_buf_p_offset = 1644 (int) ( yy_c_buf_p- b->yy_ch_buf);1717 (int) ((yy_c_buf_p) - b->yy_ch_buf); 1645 1718 1646 1719 if ( b->yy_is_our_buffer ) … … 1655 1728 b->yy_ch_buf = (char *) 1656 1729 /* Include room in for 2 EOB chars. */ 1657 yy_flex_realloc( (void *) b->yy_ch_buf, 1658 b->yy_buf_size + 2 ); 1730 yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); 1659 1731 } 1660 1732 else … … 1666 1738 "fatal error - scanner input buffer overflow" ); 1667 1739 1668 yy_c_buf_p= &b->yy_ch_buf[yy_c_buf_p_offset];1669 1670 num_to_read = yy_current_buffer->yy_buf_size -1740 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; 1741 1742 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - 1671 1743 number_to_move - 1; 1672 #endif 1744 1673 1745 } 1674 1746 … … 1677 1749 1678 1750 /* Read in more data. */ 1679 YY_INPUT( (& yy_current_buffer->yy_ch_buf[number_to_move]),1680 yy_n_chars, num_to_read );1681 1682 yy_current_buffer->yy_n_chars = yy_n_chars;1751 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), 1752 (yy_n_chars), num_to_read ); 1753 1754 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); 1683 1755 } 1684 1756 1685 if ( yy_n_chars== 0 )1757 if ( (yy_n_chars) == 0 ) 1686 1758 { 1687 1759 if ( number_to_move == YY_MORE_ADJ ) 1688 1760 { 1689 1761 ret_val = EOB_ACT_END_OF_FILE; 1690 yyrestart( yyin);1762 yyrestart(yyin ); 1691 1763 } 1692 1764 … … 1694 1766 { 1695 1767 ret_val = EOB_ACT_LAST_MATCH; 1696 yy_current_buffer->yy_buffer_status =1768 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = 1697 1769 YY_BUFFER_EOF_PENDING; 1698 1770 } … … 1702 1774 ret_val = EOB_ACT_CONTINUE_SCAN; 1703 1775 1704 yy_n_chars+= number_to_move;1705 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;1706 yy_current_buffer->yy_ch_buf[yy_n_chars+ 1] = YY_END_OF_BUFFER_CHAR;1707 1708 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];1776 (yy_n_chars) += number_to_move; 1777 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; 1778 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; 1779 1780 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; 1709 1781 1710 1782 return ret_val; 1711 } 1712 1783 } 1713 1784 1714 1785 /* yy_get_previous_state - get the state just before the EOB char was reached */ 1715 1786 1716 static yy_state_type yy_get_previous_state()1717 1787 static yy_state_type yy_get_previous_state (void) 1788 { 1718 1789 register yy_state_type yy_current_state; 1719 1790 register char *yy_cp; 1720 1721 yy_current_state = yy_start;1722 1723 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )1791 1792 yy_current_state = (yy_start); 1793 1794 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) 1724 1795 { 1725 1796 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); 1726 1797 if ( yy_accept[yy_current_state] ) 1727 1798 { 1728 yy_last_accepting_state= yy_current_state;1729 yy_last_accepting_cpos= yy_cp;1799 (yy_last_accepting_state) = yy_current_state; 1800 (yy_last_accepting_cpos) = yy_cp; 1730 1801 } 1731 1802 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) … … 1739 1810 1740 1811 return yy_current_state; 1741 } 1742 1812 } 1743 1813 1744 1814 /* yy_try_NUL_trans - try to make a transition on the NUL character … … 1747 1817 * next_state = yy_try_NUL_trans( current_state ); 1748 1818 */ 1749 1750 #ifdef YY_USE_PROTOS 1751 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) 1752 #else 1753 static yy_state_type yy_try_NUL_trans( yy_current_state ) 1754 yy_state_type yy_current_state; 1755 #endif 1756 { 1819 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) 1820 { 1757 1821 register int yy_is_jam; 1758 register char *yy_cp = yy_c_buf_p;1822 register char *yy_cp = (yy_c_buf_p); 1759 1823 1760 1824 register YY_CHAR yy_c = 1; 1761 1825 if ( yy_accept[yy_current_state] ) 1762 1826 { 1763 yy_last_accepting_state= yy_current_state;1764 yy_last_accepting_cpos= yy_cp;1827 (yy_last_accepting_state) = yy_current_state; 1828 (yy_last_accepting_cpos) = yy_cp; 1765 1829 } 1766 1830 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) … … 1774 1838 1775 1839 return yy_is_jam ? 0 : yy_current_state; 1776 } 1777 1778 1779 #ifndef YY_NO_UNPUT 1780 #ifdef YY_USE_PROTOS 1781 static void yyunput( int c, register char *yy_bp ) 1782 #else 1783 static void yyunput( c, yy_bp ) 1784 int c; 1785 register char *yy_bp; 1786 #endif 1787 { 1788 register char *yy_cp = yy_c_buf_p; 1840 } 1841 1842 static void yyunput (int c, register char * yy_bp ) 1843 { 1844 register char *yy_cp; 1845 1846 yy_cp = (yy_c_buf_p); 1789 1847 1790 1848 /* undo effects of setting up yytext */ 1791 *yy_cp = yy_hold_char;1792 1793 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )1849 *yy_cp = (yy_hold_char); 1850 1851 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) 1794 1852 { /* need to shift things up to make room */ 1795 1853 /* +2 for EOB chars. */ 1796 register int number_to_move = yy_n_chars+ 2;1797 register char *dest = & yy_current_buffer->yy_ch_buf[1798 yy_current_buffer->yy_buf_size + 2];1854 register int number_to_move = (yy_n_chars) + 2; 1855 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ 1856 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; 1799 1857 register char *source = 1800 & yy_current_buffer->yy_ch_buf[number_to_move];1801 1802 while ( source > yy_current_buffer->yy_ch_buf )1858 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; 1859 1860 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) 1803 1861 *--dest = *--source; 1804 1862 1805 1863 yy_cp += (int) (dest - source); 1806 1864 yy_bp += (int) (dest - source); 1807 yy_current_buffer->yy_n_chars =1808 yy_n_chars = yy_current_buffer->yy_buf_size;1809 1810 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )1865 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = 1866 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; 1867 1868 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) 1811 1869 YY_FATAL_ERROR( "flex scanner push-back overflow" ); 1812 1870 } … … 1814 1872 *--yy_cp = (char) c; 1815 1873 1816 1817 yytext_ptr = yy_bp; 1818 yy_hold_char = *yy_cp; 1819 yy_c_buf_p = yy_cp; 1820 } 1821 #endif /* ifndef YY_NO_UNPUT */ 1822 1823 1874 (yytext_ptr) = yy_bp; 1875 (yy_hold_char) = *yy_cp; 1876 (yy_c_buf_p) = yy_cp; 1877 } 1878 1879 #ifndef YY_NO_INPUT 1824 1880 #ifdef __cplusplus 1825 static int yyinput()1881 static int yyinput (void) 1826 1882 #else 1827 static int input() 1828 #endif 1829 { 1883 static int input (void) 1884 #endif 1885 1886 { 1830 1887 int c; 1831 1832 * yy_c_buf_p = yy_hold_char;1833 1834 if ( * yy_c_buf_p== YY_END_OF_BUFFER_CHAR )1888 1889 *(yy_c_buf_p) = (yy_hold_char); 1890 1891 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) 1835 1892 { 1836 1893 /* yy_c_buf_p now points to the character we want to return. … … 1838 1895 * valid NUL; if not, then we've hit the end of the buffer. 1839 1896 */ 1840 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )1897 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) 1841 1898 /* This was really a NUL. */ 1842 * yy_c_buf_p= '\0';1899 *(yy_c_buf_p) = '\0'; 1843 1900 1844 1901 else 1845 1902 { /* need more input */ 1846 int offset = yy_c_buf_p - yytext_ptr;1847 ++ yy_c_buf_p;1848 1849 switch ( yy_get_next_buffer( ) )1903 int offset = (yy_c_buf_p) - (yytext_ptr); 1904 ++(yy_c_buf_p); 1905 1906 switch ( yy_get_next_buffer( ) ) 1850 1907 { 1851 1908 case EOB_ACT_LAST_MATCH: … … 1861 1918 1862 1919 /* Reset buffer status. */ 1863 yyrestart( 1864 1865 /* fall through*/1920 yyrestart(yyin ); 1921 1922 /*FALLTHROUGH*/ 1866 1923 1867 1924 case EOB_ACT_END_OF_FILE: 1868 1925 { 1869 if ( yywrap( ) )1926 if ( yywrap( ) ) 1870 1927 return EOF; 1871 1928 1872 if ( ! yy_did_buffer_switch_on_eof)1929 if ( ! (yy_did_buffer_switch_on_eof) ) 1873 1930 YY_NEW_FILE; 1874 1931 #ifdef __cplusplus … … 1880 1937 1881 1938 case EOB_ACT_CONTINUE_SCAN: 1882 yy_c_buf_p = yytext_ptr+ offset;1939 (yy_c_buf_p) = (yytext_ptr) + offset; 1883 1940 break; 1884 1941 } … … 1886 1943 } 1887 1944 1888 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ 1889 *yy_c_buf_p = '\0'; /* preserve yytext */ 1890 yy_hold_char = *++yy_c_buf_p; 1891 1945 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ 1946 *(yy_c_buf_p) = '\0'; /* preserve yytext */ 1947 (yy_hold_char) = *++(yy_c_buf_p); 1892 1948 1893 1949 return c; 1950 } 1951 #endif /* ifndef YY_NO_INPUT */ 1952 1953 /** Immediately switch to a different input stream. 1954 * @param input_file A readable stream. 1955 * 1956 * @note This function does not reset the start condition to @c INITIAL . 1957 */ 1958 void yyrestart (FILE * input_file ) 1959 { 1960 1961 if ( ! YY_CURRENT_BUFFER ){ 1962 yyensure_buffer_stack (); 1963 YY_CURRENT_BUFFER_LVALUE = 1964 yy_create_buffer(yyin,YY_BUF_SIZE ); 1894 1965 } 1895 1966 1896 1897 #ifdef YY_USE_PROTOS 1898 void yyrestart( FILE *input_file ) 1899 #else 1900 void yyrestart( input_file ) 1901 FILE *input_file; 1902 #endif 1903 { 1904 if ( ! yy_current_buffer ) 1905 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); 1906 1907 yy_init_buffer( yy_current_buffer, input_file ); 1908 yy_load_buffer_state(); 1909 } 1910 1911 1912 #ifdef YY_USE_PROTOS 1913 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) 1914 #else 1915 void yy_switch_to_buffer( new_buffer ) 1916 YY_BUFFER_STATE new_buffer; 1917 #endif 1918 { 1919 if ( yy_current_buffer == new_buffer ) 1967 yy_init_buffer(YY_CURRENT_BUFFER,input_file ); 1968 yy_load_buffer_state( ); 1969 } 1970 1971 /** Switch to a different input buffer. 1972 * @param new_buffer The new input buffer. 1973 * 1974 */ 1975 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) 1976 { 1977 1978 /* TODO. We should be able to replace this entire function body 1979 * with 1980 * yypop_buffer_state(); 1981 * yypush_buffer_state(new_buffer); 1982 */ 1983 yyensure_buffer_stack (); 1984 if ( YY_CURRENT_BUFFER == new_buffer ) 1920 1985 return; 1921 1986 1922 if ( yy_current_buffer)1987 if ( YY_CURRENT_BUFFER ) 1923 1988 { 1924 1989 /* Flush out information for old buffer. */ 1925 * yy_c_buf_p = yy_hold_char;1926 yy_current_buffer->yy_buf_pos = yy_c_buf_p;1927 yy_current_buffer->yy_n_chars = yy_n_chars;1990 *(yy_c_buf_p) = (yy_hold_char); 1991 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); 1992 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); 1928 1993 } 1929 1994 1930 yy_current_buffer= new_buffer;1931 yy_load_buffer_state( );1995 YY_CURRENT_BUFFER_LVALUE = new_buffer; 1996 yy_load_buffer_state( ); 1932 1997 1933 1998 /* We don't actually know whether we did this switch during … … 1936 2001 * to go ahead and always set it. 1937 2002 */ 1938 yy_did_buffer_switch_on_eof = 1; 1939 } 1940 1941 1942 #ifdef YY_USE_PROTOS 1943 void yy_load_buffer_state( void ) 1944 #else 1945 void yy_load_buffer_state() 1946 #endif 1947 { 1948 yy_n_chars = yy_current_buffer->yy_n_chars; 1949 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; 1950 yyin = yy_current_buffer->yy_input_file; 1951 yy_hold_char = *yy_c_buf_p; 1952 } 1953 1954 1955 #ifdef YY_USE_PROTOS 1956 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) 1957 #else 1958 YY_BUFFER_STATE yy_create_buffer( file, size ) 1959 FILE *file; 1960 int size; 1961 #endif 1962 { 2003 (yy_did_buffer_switch_on_eof) = 1; 2004 } 2005 2006 static void yy_load_buffer_state (void) 2007 { 2008 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; 2009 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; 2010 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; 2011 (yy_hold_char) = *(yy_c_buf_p); 2012 } 2013 2014 /** Allocate and initialize an input buffer state. 2015 * @param file A readable stream. 2016 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. 2017 * 2018 * @return the allocated buffer state. 2019 */ 2020 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) 2021 { 1963 2022 YY_BUFFER_STATE b; 1964 1965 b = (YY_BUFFER_STATE) yy _flex_alloc( sizeof( struct yy_buffer_state ));2023 2024 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); 1966 2025 if ( ! b ) 1967 2026 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); … … 1972 2031 * we need to put in 2 end-of-buffer characters. 1973 2032 */ 1974 b->yy_ch_buf = (char *) yy _flex_alloc( b->yy_buf_size + 2);2033 b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); 1975 2034 if ( ! b->yy_ch_buf ) 1976 2035 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); … … 1978 2037 b->yy_is_our_buffer = 1; 1979 2038 1980 yy_init_buffer( b,file );2039 yy_init_buffer(b,file ); 1981 2040 1982 2041 return b; 1983 } 1984 1985 1986 #ifdef YY_USE_PROTOS 1987 void yy_delete_buffer( YY_BUFFER_STATE b ) 1988 #else 1989 void yy_delete_buffer( b ) 1990 YY_BUFFER_STATE b; 1991 #endif 1992 { 2042 } 2043 2044 /** Destroy the buffer. 2045 * @param b a buffer created with yy_create_buffer() 2046 * 2047 */ 2048 void yy_delete_buffer (YY_BUFFER_STATE b ) 2049 { 2050 1993 2051 if ( ! b ) 1994 2052 return; 1995 2053 1996 if ( b == yy_current_buffer )1997 yy_current_buffer= (YY_BUFFER_STATE) 0;2054 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ 2055 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; 1998 2056 1999 2057 if ( b->yy_is_our_buffer ) 2000 yy_flex_free( (void *) b->yy_ch_buf ); 2001 2002 yy_flex_free( (void *) b ); 2003 } 2004 2005 2006 #ifndef YY_ALWAYS_INTERACTIVE 2007 #ifndef YY_NEVER_INTERACTIVE 2008 extern int isatty YY_PROTO(( int )); 2009 #endif 2010 #endif 2011 2012 #ifdef YY_USE_PROTOS 2013 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) 2014 #else 2015 void yy_init_buffer( b, file ) 2016 YY_BUFFER_STATE b; 2017 FILE *file; 2018 #endif 2019 2020 2021 { 2022 yy_flush_buffer( b ); 2058 yyfree((void *) b->yy_ch_buf ); 2059 2060 yyfree((void *) b ); 2061 } 2062 2063 #ifndef __cplusplus 2064 extern int isatty (int ); 2065 #endif /* __cplusplus */ 2066 2067 /* Initializes or reinitializes a buffer. 2068 * This function is sometimes called more than once on the same buffer, 2069 * such as during a yyrestart() or at EOF. 2070 */ 2071 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) 2072 2073 { 2074 int oerrno = errno; 2075 2076 yy_flush_buffer(b ); 2023 2077 2024 2078 b->yy_input_file = file; 2025 2079 b->yy_fill_buffer = 1; 2026 2080 2027 #if YY_ALWAYS_INTERACTIVE 2028 b->yy_is_interactive = 1; 2029 #else 2030 #if YY_NEVER_INTERACTIVE 2031 b->yy_is_interactive = 0; 2032 #else 2033 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) :0;2034 #endif 2035 #endif 2036 } 2037 2038 2039 #ifdef YY_USE_PROTOS 2040 void yy_flush_buffer( YY_BUFFER_STATE b ) 2041 #else 2042 void yy_flush_buffer( b ) 2043 YY_BUFFER_STATE b; 2044 #endif 2045 2046 2047 if ( ! b )2081 /* If b is the current buffer, then yy_init_buffer was _probably_ 2082 * called from yyrestart() or through yy_get_next_buffer. 2083 * In that case, we don't want to reset the lineno or column. 2084 */ 2085 if (b != YY_CURRENT_BUFFER){ 2086 b->yy_bs_lineno = 1; 2087 b->yy_bs_column = 0; 2088 } 2089 2090 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; 2091 2092 errno = oerrno; 2093 } 2094 2095 /** Discard all buffered characters. On the next scan, YY_INPUT will be called. 2096 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. 2097 * 2098 */ 2099 void yy_flush_buffer (YY_BUFFER_STATE b ) 2100 { 2101 if ( ! b ) 2048 2102 return; 2049 2103 … … 2062 2116 b->yy_buffer_status = YY_BUFFER_NEW; 2063 2117 2064 if ( b == yy_current_buffer ) 2065 yy_load_buffer_state(); 2118 if ( b == YY_CURRENT_BUFFER ) 2119 yy_load_buffer_state( ); 2120 } 2121 2122 /** Pushes the new state onto the stack. The new state becomes 2123 * the current state. This function will allocate the stack 2124 * if necessary. 2125 * @param new_buffer The new state. 2126 * 2127 */ 2128 void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) 2129 { 2130 if (new_buffer == NULL) 2131 return; 2132 2133 yyensure_buffer_stack(); 2134 2135 /* This block is copied from yy_switch_to_buffer. */ 2136 if ( YY_CURRENT_BUFFER ) 2137 { 2138 /* Flush out information for old buffer. */ 2139 *(yy_c_buf_p) = (yy_hold_char); 2140 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); 2141 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); 2142 } 2143 2144 /* Only push if top exists. Otherwise, replace top. */ 2145 if (YY_CURRENT_BUFFER) 2146 (yy_buffer_stack_top)++; 2147 YY_CURRENT_BUFFER_LVALUE = new_buffer; 2148 2149 /* copied from yy_switch_to_buffer. */ 2150 yy_load_buffer_state( ); 2151 (yy_did_buffer_switch_on_eof) = 1; 2152 } 2153 2154 /** Removes and deletes the top of the stack, if present. 2155 * The next element becomes the new top. 2156 * 2157 */ 2158 void yypop_buffer_state (void) 2159 { 2160 if (!YY_CURRENT_BUFFER) 2161 return; 2162 2163 yy_delete_buffer(YY_CURRENT_BUFFER ); 2164 YY_CURRENT_BUFFER_LVALUE = NULL; 2165 if ((yy_buffer_stack_top) > 0) 2166 --(yy_buffer_stack_top); 2167 2168 if (YY_CURRENT_BUFFER) { 2169 yy_load_buffer_state( ); 2170 (yy_did_buffer_switch_on_eof) = 1; 2066 2171 } 2067 2068 2069 #ifndef YY_NO_SCAN_BUFFER 2070 #ifdef YY_USE_PROTOS 2071 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) 2072 #else 2073 YY_BUFFER_STATE yy_scan_buffer( base, size ) 2074 char *base; 2075 yy_size_t size; 2076 #endif 2077 { 2172 } 2173 2174 /* Allocates the stack if it does not exist. 2175 * Guarantees space for at least one push. 2176 */ 2177 static void yyensure_buffer_stack (void) 2178 { 2179 int num_to_alloc; 2180 2181 if (!(yy_buffer_stack)) { 2182 2183 /* First allocation is just for 2 elements, since we don't know if this 2184 * scanner will even need a stack. We use 2 instead of 1 to avoid an 2185 * immediate realloc on the next call. 2186 */ 2187 num_to_alloc = 1; 2188 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc 2189 (num_to_alloc * sizeof(struct yy_buffer_state*) 2190 ); 2191 2192 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); 2193 2194 (yy_buffer_stack_max) = num_to_alloc; 2195 (yy_buffer_stack_top) = 0; 2196 return; 2197 } 2198 2199 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ 2200 2201 /* Increase the buffer to prepare for a possible push. */ 2202 int grow_size = 8 /* arbitrary grow size */; 2203 2204 num_to_alloc = (yy_buffer_stack_max) + grow_size; 2205 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc 2206 ((yy_buffer_stack), 2207 num_to_alloc * sizeof(struct yy_buffer_state*) 2208 ); 2209 2210 /* zero only the new slots.*/ 2211 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); 2212 (yy_buffer_stack_max) = num_to_alloc; 2213 } 2214 } 2215 2216 /** Setup the input buffer state to scan directly from a user-specified character buffer. 2217 * @param base the character buffer 2218 * @param size the size in bytes of the character buffer 2219 * 2220 * @return the newly allocated buffer state object. 2221 */ 2222 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) 2223 { 2078 2224 YY_BUFFER_STATE b; 2079 2225 2080 2226 if ( size < 2 || 2081 2227 base[size-2] != YY_END_OF_BUFFER_CHAR || … … 2084 2230 return 0; 2085 2231 2086 b = (YY_BUFFER_STATE) yy _flex_alloc( sizeof( struct yy_buffer_state ));2232 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); 2087 2233 if ( ! b ) 2088 2234 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); … … 2098 2244 b->yy_buffer_status = YY_BUFFER_NEW; 2099 2245 2100 yy_switch_to_buffer( b);2246 yy_switch_to_buffer(b ); 2101 2247 2102 2248 return b; 2103 } 2104 #endif 2105 2106 2107 #ifndef YY_NO_SCAN_STRING 2108 #ifdef YY_USE_PROTOS 2109 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) 2110 #else 2111 YY_BUFFER_STATE yy_scan_string( yy_str ) 2112 yyconst char *yy_str; 2113 #endif 2114 { 2115 int len; 2116 for ( len = 0; yy_str[len]; ++len ) 2117 ; 2118 2119 return yy_scan_bytes( yy_str, len ); 2120 } 2121 #endif 2122 2123 2124 #ifndef YY_NO_SCAN_BYTES 2125 #ifdef YY_USE_PROTOS 2126 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) 2127 #else 2128 YY_BUFFER_STATE yy_scan_bytes( bytes, len ) 2129 yyconst char *bytes; 2130 int len; 2131 #endif 2132 { 2249 } 2250 2251 /** Setup the input buffer state to scan a string. The next call to yylex() will 2252 * scan from a @e copy of @a str. 2253 * @param str a NUL-terminated string to scan 2254 * 2255 * @return the newly allocated buffer state object. 2256 * @note If you want to scan bytes that may contain NUL values, then use 2257 * yy_scan_bytes() instead. 2258 */ 2259 YY_BUFFER_STATE yy_scan_string (yyconst char * str ) 2260 { 2261 2262 return yy_scan_bytes(str,strlen(str) ); 2263 } 2264 2265 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will 2266 * scan from a @e copy of @a bytes. 2267 * @param bytes the byte buffer to scan 2268 * @param len the number of bytes in the buffer pointed to by @a bytes. 2269 * 2270 * @return the newly allocated buffer state object. 2271 */ 2272 YY_BUFFER_STATE yy_scan_bytes (yyconst char * bytes, int len ) 2273 { 2133 2274 YY_BUFFER_STATE b; 2134 2275 char *buf; 2135 2276 yy_size_t n; 2136 2277 int i; 2137 2278 2138 2279 /* Get memory for full buffer, including space for trailing EOB's. */ 2139 2280 n = len + 2; 2140 buf = (char *) yy _flex_alloc( n);2281 buf = (char *) yyalloc(n ); 2141 2282 if ( ! buf ) 2142 2283 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); … … 2147 2288 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; 2148 2289 2149 b = yy_scan_buffer( buf,n );2290 b = yy_scan_buffer(buf,n ); 2150 2291 if ( ! b ) 2151 2292 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); … … 2157 2298 2158 2299 return b; 2159 } 2160 #endif 2161 2162 2163 #ifndef YY_NO_PUSH_STATE 2164 #ifdef YY_USE_PROTOS 2165 static void yy_push_state( int new_state ) 2166 #else 2167 static void yy_push_state( new_state ) 2168 int new_state; 2169 #endif 2170 { 2171 if ( yy_start_stack_ptr >= yy_start_stack_depth ) 2172 { 2173 yy_size_t new_size; 2174 2175 yy_start_stack_depth += YY_START_STACK_INCR; 2176 new_size = yy_start_stack_depth * sizeof( int ); 2177 2178 if ( ! yy_start_stack ) 2179 yy_start_stack = (int *) yy_flex_alloc( new_size ); 2180 2181 else 2182 yy_start_stack = (int *) yy_flex_realloc( 2183 (void *) yy_start_stack, new_size ); 2184 2185 if ( ! yy_start_stack ) 2186 YY_FATAL_ERROR( 2187 "out of memory expanding start-condition stack" ); 2188 } 2189 2190 yy_start_stack[yy_start_stack_ptr++] = YY_START; 2191 2192 BEGIN(new_state); 2193 } 2194 #endif 2195 2196 2197 #ifndef YY_NO_POP_STATE 2198 static void yy_pop_state() 2199 { 2200 if ( --yy_start_stack_ptr < 0 ) 2201 YY_FATAL_ERROR( "start-condition stack underflow" ); 2202 2203 BEGIN(yy_start_stack[yy_start_stack_ptr]); 2204 } 2205 #endif 2206 2207 2208 #ifndef YY_NO_TOP_STATE 2209 static int yy_top_state() 2210 { 2211 return yy_start_stack[yy_start_stack_ptr - 1]; 2212 } 2213 #endif 2300 } 2214 2301 2215 2302 #ifndef YY_EXIT_FAILURE … … 2217 2304 #endif 2218 2305 2219 #ifdef YY_USE_PROTOS 2220 static void yy_fatal_error( yyconst char msg[] ) 2221 #else 2222 static void yy_fatal_error( msg ) 2223 char msg[]; 2224 #endif 2225 { 2226 (void) fprintf( stderr, "%s\n", msg ); 2306 static void yy_fatal_error (yyconst char* msg ) 2307 { 2308 (void) fprintf( stderr, "%s\n", msg ); 2227 2309 exit( YY_EXIT_FAILURE ); 2228 } 2229 2230 2310 } 2231 2311 2232 2312 /* Redefine yyless() so it works in section 3 code. */ … … 2237 2317 { \ 2238 2318 /* Undo effects of setting up yytext. */ \ 2239 yytext[yyleng] = yy_hold_char; \ 2240 yy_c_buf_p = yytext + n; \ 2241 yy_hold_char = *yy_c_buf_p; \ 2242 *yy_c_buf_p = '\0'; \ 2243 yyleng = n; \ 2319 int yyless_macro_arg = (n); \ 2320 YY_LESS_LINENO(yyless_macro_arg);\ 2321 yytext[yyleng] = (yy_hold_char); \ 2322 (yy_c_buf_p) = yytext + yyless_macro_arg; \ 2323 (yy_hold_char) = *(yy_c_buf_p); \ 2324 *(yy_c_buf_p) = '\0'; \ 2325 yyleng = yyless_macro_arg; \ 2244 2326 } \ 2245 2327 while ( 0 ) 2246 2328 2247 2248 /* Internal utility routines. */ 2329 /* Accessor methods (get/set functions) to struct members. */ 2330 2331 /** Get the current line number. 2332 * 2333 */ 2334 int yyget_lineno (void) 2335 { 2336 2337 return yylineno; 2338 } 2339 2340 /** Get the input stream. 2341 * 2342 */ 2343 FILE *yyget_in (void) 2344 { 2345 return yyin; 2346 } 2347 2348 /** Get the output stream. 2349 * 2350 */ 2351 FILE *yyget_out (void) 2352 { 2353 return yyout; 2354 } 2355 2356 /** Get the length of the current token. 2357 * 2358 */ 2359 int yyget_leng (void) 2360 { 2361 return yyleng; 2362 } 2363 2364 /** Get the current token. 2365 * 2366 */ 2367 2368 char *yyget_text (void) 2369 { 2370 return yytext; 2371 } 2372 2373 /** Set the current line number. 2374 * @param line_number 2375 * 2376 */ 2377 void yyset_lineno (int line_number ) 2378 { 2379 2380 yylineno = line_number; 2381 } 2382 2383 /** Set the input stream. This does not discard the current 2384 * input buffer. 2385 * @param in_str A readable stream. 2386 * 2387 * @see yy_switch_to_buffer 2388 */ 2389 void yyset_in (FILE * in_str ) 2390 { 2391 yyin = in_str ; 2392 } 2393 2394 void yyset_out (FILE * out_str ) 2395 { 2396 yyout = out_str ; 2397 } 2398 2399 int yyget_debug (void) 2400 { 2401 return yy_flex_debug; 2402 } 2403 2404 void yyset_debug (int bdebug ) 2405 { 2406 yy_flex_debug = bdebug ; 2407 } 2408 2409 /* yylex_destroy is for both reentrant and non-reentrant scanners. */ 2410 int yylex_destroy (void) 2411 { 2412 2413 /* Pop the buffer stack, destroying each element. */ 2414 while(YY_CURRENT_BUFFER){ 2415 yy_delete_buffer(YY_CURRENT_BUFFER ); 2416 YY_CURRENT_BUFFER_LVALUE = NULL; 2417 yypop_buffer_state(); 2418 } 2419 2420 /* Destroy the stack itself. */ 2421 yyfree((yy_buffer_stack) ); 2422 (yy_buffer_stack) = NULL; 2423 2424 return 0; 2425 } 2426 2427 /* 2428 * Internal utility routines. 2429 */ 2249 2430 2250 2431 #ifndef yytext_ptr 2251 #ifdef YY_USE_PROTOS 2252 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) 2253 #else 2254 static void yy_flex_strncpy( s1, s2, n ) 2255 char *s1; 2256 yyconst char *s2; 2257 int n; 2258 #endif 2259 { 2432 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) 2433 { 2260 2434 register int i; 2261 for ( i = 0; i < n; ++i )2435 for ( i = 0; i < n; ++i ) 2262 2436 s1[i] = s2[i]; 2263 2437 } 2264 2438 #endif 2265 2439 2266 2440 #ifdef YY_NEED_STRLEN 2267 #ifdef YY_USE_PROTOS 2268 static int yy_flex_strlen( yyconst char *s ) 2269 #else 2270 static int yy_flex_strlen( s ) 2271 yyconst char *s; 2272 #endif 2273 { 2441 static int yy_flex_strlen (yyconst char * s ) 2442 { 2274 2443 register int n; 2275 for ( n = 0; s[n]; ++n )2444 for ( n = 0; s[n]; ++n ) 2276 2445 ; 2277 2446 2278 2447 return n; 2279 } 2280 #endif 2281 2282 2283 #ifdef YY_USE_PROTOS 2284 static void *yy_flex_alloc( yy_size_t size ) 2285 #else 2286 static void *yy_flex_alloc( size ) 2287 yy_size_t size; 2288 #endif 2289 { 2448 } 2449 #endif 2450 2451 void *yyalloc (yy_size_t size ) 2452 { 2290 2453 return (void *) malloc( size ); 2291 } 2292 2293 #ifdef YY_USE_PROTOS 2294 static void *yy_flex_realloc( void *ptr, yy_size_t size ) 2295 #else 2296 static void *yy_flex_realloc( ptr, size ) 2297 void *ptr; 2298 yy_size_t size; 2299 #endif 2300 { 2454 } 2455 2456 void *yyrealloc (void * ptr, yy_size_t size ) 2457 { 2301 2458 /* The cast to (char *) in the following accommodates both 2302 2459 * implementations that use char* generic pointers, and those … … 2307 2464 */ 2308 2465 return (void *) realloc( (char *) ptr, size ); 2309 } 2310 2311 #ifdef YY_USE_PROTOS 2312 static void yy_flex_free( void *ptr ) 2313 #else 2314 static void yy_flex_free( ptr ) 2315 void *ptr; 2316 #endif 2317 { 2318 free( ptr ); 2319 } 2320 2321 #if YY_MAIN 2322 int main() 2323 { 2324 yylex(); 2325 return 0; 2326 } 2466 } 2467 2468 void yyfree (void * ptr ) 2469 { 2470 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ 2471 } 2472 2473 #define YYTABLES_NAME "yytables" 2474 2475 #undef YY_NEW_FILE 2476 #undef YY_FLUSH_BUFFER 2477 #undef yy_set_bol 2478 #undef yy_new_buffer 2479 #undef yy_set_interactive 2480 #undef yytext_ptr 2481 #undef YY_DO_BEFORE_ACTION 2482 2483 #ifdef YY_DECL_IS_OURS 2484 #undef YY_DECL_IS_OURS 2485 #undef YY_DECL 2327 2486 #endif 2328 2487 #line 236 "rclex.l" 2488 2329 2489 2330 2490 #ifndef yywrap … … 2346 2506 2347 2507 ++s; 2348 while ( isspace ((unsigned char)*s))2508 while (ISSPACE (*s)) 2349 2509 ++s; 2350 2510 2351 2511 line = strtol (s, &send, 0); 2352 if (*send != '\0' && ! isspace ((unsigned char)*send))2512 if (*send != '\0' && ! ISSPACE (*send)) 2353 2513 return; 2354 2514 … … 2357 2517 2358 2518 s = send; 2359 while ( isspace ((unsigned char)*s))2519 while (ISSPACE (*s)) 2360 2520 ++s; 2361 2521 … … 2378 2538 { 2379 2539 initial_fn = xmalloc (strlen (fn) + 1); 2380 strcpy (initial_fn, fn);2540 strcpy (initial_fn, fn); 2381 2541 } 2382 2542 2383 2543 /* Allow the initial file, regardless of name. Suppress all other 2384 files if they end in ".h" (this allows included "*.rc") */2544 files if they end in ".h" (this allows included "*.rc"). */ 2385 2545 if (strcmp (initial_fn, fn) == 0 2386 2546 || strcmp (fn + strlen (fn) - 2, ".h") != 0) … … 2425 2585 2426 2586 case 'a': 2427 *s++ = ESCAPE_ A;2587 *s++ = ESCAPE_B; /* Strange, but true... */ 2428 2588 ++t; 2429 2589 break; … … 2488 2648 ch = (ch << 4) | (*t - '0'); 2489 2649 else if (*t >= 'a' && *t <= 'f') 2490 ch = (ch << 4) | (*t - 'a' );2650 ch = (ch << 4) | (*t - 'a' + 10); 2491 2651 else if (*t >= 'A' && *t <= 'F') 2492 ch = (ch << 4) | (*t - 'A' );2652 ch = (ch << 4) | (*t - 'A' + 10); 2493 2653 else 2494 2654 break; … … 2517 2677 { 2518 2678 ++t; 2519 assert (isspace ((unsigned char) *t)); 2520 while (isspace ((unsigned char) *t)) 2521 ++t; 2679 assert (ISSPACE (*t)); 2680 while (ISSPACE (*t)) 2681 { 2682 if ((*t) == '\n') 2683 ++rc_lineno; 2684 ++t; 2685 } 2522 2686 if (*t == '\0') 2523 2687 break; … … 2546 2710 2547 2711 as->next = strings; 2548 strings = as ->next;2712 strings = as; 2549 2713 2550 2714 return as->s; … … 2588 2752 rcdata_mode = 0; 2589 2753 } 2754 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.