1 #line 2 "scan_dataset.cpp"
3 #line 4 "scan_dataset.cpp"
5 #define YY_INT_ALIGNED short int
9 #define yy_create_buffer dataset__create_buffer
10 #define yy_delete_buffer dataset__delete_buffer
11 #define yy_flex_debug dataset__flex_debug
12 #define yy_init_buffer dataset__init_buffer
13 #define yy_flush_buffer dataset__flush_buffer
14 #define yy_load_buffer_state dataset__load_buffer_state
15 #define yy_switch_to_buffer dataset__switch_to_buffer
16 #define yyin dataset_in
17 #define yyleng dataset_leng
18 #define yylex dataset_lex
19 #define yylineno dataset_lineno
20 #define yyout dataset_out
21 #define yyrestart dataset_restart
22 #define yytext dataset_text
23 #define yywrap dataset_wrap
24 #define yyalloc dataset_alloc
25 #define yyrealloc dataset_realloc
26 #define yyfree dataset_free
29 #define YY_FLEX_MAJOR_VERSION 2
30 #define YY_FLEX_MINOR_VERSION 5
31 #define YY_FLEX_SUBMINOR_VERSION 35
32 #if YY_FLEX_SUBMINOR_VERSION > 0
53 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
58 #ifndef __STDC_LIMIT_MACROS
59 #define __STDC_LIMIT_MACROS 1
79 #define INT8_MIN (-128)
82 #define INT16_MIN (-32767-1)
85 #define INT32_MIN (-2147483647-1)
88 #define INT8_MAX (127)
91 #define INT16_MAX (32767)
94 #define INT32_MAX (2147483647)
97 #define UINT8_MAX (255U)
100 #define UINT16_MAX (65535U)
103 #define UINT32_MAX (4294967295U)
118 #if defined (__STDC__)
126 #define yyconst const
139 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
145 #define BEGIN (yy_start) = 1 + 2 *
151 #define YY_START (((yy_start) - 1) / 2)
152 #define YYSTATE YY_START
155 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
158 #define YY_NEW_FILE dataset_restart(dataset_in )
160 #define YY_END_OF_BUFFER_CHAR 0
169 #define YY_BUF_SIZE 32768
171 #define YY_BUF_SIZE 16384
177 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
179 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
180 #define YY_TYPEDEF_YY_BUFFER_STATE
188 #define EOB_ACT_CONTINUE_SCAN 0
189 #define EOB_ACT_END_OF_FILE 1
190 #define EOB_ACT_LAST_MATCH 2
199 #define YY_LESS_LINENO(n) \
202 for ( yyl = n; yyl < dataset_leng; ++yyl )\
203 if ( dataset_text[yyl] == '\n' )\
212 int yyless_macro_arg = (n); \
213 YY_LESS_LINENO(yyless_macro_arg);\
214 *yy_cp = (yy_hold_char); \
215 YY_RESTORE_YY_MORE_OFFSET \
216 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
217 YY_DO_BEFORE_ACTION; \
221 #define unput(c) yyunput( c, (yytext_ptr) )
223 #ifndef YY_TYPEDEF_YY_SIZE_T
224 #define YY_TYPEDEF_YY_SIZE_T
228 #ifndef YY_STRUCT_YY_BUFFER_STATE
229 #define YY_STRUCT_YY_BUFFER_STATE
276 #define YY_BUFFER_NEW 0
277 #define YY_BUFFER_NORMAL 1
288 #define YY_BUFFER_EOF_PENDING 2
294 static size_t yy_buffer_stack_top = 0;
295 static size_t yy_buffer_stack_max = 0;
296 static YY_BUFFER_STATE * yy_buffer_stack = 0;
304 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
305 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
311 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
314 static char yy_hold_char;
315 static int yy_n_chars;
319 static char *yy_c_buf_p = (
char *) 0;
320 static int yy_init = 0;
321 static int yy_start = 0;
326 static int yy_did_buffer_switch_on_eof;
336 static void dataset_ensure_buffer_stack (
void );
337 static void dataset__load_buffer_state (
void );
338 static void dataset__init_buffer (YY_BUFFER_STATE
b,FILE *file );
340 #define YY_FLUSH_BUFFER dataset__flush_buffer(YY_CURRENT_BUFFER )
350 #define yy_new_buffer dataset__create_buffer
352 #define yy_set_interactive(is_interactive) \
354 if ( ! YY_CURRENT_BUFFER ){ \
355 dataset_ensure_buffer_stack (); \
356 YY_CURRENT_BUFFER_LVALUE = \
357 dataset__create_buffer(dataset_in,YY_BUF_SIZE ); \
359 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
362 #define yy_set_bol(at_bol) \
364 if ( ! YY_CURRENT_BUFFER ){\
365 dataset_ensure_buffer_stack (); \
366 YY_CURRENT_BUFFER_LVALUE = \
367 dataset__create_buffer(dataset_in,YY_BUF_SIZE ); \
369 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
372 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
376 #define dataset_wrap(n) 1
377 #define YY_SKIP_YYWRAP
387 int dataset_lineno = 1;
390 #define yytext_ptr dataset_text
392 static yy_state_type yy_get_previous_state (
void );
393 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
394 static int yy_get_next_buffer (
void );
395 static void yy_fatal_error (
yyconst char msg[] );
400 #define YY_DO_BEFORE_ACTION \
401 (yytext_ptr) = yy_bp; \
402 dataset_leng = (size_t) (yy_cp - yy_bp); \
403 (yy_hold_char) = *yy_cp; \
405 (yy_c_buf_p) = yy_cp;
407 #define YY_NUM_RULES 19
408 #define YY_END_OF_BUFFER 20
418 0, 0, 0, 0, 0, 0, 20, 16, 14, 13,
419 16, 15, 16, 16, 7, 11, 6, 16, 6, 17,
420 14, 18, 17, 17, 19, 16, 16, 10, 12, 6,
421 6, 13, 0, 7, 0, 7, 0, 0, 0, 0,
422 6, 0, 6, 14, 0, 0, 6, 18, 10, 0,
423 0, 6, 6, 0, 8, 0, 0, 7, 0, 9,
424 0, 6, 6, 6, 6, 0, 0, 2, 6, 8,
425 0, 0, 7, 9, 0, 0, 6, 6, 6, 6,
426 6, 0, 6, 4, 0, 6, 0, 8, 0, 0,
427 9, 0, 0, 6, 0, 3, 8, 0, 9, 0,
429 5, 0, 0, 0, 0, 0, 0, 0, 0, 0,
435 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
436 1, 1, 4, 1, 1, 1, 1, 1, 1, 1,
437 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438 1, 5, 1, 1, 6, 1, 1, 1, 1, 1,
439 1, 1, 7, 8, 7, 9, 10, 11, 11, 11,
440 11, 11, 11, 11, 11, 11, 11, 1, 1, 12,
441 1, 13, 1, 1, 14, 14, 14, 15, 16, 14,
442 14, 14, 14, 14, 14, 14, 14, 14, 14, 14,
443 17, 14, 14, 14, 14, 14, 14, 14, 14, 14,
444 8, 18, 8, 1, 14, 1, 19, 14, 20, 21,
446 22, 14, 14, 14, 23, 24, 14, 14, 14, 25,
447 14, 26, 14, 14, 27, 28, 29, 14, 14, 14,
448 14, 14, 1, 1, 1, 1, 1, 1, 1, 1,
449 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
450 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
451 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
452 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
453 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
454 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
455 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
457 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
458 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
459 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
460 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
461 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
467 1, 1, 1, 1, 1, 1, 1, 2, 3, 1,
468 4, 1, 1, 4, 4, 4, 4, 1, 4, 4,
469 4, 4, 4, 4, 4, 4, 4, 4, 4
474 0, 0, 28, 45, 61, 0, 240, 241, 241, 241,
475 236, 241, 28, 227, 79, 220, 26, 37, 34, 241,
476 241, 241, 233, 50, 241, 224, 15, 223, 241, 47,
477 50, 241, 222, 0, 51, 97, 53, 50, 69, 203,
478 222, 219, 83, 241, 226, 217, 114, 241, 216, 204,
479 200, 85, 88, 213, 96, 72, 212, 103, 211, 122,
480 201, 211, 90, 123, 139, 193, 197, 107, 120, 138,
481 130, 206, 144, 141, 151, 189, 206, 205, 156, 0,
482 162, 202, 205, 241, 189, 159, 165, 199, 167, 198,
483 197, 202, 195, 78, 179, 168, 193, 173, 166, 141,
485 241, 134, 115, 121, 108, 102, 89, 101, 89, 150,
486 70, 171, 55, 170, 241, 241, 185, 188, 191, 40,
492 116, 1, 117, 117, 1, 5, 116, 116, 116, 116,
493 116, 116, 116, 116, 116, 116, 118, 116, 118, 116,
494 116, 116, 116, 116, 116, 116, 116, 116, 116, 118,
495 118, 116, 116, 15, 116, 116, 116, 116, 116, 116,
496 119, 120, 118, 116, 116, 120, 118, 116, 116, 116,
497 116, 118, 118, 116, 116, 116, 116, 116, 116, 116,
498 116, 121, 122, 121, 118, 116, 116, 118, 118, 116,
499 116, 116, 116, 116, 116, 116, 121, 123, 122, 64,
500 121, 116, 65, 116, 116, 65, 116, 116, 116, 116,
501 116, 116, 116, 121, 116, 65, 116, 116, 116, 116,
503 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
504 116, 116, 116, 116, 116, 0, 116, 116, 116, 116,
510 8, 9, 10, 11, 9, 12, 13, 8, 14, 8,
511 15, 16, 8, 17, 17, 17, 17, 18, 17, 17,
512 17, 17, 19, 19, 17, 17, 17, 17, 17, 21,
513 22, 23, 21, 41, 42, 50, 33, 51, 34, 44,
514 45, 41, 46, 63, 47, 24, 21, 22, 23, 21,
515 35, 35, 44, 45, 41, 42, 57, 41, 42, 54,
516 58, 55, 24, 25, 8, 114, 8, 26, 52, 8,
517 27, 28, 8, 29, 53, 39, 39, 59, 72, 60,
518 112, 30, 73, 31, 17, 37, 42, 33, 94, 34,
519 41, 42, 41, 42, 38, 41, 42, 78, 42, 110,
521 38, 39, 39, 37, 54, 109, 55, 36, 69, 37,
522 68, 71, 56, 58, 41, 42, 108, 71, 56, 39,
523 39, 41, 46, 107, 47, 39, 39, 41, 42, 65,
524 59, 42, 60, 80, 106, 65, 82, 75, 81, 105,
525 88, 86, 104, 75, 81, 82, 41, 42, 70, 83,
526 37, 74, 103, 87, 73, 102, 89, 90, 111, 87,
527 110, 91, 89, 78, 42, 116, 39, 39, 93, 43,
528 42, 93, 94, 98, 116, 97, 99, 99, 43, 113,
529 114, 112, 115, 99, 96, 20, 20, 20, 20, 43,
530 43, 43, 41, 41, 41, 77, 77, 79, 79, 79,
532 78, 78, 78, 97, 101, 97, 100, 91, 91, 88,
533 95, 116, 88, 42, 42, 92, 73, 85, 84, 42,
534 76, 74, 58, 70, 67, 66, 49, 64, 44, 62,
535 42, 61, 36, 49, 49, 48, 40, 36, 32, 116,
536 7, 116, 116, 116, 116, 116, 116, 116, 116, 116,
537 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
538 116, 116, 116, 116, 116, 116, 116, 116, 116, 116
543 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
544 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
545 1, 1, 1, 1, 1, 1, 1, 1, 1, 3,
546 3, 3, 3, 17, 17, 27, 13, 27, 13, 18,
547 18, 19, 19, 120, 19, 3, 4, 4, 4, 4,
548 13, 13, 24, 24, 30, 30, 38, 31, 31, 35,
549 38, 35, 4, 5, 5, 113, 5, 5, 30, 5,
550 5, 5, 5, 5, 31, 37, 37, 39, 56, 39,
551 111, 5, 56, 5, 5, 15, 94, 15, 94, 15,
552 43, 43, 52, 52, 15, 53, 53, 63, 63, 109,
554 15, 15, 15, 36, 55, 108, 55, 36, 53, 58,
555 52, 55, 36, 58, 68, 68, 107, 55, 36, 36,
556 36, 47, 47, 106, 47, 58, 58, 69, 69, 47,
557 60, 64, 60, 64, 105, 47, 71, 60, 64, 104,
558 71, 69, 103, 60, 64, 65, 65, 65, 70, 65,
559 73, 74, 102, 70, 73, 100, 74, 75, 110, 70,
560 110, 75, 74, 79, 79, 86, 73, 73, 81, 86,
561 81, 87, 81, 89, 96, 87, 99, 89, 96, 112,
562 114, 112, 114, 98, 86, 117, 117, 117, 117, 118,
563 118, 118, 119, 119, 119, 121, 121, 122, 122, 122,
565 123, 123, 123, 97, 95, 93, 92, 91, 90, 88,
566 85, 83, 82, 78, 77, 76, 72, 67, 66, 62,
567 61, 59, 57, 54, 51, 50, 49, 46, 45, 42,
568 41, 40, 33, 28, 26, 23, 16, 14, 11, 7,
569 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
570 116, 116, 116, 116, 116, 116, 116, 116, 116, 116,
571 116, 116, 116, 116, 116, 116, 116, 116, 116, 116
577 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0,
580 static yy_state_type yy_last_accepting_state;
581 static char *yy_last_accepting_cpos;
584 int dataset__flex_debug = 0;
589 #define REJECT reject_used_but_not_detected
590 #define yymore() yymore_used_but_not_detected
591 #define YY_MORE_ADJ 0
592 #define YY_RESTORE_YY_MORE_OFFSET
594 #line 1 "scan_dataset.l"
596 #line 4 "scan_dataset.l"
647 #line 648 "scan_dataset.cpp"
651 #define DESCRIPTION 2
653 #ifndef YY_EXTRA_TYPE
654 #define YY_EXTRA_TYPE void *
657 static int yy_init_globals (
void );
692 #ifndef YY_SKIP_YYWRAP
701 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
704 #ifdef YY_NEED_STRLEN
705 static int yy_flex_strlen (
yyconst char * );
711 static int yyinput (
void );
713 static int input (
void );
719 #ifndef YY_READ_BUF_SIZE
722 #define YY_READ_BUF_SIZE 16384
724 #define YY_READ_BUF_SIZE 8192
733 #define ECHO do { if (fwrite( dataset_text, dataset_leng, 1, dataset_out )) {} } while (0)
740 #define YY_INPUT(buf,result,max_size) \
741 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
745 for ( n = 0; n < max_size && \
746 (c = getc( dataset_in )) != EOF && c != '\n'; ++n ) \
749 buf[n++] = (char) c; \
750 if ( c == EOF && ferror( dataset_in ) ) \
751 YY_FATAL_ERROR( "input in flex scanner failed" ); \
757 while ( (result = fread(buf, 1, max_size, dataset_in))==0 && ferror(dataset_in)) \
759 if( errno != EINTR) \
761 YY_FATAL_ERROR( "input in flex scanner failed" ); \
765 clearerr(dataset_in); \
777 #define yyterminate() return YY_NULL
781 #ifndef YY_START_STACK_INCR
782 #define YY_START_STACK_INCR 25
786 #ifndef YY_FATAL_ERROR
787 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
796 #define YY_DECL_IS_OURS 1
800 #define YY_DECL int dataset_lex (void)
806 #ifndef YY_USER_ACTION
807 #define YY_USER_ACTION
812 #define YY_BREAK break;
815 #define YY_RULE_SETUP \
822 register yy_state_type yy_current_state;
826 #line 86 "scan_dataset.l"
829 #line 830 "scan_dataset.cpp"
849 dataset_ensure_buffer_stack ();
854 dataset__load_buffer_state( );
859 yy_cp = (yy_c_buf_p);
862 *yy_cp = (yy_hold_char);
869 yy_current_state = (yy_start);
874 if ( yy_accept[yy_current_state] )
876 (yy_last_accepting_state) = yy_current_state;
877 (yy_last_accepting_cpos) = yy_cp;
879 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
881 yy_current_state = (int) yy_def[yy_current_state];
882 if ( yy_current_state >= 117 )
883 yy_c = yy_meta[(
unsigned int) yy_c];
885 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
888 while ( yy_base[yy_current_state] != 241 );
891 yy_act = yy_accept[yy_current_state];
894 yy_cp = (yy_last_accepting_cpos);
895 yy_current_state = (yy_last_accepting_state);
896 yy_act = yy_accept[yy_current_state];
905 if ( dataset_text[yyl] ==
'\n' )
917 *yy_cp = (yy_hold_char);
918 yy_cp = (yy_last_accepting_cpos);
919 yy_current_state = (yy_last_accepting_state);
924 #line 88 "scan_dataset.l"
931 #line 92 "scan_dataset.l"
938 #line 96 "scan_dataset.l"
945 #line 100 "scan_dataset.l"
952 #line 104 "scan_dataset.l"
959 #line 108 "scan_dataset.l"
967 #line 113 "scan_dataset.l"
975 #line 118 "scan_dataset.l"
977 if (dataset_text[0] ==
'i' || dataset_text[0] ==
'j')
978 dataset_text[0] =
'0';
980 dataset_text[1] =
'0';
987 #line 127 "scan_dataset.l"
990 while (dataset_text[i] !=
'i' && dataset_text[i] !=
'j') i++;
991 dataset_text[
i] = dataset_text[i - 1];
992 dataset_text[i - 1] =
'\0';
1000 #line 137 "scan_dataset.l"
1008 #line 142 "scan_dataset.l"
1016 #line 146 "scan_dataset.l"
1025 #line 150 "scan_dataset.l"
1031 #line 152 "scan_dataset.l"
1036 #line 154 "scan_dataset.l"
1043 #line 157 "scan_dataset.l"
1046 "line %d: syntax error, unrecognized character: `%s'\n",
1047 dataset_lineno, dataset_text);
1053 #line 164 "scan_dataset.l"
1059 #line 165 "scan_dataset.l"
1064 #line 167 "scan_dataset.l"
1067 #line 1068 "scan_dataset.cpp"
1076 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
1079 *yy_cp = (yy_hold_char);
1107 yy_state_type yy_next_state;
1109 (yy_c_buf_p) = (
yytext_ptr) + yy_amount_of_matched_text;
1111 yy_current_state = yy_get_previous_state( );
1122 yy_next_state = yy_try_NUL_trans( yy_current_state );
1126 if ( yy_next_state )
1129 yy_cp = ++(yy_c_buf_p);
1130 yy_current_state = yy_next_state;
1136 yy_cp = (yy_c_buf_p);
1137 goto yy_find_action;
1141 else switch ( yy_get_next_buffer( ) )
1145 (yy_did_buffer_switch_on_eof) = 0;
1166 if ( ! (yy_did_buffer_switch_on_eof) )
1176 yy_current_state = yy_get_previous_state( );
1178 yy_cp = (yy_c_buf_p);
1186 yy_current_state = yy_get_previous_state( );
1188 yy_cp = (yy_c_buf_p);
1190 goto yy_find_action;
1197 "fatal flex scanner internal error--no action found" );
1209 static int yy_get_next_buffer (
void)
1213 register int number_to_move,
i;
1218 "fatal flex scanner internal error--end of buffer missed" );
1242 number_to_move = (int) ((yy_c_buf_p) - (
yytext_ptr)) - 1;
1244 for ( i = 0; i < number_to_move; ++
i )
1245 *(dest++) = *(source++);
1258 while ( num_to_read <= 0 )
1264 int yy_c_buf_p_offset =
1271 if ( new_size <= 0 )
1286 "fatal error - scanner input buffer overflow" );
1288 (yy_c_buf_p) = &b->
yy_ch_buf[yy_c_buf_p_offset];
1300 (yy_n_chars), (
size_t) num_to_read );
1305 if ( (yy_n_chars) == 0 )
1326 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1329 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1332 (yy_n_chars) += number_to_move;
1343 static yy_state_type yy_get_previous_state (
void)
1345 register yy_state_type yy_current_state;
1346 register char *
yy_cp;
1348 yy_current_state = (yy_start);
1353 if ( yy_accept[yy_current_state] )
1355 (yy_last_accepting_state) = yy_current_state;
1356 (yy_last_accepting_cpos) = yy_cp;
1358 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1360 yy_current_state = (int) yy_def[yy_current_state];
1361 if ( yy_current_state >= 117 )
1362 yy_c = yy_meta[(
unsigned int) yy_c];
1364 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1367 return yy_current_state;
1375 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1377 register int yy_is_jam;
1378 register char *yy_cp = (yy_c_buf_p);
1381 if ( yy_accept[yy_current_state] )
1383 (yy_last_accepting_state) = yy_current_state;
1384 (yy_last_accepting_cpos) = yy_cp;
1386 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1388 yy_current_state = (int) yy_def[yy_current_state];
1389 if ( yy_current_state >= 117 )
1390 yy_c = yy_meta[(
unsigned int) yy_c];
1392 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1393 yy_is_jam = (yy_current_state == 116);
1395 return yy_is_jam ? 0 : yy_current_state;
1400 static int yyinput (
void)
1402 static int input (
void)
1408 *(yy_c_buf_p) = (yy_hold_char);
1418 *(yy_c_buf_p) =
'\0';
1425 switch ( yy_get_next_buffer( ) )
1448 if ( ! (yy_did_buffer_switch_on_eof) )
1464 c = *(
unsigned char *) (yy_c_buf_p);
1465 *(yy_c_buf_p) =
'\0';
1466 (yy_hold_char) = *++(yy_c_buf_p);
1486 dataset_ensure_buffer_stack ();
1492 dataset__load_buffer_state( );
1507 dataset_ensure_buffer_stack ();
1514 *(yy_c_buf_p) = (yy_hold_char);
1520 dataset__load_buffer_state( );
1527 (yy_did_buffer_switch_on_eof) = 1;
1530 static void dataset__load_buffer_state (
void)
1535 (yy_hold_char) = *(yy_c_buf_p);
1550 YY_FATAL_ERROR(
"out of dynamic memory in dataset__create_buffer()" );
1559 YY_FATAL_ERROR(
"out of dynamic memory in dataset__create_buffer()" );
1563 dataset__init_buffer(b,file );
1588 extern int isatty (
int );
1595 static void dataset__init_buffer (YY_BUFFER_STATE b, FILE * file )
1643 dataset__load_buffer_state( );
1654 if (new_buffer == NULL)
1657 dataset_ensure_buffer_stack();
1663 *(yy_c_buf_p) = (yy_hold_char);
1670 (yy_buffer_stack_top)++;
1674 dataset__load_buffer_state( );
1675 (yy_did_buffer_switch_on_eof) = 1;
1689 if ((yy_buffer_stack_top) > 0)
1690 --(yy_buffer_stack_top);
1693 dataset__load_buffer_state( );
1694 (yy_did_buffer_switch_on_eof) = 1;
1701 static void dataset_ensure_buffer_stack (
void)
1705 if (!(yy_buffer_stack)) {
1715 if ( ! (yy_buffer_stack) )
1716 YY_FATAL_ERROR(
"out of dynamic memory in dataset_ensure_buffer_stack()" );
1718 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
1720 (yy_buffer_stack_max) = num_to_alloc;
1721 (yy_buffer_stack_top) = 0;
1725 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1730 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1735 if ( ! (yy_buffer_stack) )
1736 YY_FATAL_ERROR(
"out of dynamic memory in dataset_ensure_buffer_stack()" );
1739 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
1740 (yy_buffer_stack_max) = num_to_alloc;
1762 YY_FATAL_ERROR(
"out of dynamic memory in dataset__scan_buffer()" );
1808 n = _yybytes_len + 2;
1811 YY_FATAL_ERROR(
"out of dynamic memory in dataset__scan_bytes()" );
1813 for ( i = 0; i < _yybytes_len; ++
i )
1814 buf[i] = yybytes[i];
1830 #ifndef YY_EXIT_FAILURE
1831 #define YY_EXIT_FAILURE 2
1834 static void yy_fatal_error (
yyconst char* msg )
1836 (void)
fprintf( stderr,
"%s\n", msg );
1847 int yyless_macro_arg = (n); \
1848 YY_LESS_LINENO(yyless_macro_arg);\
1849 dataset_text[dataset_leng] = (yy_hold_char); \
1850 (yy_c_buf_p) = dataset_text + yyless_macro_arg; \
1851 (yy_hold_char) = *(yy_c_buf_p); \
1852 *(yy_c_buf_p) = '\0'; \
1853 dataset_leng = yyless_macro_arg; \
1908 dataset_lineno = line_number;
1934 dataset__flex_debug = bdebug ;
1937 static int yy_init_globals (
void)
1946 (yy_buffer_stack) = 0;
1947 (yy_buffer_stack_top) = 0;
1948 (yy_buffer_stack_max) = 0;
1949 (yy_c_buf_p) = (
char *) 0;
1981 (yy_buffer_stack) = NULL;
1995 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
1998 for ( i = 0; i <
n; ++
i )
2003 #ifdef YY_NEED_STRLEN
2004 static int yy_flex_strlen (
yyconst char *
s )
2007 for ( n = 0; s[
n]; ++
n )
2016 return (
void *) malloc( size );
2028 return (
void *) realloc( (
char *) ptr, size );
2033 free( (
char *) ptr );
2036 #define YYTABLES_NAME "yytables"
2038 #line 167 "scan_dataset.l"