Changeset 609 for branches/GNU/src/binutils/gas/itbl-lex.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/gas/itbl-lex.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/gas/Attic/itbl-lex.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 15 286 355 #define YY_END_OF_BUFFER 16 287 static yyconst short int yy_accept[60] = 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[60] = 288 364 { 0, 289 365 0, 0, 16, 14, 13, 12, 11, 8, 8, 10, … … 295 371 } ; 296 372 297 static yyconst int yy_ec[256] =373 static yyconst flex_int32_t yy_ec[256] = 298 374 { 0, 299 375 1, 1, 1, 1, 1, 1, 1, 1, 2, 3, … … 327 403 } ; 328 404 329 static yyconst int yy_meta[33] =405 static yyconst flex_int32_t yy_meta[33] = 330 406 { 0, 331 407 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, … … 335 411 } ; 336 412 337 static yyconst short int yy_base[62] =413 static yyconst flex_int16_t yy_base[62] = 338 414 { 0, 339 415 0, 0, 83, 84, 84, 84, 84, 27, 29, 70, … … 346 422 } ; 347 423 348 static yyconst short int yy_def[62] =424 static yyconst flex_int16_t yy_def[62] = 349 425 { 0, 350 426 59, 1, 59, 59, 59, 59, 59, 59, 59, 60, … … 357 433 } ; 358 434 359 static yyconst short int yy_nxt[117] =435 static yyconst flex_int16_t yy_nxt[117] = 360 436 { 0, 361 437 4, 5, 6, 5, 7, 8, 9, 7, 10, 11, … … 374 450 } ; 375 451 376 static yyconst short int yy_chk[117] =452 static yyconst flex_int16_t yy_chk[117] = 377 453 { 0, 378 454 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, … … 394 470 static char *yy_last_accepting_cpos; 395 471 472 extern int yy_flex_debug; 473 int yy_flex_debug = 0; 474 396 475 /* The intent behind this definition is that it'll catch 397 476 * any uses of REJECT which flex missed. … … 403 482 char *yytext; 404 483 #line 1 "itbl-lex.l" 405 #define INITIAL 0406 484 /* itbl-lex.l 407 Copyright 1997, 1998 Free Software Foundation, Inc.485 Copyright 1997, 1998, 2001 Free Software Foundation, Inc. 408 486 409 487 This file is part of GAS, the GNU Assembler. … … 427 505 #include <string.h> 428 506 #include <stdlib.h> 429 #include <ctype.h> 430 #include "itbl-parse.h"507 508 #include <itbl-parse.h> 431 509 432 510 #ifdef DEBUG … … 439 517 440 518 int insntbl_line = 1; 441 #line 442 "lex.yy.c" 519 #line 520 "lex.yy.c" 520 521 #define INITIAL 0 522 523 /* Special case for "unistd.h", since it is non-ANSI. We include it way 524 * down here because we want the user's section 1 to have been scanned first. 525 * The user has a chance to override it with an option. 526 */ 527 #include <unistd.h> 528 529 #ifndef YY_EXTRA_TYPE 530 #define YY_EXTRA_TYPE void * 531 #endif 442 532 443 533 /* Macros after this point can all be overridden by user definitions in … … 447 537 #ifndef YY_SKIP_YYWRAP 448 538 #ifdef __cplusplus 449 extern "C" int yywrap YY_PROTO(( void ));539 extern "C" int yywrap (void ); 450 540 #else 451 extern int yywrap YY_PROTO(( void )); 452 #endif 453 #endif 454 455 #ifndef YY_NO_UNPUT 456 static void yyunput YY_PROTO(( int c, char *buf_ptr )); 457 #endif 458 541 extern int yywrap (void ); 542 #endif 543 #endif 544 545 static void yyunput (int c,char *buf_ptr ); 546 459 547 #ifndef yytext_ptr 460 static void yy_flex_strncpy YY_PROTO(( char *, yyconst char *, int ));548 static void yy_flex_strncpy (char *,yyconst char *,int ); 461 549 #endif 462 550 463 551 #ifdef YY_NEED_STRLEN 464 static int yy_flex_strlen YY_PROTO(( yyconst char * ));552 static int yy_flex_strlen (yyconst char * ); 465 553 #endif 466 554 467 555 #ifndef YY_NO_INPUT 556 468 557 #ifdef __cplusplus 469 static int yyinput YY_PROTO(( void ));558 static int yyinput (void ); 470 559 #else 471 static int input YY_PROTO(( void )); 472 #endif 473 #endif 474 475 #if YY_STACK_USED 476 static int yy_start_stack_ptr = 0; 477 static int yy_start_stack_depth = 0; 478 static int *yy_start_stack = 0; 479 #ifndef YY_NO_PUSH_STATE 480 static void yy_push_state YY_PROTO(( int new_state )); 481 #endif 482 #ifndef YY_NO_POP_STATE 483 static void yy_pop_state YY_PROTO(( void )); 484 #endif 485 #ifndef YY_NO_TOP_STATE 486 static int yy_top_state YY_PROTO(( void )); 487 #endif 488 489 #else 490 #define YY_NO_PUSH_STATE 1 491 #define YY_NO_POP_STATE 1 492 #define YY_NO_TOP_STATE 1 493 #endif 494 495 #ifdef YY_MALLOC_DECL 496 YY_MALLOC_DECL 497 #else 498 #if __STDC__ 499 #ifndef __cplusplus 500 #include <stdlib.h> 501 #endif 502 #else 503 /* Just try to get by without declaring the routines. This will fail 504 * miserably on non-ANSI systems for which sizeof(size_t) != sizeof(int) 505 * or sizeof(void*) != sizeof(int). 506 */ 507 #endif 560 static int input (void ); 561 #endif 562 508 563 #endif 509 564 … … 514 569 515 570 /* Copy whatever the last rule matched to the standard output. */ 516 517 571 #ifndef ECHO 518 572 /* This used to be an fputs(), but since the string might contain NUL's, … … 527 581 #ifndef YY_INPUT 528 582 #define YY_INPUT(buf,result,max_size) \ 529 if ( yy_current_buffer->yy_is_interactive ) \583 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ 530 584 { \ 531 int c = '*', n; \ 585 int c = '*'; \ 586 size_t n; \ 532 587 for ( n = 0; n < max_size && \ 533 588 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ … … 539 594 result = n; \ 540 595 } \ 541 else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \ 542 && ferror( yyin ) ) \ 543 YY_FATAL_ERROR( "input in flex scanner failed" ); 596 else \ 597 { \ 598 errno=0; \ 599 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ 600 { \ 601 if( errno != EINTR) \ 602 { \ 603 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 604 break; \ 605 } \ 606 errno=0; \ 607 clearerr(yyin); \ 608 } \ 609 }\ 610 \ 611 544 612 #endif 545 613 … … 562 630 #endif 563 631 632 /* end tables serialization structures and prototypes */ 633 564 634 /* Default declaration of generated scanner - a define so the user can 565 635 * easily add parameters. 566 636 */ 567 637 #ifndef YY_DECL 568 #define YY_DECL int yylex YY_PROTO(( void )) 569 #endif 638 #define YY_DECL_IS_OURS 1 639 640 extern int yylex (void); 641 642 #define YY_DECL int yylex (void) 643 #endif /* !YY_DECL */ 570 644 571 645 /* Code executed at the beginning of each rule, after yytext and yyleng … … 584 658 YY_USER_ACTION 585 659 660 /** The main scanner function which does all the work. 661 */ 586 662 YY_DECL 587 663 { 588 664 register yy_state_type yy_current_state; 589 665 register char *yy_cp, *yy_bp; 590 666 register int yy_act; 591 667 592 668 #line 44 "itbl-lex.l" 593 669 594 670 595 #line 596"lex.yy.c"596 597 if ( yy_init)671 #line 672 "lex.yy.c" 672 673 if ( (yy_init) ) 598 674 { 599 yy_init= 0;675 (yy_init) = 0; 600 676 601 677 #ifdef YY_USER_INIT … … 603 679 #endif 604 680 605 if ( ! yy_start)606 yy_start= 1; /* first start state */681 if ( ! (yy_start) ) 682 (yy_start) = 1; /* first start state */ 607 683 608 684 if ( ! yyin ) … … 612 688 yyout = stdout; 613 689 614 if ( ! yy_current_buffer ) 615 yy_current_buffer = 616 yy_create_buffer( yyin, YY_BUF_SIZE ); 617 618 yy_load_buffer_state(); 690 if ( ! YY_CURRENT_BUFFER ) { 691 yyensure_buffer_stack (); 692 YY_CURRENT_BUFFER_LVALUE = 693 yy_create_buffer(yyin,YY_BUF_SIZE ); 694 } 695 696 yy_load_buffer_state( ); 619 697 } 620 698 621 699 while ( 1 ) /* loops until end-of-file is reached */ 622 700 { 623 yy_cp = yy_c_buf_p;701 yy_cp = (yy_c_buf_p); 624 702 625 703 /* Support of yytext. */ 626 *yy_cp = yy_hold_char;704 *yy_cp = (yy_hold_char); 627 705 628 706 /* yy_bp points to the position in yy_ch_buf of the start of … … 631 709 yy_bp = yy_cp; 632 710 633 yy_current_state = yy_start;711 yy_current_state = (yy_start); 634 712 yy_match: 635 713 do … … 638 716 if ( yy_accept[yy_current_state] ) 639 717 { 640 yy_last_accepting_state= yy_current_state;641 yy_last_accepting_cpos= yy_cp;718 (yy_last_accepting_state) = yy_current_state; 719 (yy_last_accepting_cpos) = yy_cp; 642 720 } 643 721 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) … … 656 734 if ( yy_act == 0 ) 657 735 { /* have to back up */ 658 yy_cp = yy_last_accepting_cpos;659 yy_current_state = yy_last_accepting_state;736 yy_cp = (yy_last_accepting_cpos); 737 yy_current_state = (yy_last_accepting_state); 660 738 yy_act = yy_accept[yy_current_state]; 661 739 } … … 663 741 YY_DO_BEFORE_ACTION; 664 742 665 666 743 do_action: /* This label is used only to access EOF actions. */ 667 668 744 669 745 switch ( yy_act ) … … 671 747 case 0: /* must back up */ 672 748 /* undo the effects of YY_DO_BEFORE_ACTION */ 673 *yy_cp = yy_hold_char;674 yy_cp = yy_last_accepting_cpos;675 yy_current_state = yy_last_accepting_state;749 *yy_cp = (yy_hold_char); 750 yy_cp = (yy_last_accepting_cpos); 751 yy_current_state = (yy_last_accepting_state); 676 752 goto yy_find_action; 677 753 … … 770 846 YY_BREAK 771 847 case 12: 848 /* rule 12 can match eol */ 772 849 YY_RULE_SETUP 773 850 #line 95 "itbl-lex.l" … … 797 874 ECHO; 798 875 YY_BREAK 799 #line 8 00"lex.yy.c"876 #line 877 "lex.yy.c" 800 877 case YY_STATE_EOF(INITIAL): 801 878 yyterminate(); … … 804 881 { 805 882 /* Amount of text matched not including the EOB char. */ 806 int yy_amount_of_matched_text = (int) (yy_cp - yytext_ptr) - 1;883 int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1; 807 884 808 885 /* Undo the effects of YY_DO_BEFORE_ACTION. */ 809 *yy_cp = yy_hold_char;886 *yy_cp = (yy_hold_char); 810 887 YY_RESTORE_YY_MORE_OFFSET 811 888 812 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_NEW )889 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW ) 813 890 { 814 891 /* We're scanning a new file or input source. It's … … 816 893 * just pointed yyin at a new source and called 817 894 * yylex(). If so, then we have to assure 818 * consistency between yy_current_bufferand our895 * consistency between YY_CURRENT_BUFFER and our 819 896 * globals. Here is the right place to do so, because 820 897 * this is the first action (other than possibly a 821 898 * back-up) that will match for the new input source. 822 899 */ 823 yy_n_chars = yy_current_buffer->yy_n_chars;824 yy_current_buffer->yy_input_file = yyin;825 yy_current_buffer->yy_buffer_status = YY_BUFFER_NORMAL;900 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; 901 YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin; 902 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL; 826 903 } 827 904 … … 833 910 * in input(). 834 911 */ 835 if ( yy_c_buf_p <= &yy_current_buffer->yy_ch_buf[yy_n_chars] )912 if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) 836 913 { /* This was really a NUL. */ 837 914 yy_state_type yy_next_state; 838 915 839 yy_c_buf_p = yytext_ptr+ yy_amount_of_matched_text;840 841 yy_current_state = yy_get_previous_state( );916 (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text; 917 918 yy_current_state = yy_get_previous_state( ); 842 919 843 920 /* Okay, we're now positioned to make the NUL … … 852 929 yy_next_state = yy_try_NUL_trans( yy_current_state ); 853 930 854 yy_bp = yytext_ptr+ YY_MORE_ADJ;931 yy_bp = (yytext_ptr) + YY_MORE_ADJ; 855 932 856 933 if ( yy_next_state ) 857 934 { 858 935 /* Consume the NUL. */ 859 yy_cp = ++ yy_c_buf_p;936 yy_cp = ++(yy_c_buf_p); 860 937 yy_current_state = yy_next_state; 861 938 goto yy_match; … … 864 941 else 865 942 { 866 yy_cp = yy_c_buf_p;943 yy_cp = (yy_c_buf_p); 867 944 goto yy_find_action; 868 945 } 869 946 } 870 947 871 else switch ( yy_get_next_buffer( ) )948 else switch ( yy_get_next_buffer( ) ) 872 949 { 873 950 case EOB_ACT_END_OF_FILE: 874 951 { 875 yy_did_buffer_switch_on_eof= 0;876 877 if ( yywrap( ) )952 (yy_did_buffer_switch_on_eof) = 0; 953 954 if ( yywrap( ) ) 878 955 { 879 956 /* Note: because we've taken care in … … 886 963 * YY_NULL will get returned. 887 964 */ 888 yy_c_buf_p = yytext_ptr+ YY_MORE_ADJ;965 (yy_c_buf_p) = (yytext_ptr) + YY_MORE_ADJ; 889 966 890 967 yy_act = YY_STATE_EOF(YY_START); … … 894 971 else 895 972 { 896 if ( ! yy_did_buffer_switch_on_eof)973 if ( ! (yy_did_buffer_switch_on_eof) ) 897 974 YY_NEW_FILE; 898 975 } … … 901 978 902 979 case EOB_ACT_CONTINUE_SCAN: 903 yy_c_buf_p=904 yytext_ptr+ yy_amount_of_matched_text;905 906 yy_current_state = yy_get_previous_state( );907 908 yy_cp = yy_c_buf_p;909 yy_bp = yytext_ptr+ YY_MORE_ADJ;980 (yy_c_buf_p) = 981 (yytext_ptr) + yy_amount_of_matched_text; 982 983 yy_current_state = yy_get_previous_state( ); 984 985 yy_cp = (yy_c_buf_p); 986 yy_bp = (yytext_ptr) + YY_MORE_ADJ; 910 987 goto yy_match; 911 988 912 989 case EOB_ACT_LAST_MATCH: 913 yy_c_buf_p=914 & yy_current_buffer->yy_ch_buf[yy_n_chars];915 916 yy_current_state = yy_get_previous_state( );917 918 yy_cp = yy_c_buf_p;919 yy_bp = yytext_ptr+ YY_MORE_ADJ;990 (yy_c_buf_p) = 991 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)]; 992 993 yy_current_state = yy_get_previous_state( ); 994 995 yy_cp = (yy_c_buf_p); 996 yy_bp = (yytext_ptr) + YY_MORE_ADJ; 920 997 goto yy_find_action; 921 998 } … … 928 1005 } /* end of action switch */ 929 1006 } /* end of scanning one token */ 930 } /* end of yylex */ 931 1007 } /* end of yylex */ 932 1008 933 1009 /* yy_get_next_buffer - try to read in a new buffer … … 938 1014 * EOB_ACT_END_OF_FILE - end of file 939 1015 */ 940 941 static int yy_get_next_buffer() 942 { 943 register char *dest = yy_current_buffer->yy_ch_buf; 944 register char *source = yytext_ptr; 1016 static int yy_get_next_buffer (void) 1017 { 1018 register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf; 1019 register char *source = (yytext_ptr); 945 1020 register int number_to_move, i; 946 1021 int ret_val; 947 1022 948 if ( yy_c_buf_p > &yy_current_buffer->yy_ch_buf[yy_n_chars+ 1] )1023 if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] ) 949 1024 YY_FATAL_ERROR( 950 1025 "fatal flex scanner internal error--end of buffer missed" ); 951 1026 952 if ( yy_current_buffer->yy_fill_buffer == 0 )1027 if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 ) 953 1028 { /* Don't try to fill the buffer, so this is an EOF. */ 954 if ( yy_c_buf_p - yytext_ptr- YY_MORE_ADJ == 1 )1029 if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 ) 955 1030 { 956 1031 /* We matched a single character, the EOB, so … … 972 1047 973 1048 /* First move last chars to start of buffer. */ 974 number_to_move = (int) ( yy_c_buf_p - yytext_ptr) - 1;1049 number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1; 975 1050 976 1051 for ( i = 0; i < number_to_move; ++i ) 977 1052 *(dest++) = *(source++); 978 1053 979 if ( yy_current_buffer->yy_buffer_status == YY_BUFFER_EOF_PENDING )1054 if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING ) 980 1055 /* don't do the read, it's not guaranteed to return an EOF, 981 1056 * just force an EOF 982 1057 */ 983 yy_current_buffer->yy_n_chars = yy_n_chars= 0;1058 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0; 984 1059 985 1060 else 986 1061 { 987 int num_to_read =988 yy_current_buffer->yy_buf_size - number_to_move - 1;1062 size_t num_to_read = 1063 YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; 989 1064 990 1065 while ( num_to_read <= 0 ) 991 1066 { /* Not enough room in the buffer - grow it. */ 992 #ifdef YY_USES_REJECT993 YY_FATAL_ERROR(994 "input buffer overflow, can't enlarge buffer because scanner uses REJECT" );995 #else996 1067 997 1068 /* just a shorter name for the current buffer */ 998 YY_BUFFER_STATE b = yy_current_buffer;1069 YY_BUFFER_STATE b = YY_CURRENT_BUFFER; 999 1070 1000 1071 int yy_c_buf_p_offset = 1001 (int) ( yy_c_buf_p- b->yy_ch_buf);1072 (int) ((yy_c_buf_p) - b->yy_ch_buf); 1002 1073 1003 1074 if ( b->yy_is_our_buffer ) … … 1012 1083 b->yy_ch_buf = (char *) 1013 1084 /* Include room in for 2 EOB chars. */ 1014 yy_flex_realloc( (void *) b->yy_ch_buf, 1015 b->yy_buf_size + 2 ); 1085 yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 ); 1016 1086 } 1017 1087 else … … 1023 1093 "fatal error - scanner input buffer overflow" ); 1024 1094 1025 yy_c_buf_p= &b->yy_ch_buf[yy_c_buf_p_offset];1026 1027 num_to_read = yy_current_buffer->yy_buf_size -1095 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset]; 1096 1097 num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size - 1028 1098 number_to_move - 1; 1029 #endif 1099 1030 1100 } 1031 1101 … … 1034 1104 1035 1105 /* Read in more data. */ 1036 YY_INPUT( (& yy_current_buffer->yy_ch_buf[number_to_move]),1037 yy_n_chars, num_to_read );1038 1039 yy_current_buffer->yy_n_chars = yy_n_chars;1106 YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]), 1107 (yy_n_chars), num_to_read ); 1108 1109 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); 1040 1110 } 1041 1111 1042 if ( yy_n_chars== 0 )1112 if ( (yy_n_chars) == 0 ) 1043 1113 { 1044 1114 if ( number_to_move == YY_MORE_ADJ ) 1045 1115 { 1046 1116 ret_val = EOB_ACT_END_OF_FILE; 1047 yyrestart( yyin);1117 yyrestart(yyin ); 1048 1118 } 1049 1119 … … 1051 1121 { 1052 1122 ret_val = EOB_ACT_LAST_MATCH; 1053 yy_current_buffer->yy_buffer_status =1123 YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = 1054 1124 YY_BUFFER_EOF_PENDING; 1055 1125 } … … 1059 1129 ret_val = EOB_ACT_CONTINUE_SCAN; 1060 1130 1061 yy_n_chars+= number_to_move;1062 yy_current_buffer->yy_ch_buf[yy_n_chars] = YY_END_OF_BUFFER_CHAR;1063 yy_current_buffer->yy_ch_buf[yy_n_chars+ 1] = YY_END_OF_BUFFER_CHAR;1064 1065 yytext_ptr = &yy_current_buffer->yy_ch_buf[0];1131 (yy_n_chars) += number_to_move; 1132 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] = YY_END_OF_BUFFER_CHAR; 1133 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] = YY_END_OF_BUFFER_CHAR; 1134 1135 (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0]; 1066 1136 1067 1137 return ret_val; 1068 } 1069 1138 } 1070 1139 1071 1140 /* yy_get_previous_state - get the state just before the EOB char was reached */ 1072 1141 1073 static yy_state_type yy_get_previous_state()1074 1142 static yy_state_type yy_get_previous_state (void) 1143 { 1075 1144 register yy_state_type yy_current_state; 1076 1145 register char *yy_cp; 1077 1078 yy_current_state = yy_start;1079 1080 for ( yy_cp = yytext_ptr + YY_MORE_ADJ; yy_cp < yy_c_buf_p; ++yy_cp )1146 1147 yy_current_state = (yy_start); 1148 1149 for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp ) 1081 1150 { 1082 1151 register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1); 1083 1152 if ( yy_accept[yy_current_state] ) 1084 1153 { 1085 yy_last_accepting_state= yy_current_state;1086 yy_last_accepting_cpos= yy_cp;1154 (yy_last_accepting_state) = yy_current_state; 1155 (yy_last_accepting_cpos) = yy_cp; 1087 1156 } 1088 1157 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) … … 1096 1165 1097 1166 return yy_current_state; 1098 } 1099 1167 } 1100 1168 1101 1169 /* yy_try_NUL_trans - try to make a transition on the NUL character … … 1104 1172 * next_state = yy_try_NUL_trans( current_state ); 1105 1173 */ 1106 1107 #ifdef YY_USE_PROTOS 1108 static yy_state_type yy_try_NUL_trans( yy_state_type yy_current_state ) 1109 #else 1110 static yy_state_type yy_try_NUL_trans( yy_current_state ) 1111 yy_state_type yy_current_state; 1112 #endif 1113 { 1174 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state ) 1175 { 1114 1176 register int yy_is_jam; 1115 register char *yy_cp = yy_c_buf_p;1177 register char *yy_cp = (yy_c_buf_p); 1116 1178 1117 1179 register YY_CHAR yy_c = 1; 1118 1180 if ( yy_accept[yy_current_state] ) 1119 1181 { 1120 yy_last_accepting_state= yy_current_state;1121 yy_last_accepting_cpos= yy_cp;1182 (yy_last_accepting_state) = yy_current_state; 1183 (yy_last_accepting_cpos) = yy_cp; 1122 1184 } 1123 1185 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state ) … … 1131 1193 1132 1194 return yy_is_jam ? 0 : yy_current_state; 1133 } 1134 1135 1136 #ifndef YY_NO_UNPUT 1137 #ifdef YY_USE_PROTOS 1138 static void yyunput( int c, register char *yy_bp ) 1139 #else 1140 static void yyunput( c, yy_bp ) 1141 int c; 1142 register char *yy_bp; 1143 #endif 1144 { 1145 register char *yy_cp = yy_c_buf_p; 1195 } 1196 1197 static void yyunput (int c, register char * yy_bp ) 1198 { 1199 register char *yy_cp; 1200 1201 yy_cp = (yy_c_buf_p); 1146 1202 1147 1203 /* undo effects of setting up yytext */ 1148 *yy_cp = yy_hold_char;1149 1150 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )1204 *yy_cp = (yy_hold_char); 1205 1206 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) 1151 1207 { /* need to shift things up to make room */ 1152 1208 /* +2 for EOB chars. */ 1153 register int number_to_move = yy_n_chars+ 2;1154 register char *dest = & yy_current_buffer->yy_ch_buf[1155 yy_current_buffer->yy_buf_size + 2];1209 register int number_to_move = (yy_n_chars) + 2; 1210 register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[ 1211 YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2]; 1156 1212 register char *source = 1157 & yy_current_buffer->yy_ch_buf[number_to_move];1158 1159 while ( source > yy_current_buffer->yy_ch_buf )1213 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]; 1214 1215 while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) 1160 1216 *--dest = *--source; 1161 1217 1162 1218 yy_cp += (int) (dest - source); 1163 1219 yy_bp += (int) (dest - source); 1164 yy_current_buffer->yy_n_chars =1165 yy_n_chars = yy_current_buffer->yy_buf_size;1166 1167 if ( yy_cp < yy_current_buffer->yy_ch_buf + 2 )1220 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = 1221 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size; 1222 1223 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 ) 1168 1224 YY_FATAL_ERROR( "flex scanner push-back overflow" ); 1169 1225 } … … 1171 1227 *--yy_cp = (char) c; 1172 1228 1173 1174 yytext_ptr = yy_bp; 1175 yy_hold_char = *yy_cp; 1176 yy_c_buf_p = yy_cp; 1177 } 1178 #endif /* ifndef YY_NO_UNPUT */ 1179 1180 1229 (yytext_ptr) = yy_bp; 1230 (yy_hold_char) = *yy_cp; 1231 (yy_c_buf_p) = yy_cp; 1232 } 1233 1234 #ifndef YY_NO_INPUT 1181 1235 #ifdef __cplusplus 1182 static int yyinput()1236 static int yyinput (void) 1183 1237 #else 1184 static int input() 1185 #endif 1186 { 1238 static int input (void) 1239 #endif 1240 1241 { 1187 1242 int c; 1188 1189 * yy_c_buf_p = yy_hold_char;1190 1191 if ( * yy_c_buf_p== YY_END_OF_BUFFER_CHAR )1243 1244 *(yy_c_buf_p) = (yy_hold_char); 1245 1246 if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR ) 1192 1247 { 1193 1248 /* yy_c_buf_p now points to the character we want to return. … … 1195 1250 * valid NUL; if not, then we've hit the end of the buffer. 1196 1251 */ 1197 if ( yy_c_buf_p < &yy_current_buffer->yy_ch_buf[yy_n_chars] )1252 if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] ) 1198 1253 /* This was really a NUL. */ 1199 * yy_c_buf_p= '\0';1254 *(yy_c_buf_p) = '\0'; 1200 1255 1201 1256 else 1202 1257 { /* need more input */ 1203 int offset = yy_c_buf_p - yytext_ptr;1204 ++ yy_c_buf_p;1205 1206 switch ( yy_get_next_buffer( ) )1258 int offset = (yy_c_buf_p) - (yytext_ptr); 1259 ++(yy_c_buf_p); 1260 1261 switch ( yy_get_next_buffer( ) ) 1207 1262 { 1208 1263 case EOB_ACT_LAST_MATCH: … … 1218 1273 1219 1274 /* Reset buffer status. */ 1220 yyrestart( 1221 1222 /* fall through*/1275 yyrestart(yyin ); 1276 1277 /*FALLTHROUGH*/ 1223 1278 1224 1279 case EOB_ACT_END_OF_FILE: 1225 1280 { 1226 if ( yywrap( ) )1281 if ( yywrap( ) ) 1227 1282 return EOF; 1228 1283 1229 if ( ! yy_did_buffer_switch_on_eof)1284 if ( ! (yy_did_buffer_switch_on_eof) ) 1230 1285 YY_NEW_FILE; 1231 1286 #ifdef __cplusplus … … 1237 1292 1238 1293 case EOB_ACT_CONTINUE_SCAN: 1239 yy_c_buf_p = yytext_ptr+ offset;1294 (yy_c_buf_p) = (yytext_ptr) + offset; 1240 1295 break; 1241 1296 } … … 1243 1298 } 1244 1299 1245 c = *(unsigned char *) yy_c_buf_p; /* cast for 8-bit char's */ 1246 *yy_c_buf_p = '\0'; /* preserve yytext */ 1247 yy_hold_char = *++yy_c_buf_p; 1248 1300 c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */ 1301 *(yy_c_buf_p) = '\0'; /* preserve yytext */ 1302 (yy_hold_char) = *++(yy_c_buf_p); 1249 1303 1250 1304 return c; 1305 } 1306 #endif /* ifndef YY_NO_INPUT */ 1307 1308 /** Immediately switch to a different input stream. 1309 * @param input_file A readable stream. 1310 * 1311 * @note This function does not reset the start condition to @c INITIAL . 1312 */ 1313 void yyrestart (FILE * input_file ) 1314 { 1315 1316 if ( ! YY_CURRENT_BUFFER ){ 1317 yyensure_buffer_stack (); 1318 YY_CURRENT_BUFFER_LVALUE = 1319 yy_create_buffer(yyin,YY_BUF_SIZE ); 1251 1320 } 1252 1321 1253 1254 #ifdef YY_USE_PROTOS 1255 void yyrestart( FILE *input_file ) 1256 #else 1257 void yyrestart( input_file ) 1258 FILE *input_file; 1259 #endif 1260 { 1261 if ( ! yy_current_buffer ) 1262 yy_current_buffer = yy_create_buffer( yyin, YY_BUF_SIZE ); 1263 1264 yy_init_buffer( yy_current_buffer, input_file ); 1265 yy_load_buffer_state(); 1266 } 1267 1268 1269 #ifdef YY_USE_PROTOS 1270 void yy_switch_to_buffer( YY_BUFFER_STATE new_buffer ) 1271 #else 1272 void yy_switch_to_buffer( new_buffer ) 1273 YY_BUFFER_STATE new_buffer; 1274 #endif 1275 { 1276 if ( yy_current_buffer == new_buffer ) 1322 yy_init_buffer(YY_CURRENT_BUFFER,input_file ); 1323 yy_load_buffer_state( ); 1324 } 1325 1326 /** Switch to a different input buffer. 1327 * @param new_buffer The new input buffer. 1328 * 1329 */ 1330 void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer ) 1331 { 1332 1333 /* TODO. We should be able to replace this entire function body 1334 * with 1335 * yypop_buffer_state(); 1336 * yypush_buffer_state(new_buffer); 1337 */ 1338 yyensure_buffer_stack (); 1339 if ( YY_CURRENT_BUFFER == new_buffer ) 1277 1340 return; 1278 1341 1279 if ( yy_current_buffer)1342 if ( YY_CURRENT_BUFFER ) 1280 1343 { 1281 1344 /* Flush out information for old buffer. */ 1282 * yy_c_buf_p = yy_hold_char;1283 yy_current_buffer->yy_buf_pos = yy_c_buf_p;1284 yy_current_buffer->yy_n_chars = yy_n_chars;1345 *(yy_c_buf_p) = (yy_hold_char); 1346 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); 1347 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); 1285 1348 } 1286 1349 1287 yy_current_buffer= new_buffer;1288 yy_load_buffer_state( );1350 YY_CURRENT_BUFFER_LVALUE = new_buffer; 1351 yy_load_buffer_state( ); 1289 1352 1290 1353 /* We don't actually know whether we did this switch during … … 1293 1356 * to go ahead and always set it. 1294 1357 */ 1295 yy_did_buffer_switch_on_eof = 1; 1296 } 1297 1298 1299 #ifdef YY_USE_PROTOS 1300 void yy_load_buffer_state( void ) 1301 #else 1302 void yy_load_buffer_state() 1303 #endif 1304 { 1305 yy_n_chars = yy_current_buffer->yy_n_chars; 1306 yytext_ptr = yy_c_buf_p = yy_current_buffer->yy_buf_pos; 1307 yyin = yy_current_buffer->yy_input_file; 1308 yy_hold_char = *yy_c_buf_p; 1309 } 1310 1311 1312 #ifdef YY_USE_PROTOS 1313 YY_BUFFER_STATE yy_create_buffer( FILE *file, int size ) 1314 #else 1315 YY_BUFFER_STATE yy_create_buffer( file, size ) 1316 FILE *file; 1317 int size; 1318 #endif 1319 { 1358 (yy_did_buffer_switch_on_eof) = 1; 1359 } 1360 1361 static void yy_load_buffer_state (void) 1362 { 1363 (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars; 1364 (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos; 1365 yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file; 1366 (yy_hold_char) = *(yy_c_buf_p); 1367 } 1368 1369 /** Allocate and initialize an input buffer state. 1370 * @param file A readable stream. 1371 * @param size The character buffer size in bytes. When in doubt, use @c YY_BUF_SIZE. 1372 * 1373 * @return the allocated buffer state. 1374 */ 1375 YY_BUFFER_STATE yy_create_buffer (FILE * file, int size ) 1376 { 1320 1377 YY_BUFFER_STATE b; 1321 1322 b = (YY_BUFFER_STATE) yy _flex_alloc( sizeof( struct yy_buffer_state ));1378 1379 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); 1323 1380 if ( ! b ) 1324 1381 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); … … 1329 1386 * we need to put in 2 end-of-buffer characters. 1330 1387 */ 1331 b->yy_ch_buf = (char *) yy _flex_alloc( b->yy_buf_size + 2);1388 b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 ); 1332 1389 if ( ! b->yy_ch_buf ) 1333 1390 YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); … … 1335 1392 b->yy_is_our_buffer = 1; 1336 1393 1337 yy_init_buffer( b,file );1394 yy_init_buffer(b,file ); 1338 1395 1339 1396 return b; 1340 } 1341 1342 1343 #ifdef YY_USE_PROTOS 1344 void yy_delete_buffer( YY_BUFFER_STATE b ) 1345 #else 1346 void yy_delete_buffer( b ) 1347 YY_BUFFER_STATE b; 1348 #endif 1349 { 1397 } 1398 1399 /** Destroy the buffer. 1400 * @param b a buffer created with yy_create_buffer() 1401 * 1402 */ 1403 void yy_delete_buffer (YY_BUFFER_STATE b ) 1404 { 1405 1350 1406 if ( ! b ) 1351 1407 return; 1352 1408 1353 if ( b == yy_current_buffer )1354 yy_current_buffer= (YY_BUFFER_STATE) 0;1409 if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ 1410 YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; 1355 1411 1356 1412 if ( b->yy_is_our_buffer ) 1357 yy_flex_free( (void *) b->yy_ch_buf ); 1358 1359 yy_flex_free( (void *) b ); 1360 } 1361 1362 1363 #ifndef YY_ALWAYS_INTERACTIVE 1364 #ifndef YY_NEVER_INTERACTIVE 1365 extern int isatty YY_PROTO(( int )); 1366 #endif 1367 #endif 1368 1369 #ifdef YY_USE_PROTOS 1370 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file ) 1371 #else 1372 void yy_init_buffer( b, file ) 1373 YY_BUFFER_STATE b; 1374 FILE *file; 1375 #endif 1376 1377 1378 { 1379 yy_flush_buffer( b ); 1413 yyfree((void *) b->yy_ch_buf ); 1414 1415 yyfree((void *) b ); 1416 } 1417 1418 #ifndef __cplusplus 1419 extern int isatty (int ); 1420 #endif /* __cplusplus */ 1421 1422 /* Initializes or reinitializes a buffer. 1423 * This function is sometimes called more than once on the same buffer, 1424 * such as during a yyrestart() or at EOF. 1425 */ 1426 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file ) 1427 1428 { 1429 int oerrno = errno; 1430 1431 yy_flush_buffer(b ); 1380 1432 1381 1433 b->yy_input_file = file; 1382 1434 b->yy_fill_buffer = 1; 1383 1435 1384 #if YY_ALWAYS_INTERACTIVE 1385 b->yy_is_interactive = 1; 1386 #else 1387 #if YY_NEVER_INTERACTIVE 1388 b->yy_is_interactive = 0; 1389 #else 1390 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) :0;1391 #endif 1392 #endif 1393 } 1394 1395 1396 #ifdef YY_USE_PROTOS 1397 void yy_flush_buffer( YY_BUFFER_STATE b ) 1398 #else 1399 void yy_flush_buffer( b ) 1400 YY_BUFFER_STATE b; 1401 #endif 1402 1403 1404 if ( ! b )1436 /* If b is the current buffer, then yy_init_buffer was _probably_ 1437 * called from yyrestart() or through yy_get_next_buffer. 1438 * In that case, we don't want to reset the lineno or column. 1439 */ 1440 if (b != YY_CURRENT_BUFFER){ 1441 b->yy_bs_lineno = 1; 1442 b->yy_bs_column = 0; 1443 } 1444 1445 b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0; 1446 1447 errno = oerrno; 1448 } 1449 1450 /** Discard all buffered characters. On the next scan, YY_INPUT will be called. 1451 * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. 1452 * 1453 */ 1454 void yy_flush_buffer (YY_BUFFER_STATE b ) 1455 { 1456 if ( ! b ) 1405 1457 return; 1406 1458 … … 1419 1471 b->yy_buffer_status = YY_BUFFER_NEW; 1420 1472 1421 if ( b == yy_current_buffer ) 1422 yy_load_buffer_state(); 1473 if ( b == YY_CURRENT_BUFFER ) 1474 yy_load_buffer_state( ); 1475 } 1476 1477 /** Pushes the new state onto the stack. The new state becomes 1478 * the current state. This function will allocate the stack 1479 * if necessary. 1480 * @param new_buffer The new state. 1481 * 1482 */ 1483 void yypush_buffer_state (YY_BUFFER_STATE new_buffer ) 1484 { 1485 if (new_buffer == NULL) 1486 return; 1487 1488 yyensure_buffer_stack(); 1489 1490 /* This block is copied from yy_switch_to_buffer. */ 1491 if ( YY_CURRENT_BUFFER ) 1492 { 1493 /* Flush out information for old buffer. */ 1494 *(yy_c_buf_p) = (yy_hold_char); 1495 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p); 1496 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars); 1497 } 1498 1499 /* Only push if top exists. Otherwise, replace top. */ 1500 if (YY_CURRENT_BUFFER) 1501 (yy_buffer_stack_top)++; 1502 YY_CURRENT_BUFFER_LVALUE = new_buffer; 1503 1504 /* copied from yy_switch_to_buffer. */ 1505 yy_load_buffer_state( ); 1506 (yy_did_buffer_switch_on_eof) = 1; 1507 } 1508 1509 /** Removes and deletes the top of the stack, if present. 1510 * The next element becomes the new top. 1511 * 1512 */ 1513 void yypop_buffer_state (void) 1514 { 1515 if (!YY_CURRENT_BUFFER) 1516 return; 1517 1518 yy_delete_buffer(YY_CURRENT_BUFFER ); 1519 YY_CURRENT_BUFFER_LVALUE = NULL; 1520 if ((yy_buffer_stack_top) > 0) 1521 --(yy_buffer_stack_top); 1522 1523 if (YY_CURRENT_BUFFER) { 1524 yy_load_buffer_state( ); 1525 (yy_did_buffer_switch_on_eof) = 1; 1423 1526 } 1424 1425 1426 #ifndef YY_NO_SCAN_BUFFER 1427 #ifdef YY_USE_PROTOS 1428 YY_BUFFER_STATE yy_scan_buffer( char *base, yy_size_t size ) 1429 #else 1430 YY_BUFFER_STATE yy_scan_buffer( base, size ) 1431 char *base; 1432 yy_size_t size; 1433 #endif 1434 { 1527 } 1528 1529 /* Allocates the stack if it does not exist. 1530 * Guarantees space for at least one push. 1531 */ 1532 static void yyensure_buffer_stack (void) 1533 { 1534 int num_to_alloc; 1535 1536 if (!(yy_buffer_stack)) { 1537 1538 /* First allocation is just for 2 elements, since we don't know if this 1539 * scanner will even need a stack. We use 2 instead of 1 to avoid an 1540 * immediate realloc on the next call. 1541 */ 1542 num_to_alloc = 1; 1543 (yy_buffer_stack) = (struct yy_buffer_state**)yyalloc 1544 (num_to_alloc * sizeof(struct yy_buffer_state*) 1545 ); 1546 1547 memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*)); 1548 1549 (yy_buffer_stack_max) = num_to_alloc; 1550 (yy_buffer_stack_top) = 0; 1551 return; 1552 } 1553 1554 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){ 1555 1556 /* Increase the buffer to prepare for a possible push. */ 1557 int grow_size = 8 /* arbitrary grow size */; 1558 1559 num_to_alloc = (yy_buffer_stack_max) + grow_size; 1560 (yy_buffer_stack) = (struct yy_buffer_state**)yyrealloc 1561 ((yy_buffer_stack), 1562 num_to_alloc * sizeof(struct yy_buffer_state*) 1563 ); 1564 1565 /* zero only the new slots.*/ 1566 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); 1567 (yy_buffer_stack_max) = num_to_alloc; 1568 } 1569 } 1570 1571 /** Setup the input buffer state to scan directly from a user-specified character buffer. 1572 * @param base the character buffer 1573 * @param size the size in bytes of the character buffer 1574 * 1575 * @return the newly allocated buffer state object. 1576 */ 1577 YY_BUFFER_STATE yy_scan_buffer (char * base, yy_size_t size ) 1578 { 1435 1579 YY_BUFFER_STATE b; 1436 1580 1437 1581 if ( size < 2 || 1438 1582 base[size-2] != YY_END_OF_BUFFER_CHAR || … … 1441 1585 return 0; 1442 1586 1443 b = (YY_BUFFER_STATE) yy _flex_alloc( sizeof( struct yy_buffer_state ));1587 b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) ); 1444 1588 if ( ! b ) 1445 1589 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); … … 1455 1599 b->yy_buffer_status = YY_BUFFER_NEW; 1456 1600 1457 yy_switch_to_buffer( b);1601 yy_switch_to_buffer(b ); 1458 1602 1459 1603 return b; 1460 } 1461 #endif 1462 1463 1464 #ifndef YY_NO_SCAN_STRING 1465 #ifdef YY_USE_PROTOS 1466 YY_BUFFER_STATE yy_scan_string( yyconst char *yy_str ) 1467 #else 1468 YY_BUFFER_STATE yy_scan_string( yy_str ) 1469 yyconst char *yy_str; 1470 #endif 1471 { 1472 int len; 1473 for ( len = 0; yy_str[len]; ++len ) 1474 ; 1475 1476 return yy_scan_bytes( yy_str, len ); 1477 } 1478 #endif 1479 1480 1481 #ifndef YY_NO_SCAN_BYTES 1482 #ifdef YY_USE_PROTOS 1483 YY_BUFFER_STATE yy_scan_bytes( yyconst char *bytes, int len ) 1484 #else 1485 YY_BUFFER_STATE yy_scan_bytes( bytes, len ) 1486 yyconst char *bytes; 1487 int len; 1488 #endif 1489 { 1604 } 1605 1606 /** Setup the input buffer state to scan a string. The next call to yylex() will 1607 * scan from a @e copy of @a str. 1608 * @param str a NUL-terminated string to scan 1609 * 1610 * @return the newly allocated buffer state object. 1611 * @note If you want to scan bytes that may contain NUL values, then use 1612 * yy_scan_bytes() instead. 1613 */ 1614 YY_BUFFER_STATE yy_scan_string (yyconst char * str ) 1615 { 1616 1617 return yy_scan_bytes(str,strlen(str) ); 1618 } 1619 1620 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will 1621 * scan from a @e copy of @a bytes. 1622 * @param bytes the byte buffer to scan 1623 * @param len the number of bytes in the buffer pointed to by @a bytes. 1624 * 1625 * @return the newly allocated buffer state object. 1626 */ 1627 YY_BUFFER_STATE yy_scan_bytes (yyconst char * bytes, int len ) 1628 { 1490 1629 YY_BUFFER_STATE b; 1491 1630 char *buf; 1492 1631 yy_size_t n; 1493 1632 int i; 1494 1633 1495 1634 /* Get memory for full buffer, including space for trailing EOB's. */ 1496 1635 n = len + 2; 1497 buf = (char *) yy _flex_alloc( n);1636 buf = (char *) yyalloc(n ); 1498 1637 if ( ! buf ) 1499 1638 YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); … … 1504 1643 buf[len] = buf[len+1] = YY_END_OF_BUFFER_CHAR; 1505 1644 1506 b = yy_scan_buffer( buf,n );1645 b = yy_scan_buffer(buf,n ); 1507 1646 if ( ! b ) 1508 1647 YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" ); … … 1514 1653 1515 1654 return b; 1516 } 1517 #endif 1518 1519 1520 #ifndef YY_NO_PUSH_STATE 1521 #ifdef YY_USE_PROTOS 1522 static void yy_push_state( int new_state ) 1523 #else 1524 static void yy_push_state( new_state ) 1525 int new_state; 1526 #endif 1527 { 1528 if ( yy_start_stack_ptr >= yy_start_stack_depth ) 1529 { 1530 yy_size_t new_size; 1531 1532 yy_start_stack_depth += YY_START_STACK_INCR; 1533 new_size = yy_start_stack_depth * sizeof( int ); 1534 1535 if ( ! yy_start_stack ) 1536 yy_start_stack = (int *) yy_flex_alloc( new_size ); 1537 1538 else 1539 yy_start_stack = (int *) yy_flex_realloc( 1540 (void *) yy_start_stack, new_size ); 1541 1542 if ( ! yy_start_stack ) 1543 YY_FATAL_ERROR( 1544 "out of memory expanding start-condition stack" ); 1545 } 1546 1547 yy_start_stack[yy_start_stack_ptr++] = YY_START; 1548 1549 BEGIN(new_state); 1550 } 1551 #endif 1552 1553 1554 #ifndef YY_NO_POP_STATE 1555 static void yy_pop_state() 1556 { 1557 if ( --yy_start_stack_ptr < 0 ) 1558 YY_FATAL_ERROR( "start-condition stack underflow" ); 1559 1560 BEGIN(yy_start_stack[yy_start_stack_ptr]); 1561 } 1562 #endif 1563 1564 1565 #ifndef YY_NO_TOP_STATE 1566 static int yy_top_state() 1567 { 1568 return yy_start_stack[yy_start_stack_ptr - 1]; 1569 } 1570 #endif 1655 } 1571 1656 1572 1657 #ifndef YY_EXIT_FAILURE … … 1574 1659 #endif 1575 1660 1576 #ifdef YY_USE_PROTOS 1577 static void yy_fatal_error( yyconst char msg[] ) 1578 #else 1579 static void yy_fatal_error( msg ) 1580 char msg[]; 1581 #endif 1582 { 1583 (void) fprintf( stderr, "%s\n", msg ); 1661 static void yy_fatal_error (yyconst char* msg ) 1662 { 1663 (void) fprintf( stderr, "%s\n", msg ); 1584 1664 exit( YY_EXIT_FAILURE ); 1585 } 1586 1587 1665 } 1588 1666 1589 1667 /* Redefine yyless() so it works in section 3 code. */ … … 1594 1672 { \ 1595 1673 /* Undo effects of setting up yytext. */ \ 1596 yytext[yyleng] = yy_hold_char; \ 1597 yy_c_buf_p = yytext + n; \ 1598 yy_hold_char = *yy_c_buf_p; \ 1599 *yy_c_buf_p = '\0'; \ 1600 yyleng = n; \ 1674 int yyless_macro_arg = (n); \ 1675 YY_LESS_LINENO(yyless_macro_arg);\ 1676 yytext[yyleng] = (yy_hold_char); \ 1677 (yy_c_buf_p) = yytext + yyless_macro_arg; \ 1678 (yy_hold_char) = *(yy_c_buf_p); \ 1679 *(yy_c_buf_p) = '\0'; \ 1680 yyleng = yyless_macro_arg; \ 1601 1681 } \ 1602 1682 while ( 0 ) 1603 1683 1604 1605 /* Internal utility routines. */ 1684 /* Accessor methods (get/set functions) to struct members. */ 1685 1686 /** Get the current line number. 1687 * 1688 */ 1689 int yyget_lineno (void) 1690 { 1691 1692 return yylineno; 1693 } 1694 1695 /** Get the input stream. 1696 * 1697 */ 1698 FILE *yyget_in (void) 1699 { 1700 return yyin; 1701 } 1702 1703 /** Get the output stream. 1704 * 1705 */ 1706 FILE *yyget_out (void) 1707 { 1708 return yyout; 1709 } 1710 1711 /** Get the length of the current token. 1712 * 1713 */ 1714 int yyget_leng (void) 1715 { 1716 return yyleng; 1717 } 1718 1719 /** Get the current token. 1720 * 1721 */ 1722 1723 char *yyget_text (void) 1724 { 1725 return yytext; 1726 } 1727 1728 /** Set the current line number. 1729 * @param line_number 1730 * 1731 */ 1732 void yyset_lineno (int line_number ) 1733 { 1734 1735 yylineno = line_number; 1736 } 1737 1738 /** Set the input stream. This does not discard the current 1739 * input buffer. 1740 * @param in_str A readable stream. 1741 * 1742 * @see yy_switch_to_buffer 1743 */ 1744 void yyset_in (FILE * in_str ) 1745 { 1746 yyin = in_str ; 1747 } 1748 1749 void yyset_out (FILE * out_str ) 1750 { 1751 yyout = out_str ; 1752 } 1753 1754 int yyget_debug (void) 1755 { 1756 return yy_flex_debug; 1757 } 1758 1759 void yyset_debug (int bdebug ) 1760 { 1761 yy_flex_debug = bdebug ; 1762 } 1763 1764 /* yylex_destroy is for both reentrant and non-reentrant scanners. */ 1765 int yylex_destroy (void) 1766 { 1767 1768 /* Pop the buffer stack, destroying each element. */ 1769 while(YY_CURRENT_BUFFER){ 1770 yy_delete_buffer(YY_CURRENT_BUFFER ); 1771 YY_CURRENT_BUFFER_LVALUE = NULL; 1772 yypop_buffer_state(); 1773 } 1774 1775 /* Destroy the stack itself. */ 1776 yyfree((yy_buffer_stack) ); 1777 (yy_buffer_stack) = NULL; 1778 1779 return 0; 1780 } 1781 1782 /* 1783 * Internal utility routines. 1784 */ 1606 1785 1607 1786 #ifndef yytext_ptr 1608 #ifdef YY_USE_PROTOS 1609 static void yy_flex_strncpy( char *s1, yyconst char *s2, int n ) 1610 #else 1611 static void yy_flex_strncpy( s1, s2, n ) 1612 char *s1; 1613 yyconst char *s2; 1614 int n; 1615 #endif 1616 { 1787 static void yy_flex_strncpy (char* s1, yyconst char * s2, int n ) 1788 { 1617 1789 register int i; 1618 for ( i = 0; i < n; ++i )1790 for ( i = 0; i < n; ++i ) 1619 1791 s1[i] = s2[i]; 1620 1792 } 1621 1793 #endif 1622 1794 1623 1795 #ifdef YY_NEED_STRLEN 1624 #ifdef YY_USE_PROTOS 1625 static int yy_flex_strlen( yyconst char *s ) 1626 #else 1627 static int yy_flex_strlen( s ) 1628 yyconst char *s; 1629 #endif 1630 { 1796 static int yy_flex_strlen (yyconst char * s ) 1797 { 1631 1798 register int n; 1632 for ( n = 0; s[n]; ++n )1799 for ( n = 0; s[n]; ++n ) 1633 1800 ; 1634 1801 1635 1802 return n; 1636 } 1637 #endif 1638 1639 1640 #ifdef YY_USE_PROTOS 1641 static void *yy_flex_alloc( yy_size_t size ) 1642 #else 1643 static void *yy_flex_alloc( size ) 1644 yy_size_t size; 1645 #endif 1646 { 1803 } 1804 #endif 1805 1806 void *yyalloc (yy_size_t size ) 1807 { 1647 1808 return (void *) malloc( size ); 1648 } 1649 1650 #ifdef YY_USE_PROTOS 1651 static void *yy_flex_realloc( void *ptr, yy_size_t size ) 1652 #else 1653 static void *yy_flex_realloc( ptr, size ) 1654 void *ptr; 1655 yy_size_t size; 1656 #endif 1657 { 1809 } 1810 1811 void *yyrealloc (void * ptr, yy_size_t size ) 1812 { 1658 1813 /* The cast to (char *) in the following accommodates both 1659 1814 * implementations that use char* generic pointers, and those … … 1664 1819 */ 1665 1820 return (void *) realloc( (char *) ptr, size ); 1666 } 1667 1668 #ifdef YY_USE_PROTOS 1669 static void yy_flex_free( void *ptr ) 1670 #else 1671 static void yy_flex_free( ptr ) 1672 void *ptr; 1673 #endif 1674 { 1675 free( ptr ); 1676 } 1677 1678 #if YY_MAIN 1679 int main() 1680 { 1681 yylex(); 1682 return 0; 1683 } 1821 } 1822 1823 void yyfree (void * ptr ) 1824 { 1825 free( (char *) ptr ); /* see yyrealloc() for (char *) cast */ 1826 } 1827 1828 #define YYTABLES_NAME "yytables" 1829 1830 #undef YY_NEW_FILE 1831 #undef YY_FLUSH_BUFFER 1832 #undef yy_set_bol 1833 #undef yy_new_buffer 1834 #undef yy_set_interactive 1835 #undef yytext_ptr 1836 #undef YY_DO_BEFORE_ACTION 1837 1838 #ifdef YY_DECL_IS_OURS 1839 #undef YY_DECL_IS_OURS 1840 #undef YY_DECL 1684 1841 #endif 1685 1842 #line 106 "itbl-lex.l" 1843 1686 1844 1687 1845 … … 1693 1851 } 1694 1852 #endif 1853 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.