4 #define YY_INT_ALIGNED short int
9 #define YY_FLEX_MAJOR_VERSION 2
10 #define YY_FLEX_MINOR_VERSION 5
11 #define YY_FLEX_SUBMINOR_VERSION 39
12 #if YY_FLEX_SUBMINOR_VERSION > 0
33 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
38 #ifndef __STDC_LIMIT_MACROS
39 #define __STDC_LIMIT_MACROS 1
59 #define INT8_MIN (-128)
62 #define INT16_MIN (-32767-1)
65 #define INT32_MIN (-2147483647-1)
68 #define INT8_MAX (127)
71 #define INT16_MAX (32767)
74 #define INT32_MAX (2147483647)
77 #define UINT8_MAX (255U)
80 #define UINT16_MAX (65535U)
83 #define UINT32_MAX (4294967295U)
98 #if defined (__STDC__)
106 #define yyconst const
119 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
125 #define BEGIN (yy_start) = 1 + 2 *
131 #define YY_START (((yy_start) - 1) / 2)
132 #define YYSTATE YY_START
135 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
138 #define YY_NEW_FILE yyrestart(yyin )
140 #define YY_END_OF_BUFFER_CHAR 0
149 #define YY_BUF_SIZE 32768
151 #define YY_BUF_SIZE 16384
157 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
159 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
160 #define YY_TYPEDEF_YY_BUFFER_STATE
164 #ifndef YY_TYPEDEF_YY_SIZE_T
165 #define YY_TYPEDEF_YY_SIZE_T
173 #define EOB_ACT_CONTINUE_SCAN 0
174 #define EOB_ACT_END_OF_FILE 1
175 #define EOB_ACT_LAST_MATCH 2
177 #define YY_LESS_LINENO(n)
178 #define YY_LINENO_REWIND_TO(ptr)
185 int yyless_macro_arg = (n); \
186 YY_LESS_LINENO(yyless_macro_arg);\
187 *yy_cp = (yy_hold_char); \
188 YY_RESTORE_YY_MORE_OFFSET \
189 (yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
190 YY_DO_BEFORE_ACTION; \
194 #define unput(c) yyunput( c, (yytext_ptr) )
196 #ifndef YY_STRUCT_YY_BUFFER_STATE
197 #define YY_STRUCT_YY_BUFFER_STATE
244 #define YY_BUFFER_NEW 0
245 #define YY_BUFFER_NORMAL 1
256 #define YY_BUFFER_EOF_PENDING 2
262 static size_t yy_buffer_stack_top = 0;
263 static size_t yy_buffer_stack_max = 0;
264 static YY_BUFFER_STATE * yy_buffer_stack = 0;
272 #define YY_CURRENT_BUFFER ( (yy_buffer_stack) \
273 ? (yy_buffer_stack)[(yy_buffer_stack_top)] \
279 #define YY_CURRENT_BUFFER_LVALUE (yy_buffer_stack)[(yy_buffer_stack_top)]
282 static char yy_hold_char;
287 static char *yy_c_buf_p = (
char *) 0;
288 static int yy_init = 0;
289 static int yy_start = 0;
294 static int yy_did_buffer_switch_on_eof;
304 static void yyensure_buffer_stack (
void );
305 static void yy_load_buffer_state (
void );
306 static void yy_init_buffer (YY_BUFFER_STATE
b,FILE *
file );
308 #define YY_FLUSH_BUFFER yy_flush_buffer(YY_CURRENT_BUFFER )
318 #define yy_new_buffer yy_create_buffer
320 #define yy_set_interactive(is_interactive) \
322 if ( ! YY_CURRENT_BUFFER ){ \
323 yyensure_buffer_stack (); \
324 YY_CURRENT_BUFFER_LVALUE = \
325 yy_create_buffer(yyin,YY_BUF_SIZE ); \
327 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
330 #define yy_set_bol(at_bol) \
332 if ( ! YY_CURRENT_BUFFER ){\
333 yyensure_buffer_stack (); \
334 YY_CURRENT_BUFFER_LVALUE = \
335 yy_create_buffer(yyin,YY_BUF_SIZE ); \
337 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
340 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
355 #define yytext_ptr yytext
357 static yy_state_type yy_get_previous_state (
void );
358 static yy_state_type yy_try_NUL_trans (yy_state_type current_state );
359 static int yy_get_next_buffer (
void );
360 static void yy_fatal_error (
yyconst char msg[] );
365 #define YY_DO_BEFORE_ACTION \
366 (yytext_ptr) = yy_bp; \
367 (yytext_ptr) -= (yy_more_len); \
368 yyleng = (size_t) (yy_cp - (yytext_ptr)); \
369 (yy_hold_char) = *yy_cp; \
371 (yy_c_buf_p) = yy_cp;
373 #define YY_NUM_RULES 53
374 #define YY_END_OF_BUFFER 54
384 0, 0, 54, 53, 51, 50, 53, 40, 40, 40,
385 42, 35, 33, 36, 41, 41, 41, 41, 41, 41,
386 41, 41, 41, 41, 41, 41, 41, 41, 41, 41,
387 39, 51, 0, 49, 48, 0, 43, 0, 44, 42,
388 0, 37, 34, 38, 41, 41, 41, 41, 41, 28,
389 41, 41, 41, 41, 41, 41, 41, 41, 31, 41,
390 41, 41, 25, 41, 41, 41, 41, 41, 41, 41,
391 0, 0, 52, 0, 47, 44, 0, 0, 45, 1,
392 41, 13, 29, 41, 41, 41, 41, 41, 41, 41,
393 41, 41, 19, 41, 26, 41, 41, 41, 41, 9,
395 41, 41, 41, 41, 41, 41, 0, 46, 41, 41,
396 41, 23, 41, 30, 41, 15, 5, 41, 41, 7,
397 32, 17, 41, 41, 41, 41, 24, 41, 41, 41,
398 41, 2, 41, 41, 41, 41, 41, 41, 27, 41,
399 41, 16, 41, 41, 41, 12, 3, 14, 4, 21,
400 6, 41, 41, 8, 10, 11, 41, 20, 41, 18,
406 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
407 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
408 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
409 1, 2, 1, 1, 1, 1, 1, 1, 4, 5,
410 5, 5, 6, 5, 7, 8, 5, 9, 9, 9,
411 9, 9, 9, 9, 9, 9, 9, 5, 5, 10,
412 11, 12, 1, 1, 13, 14, 15, 16, 17, 18,
413 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
414 22, 29, 30, 31, 32, 33, 34, 22, 35, 22,
415 1, 1, 1, 1, 36, 1, 13, 14, 15, 16,
417 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
418 27, 28, 22, 29, 30, 31, 32, 33, 34, 22,
419 35, 22, 1, 1, 1, 37, 1, 1, 1, 1,
420 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
421 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
422 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
423 1, 1, 1, 1, 1, 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,
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,
431 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
432 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
438 1, 1, 1, 1, 1, 1, 1, 1, 2, 1,
439 1, 1, 2, 2, 2, 2, 2, 2, 2, 2,
440 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
446 0, 0, 194, 195, 191, 195, 35, 195, 185, 31,
447 33, 32, 195, 180, 29, 155, 20, 39, 0, 160,
448 28, 167, 19, 158, 157, 168, 44, 156, 170, 162,
449 195, 179, 57, 176, 195, 176, 53, 65, 58, 68,
450 72, 195, 195, 195, 0, 162, 146, 160, 160, 0,
451 150, 156, 141, 39, 139, 143, 142, 52, 0, 145,
452 136, 142, 149, 147, 49, 149, 137, 145, 60, 143,
453 155, 155, 195, 148, 147, 77, 81, 146, 145, 0,
454 136, 0, 0, 120, 138, 133, 132, 133, 133, 118,
455 120, 127, 74, 126, 0, 118, 124, 125, 122, 0,
457 114, 120, 123, 103, 119, 104, 123, 122, 101, 104,
458 97, 0, 96, 0, 102, 0, 0, 96, 105, 0,
459 0, 0, 94, 101, 106, 103, 0, 88, 101, 97,
460 99, 0, 89, 97, 96, 95, 80, 93, 0, 79,
461 77, 0, 83, 69, 85, 0, 0, 0, 0, 0,
462 0, 68, 75, 0, 0, 0, 66, 0, 66, 0,
463 66, 0, 195, 101, 62, 103, 105
468 163, 1, 163, 163, 163, 163, 164, 163, 163, 163,
469 163, 163, 163, 163, 165, 165, 165, 165, 165, 165,
470 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
471 163, 163, 164, 166, 163, 167, 163, 163, 163, 163,
472 163, 163, 163, 163, 165, 165, 165, 165, 165, 165,
473 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
474 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
475 166, 167, 163, 163, 163, 163, 163, 163, 163, 165,
476 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
477 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
479 165, 165, 165, 165, 165, 165, 163, 163, 165, 165,
480 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
481 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
482 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
483 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
484 165, 165, 165, 165, 165, 165, 165, 165, 165, 165,
485 165, 165, 0, 163, 163, 163, 163
490 4, 5, 6, 7, 8, 8, 9, 10, 11, 12,
491 13, 14, 15, 16, 17, 18, 19, 20, 19, 19,
492 21, 19, 19, 22, 19, 23, 24, 25, 19, 26,
493 27, 28, 29, 30, 19, 4, 31, 34, 35, 37,
494 39, 40, 42, 43, 46, 61, 51, 38, 52, 41,
495 62, 53, 47, 58, 48, 54, 66, 59, 49, 34,
496 35, 37, 87, 45, 67, 55, 76, 56, 88, 38,
497 74, 74, 99, 75, 77, 39, 40, 78, 78, 100,
498 79, 92, 93, 104, 41, 76, 107, 107, 105, 108,
499 119, 162, 161, 77, 160, 159, 158, 157, 156, 155,
501 120, 33, 33, 71, 71, 72, 72, 154, 153, 152,
502 151, 150, 149, 148, 147, 146, 145, 144, 143, 142,
503 141, 140, 139, 138, 137, 136, 135, 134, 133, 132,
504 108, 108, 131, 130, 129, 128, 127, 126, 125, 124,
505 123, 122, 121, 118, 117, 116, 115, 114, 113, 112,
506 111, 110, 109, 79, 79, 75, 75, 73, 35, 106,
507 103, 102, 101, 98, 97, 96, 95, 94, 91, 90,
508 89, 86, 85, 84, 83, 82, 81, 80, 73, 35,
509 32, 70, 69, 68, 65, 64, 63, 60, 57, 50,
510 44, 36, 32, 163, 3, 163, 163, 163, 163, 163,
512 163, 163, 163, 163, 163, 163, 163, 163, 163, 163,
513 163, 163, 163, 163, 163, 163, 163, 163, 163, 163,
514 163, 163, 163, 163, 163, 163, 163, 163, 163, 163,
520 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
521 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
522 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
523 1, 1, 1, 1, 1, 1, 1, 7, 7, 10,
524 11, 11, 12, 12, 15, 23, 17, 10, 17, 11,
525 23, 18, 15, 21, 15, 18, 27, 21, 15, 33,
526 33, 37, 54, 165, 27, 18, 39, 18, 54, 37,
527 38, 38, 65, 38, 39, 40, 40, 41, 41, 65,
528 41, 58, 58, 69, 40, 76, 77, 77, 69, 77,
529 93, 161, 159, 76, 157, 153, 152, 145, 144, 143,
531 93, 164, 164, 166, 166, 167, 167, 141, 140, 138,
532 137, 136, 135, 134, 133, 131, 130, 129, 128, 126,
533 125, 124, 123, 119, 118, 115, 113, 111, 110, 109,
534 108, 107, 106, 105, 104, 103, 102, 101, 99, 98,
535 97, 96, 94, 92, 91, 90, 89, 88, 87, 86,
536 85, 84, 81, 79, 78, 75, 74, 72, 71, 70,
537 68, 67, 66, 64, 63, 62, 61, 60, 57, 56,
538 55, 53, 52, 51, 49, 48, 47, 46, 36, 34,
539 32, 30, 29, 28, 26, 25, 24, 22, 20, 16,
540 14, 9, 5, 3, 163, 163, 163, 163, 163, 163,
542 163, 163, 163, 163, 163, 163, 163, 163, 163, 163,
543 163, 163, 163, 163, 163, 163, 163, 163, 163, 163,
544 163, 163, 163, 163, 163, 163, 163, 163, 163, 163,
548 static yy_state_type yy_last_accepting_state;
549 static char *yy_last_accepting_cpos;
552 int yy_flex_debug = 0;
557 #define REJECT reject_used_but_not_detected
558 static int yy_more_flag = 0;
559 static int yy_more_len = 0;
560 #define yymore() ((yy_more_flag) = 1)
561 #define YY_MORE_ADJ (yy_more_len)
562 #define YY_RESTORE_YY_MORE_OFFSET
586 #include <grass/sqlp.h>
591 #define YY_INPUT(b, r, ms) (r = my_yyinput(b, ms))
599 #ifndef YY_NO_UNISTD_H
607 #ifndef YY_EXTRA_TYPE
608 #define YY_EXTRA_TYPE void *
611 static int yy_init_globals (
void );
646 #ifndef YY_SKIP_YYWRAP
648 extern "C" int yywrap (
void );
650 extern int yywrap (
void );
654 static void yyunput (
int c,
char *buf_ptr );
657 static void yy_flex_strncpy (
char *,
yyconst char *,
int );
660 #ifdef YY_NEED_STRLEN
661 static int yy_flex_strlen (
yyconst char * );
667 static int yyinput (
void );
669 static int input (
void );
675 #ifndef YY_READ_BUF_SIZE
678 #define YY_READ_BUF_SIZE 16384
680 #define YY_READ_BUF_SIZE 8192
689 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
696 #define YY_INPUT(buf,result,max_size) \
697 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
701 for ( n = 0; n < max_size && \
702 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
705 buf[n++] = (char) c; \
706 if ( c == EOF && ferror( yyin ) ) \
707 YY_FATAL_ERROR( "input in flex scanner failed" ); \
713 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
715 if( errno != EINTR) \
717 YY_FATAL_ERROR( "input in flex scanner failed" ); \
733 #define yyterminate() return YY_NULL
737 #ifndef YY_START_STACK_INCR
738 #define YY_START_STACK_INCR 25
742 #ifndef YY_FATAL_ERROR
743 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg )
752 #define YY_DECL_IS_OURS 1
754 extern int yylex (
void);
756 #define YY_DECL int yylex (void)
762 #ifndef YY_USER_ACTION
763 #define YY_USER_ACTION
768 #define YY_BREAK break;
771 #define YY_RULE_SETUP \
778 register yy_state_type yy_current_state;
800 yyensure_buffer_stack ();
805 yy_load_buffer_state( );
824 if ( (yy_more_flag) )
829 yy_cp = (yy_c_buf_p);
832 *yy_cp = (yy_hold_char);
839 yy_current_state = (yy_start);
844 if ( yy_accept[yy_current_state] )
846 (yy_last_accepting_state) = yy_current_state;
847 (yy_last_accepting_cpos) = yy_cp;
849 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
851 yy_current_state = (
int) yy_def[yy_current_state];
852 if ( yy_current_state >= 164 )
853 yy_c = yy_meta[(
unsigned int) yy_c];
855 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
858 while ( yy_base[yy_current_state] != 195 );
861 yy_act = yy_accept[yy_current_state];
864 yy_cp = (yy_last_accepting_cpos);
865 yy_current_state = (yy_last_accepting_state);
866 yy_act = yy_accept[yy_current_state];
877 *yy_cp = (yy_hold_char);
878 yy_cp = (yy_last_accepting_cpos);
879 yy_current_state = (yy_last_accepting_state);
1153 char *Buffer, *ptra, *ptrb;
1157 Buffer = (
char*)strdup(yytext);
1162 len = strlen (Buffer);
1163 Buffer[len-1] =
'\0';
1166 while ( (ptra = strchr(ptrb,
'\'')) !=
NULL ) {
1167 ptra++; ptrb = ptra;
1168 while ( ptra[1] != 0 ) { ptra[0] = ptra[1]; ptra++; }
1189 *yy_cp = (yy_hold_char);
1190 (yy_c_buf_p) = yy_cp -= 1;
1194 { yyerror(
"Unterminated string"); }
1223 *yy_cp = (yy_hold_char);
1224 (yy_c_buf_p) = yy_cp -= 1;
1235 #line 1236 "lex.yy.c"
1242 int yy_amount_of_matched_text = (
int) (yy_cp - (
yytext_ptr)) - 1;
1245 *yy_cp = (yy_hold_char);
1273 yy_state_type yy_next_state;
1275 (yy_c_buf_p) = (
yytext_ptr) + yy_amount_of_matched_text;
1277 yy_current_state = yy_get_previous_state( );
1288 yy_next_state = yy_try_NUL_trans( yy_current_state );
1292 if ( yy_next_state )
1295 yy_cp = ++(yy_c_buf_p);
1296 yy_current_state = yy_next_state;
1302 yy_cp = (yy_c_buf_p);
1303 goto yy_find_action;
1307 else switch ( yy_get_next_buffer( ) )
1311 (yy_did_buffer_switch_on_eof) = 0;
1332 if ( ! (yy_did_buffer_switch_on_eof) )
1342 yy_current_state = yy_get_previous_state( );
1344 yy_cp = (yy_c_buf_p);
1352 yy_current_state = yy_get_previous_state( );
1354 yy_cp = (yy_c_buf_p);
1356 goto yy_find_action;
1363 "fatal flex scanner internal error--no action found" );
1376 static int yy_get_next_buffer (
void)
1380 register int number_to_move, i;
1385 "fatal flex scanner internal error--end of buffer missed" );
1411 for ( i = 0; i < number_to_move; ++i )
1412 *(dest++) = *(source++);
1425 while ( num_to_read <= 0 )
1431 int yy_c_buf_p_offset =
1438 if ( new_size <= 0 )
1453 "fatal error - scanner input buffer overflow" );
1455 (yy_c_buf_p) = &b->
yy_ch_buf[yy_c_buf_p_offset];
1467 (yy_n_chars), num_to_read );
1472 if ( (yy_n_chars) == 0 )
1493 yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
1496 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1499 (yy_n_chars) += number_to_move;
1510 static yy_state_type yy_get_previous_state (
void)
1512 register yy_state_type yy_current_state;
1513 register char *
yy_cp;
1515 yy_current_state = (yy_start);
1520 if ( yy_accept[yy_current_state] )
1522 (yy_last_accepting_state) = yy_current_state;
1523 (yy_last_accepting_cpos) = yy_cp;
1525 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1527 yy_current_state = (
int) yy_def[yy_current_state];
1528 if ( yy_current_state >= 164 )
1529 yy_c = yy_meta[(
unsigned int) yy_c];
1531 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1534 return yy_current_state;
1542 static yy_state_type yy_try_NUL_trans (yy_state_type yy_current_state )
1544 register int yy_is_jam;
1545 register char *yy_cp = (yy_c_buf_p);
1548 if ( yy_accept[yy_current_state] )
1550 (yy_last_accepting_state) = yy_current_state;
1551 (yy_last_accepting_cpos) = yy_cp;
1553 while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1555 yy_current_state = (
int) yy_def[yy_current_state];
1556 if ( yy_current_state >= 164 )
1557 yy_c = yy_meta[(
unsigned int) yy_c];
1559 yy_current_state = yy_nxt[yy_base[yy_current_state] + (
unsigned int) yy_c];
1560 yy_is_jam = (yy_current_state == 163);
1562 return yy_is_jam ? 0 : yy_current_state;
1565 static void yyunput (
int c,
register char * yy_bp )
1567 register char *
yy_cp;
1569 yy_cp = (yy_c_buf_p);
1572 *yy_cp = (yy_hold_char);
1574 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1577 register yy_size_t number_to_move = (yy_n_chars) + 2;
1580 register char *source =
1584 *--dest = *--source;
1586 yy_cp += (
int) (dest - source);
1587 yy_bp += (
int) (dest - source);
1591 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1595 *--yy_cp = (char) c;
1598 (yy_hold_char) = *yy_cp;
1599 (yy_c_buf_p) = yy_cp;
1604 static int yyinput (
void)
1606 static int input (
void)
1612 *(yy_c_buf_p) = (yy_hold_char);
1622 *(yy_c_buf_p) =
'\0';
1629 switch ( yy_get_next_buffer( ) )
1652 if ( ! (yy_did_buffer_switch_on_eof) )
1668 c = *(
unsigned char *) (yy_c_buf_p);
1669 *(yy_c_buf_p) =
'\0';
1670 (yy_hold_char) = *++(yy_c_buf_p);
1685 yyensure_buffer_stack ();
1691 yy_load_buffer_state( );
1706 yyensure_buffer_stack ();
1713 *(yy_c_buf_p) = (yy_hold_char);
1719 yy_load_buffer_state( );
1726 (yy_did_buffer_switch_on_eof) = 1;
1729 static void yy_load_buffer_state (
void)
1734 (yy_hold_char) = *(yy_c_buf_p);
1762 yy_init_buffer(b,file );
1790 static void yy_init_buffer (YY_BUFFER_STATE b, FILE * file )
1838 yy_load_buffer_state( );
1849 if (new_buffer ==
NULL)
1852 yyensure_buffer_stack();
1858 *(yy_c_buf_p) = (yy_hold_char);
1865 (yy_buffer_stack_top)++;
1869 yy_load_buffer_state( );
1870 (yy_did_buffer_switch_on_eof) = 1;
1884 if ((yy_buffer_stack_top) > 0)
1885 --(yy_buffer_stack_top);
1888 yy_load_buffer_state( );
1889 (yy_did_buffer_switch_on_eof) = 1;
1896 static void yyensure_buffer_stack (
void)
1900 if (!(yy_buffer_stack)) {
1910 if ( ! (yy_buffer_stack) )
1911 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
1913 memset((yy_buffer_stack), 0, num_to_alloc *
sizeof(
struct yy_buffer_state*));
1915 (yy_buffer_stack_max) = num_to_alloc;
1916 (yy_buffer_stack_top) = 0;
1920 if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
1925 num_to_alloc = (yy_buffer_stack_max) + grow_size;
1930 if ( ! (yy_buffer_stack) )
1931 YY_FATAL_ERROR(
"out of dynamic memory in yyensure_buffer_stack()" );
1934 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size *
sizeof(
struct yy_buffer_state*));
1935 (yy_buffer_stack_max) = num_to_alloc;
2003 n = _yybytes_len + 2;
2008 for ( i = 0; i < _yybytes_len; ++i )
2009 buf[i] = yybytes[i];
2025 #ifndef YY_EXIT_FAILURE
2026 #define YY_EXIT_FAILURE 2
2029 static void yy_fatal_error (
yyconst char*
msg )
2031 (void) fprintf( stderr,
"%s\n", msg );
2042 int yyless_macro_arg = (n); \
2043 YY_LESS_LINENO(yyless_macro_arg);\
2044 yytext[yyleng] = (yy_hold_char); \
2045 (yy_c_buf_p) = yytext + yyless_macro_arg; \
2046 (yy_hold_char) = *(yy_c_buf_p); \
2047 *(yy_c_buf_p) = '\0'; \
2048 yyleng = yyless_macro_arg; \
2103 yylineno = line_number;
2129 yy_flex_debug = bdebug ;
2132 static int yy_init_globals (
void)
2138 (yy_buffer_stack) = 0;
2139 (yy_buffer_stack_top) = 0;
2140 (yy_buffer_stack_max) = 0;
2141 (yy_c_buf_p) = (
char *) 0;
2172 yyfree((yy_buffer_stack) );
2173 (yy_buffer_stack) =
NULL;
2187 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n )
2190 for ( i = 0; i <
n; ++i )
2195 #ifdef YY_NEED_STRLEN
2196 static int yy_flex_strlen (
yyconst char *
s )
2199 for ( n = 0; s[
n]; ++
n )
2208 return (
void *)
malloc( size );
2220 return (
void *) realloc( (
char *) ptr, size );
2223 void yyfree (
void * ptr )
2225 free( (
char *) ptr );
2228 #define YYTABLES_NAME "yytables"
2247 int my_yyinput(
char *buf,
int max_size)
2251 rest = sqlpStmt->stmt + strlen( sqlpStmt->stmt) - sqlpStmt->cur;
2252 n = ( max_size < rest ? max_size : rest );
2256 memcpy( buf, sqlpStmt->cur, n );
2270 void yyerror(
char *s )
2272 snprintf( sqlpStmt->errmsg, 500,
"%s processing '%s'", s, yytext );
2274 #ifdef YY_CURRENT_BUFFER
#define EOB_ACT_CONTINUE_SCAN
void yyrestart(FILE *input_file)
YY_EXTRA_TYPE yyget_extra(void)
struct yy_buffer_state * YY_BUFFER_STATE
#define YY_STATE_EOF(state)
YY_BUFFER_STATE yy_scan_bytes(yyconst char *bytes, yy_size_t len)
#define YY_RESTORE_YY_MORE_OFFSET
YY_BUFFER_STATE yy_scan_string(yyconst char *yy_str)
yy_size_t yyget_leng(void)
void yyset_out(FILE *out_str)
void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer)
#define EOB_ACT_LAST_MATCH
#define YY_CURRENT_BUFFER
#define YY_DO_BEFORE_ACTION
void yypush_buffer_state(YY_BUFFER_STATE new_buffer)
void yyset_debug(int debug_flag)
#define YY_INPUT(b, r, ms)
unsigned int flex_uint32_t
void yyset_in(FILE *in_str)
unsigned short int flex_uint16_t
#define YY_CURRENT_BUFFER_LVALUE
#define YY_END_OF_BUFFER_CHAR
#define YY_BUFFER_EOF_PENDING
#define EOB_ACT_END_OF_FILE
#define YY_FATAL_ERROR(msg)
YY_BUFFER_STATE yy_scan_buffer(char *base, yy_size_t size)
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
void * yyalloc(yy_size_t)
void yy_flush_buffer(YY_BUFFER_STATE b)
void * yyrealloc(void *, yy_size_t)
unsigned char flex_uint8_t
void yypop_buffer_state(void)
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size)
#define COMPARISON_OPERATOR
void yy_delete_buffer(YY_BUFFER_STATE b)
void yyset_lineno(int line_number)
void yyset_extra(YY_EXTRA_TYPE user_defined)