1 #line 2 "lex.hdfeos.cc"
3 #line 4 "lex.hdfeos.cc"
5 #define YY_INT_ALIGNED short int
9 #define yy_create_buffer hdfeos_create_buffer
10 #define yy_delete_buffer hdfeos_delete_buffer
11 #define yy_flex_debug hdfeos_flex_debug
12 #define yy_init_buffer hdfeos_init_buffer
13 #define yy_flush_buffer hdfeos_flush_buffer
14 #define yy_load_buffer_state hdfeos_load_buffer_state
15 #define yy_switch_to_buffer hdfeos_switch_to_buffer
17 #define yyleng hdfeosleng
18 #define yylex hdfeoslex
19 #define yylineno hdfeoslineno
20 #define yyout hdfeosout
21 #define yyrestart hdfeosrestart
22 #define yytext hdfeostext
23 #define yywrap hdfeoswrap
24 #define yyalloc hdfeosalloc
25 #define yyrealloc hdfeosrealloc
26 #define yyfree hdfeosfree
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
69 typedef uint64_t flex_uint64_t;
81 #define INT8_MIN (-128)
84 #define INT16_MIN (-32767-1)
87 #define INT32_MIN (-2147483647-1)
90 #define INT8_MAX (127)
93 #define INT16_MAX (32767)
96 #define INT32_MAX (2147483647)
99 #define UINT8_MAX (255U)
102 #define UINT16_MAX (65535U)
105 #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 hdfeosrestart(hdfeosin )
160 #define YY_END_OF_BUFFER_CHAR 0
164 #define YY_BUF_SIZE 16384
169 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
171 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
172 #define YY_TYPEDEF_YY_BUFFER_STATE
176 #ifndef YY_TYPEDEF_YY_SIZE_T
177 #define YY_TYPEDEF_YY_SIZE_T
185 #define EOB_ACT_CONTINUE_SCAN 0
186 #define EOB_ACT_END_OF_FILE 1
187 #define EOB_ACT_LAST_MATCH 2
189 #define YY_LESS_LINENO(n)
196 int yyless_macro_arg = (n); \
197 YY_LESS_LINENO(yyless_macro_arg);\
198 *yy_cp = (yy_hold_char); \
199 YY_RESTORE_YY_MORE_OFFSET \
200 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
201 YY_DO_BEFORE_ACTION; \
205 #define unput(c) yyunput( c, (yytext_ptr) )
207 #ifndef YY_STRUCT_YY_BUFFER_STATE
208 #define YY_STRUCT_YY_BUFFER_STATE
209 struct yy_buffer_state
230 int yy_is_our_buffer;
237 int yy_is_interactive;
253 int yy_buffer_status;
255 #define YY_BUFFER_NEW 0
256 #define YY_BUFFER_NORMAL 1
267 #define YY_BUFFER_EOF_PENDING 2
273 static size_t yy_buffer_stack_top = 0;
274 static size_t yy_buffer_stack_max = 0;
283 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
284 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
290 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
293 static char yy_hold_char;
298 static char *yy_c_buf_p = (
char *) 0;
299 static int yy_init = 0;
300 static int yy_start = 0;
305 static int yy_did_buffer_switch_on_eof;
315 static void hdfeosensure_buffer_stack (
void );
316 static void hdfeos_load_buffer_state (
void );
319 #define YY_FLUSH_BUFFER hdfeos_flush_buffer(YY_CURRENT_BUFFER )
329 #define yy_new_buffer hdfeos_create_buffer
331 #define yy_set_interactive(is_interactive) \
333 if ( ! YY_CURRENT_BUFFER ){ \
334 hdfeosensure_buffer_stack (); \
335 YY_CURRENT_BUFFER_LVALUE = \
336 hdfeos_create_buffer(hdfeosin,YY_BUF_SIZE ); \
338 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
341 #define yy_set_bol(at_bol) \
343 if ( ! YY_CURRENT_BUFFER ){\
344 hdfeosensure_buffer_stack (); \
345 YY_CURRENT_BUFFER_LVALUE = \
346 hdfeos_create_buffer(hdfeosin,YY_BUF_SIZE ); \
348 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
351 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
355 #define hdfeoswrap(n) 1
356 #define YY_SKIP_YYWRAP
366 int hdfeoslineno = 1;
369 #define yytext_ptr hdfeostext
371 static yy_state_type yy_get_previous_state (
void );
372 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
373 static int yy_get_next_buffer (
void );
374 static void yy_fatal_error (
yyconst char msg[] );
379 #define YY_DO_BEFORE_ACTION \
380 (yytext_ptr) = yy_bp; \
381 (yytext_ptr) -= (yy_more_len); \
382 hdfeosleng = (yy_size_t) (yy_cp - (yytext_ptr)); \
383 (yy_hold_char) = *yy_cp; \
385 (yy_c_buf_p) = yy_cp;
387 #define YY_NUM_RULES 29
388 #define YY_END_OF_BUFFER 30
398 0, 0, 24, 24, 18, 18, 30, 28, 14, 15,
399 23, 8, 10, 11, 8, 12, 8, 8, 6, 13,
400 9, 8, 8, 8, 29, 24, 25, 27, 29, 18,
401 19, 29, 29, 14, 8, 8, 6, 7, 16, 7,
402 6, 8, 5, 8, 8, 24, 25, 26, 18, 19,
403 20, 21, 17, 22, 7, 8, 7, 5, 8, 8,
404 8, 8, 8, 8, 8, 1, 8, 8, 8, 3,
405 8, 8, 8, 8, 2, 8, 4, 0
410 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
411 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
412 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
413 1, 2, 1, 4, 1, 1, 5, 5, 1, 6,
414 7, 8, 9, 10, 9, 11, 12, 13, 13, 13,
415 13, 13, 13, 13, 13, 13, 13, 5, 14, 1,
416 15, 1, 1, 1, 5, 16, 17, 18, 19, 5,
417 20, 5, 5, 21, 5, 5, 5, 22, 23, 24,
418 5, 25, 5, 26, 27, 5, 5, 5, 5, 5,
419 1, 28, 1, 1, 29, 1, 5, 5, 5, 5,
421 30, 5, 5, 5, 5, 5, 5, 5, 5, 5,
422 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
423 5, 5, 31, 1, 31, 1, 1, 1, 1, 1,
424 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
425 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
426 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
427 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
428 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
429 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
430 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
433 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
434 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
435 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
436 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
442 1, 1, 2, 3, 4, 1, 1, 5, 4, 1,
443 4, 4, 4, 1, 1, 4, 4, 4, 4, 4,
444 4, 4, 4, 4, 4, 4, 4, 3, 4, 4,
450 0, 0, 29, 31, 33, 35, 127, 128, 124, 128,
451 128, 0, 128, 128, 29, 128, 112, 116, 34, 128,
452 128, 101, 97, 105, 128, 117, 128, 128, 0, 116,
453 128, 43, 0, 116, 0, 104, 0, 37, 128, 38,
454 0, 43, 98, 92, 93, 110, 128, 128, 109, 128,
455 128, 128, 128, 128, 47, 98, 97, 80, 81, 88,
456 42, 82, 88, 79, 87, 0, 76, 78, 79, 0,
457 69, 69, 58, 61, 0, 28, 0, 128, 65, 70,
458 40, 75, 80, 85, 89, 94
463 78, 1, 79, 79, 80, 80, 78, 78, 78, 78,
464 78, 81, 78, 78, 81, 78, 81, 81, 81, 78,
465 78, 81, 81, 81, 78, 82, 78, 78, 83, 84,
466 78, 85, 86, 78, 81, 81, 19, 19, 78, 19,
467 19, 81, 81, 81, 81, 82, 78, 78, 84, 78,
468 78, 78, 78, 78, 19, 81, 81, 81, 81, 81,
469 81, 81, 81, 81, 81, 81, 81, 81, 81, 81,
470 81, 81, 81, 81, 81, 81, 81, 0, 78, 78,
471 78, 78, 78, 78, 78, 78
476 8, 9, 10, 11, 12, 13, 14, 8, 15, 16,
477 17, 18, 19, 20, 21, 12, 12, 12, 22, 23,
478 12, 12, 24, 12, 12, 12, 12, 8, 12, 12,
479 25, 27, 28, 27, 28, 31, 25, 31, 25, 36,
480 32, 37, 32, 35, 40, 52, 41, 35, 35, 38,
481 55, 56, 42, 77, 53, 57, 29, 35, 29, 55,
482 33, 64, 33, 42, 65, 26, 26, 26, 26, 26,
483 30, 30, 30, 30, 30, 46, 46, 76, 46, 46,
484 48, 75, 48, 48, 48, 49, 49, 74, 49, 51,
485 51, 51, 51, 51, 54, 73, 54, 54, 54, 72,
487 71, 70, 69, 68, 67, 66, 63, 62, 61, 57,
488 57, 50, 47, 60, 59, 58, 38, 34, 50, 47,
489 45, 44, 43, 39, 38, 34, 78, 7, 78, 78,
490 78, 78, 78, 78, 78, 78, 78, 78, 78, 78,
491 78, 78, 78, 78, 78, 78, 78, 78, 78, 78,
492 78, 78, 78, 78, 78, 78, 78, 78, 78
497 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
498 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
499 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
500 1, 3, 3, 4, 4, 5, 5, 6, 6, 15,
501 5, 15, 6, 81, 19, 32, 19, 38, 40, 38,
502 40, 42, 19, 76, 32, 42, 3, 55, 4, 55,
503 5, 61, 6, 19, 61, 79, 79, 79, 79, 79,
504 80, 80, 80, 80, 80, 82, 82, 74, 82, 82,
505 83, 73, 83, 83, 83, 84, 84, 72, 84, 85,
506 85, 85, 85, 85, 86, 71, 86, 86, 86, 69,
508 68, 67, 65, 64, 63, 62, 60, 59, 58, 57,
509 56, 49, 46, 45, 44, 43, 36, 34, 30, 26,
510 24, 23, 22, 18, 17, 9, 7, 78, 78, 78,
511 78, 78, 78, 78, 78, 78, 78, 78, 78, 78,
512 78, 78, 78, 78, 78, 78, 78, 78, 78, 78,
513 78, 78, 78, 78, 78, 78, 78, 78, 78
516 static yy_state_type yy_last_accepting_state;
517 static char *yy_last_accepting_cpos;
520 int hdfeos_flex_debug = 0;
525 #define REJECT reject_used_but_not_detected
526 static int yy_more_flag = 0;
527 static int yy_more_len = 0;
528 #define yymore() ((yy_more_flag) = 1)
529 #define YY_MORE_ADJ (yy_more_len)
530 #define YY_RESTORE_YY_MORE_OFFSET
580 #line 51 "hdfeos.lex"
589 #define YY_PROTO(proto) proto
592 #define YYSTYPE char *
593 #define YY_DECL int hdfeoslex YY_PROTO(( void ))
595 #include "hdfeos.tab.hh"
598 static int start_line;
602 #line 603 "lex.hdfeos.cc"
608 #ifndef YY_NO_UNISTD_H
616 #ifndef YY_EXTRA_TYPE
617 #define YY_EXTRA_TYPE void *
620 static int yy_init_globals (
void );
655 #ifndef YY_SKIP_YYWRAP
664 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
667 #ifdef YY_NEED_STRLEN
668 static int yy_flex_strlen (
yyconst char * );
674 static int yyinput (
void );
676 static int input (
void );
682 #ifndef YY_READ_BUF_SIZE
683 #define YY_READ_BUF_SIZE 8192
691 #define ECHO fwrite( hdfeostext, hdfeosleng, 1, hdfeosout )
698 #define YY_INPUT(buf,result,max_size) \
699 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
703 for ( n = 0; n < max_size && \
704 (c = getc( hdfeosin )) != EOF && c != '\n'; ++n ) \
707 buf[n++] = (char) c; \
708 if ( c == EOF && ferror( hdfeosin ) ) \
709 YY_FATAL_ERROR( "input in flex scanner failed" ); \
715 while ( (result = fread(buf, 1, max_size, hdfeosin))==0 && ferror(hdfeosin)) \
717 if( errno != EINTR) \
719 YY_FATAL_ERROR( "input in flex scanner failed" ); \
723 clearerr(hdfeosin); \
735 #define yyterminate() return YY_NULL
739 #ifndef YY_START_STACK_INCR
740 #define YY_START_STACK_INCR 25
744 #ifndef YY_FATAL_ERROR
745 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
754 #define YY_DECL_IS_OURS 1
758 #define YY_DECL int hdfeoslex (void)
764 #ifndef YY_USER_ACTION
765 #define YY_USER_ACTION
770 #define YY_BREAK break;
773 #define YY_RULE_SETUP \
784 #line 98 "hdfeos.lex"
787 #line 788 "lex.hdfeos.cc"
807 hdfeosensure_buffer_stack ();
812 hdfeos_load_buffer_state( );
818 if ( (yy_more_flag) )
823 yy_cp = (yy_c_buf_p);
826 *yy_cp = (yy_hold_char);
833 yy_current_state = (yy_start);
838 if ( yy_accept[yy_current_state] )
840 (yy_last_accepting_state) = yy_current_state;
841 (yy_last_accepting_cpos) = yy_cp;
843 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
845 yy_current_state = (int) yy_def[yy_current_state];
846 if ( yy_current_state >= 79 )
847 yy_c = yy_meta[(
unsigned int) yy_c];
852 while ( yy_base[yy_current_state] != 128 );
858 yy_cp = (yy_last_accepting_cpos);
859 yy_current_state = (yy_last_accepting_state);
871 *yy_cp = (yy_hold_char);
872 yy_cp = (yy_last_accepting_cpos);
873 yy_current_state = (yy_last_accepting_state);
878 #line 100 "hdfeos.lex"
883 #line 101 "hdfeos.lex"
888 #line 102 "hdfeos.lex"
893 #line 103 "hdfeos.lex"
898 #line 104 "hdfeos.lex"
903 #line 106 "hdfeos.lex"
908 #line 107 "hdfeos.lex"
913 #line 108 "hdfeos.lex"
918 #line 110 "hdfeos.lex"
923 #line 111 "hdfeos.lex"
928 #line 112 "hdfeos.lex"
933 #line 113 "hdfeos.lex"
938 #line 114 "hdfeos.lex"
943 #line 116 "hdfeos.lex"
949 #line 117 "hdfeos.lex"
953 #line 118 "hdfeos.lex"
958 #line 120 "hdfeos.lex"
963 #line 121 "hdfeos.lex"
974 #line 128 "hdfeos.lex"
980 #line 129 "hdfeos.lex"
985 #line 130 "hdfeos.lex"
991 #line 131 "hdfeos.lex"
996 #line 132 "hdfeos.lex"
1000 #line 133 "hdfeos.lex"
1004 "Unterminated comment (starts on line %d)\n",
1011 #line 141 "hdfeos.lex"
1016 #line 142 "hdfeos.lex"
1022 #line 143 "hdfeos.lex"
1027 #line 144 "hdfeos.lex"
1032 #line 145 "hdfeos.lex"
1042 #line 152 "hdfeos.lex"
1046 "Unterminated quote (starts on line %d)\n",
1054 #line 160 "hdfeos.lex"
1057 fprintf(stderr,
"Character '%c' (%d) is not", *hdfeostext, *hdfeostext);
1058 fprintf(stderr,
" allowed (except within");
1059 fprintf(stderr,
" quotes) and has been ignored\n");
1065 #line 167 "hdfeos.lex"
1068 #line 1069 "lex.hdfeos.cc"
1073 int yy_amount_of_matched_text = (int) (yy_cp - (
yytext_ptr)) - 1;
1076 *yy_cp = (yy_hold_char);
1104 yy_state_type yy_next_state;
1106 (yy_c_buf_p) = (
yytext_ptr) + yy_amount_of_matched_text;
1108 yy_current_state = yy_get_previous_state( );
1119 yy_next_state = yy_try_NUL_trans( yy_current_state );
1123 if ( yy_next_state )
1126 yy_cp = ++(yy_c_buf_p);
1127 yy_current_state = yy_next_state;
1133 yy_cp = (yy_c_buf_p);
1134 goto yy_find_action;
1138 else switch ( yy_get_next_buffer( ) )
1142 (yy_did_buffer_switch_on_eof) = 0;
1163 if ( ! (yy_did_buffer_switch_on_eof) )
1173 yy_current_state = yy_get_previous_state( );
1175 yy_cp = (yy_c_buf_p);
1183 yy_current_state = yy_get_previous_state( );
1185 yy_cp = (yy_c_buf_p);
1187 goto yy_find_action;
1194 "fatal flex scanner internal error--no action found" );
1206 static int yy_get_next_buffer (
void)
1210 register int number_to_move, i;
1215 "fatal flex scanner internal error--end of buffer missed" );
1239 number_to_move = (int) ((yy_c_buf_p) - (
yytext_ptr)) - 1;
1241 for ( i = 0; i < number_to_move; ++i )
1242 *(dest++) = *(source++);
1255 while ( num_to_read <= 0 )
1261 int yy_c_buf_p_offset =
1262 (int) ((yy_c_buf_p) - b->yy_ch_buf);
1264 if ( b->yy_is_our_buffer )
1266 yy_size_t new_size = b->yy_buf_size * 2;
1268 if ( new_size <= 0 )
1269 b->yy_buf_size += b->yy_buf_size / 8;
1271 b->yy_buf_size *= 2;
1273 b->yy_ch_buf = (
char *)
1281 if ( ! b->yy_ch_buf )
1283 "fatal error - scanner input buffer overflow" );
1285 (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
1297 (yy_n_chars), num_to_read );
1302 if ( (yy_n_chars) == 0 )
1323 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1326 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1329 (yy_n_chars) += number_to_move;
1340 static yy_state_type yy_get_previous_state (
void)
1343 register char *
yy_cp;
1345 yy_current_state = (yy_start);
1350 if ( yy_accept[yy_current_state] )
1352 (yy_last_accepting_state) = yy_current_state;
1353 (yy_last_accepting_cpos) = yy_cp;
1355 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1357 yy_current_state = (int) yy_def[yy_current_state];
1358 if ( yy_current_state >= 79 )
1359 yy_c = yy_meta[(
unsigned int) yy_c];
1361 yy_current_state = yy_nxt[yy_base[
yy_current_state] + (
unsigned int) yy_c];
1372 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1374 register int yy_is_jam;
1375 register char *yy_cp = (yy_c_buf_p);
1378 if ( yy_accept[yy_current_state] )
1380 (yy_last_accepting_state) = yy_current_state;
1381 (yy_last_accepting_cpos) = yy_cp;
1383 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1385 yy_current_state = (int) yy_def[yy_current_state];
1386 if ( yy_current_state >= 79 )
1387 yy_c = yy_meta[(
unsigned int) yy_c];
1389 yy_current_state = yy_nxt[yy_base[
yy_current_state] + (
unsigned int) yy_c];
1390 yy_is_jam = (yy_current_state == 78);
1397 static int yyinput (
void)
1399 static int input (
void)
1405 *(yy_c_buf_p) = (yy_hold_char);
1415 *(yy_c_buf_p) =
'\0';
1422 switch ( yy_get_next_buffer( ) )
1445 if ( ! (yy_did_buffer_switch_on_eof) )
1461 c = *(
unsigned char *) (yy_c_buf_p);
1462 *(yy_c_buf_p) =
'\0';
1463 (yy_hold_char) = *++(yy_c_buf_p);
1478 hdfeosensure_buffer_stack ();
1484 hdfeos_load_buffer_state( );
1499 hdfeosensure_buffer_stack ();
1506 *(yy_c_buf_p) = (yy_hold_char);
1512 hdfeos_load_buffer_state( );
1519 (yy_did_buffer_switch_on_eof) = 1;
1522 static void hdfeos_load_buffer_state (
void)
1527 (yy_hold_char) = *(yy_c_buf_p);
1542 YY_FATAL_ERROR(
"out of dynamic memory in hdfeos_create_buffer()" );
1544 b->yy_buf_size = size;
1549 b->yy_ch_buf = (
char *)
hdfeosalloc(b->yy_buf_size + 2 );
1550 if ( ! b->yy_ch_buf )
1551 YY_FATAL_ERROR(
"out of dynamic memory in hdfeos_create_buffer()" );
1553 b->yy_is_our_buffer = 1;
1555 hdfeos_init_buffer(b,file );
1573 if ( b->yy_is_our_buffer )
1580 extern int isatty (
int );
1594 b->yy_input_file = file;
1595 b->yy_fill_buffer = 1;
1602 b->yy_bs_lineno = 1;
1603 b->yy_bs_column = 0;
1606 b->yy_is_interactive = file ? (
isatty( fileno(file) ) > 0) : 0;
1629 b->yy_buf_pos = &b->yy_ch_buf[0];
1635 hdfeos_load_buffer_state( );
1646 if (new_buffer ==
NULL)
1649 hdfeosensure_buffer_stack();
1655 *(yy_c_buf_p) = (yy_hold_char);
1662 (yy_buffer_stack_top)++;
1666 hdfeos_load_buffer_state( );
1667 (yy_did_buffer_switch_on_eof) = 1;
1681 if ((yy_buffer_stack_top) > 0)
1682 --(yy_buffer_stack_top);
1685 hdfeos_load_buffer_state( );
1686 (yy_did_buffer_switch_on_eof) = 1;
1693 static void hdfeosensure_buffer_stack (
void)
1697 if (!(yy_buffer_stack)) {
1704 (yy_buffer_stack) = (
struct yy_buffer_state**)
hdfeosalloc
1705 (num_to_alloc *
sizeof(
struct yy_buffer_state*)
1707 if ( ! (yy_buffer_stack) )
1708 YY_FATAL_ERROR(
"out of dynamic memory in hdfeosensure_buffer_stack()" );
1710 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
1712 (yy_buffer_stack_max) = num_to_alloc;
1713 (yy_buffer_stack_top) = 0;
1717 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1722 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1725 num_to_alloc *
sizeof(
struct yy_buffer_state*)
1727 if ( ! (yy_buffer_stack) )
1728 YY_FATAL_ERROR(
"out of dynamic memory in hdfeosensure_buffer_stack()" );
1731 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
1732 (yy_buffer_stack_max) = num_to_alloc;
1754 YY_FATAL_ERROR(
"out of dynamic memory in hdfeos_scan_buffer()" );
1756 b->yy_buf_size = size - 2;
1757 b->yy_buf_pos = b->yy_ch_buf = base;
1758 b->yy_is_our_buffer = 0;
1759 b->yy_input_file = 0;
1760 b->yy_n_chars = b->yy_buf_size;
1761 b->yy_is_interactive = 0;
1763 b->yy_fill_buffer = 0;
1799 n = _yybytes_len + 2;
1802 YY_FATAL_ERROR(
"out of dynamic memory in hdfeos_scan_bytes()" );
1804 for ( i = 0; i < _yybytes_len; ++i )
1805 buf[i] = yybytes[i];
1816 b->yy_is_our_buffer = 1;
1821 #ifndef YY_EXIT_FAILURE
1822 #define YY_EXIT_FAILURE 2
1825 static void yy_fatal_error (
yyconst char* msg )
1827 (void) fprintf( stderr,
"%s\n", msg );
1838 int yyless_macro_arg = (n); \
1839 YY_LESS_LINENO(yyless_macro_arg);\
1840 hdfeostext[hdfeosleng] = (yy_hold_char); \
1841 (yy_c_buf_p) = hdfeostext + yyless_macro_arg; \
1842 (yy_hold_char) = *(yy_c_buf_p); \
1843 *(yy_c_buf_p) = '\0'; \
1844 hdfeosleng = yyless_macro_arg; \
1899 hdfeoslineno = line_number;
1925 hdfeos_flex_debug = bdebug ;
1928 static int yy_init_globals (
void)
1934 (yy_buffer_stack) = 0;
1935 (yy_buffer_stack_top) = 0;
1936 (yy_buffer_stack_max) = 0;
1937 (yy_c_buf_p) = (
char *) 0;
1969 (yy_buffer_stack) =
NULL;
1983 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
1986 for ( i = 0; i < n; ++i )
1991 #ifdef YY_NEED_STRLEN
1992 static int yy_flex_strlen (
yyconst char * s )
1995 for ( n = 0; s[n]; ++n )
2004 return (
void *)
malloc( size );
2016 return (
void *) realloc( (
char *) ptr, size );
2021 free( (
char *) ptr );
2024 #define YYTABLES_NAME "yytables"
2026 #line 167 "hdfeos.lex"
void hdfeosset_out(FILE *out_str)
int hdfeoslex_destroy(void)
void * hdfeosalloc(yy_size_t)
unsigned short int flex_uint16_t
#define EOB_ACT_END_OF_FILE
YY_BUFFER_STATE hdfeos_scan_buffer(char *base, yy_size_t size)
Setup the input buffer state to scan directly from a user-specified character buffer.
YY_BUFFER_STATE hdfeos_scan_bytes(yyconst char *bytes, yy_size_t len)
Setup the input buffer state to scan the given bytes.
YY_BUFFER_STATE hdfeos_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
#define YY_INPUT(buf, result, max_size)
FILE * hdfeosget_in(void)
Get the input stream.
void * hdfeos_string(const char *str)
void * hdfeosrealloc(void *, yy_size_t)
struct yy_buffer_state * YY_BUFFER_STATE
void hdfeosset_debug(int debug_flag)
YY_BUFFER_STATE hdfeos_scan_string(yyconst char *yy_str)
Setup the input buffer state to scan a string.
YY_EXTRA_TYPE hdfeosget_extra(void)
void hdfeos_switch_to_buffer(YY_BUFFER_STATE new_buffer)
Switch to a different input buffer.
#define YY_BUFFER_EOF_PENDING
void hdfeosset_in(FILE *in_str)
Set the input stream.
void hdfeosrestart(FILE *input_file)
Immediately switch to a different input stream.
#define YY_END_OF_BUFFER_CHAR
#define YY_DO_BEFORE_ACTION
#define YY_STATE_EOF(state)
#define YY_RESTORE_YY_MORE_OFFSET
#define YY_FATAL_ERROR(msg)
void hdfeosset_lineno(int line_number)
Set the current line number.
void hdfeospush_buffer_state(YY_BUFFER_STATE new_buffer)
Pushes the new state onto the stack.
void hdfeos_flush_buffer(YY_BUFFER_STATE b)
Discard all buffered characters.
void hdfeospop_buffer_state(void)
Removes and deletes the top of the stack, if present.
#define YY_CURRENT_BUFFER
void hdfeosset_extra(YY_EXTRA_TYPE user_defined)
unsigned int flex_uint32_t
#define YY_CURRENT_BUFFER_LVALUE
#define EOB_ACT_CONTINUE_SCAN
unsigned char flex_uint8_t
int hdfeosget_debug(void)
int hdfeosget_lineno(void)
Get the current line number.
#define EOB_ACT_LAST_MATCH
void hdfeos_delete_buffer(YY_BUFFER_STATE b)
Destroy the buffer.
char * hdfeosget_text(void)
Get the current token.
yy_size_t hdfeosget_leng(void)
Get the length of the current token.
struct yy_buffer_state * YY_BUFFER_STATE
FILE * hdfeosget_out(void)
Get the output stream.
YY_DECL register yy_state_type yy_current_state
The main scanner function which does all the work.