1 #define ASTMM_LIBC ASTMM_REDIRECT 8 #define YY_INT_ALIGNED short int 13 #define YY_FLEX_MAJOR_VERSION 2 14 #define YY_FLEX_MINOR_VERSION 5 15 #define YY_FLEX_SUBMINOR_VERSION 35 16 #if YY_FLEX_SUBMINOR_VERSION > 0 37 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L 42 #ifndef __STDC_LIMIT_MACROS 43 #define __STDC_LIMIT_MACROS 1 63 #define INT8_MIN (-128) 66 #define INT16_MIN (-32767-1) 69 #define INT32_MIN (-2147483647-1) 72 #define INT8_MAX (127) 75 #define INT16_MAX (32767) 78 #define INT32_MAX (2147483647) 81 #define UINT8_MAX (255U) 84 #define UINT16_MAX (65535U) 87 #define UINT32_MAX (4294967295U) 102 #if defined (__STDC__) 110 #define yyconst const 123 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c) 126 #ifndef YY_TYPEDEF_YY_SCANNER_T 127 #define YY_TYPEDEF_YY_SCANNER_T 133 #define yyin yyg->yyin_r 134 #define yyout yyg->yyout_r 135 #define yyextra yyg->yyextra_r 136 #define yyleng yyg->yyleng_r 137 #define yytext yyg->yytext_r 138 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno) 139 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column) 140 #define yy_flex_debug yyg->yy_flex_debug_r 146 #define BEGIN yyg->yy_start = 1 + 2 * 152 #define YY_START ((yyg->yy_start - 1) / 2) 153 #define YYSTATE YY_START 156 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1) 159 #define YY_NEW_FILE ast_yyrestart(yyin ,yyscanner ) 161 #define YY_END_OF_BUFFER_CHAR 0 170 #define YY_BUF_SIZE 32768 172 #define YY_BUF_SIZE 16384 178 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type)) 180 #ifndef YY_TYPEDEF_YY_BUFFER_STATE 181 #define YY_TYPEDEF_YY_BUFFER_STATE 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 = yyg->yy_hold_char; \ 199 YY_RESTORE_YY_MORE_OFFSET \ 200 yyg->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, yyg->yytext_ptr , yyscanner ) 207 #ifndef YY_TYPEDEF_YY_SIZE_T 208 #define YY_TYPEDEF_YY_SIZE_T 212 #ifndef YY_STRUCT_YY_BUFFER_STATE 213 #define YY_STRUCT_YY_BUFFER_STATE 260 #define YY_BUFFER_NEW 0 261 #define YY_BUFFER_NORMAL 1 272 #define YY_BUFFER_EOF_PENDING 2 283 #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \ 284 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \ 290 #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] 304 #define YY_FLUSH_BUFFER ast_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner) 314 #define yy_new_buffer ast_yy_create_buffer 316 #define yy_set_interactive(is_interactive) \ 318 if ( ! YY_CURRENT_BUFFER ){ \ 319 ast_yyensure_buffer_stack (yyscanner); \ 320 YY_CURRENT_BUFFER_LVALUE = \ 321 ast_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ 323 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \ 326 #define yy_set_bol(at_bol) \ 328 if ( ! YY_CURRENT_BUFFER ){\ 329 ast_yyensure_buffer_stack (yyscanner); \ 330 YY_CURRENT_BUFFER_LVALUE = \ 331 ast_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \ 333 YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \ 336 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol) 340 #define ast_yywrap(n) 1 341 #define YY_SKIP_YYWRAP 347 #define yytext_ptr yytext_r 357 #define YY_DO_BEFORE_ACTION \ 358 yyg->yytext_ptr = yy_bp; \ 359 yyg->yytext_ptr -= yyg->yy_more_len; \ 360 yyleng = (size_t) (yy_cp - yyg->yytext_ptr); \ 361 yyg->yy_hold_char = *yy_cp; \ 363 yyg->yy_c_buf_p = yy_cp; 365 #define YY_NUM_RULES 38 366 #define YY_END_OF_BUFFER 39 376 0, 0, 0, 0, 35, 35, 39, 38, 27, 29,
377 21, 38, 31, 38, 19, 2, 24, 25, 17, 14,
378 15, 16, 18, 30, 22, 10, 3, 9, 20, 1,
379 38, 38, 34, 33, 35, 37, 37, 13, 0, 28,
380 31, 0, 26, 5, 31, 30, 23, 12, 6, 7,
381 11, 4, 8, 0, 34, 33, 35, 0, 36, 32,
387 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
388 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
389 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
390 1, 2, 4, 5, 6, 7, 8, 9, 6, 10,
391 11, 12, 13, 14, 15, 16, 17, 18, 18, 18,
392 18, 18, 18, 18, 18, 18, 18, 19, 6, 20,
393 21, 22, 23, 6, 6, 6, 6, 6, 6, 6,
394 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
395 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
396 1, 6, 1, 6, 6, 1, 6, 6, 6, 6,
398 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
399 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
400 6, 6, 24, 25, 26, 27, 1, 28, 28, 28,
401 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
402 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
403 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
404 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
405 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
406 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
407 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
409 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
410 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
411 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
412 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
413 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
419 1, 2, 2, 2, 1, 3, 3, 2, 2, 2,
420 2, 2, 2, 1, 2, 3, 2, 3, 2, 2,
421 2, 2, 2, 1, 2, 1, 1, 3
426 0, 0, 5, 6, 32, 60, 73, 130, 130, 130,
427 51, 66, 63, 45, 130, 59, 130, 130, 130, 130,
428 130, 130, 130, 83, 45, 42, 13, 41, 130, 32,
429 28, 17, 130, 130, 47, 130, 29, 130, 47, 130,
430 44, 25, 130, 130, 29, 0, 130, 130, 130, 130,
431 130, 130, 130, 18, 130, 130, 38, 12, 130, 130,
432 0, 130, 111, 114, 117, 32, 120, 123, 126
437 62, 1, 63, 63, 64, 64, 62, 62, 62, 62,
438 62, 65, 66, 67, 62, 62, 62, 62, 62, 62,
439 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
440 62, 68, 62, 62, 69, 62, 62, 62, 65, 62,
441 66, 67, 62, 62, 41, 24, 62, 62, 62, 62,
442 62, 62, 62, 68, 62, 62, 69, 62, 62, 62,
443 45, 0, 62, 62, 62, 62, 62, 62, 62
448 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
449 18, 19, 20, 21, 22, 13, 23, 24, 25, 26,
450 27, 28, 29, 8, 30, 8, 31, 13, 33, 33,
451 34, 34, 35, 49, 41, 59, 35, 35, 37, 50,
452 55, 55, 56, 56, 58, 35, 61, 35, 60, 35,
453 42, 40, 59, 58, 53, 35, 52, 35, 35, 35,
454 35, 51, 48, 47, 35, 35, 37, 44, 43, 42,
455 40, 38, 62, 35, 62, 35, 62, 35, 62, 62,
456 62, 62, 62, 35, 62, 35, 35, 35, 41, 42,
457 62, 62, 62, 62, 62, 62, 62, 62, 45, 62,
459 46, 62, 62, 62, 62, 62, 62, 62, 62, 62,
460 41, 32, 32, 32, 36, 36, 36, 39, 39, 39,
461 41, 41, 41, 54, 54, 54, 57, 62, 57, 7,
462 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
463 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
464 62, 62, 62, 62, 62, 62, 62, 62
469 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
470 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
471 1, 1, 1, 1, 1, 1, 1, 1, 3, 4,
472 3, 4, 5, 27, 66, 58, 5, 5, 5, 27,
473 32, 54, 32, 54, 57, 5, 45, 5, 42, 5,
474 41, 39, 37, 35, 31, 5, 30, 5, 5, 5,
475 6, 28, 26, 25, 6, 6, 6, 16, 14, 13,
476 12, 11, 7, 6, 0, 6, 0, 6, 0, 0,
477 0, 0, 0, 6, 0, 6, 6, 6, 24, 24,
478 0, 0, 0, 0, 0, 0, 0, 0, 24, 0,
480 24, 0, 0, 0, 0, 0, 0, 0, 0, 0,
481 24, 63, 63, 63, 64, 64, 64, 65, 65, 65,
482 67, 67, 67, 68, 68, 68, 69, 0, 69, 62,
483 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
484 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
485 62, 62, 62, 62, 62, 62, 62, 62
491 #define REJECT reject_used_but_not_detected 492 #define yymore() (yyg->yy_more_flag = 1) 493 #define YY_MORE_ADJ yyg->yy_more_len 494 #define YY_RESTORE_YY_MORE_OFFSET 495 #line 1 "ast_expr2.fl" 496 #line 2 "ast_expr2.fl" 520 #include <sys/types.h> 523 #if defined(STANDALONE) 525 #define __USE_ISOC99 1 530 #define FP___PRINTF "%.18Lg" 531 #define FP___FMOD fmodl 532 #define FP___STRTOD strtold 533 #define FP___TYPE long double 535 #define FP___PRINTF "%.16g" 536 #define FP___FMOD fmod 537 #define FP___STRTOD strtod 538 #define FP___TYPE double 545 #if !defined(SOLARIS) && !defined(__CYGWIN__) 548 #define quad_t int64_t 563 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) 580 #define SET_COLUMNS do { \ 581 yylloc_param->first_column = (int)(yyg->yytext_r - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf); \ 582 yylloc_param->last_column += yyleng - 1; \ 583 yylloc_param->first_line = yylloc_param->last_line = 1; \ 586 #define SET_STRING do { \ 587 yylval_param->val = calloc(1, sizeof(struct val)); \ 588 yylval_param->val->type = AST_EXPR_string; \ 589 yylval_param->val->u.s = strdup(yytext); \ 592 #define SET_NUMERIC_STRING do { \ 593 yylval_param->val = calloc(1, sizeof(struct val)); \ 594 yylval_param->val->type = AST_EXPR_numeric_string; \ 595 yylval_param->val->u.s = strdup(yytext); \ 611 #line 611 "ast_expr2f.c" 617 #ifndef YY_NO_UNISTD_H 625 #ifndef YY_EXTRA_TYPE 626 #define YY_EXTRA_TYPE void * 671 # define yylval yyg->yylval_r 673 # define yylloc yyg->yylloc_r 720 #ifndef YY_SKIP_YYWRAP 731 static void yy_flex_strncpy (
char *,
yyconst char *,
int ,
yyscan_t yyscanner);
734 #ifdef YY_NEED_STRLEN 741 static int yyinput (
yyscan_t yyscanner );
749 #ifndef YY_READ_BUF_SIZE 752 #define YY_READ_BUF_SIZE 16384 754 #define YY_READ_BUF_SIZE 8192 763 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) 770 #define YY_INPUT(buf,result,max_size) \ 771 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \ 775 for ( n = 0; n < max_size && \ 776 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ 779 buf[n++] = (char) c; \ 780 if ( c == EOF && ferror( yyin ) ) \ 781 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 787 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \ 789 if( errno != EINTR) \ 791 YY_FATAL_ERROR( "input in flex scanner failed" ); \ 807 #define yyterminate() return YY_NULL 811 #ifndef YY_START_STACK_INCR 812 #define YY_START_STACK_INCR 25 816 #ifndef YY_FATAL_ERROR 817 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner) 826 #define YY_DECL_IS_OURS 1 831 #define YY_DECL int ast_yylex \ 832 (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner) 838 #ifndef YY_USER_ACTION 839 #define YY_USER_ACTION 844 #define YY_BREAK break; 847 #define YY_RULE_SETUP \ 859 #line 130 "ast_expr2.fl" 862 #line 862 "ast_expr2f.c" 922 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
924 yy_current_state = (int)
yy_def[yy_current_state];
925 if ( yy_current_state >= 63 )
926 yy_c =
yy_meta[(
unsigned int) yy_c];
928 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + (
unsigned int) yy_c];
931 while ( yy_current_state != 62 );
953 #line 132 "ast_expr2.fl" 958 #line 133 "ast_expr2.fl" 963 #line 134 "ast_expr2.fl" 968 #line 135 "ast_expr2.fl" 973 #line 136 "ast_expr2.fl" 978 #line 137 "ast_expr2.fl" 983 #line 138 "ast_expr2.fl" 988 #line 139 "ast_expr2.fl" 993 #line 140 "ast_expr2.fl" 998 #line 141 "ast_expr2.fl" 1003 #line 142 "ast_expr2.fl" 1008 #line 143 "ast_expr2.fl" 1013 #line 144 "ast_expr2.fl" 1018 #line 145 "ast_expr2.fl" 1023 #line 146 "ast_expr2.fl" 1028 #line 147 "ast_expr2.fl" 1033 #line 148 "ast_expr2.fl" 1038 #line 149 "ast_expr2.fl" 1043 #line 150 "ast_expr2.fl" 1048 #line 151 "ast_expr2.fl" 1053 #line 152 "ast_expr2.fl" 1058 #line 153 "ast_expr2.fl" 1063 #line 154 "ast_expr2.fl" 1068 #line 155 "ast_expr2.fl" 1073 #line 156 "ast_expr2.fl" 1078 #line 157 "ast_expr2.fl" 1091 #line 167 "ast_expr2.fl" 1097 #line 168 "ast_expr2.fl" 1103 #line 170 "ast_expr2.fl" 1108 #line 171 "ast_expr2.fl" 1121 #line 180 "ast_expr2.fl" 1131 #line 186 "ast_expr2.fl" 1141 #line 192 "ast_expr2.fl" 1155 #line 202 "ast_expr2.fl" 1163 #line 208 "ast_expr2.fl" 1173 #line 215 "ast_expr2.fl" 1183 #line 221 "ast_expr2.fl" 1194 #line 230 "ast_expr2.fl" 1205 #line 238 "ast_expr2.fl" 1208 #line 1208 "ast_expr2f.c" 1216 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1249 yyg->
yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1266 if ( yy_next_state )
1270 yy_current_state = yy_next_state;
1278 goto yy_find_action;
1315 yyg->yytext_ptr + yy_amount_of_matched_text;
1331 goto yy_find_action;
1338 "fatal flex scanner internal error--no action found" );
1354 register char *source = yyg->yytext_ptr;
1355 register int number_to_move, i;
1360 "fatal flex scanner internal error--end of buffer missed" );
1384 number_to_move = (int) (yyg->
yy_c_buf_p - yyg->yytext_ptr) - 1;
1386 for ( i = 0; i < number_to_move; ++i )
1387 *(dest++) = *(source++);
1400 while ( num_to_read <= 0 )
1406 int yy_c_buf_p_offset =
1413 if ( new_size <= 0 )
1428 "fatal error - scanner input buffer overflow" );
1471 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1488 register char *
yy_cp;
1501 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1503 yy_current_state = (int)
yy_def[yy_current_state];
1504 if ( yy_current_state >= 63 )
1505 yy_c =
yy_meta[(
unsigned int) yy_c];
1507 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + (
unsigned int) yy_c];
1510 return yy_current_state;
1520 register int yy_is_jam;
1530 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1532 yy_current_state = (int)
yy_def[yy_current_state];
1533 if ( yy_current_state >= 63 )
1534 yy_c =
yy_meta[(
unsigned int) yy_c];
1536 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + (
unsigned int) yy_c];
1537 yy_is_jam = (yy_current_state == 62);
1539 return yy_is_jam ? 0 : yy_current_state;
1544 register char *
yy_cp;
1552 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->
yy_ch_buf + 2 )
1555 register int number_to_move = yyg->
yy_n_chars + 2;
1558 register char *source =
1562 *--dest = *--source;
1564 yy_cp += (int) (dest - source);
1565 yy_bp += (int) (dest - source);
1569 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->
yy_ch_buf + 2 )
1573 *--yy_cp = (char) c;
1575 yyg->yytext_ptr =
yy_bp;
1582 static int yyinput (
yyscan_t yyscanner)
1605 int offset = yyg->
yy_c_buf_p - yyg->yytext_ptr;
1634 return yyinput(yyscanner);
1636 return input(yyscanner);
1731 YY_FATAL_ERROR(
"out of dynamic memory in ast_yy_create_buffer()" );
1740 YY_FATAL_ERROR(
"out of dynamic memory in ast_yy_create_buffer()" );
1770 extern int isatty (
int );
1839 if (new_buffer ==
NULL)
1903 YY_FATAL_ERROR(
"out of dynamic memory in ast_yyensure_buffer_stack()" );
1923 YY_FATAL_ERROR(
"out of dynamic memory in ast_yyensure_buffer_stack()" );
1949 YY_FATAL_ERROR(
"out of dynamic memory in ast_yy_scan_buffer()" );
1995 n = _yybytes_len + 2;
1998 YY_FATAL_ERROR(
"out of dynamic memory in ast_yy_scan_bytes()" );
2000 for ( i = 0; i < _yybytes_len; ++i )
2001 buf[i] = yybytes[i];
2017 #ifndef YY_EXIT_FAILURE 2018 #define YY_EXIT_FAILURE 2 2023 (void) fprintf( stderr,
"%s\n", msg );
2034 int yyless_macro_arg = (n); \ 2035 YY_LESS_LINENO(yyless_macro_arg);\ 2036 yytext[yyleng] = yyg->yy_hold_char; \ 2037 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \ 2038 yyg->yy_hold_char = *yyg->yy_c_buf_p; \ 2039 *yyg->yy_c_buf_p = '\0'; \ 2040 yyleng = yyless_macro_arg; \ 2138 yy_fatal_error(
"ast_yyset_lineno called with no buffer" , yyscanner);
2153 yy_fatal_error(
"ast_yyset_column called with no buffer" , yyscanner);
2224 if (ptr_yy_globals ==
NULL){
2231 if (*ptr_yy_globals ==
NULL){
2237 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
2257 if (ptr_yy_globals ==
NULL){
2264 if (*ptr_yy_globals ==
NULL){
2271 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
2346 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n ,
yyscan_t yyscanner)
2349 for ( i = 0; i < n; ++i )
2354 #ifdef YY_NEED_STRLEN 2358 for ( n = 0; s[n]; ++n )
2367 return (
void *)
malloc( size );
2379 return (
void *)
realloc( (
char *) ptr, size );
2382 #define YYTABLES_NAME "yytables" 2384 #line 238 "ast_expr2.fl" 2402 free( (
char *) ptr );
2408 int return_value = 0;
2427 res_length = snprintf(buf, length,
FP___PRINTF, io.val->u.i);
2428 return_value = (res_length <= length) ? res_length : length;
2431 #if defined(STANDALONE) || defined(LOW_MEMORY) || defined(STANDALONE) 2432 strncpy(buf, io.val->u.s, length - 1);
2438 return_value = strlen(buf);
2443 return return_value;
2461 }
else if (io.val->u.s) {
2479 extra_error_message_supplied=1;
2480 strcpy(extra_error_message, message);
2485 extra_error_message_supplied=0;
2486 extra_error_message[0] = 0;
2551 for (p=mess; *p; p++) {
2552 for (i=0; i<expr2_token_equivs_entries; i++) {
2553 if ( strncmp(p,expr2_token_equivs1[i],strlen(expr2_token_equivs1[i])) == 0 )
2555 len+=strlen(expr2_token_equivs2[i])+2;
2556 p += strlen(expr2_token_equivs1[i])-1;
2562 res = (
char*)
malloc(len+1);
2567 for (i=0; i<expr2_token_equivs_entries; i++) {
2568 if ( strncmp(p,expr2_token_equivs1[i],strlen(expr2_token_equivs1[i])) == 0 ) {
2570 for (t=expr2_token_equivs2[i]; *t;) {
2574 p += strlen(expr2_token_equivs1[i]);
2589 char spacebuf[8000];
2609 spacebuf[i++] =
'^';
2614 printf(
"ast_yyerror(): %s syntax error: %s; Input:\n%s\n%s\n",
2615 (extra_error_message_supplied ? extra_error_message :
""), s2, parseio->
string, spacebuf);
2618 (extra_error_message_supplied ? extra_error_message :
""), s2, parseio->
string, spacebuf);
2621 ast_log(
LOG_WARNING,
"If you have questions, please refer to https://wiki.asterisk.org/wiki/display/AST/Channel+Variables\n");
int ast_yyget_leng(yyscan_t yyscanner)
#define YY_FATAL_ERROR(msg)
void ast_expr_clear_extra_error_info(void)
void ast_yy_switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
void ast_yyset_out(FILE *out_str, yyscan_t yyscanner)
Main Channel structure associated with a channel.
int ast_yylex_init_extra(YY_EXTRA_TYPE user_defined, yyscan_t *scanner)
Asterisk main include file. File version handling, generic pbx functions.
void ast_yyset_column(int column_no, yyscan_t yyscanner)
String manipulation functions.
#define YY_DO_BEFORE_ACTION
void * ast_yyalloc(yy_size_t, yyscan_t yyscanner)
YY_EXTRA_TYPE ast_yyget_extra(yyscan_t yyscanner)
static int yy_init_globals(yyscan_t yyscanner)
YY_BUFFER_STATE ast_yy_create_buffer(FILE *file, int size, yyscan_t yyscanner)
unsigned short int flex_uint16_t
YYLTYPE * ast_yyget_lloc(yyscan_t yyscanner)
void ast_yy_flush_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner)
static yy_state_type yy_try_NUL_trans(yy_state_type current_state, yyscan_t yyscanner)
FILE * ast_yyget_out(yyscan_t yyscanner)
YY_BUFFER_STATE ast_yy_scan_bytes(yyconst char *bytes, int len, yyscan_t yyscanner)
char extra_error_message[4095]
YY_BUFFER_STATE ast_yy_scan_string(yyconst char *yy_str, yyscan_t yyscanner)
#define YY_STATE_EOF(state)
int ast_yylex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner)
#define EOB_ACT_END_OF_FILE
int ast_str_expr(struct ast_str **str, ssize_t maxlen, struct ast_channel *chan, char *expr)
Evaluate the given expression.
static int input(yyscan_t yyscanner)
YY_BUFFER_STATE * yy_buffer_stack
#define EOB_ACT_CONTINUE_SCAN
void * ast_yyrealloc(void *, yy_size_t, yyscan_t yyscanner)
void ast_yyset_extra(YY_EXTRA_TYPE user_defined, yyscan_t yyscanner)
struct ast_channel * chan
#define YY_RESTORE_YY_MORE_OFFSET
void ast_yyset_lval(YYSTYPE *yylval_param, yyscan_t yyscanner)
#define YY_END_OF_BUFFER_CHAR
int ast_str_set(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Set a dynamic string using variable arguments.
void ast_expr_register_extra_error_info(char *message)
#define YY_BUFFER_EOF_PENDING
General Asterisk PBX channel definitions.
int ast_yylex_init(yyscan_t *scanner)
static const char *const expr2_token_equivs1[]
static const char *const expr2_token_equivs2[]
void ast_yyset_debug(int debug_flag, yyscan_t yyscanner)
char * ast_yyget_text(yyscan_t yyscanner)
int ast_yyerror(const char *, YYLTYPE *, struct parse_io *)
static void yy_fatal_error(yyconst char msg[], yyscan_t yyscanner)
int yy_did_buffer_switch_on_eof
void ast_yyset_lineno(int line_number, yyscan_t yyscanner)
void ast_yyrestart(FILE *input_file, yyscan_t yyscanner)
The descriptor of a dynamic string XXX storage will be optimized later if needed We use the ts field ...
static yyconst flex_int16_t yy_chk[159]
static yyconst flex_int16_t yy_base[70]
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
int ast_expr(char *expr, char *buf, int length, struct ast_channel *chan)
Evaluate the given expression.
char * yy_last_accepting_cpos
void ast_yypop_buffer_state(yyscan_t yyscanner)
int ast_yylex_destroy(yyscan_t yyscanner)
static yy_state_type yy_get_previous_state(yyscan_t yyscanner)
void ast_yyset_in(FILE *in_str, yyscan_t yyscanner)
#define YY_CURRENT_BUFFER
static int yy_get_next_buffer(yyscan_t yyscanner)
unsigned char flex_uint8_t
FILE * ast_yyget_in(yyscan_t yyscanner)
static void ast_yy_load_buffer_state(yyscan_t yyscanner)
unsigned int flex_uint32_t
struct yy_buffer_state * YY_BUFFER_STATE
void ast_yyfree(void *, yyscan_t yyscanner)
static char * expr2_token_subst(const char *mess)
Support for logging to various files, console and syslog Configuration in file logger.conf.
int ast_yyget_debug(yyscan_t yyscanner)
#define YY_CURRENT_BUFFER_LVALUE
#define SET_NUMERIC_STRING
void ast_yy_delete_buffer(YY_BUFFER_STATE b, yyscan_t yyscanner)
size_t ast_str_strlen(const struct ast_str *buf)
Returns the current length of the string stored within buf.
static yyconst flex_int32_t yy_meta[29]
#define YY_INPUT(buf, result, max_size)
static void yyunput(int c, char *buf_ptr, yyscan_t yyscanner)
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
static yyconst flex_int16_t yy_nxt[159]
void ast_yypush_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
int ast_yyget_column(yyscan_t yyscanner)
static void ast_yyensure_buffer_stack(yyscan_t yyscanner)
size_t yy_buffer_stack_max
YY_BUFFER_STATE ast_yy_scan_buffer(char *base, yy_size_t size, yyscan_t yyscanner)
YYSTYPE * ast_yyget_lval(yyscan_t yyscanner)
yy_state_type yy_last_accepting_state
int extra_error_message_supplied
int ast_yyget_lineno(yyscan_t yyscanner)
static void ast_yy_init_buffer(YY_BUFFER_STATE b, FILE *file, yyscan_t yyscanner)
size_t yy_buffer_stack_top
void ast_yyset_lloc(YYLTYPE *yylloc_param, yyscan_t yyscanner)
static yyconst flex_int32_t yy_ec[256]
static yyconst flex_int16_t yy_accept[63]
static yyconst flex_int16_t yy_def[70]
#define EOB_ACT_LAST_MATCH