7 #define YY_INT_ALIGNED short int
12 #define YY_FLEX_MAJOR_VERSION 2
13 #define YY_FLEX_MINOR_VERSION 5
14 #define YY_FLEX_SUBMINOR_VERSION 35
15 #if YY_FLEX_SUBMINOR_VERSION > 0
36 #if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
41 #ifndef __STDC_LIMIT_MACROS
42 #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)
100 #if defined (__STDC__)
108 #define yyconst const
121 #define YY_SC_TO_UI(c) ((unsigned int) (unsigned char) c)
124 #ifndef YY_TYPEDEF_YY_SCANNER_T
125 #define YY_TYPEDEF_YY_SCANNER_T
131 #define yyin yyg->yyin_r
132 #define yyout yyg->yyout_r
133 #define yyextra yyg->yyextra_r
134 #define yyleng yyg->yyleng_r
135 #define yytext yyg->yytext_r
136 #define yylineno (YY_CURRENT_BUFFER_LVALUE->yy_bs_lineno)
137 #define yycolumn (YY_CURRENT_BUFFER_LVALUE->yy_bs_column)
138 #define yy_flex_debug yyg->yy_flex_debug_r
144 #define BEGIN yyg->yy_start = 1 + 2 *
150 #define YY_START ((yyg->yy_start - 1) / 2)
151 #define YYSTATE YY_START
154 #define YY_STATE_EOF(state) (YY_END_OF_BUFFER + state + 1)
157 #define YY_NEW_FILE ast_yyrestart(yyin ,yyscanner )
159 #define YY_END_OF_BUFFER_CHAR 0
163 #define YY_BUF_SIZE 16384
168 #define YY_STATE_BUF_SIZE ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
170 #ifndef YY_TYPEDEF_YY_BUFFER_STATE
171 #define YY_TYPEDEF_YY_BUFFER_STATE
175 #define EOB_ACT_CONTINUE_SCAN 0
176 #define EOB_ACT_END_OF_FILE 1
177 #define EOB_ACT_LAST_MATCH 2
179 #define YY_LESS_LINENO(n)
186 int yyless_macro_arg = (n); \
187 YY_LESS_LINENO(yyless_macro_arg);\
188 *yy_cp = yyg->yy_hold_char; \
189 YY_RESTORE_YY_MORE_OFFSET \
190 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
191 YY_DO_BEFORE_ACTION; \
195 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
197 #ifndef YY_TYPEDEF_YY_SIZE_T
198 #define YY_TYPEDEF_YY_SIZE_T
202 #ifndef YY_STRUCT_YY_BUFFER_STATE
203 #define YY_STRUCT_YY_BUFFER_STATE
250 #define YY_BUFFER_NEW 0
251 #define YY_BUFFER_NORMAL 1
262 #define YY_BUFFER_EOF_PENDING 2
273 #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
274 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
280 #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
294 #define YY_FLUSH_BUFFER ast_yy_flush_buffer(YY_CURRENT_BUFFER ,yyscanner)
304 #define yy_new_buffer ast_yy_create_buffer
306 #define yy_set_interactive(is_interactive) \
308 if ( ! YY_CURRENT_BUFFER ){ \
309 ast_yyensure_buffer_stack (yyscanner); \
310 YY_CURRENT_BUFFER_LVALUE = \
311 ast_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner); \
313 YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
316 #define yy_set_bol(at_bol) \
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_at_bol = at_bol; \
326 #define YY_AT_BOL() (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
330 #define ast_yywrap(n) 1
331 #define YY_SKIP_YYWRAP
337 #define yytext_ptr yytext_r
347 #define YY_DO_BEFORE_ACTION \
348 yyg->yytext_ptr = yy_bp; \
349 yyg->yytext_ptr -= yyg->yy_more_len; \
350 yyleng = (size_t) (yy_cp - yyg->yytext_ptr); \
351 yyg->yy_hold_char = *yy_cp; \
353 yyg->yy_c_buf_p = yy_cp;
355 #define YY_NUM_RULES 38
356 #define YY_END_OF_BUFFER 39
366 0, 0, 0, 0, 35, 35, 39, 38, 27, 29,
367 21, 38, 31, 38, 19, 2, 24, 25, 17, 14,
368 15, 16, 18, 30, 22, 10, 3, 9, 20, 1,
369 38, 38, 34, 33, 35, 37, 37, 13, 0, 28,
370 31, 0, 26, 5, 31, 30, 23, 12, 6, 7,
371 11, 4, 8, 0, 34, 33, 35, 0, 36, 32,
377 1, 1, 1, 1, 1, 1, 1, 1, 2, 3,
378 1, 1, 2, 1, 1, 1, 1, 1, 1, 1,
379 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
380 1, 2, 4, 5, 6, 7, 8, 9, 6, 10,
381 11, 12, 13, 14, 15, 16, 17, 18, 18, 18,
382 18, 18, 18, 18, 18, 18, 18, 19, 6, 20,
383 21, 22, 23, 6, 6, 6, 6, 6, 6, 6,
384 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
385 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
386 1, 6, 1, 6, 6, 1, 6, 6, 6, 6,
388 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
389 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
390 6, 6, 24, 25, 26, 27, 1, 28, 28, 28,
391 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
392 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
393 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
394 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
395 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
396 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
397 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
399 28, 28, 28, 28, 28, 28, 28, 28, 28, 28,
400 28, 28, 28, 28, 28, 28, 28, 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,
409 1, 2, 2, 2, 1, 3, 3, 2, 2, 2,
410 2, 2, 2, 1, 2, 3, 2, 3, 2, 2,
411 2, 2, 2, 1, 2, 1, 1, 3
416 0, 0, 5, 6, 32, 60, 73, 130, 130, 130,
417 51, 66, 63, 45, 130, 59, 130, 130, 130, 130,
418 130, 130, 130, 83, 45, 42, 13, 41, 130, 32,
419 28, 17, 130, 130, 47, 130, 29, 130, 47, 130,
420 44, 25, 130, 130, 29, 0, 130, 130, 130, 130,
421 130, 130, 130, 18, 130, 130, 38, 12, 130, 130,
422 0, 130, 111, 114, 117, 32, 120, 123, 126
427 62, 1, 63, 63, 64, 64, 62, 62, 62, 62,
428 62, 65, 66, 67, 62, 62, 62, 62, 62, 62,
429 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
430 62, 68, 62, 62, 69, 62, 62, 62, 65, 62,
431 66, 67, 62, 62, 41, 24, 62, 62, 62, 62,
432 62, 62, 62, 68, 62, 62, 69, 62, 62, 62,
433 45, 0, 62, 62, 62, 62, 62, 62, 62
438 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
439 18, 19, 20, 21, 22, 13, 23, 24, 25, 26,
440 27, 28, 29, 8, 30, 8, 31, 13, 33, 33,
441 34, 34, 35, 49, 41, 59, 35, 35, 37, 50,
442 55, 55, 56, 56, 58, 35, 61, 35, 60, 35,
443 42, 40, 59, 58, 53, 35, 52, 35, 35, 35,
444 35, 51, 48, 47, 35, 35, 37, 44, 43, 42,
445 40, 38, 62, 35, 62, 35, 62, 35, 62, 62,
446 62, 62, 62, 35, 62, 35, 35, 35, 41, 42,
447 62, 62, 62, 62, 62, 62, 62, 62, 45, 62,
449 46, 62, 62, 62, 62, 62, 62, 62, 62, 62,
450 41, 32, 32, 32, 36, 36, 36, 39, 39, 39,
451 41, 41, 41, 54, 54, 54, 57, 62, 57, 7,
452 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
453 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
454 62, 62, 62, 62, 62, 62, 62, 62
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, 3, 4,
462 3, 4, 5, 27, 66, 58, 5, 5, 5, 27,
463 32, 54, 32, 54, 57, 5, 45, 5, 42, 5,
464 41, 39, 37, 35, 31, 5, 30, 5, 5, 5,
465 6, 28, 26, 25, 6, 6, 6, 16, 14, 13,
466 12, 11, 7, 6, 0, 6, 0, 6, 0, 0,
467 0, 0, 0, 6, 0, 6, 6, 6, 24, 24,
468 0, 0, 0, 0, 0, 0, 0, 0, 24, 0,
470 24, 0, 0, 0, 0, 0, 0, 0, 0, 0,
471 24, 63, 63, 63, 64, 64, 64, 65, 65, 65,
472 67, 67, 67, 68, 68, 68, 69, 0, 69, 62,
473 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
474 62, 62, 62, 62, 62, 62, 62, 62, 62, 62,
475 62, 62, 62, 62, 62, 62, 62, 62
481 #define REJECT reject_used_but_not_detected
482 #define yymore() (yyg->yy_more_flag = 1)
483 #define YY_MORE_ADJ yyg->yy_more_len
484 #define YY_RESTORE_YY_MORE_OFFSET
485 #line 1 "ast_expr2.fl"
486 #line 2 "ast_expr2.fl"
510 #include <sys/types.h>
513 #if !defined(STANDALONE)
517 #define __USE_ISOC99 1
522 #define FP___PRINTF "%.18Lg"
523 #define FP___FMOD fmodl
524 #define FP___STRTOD strtold
525 #define FP___TYPE long double
527 #define FP___PRINTF "%.16g"
528 #define FP___FMOD fmod
529 #define FP___STRTOD strtod
530 #define FP___TYPE double
537 #if !defined(SOLARIS) && !defined(__CYGWIN__)
540 #define quad_t int64_t
555 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
572 #define SET_COLUMNS do { \
573 yylloc_param->first_column = (int)(yyg->yytext_r - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf); \
574 yylloc_param->last_column += yyleng - 1; \
575 yylloc_param->first_line = yylloc_param->last_line = 1; \
578 #define SET_STRING do { \
579 yylval_param->val = calloc(1, sizeof(struct val)); \
580 yylval_param->val->type = AST_EXPR_string; \
581 yylval_param->val->u.s = strdup(yytext); \
584 #define SET_NUMERIC_STRING do { \
585 yylval_param->val = calloc(1, sizeof(struct val)); \
586 yylval_param->val->type = AST_EXPR_numeric_string; \
587 yylval_param->val->u.s = strdup(yytext); \
603 #line 602 "ast_expr2f.c"
609 #ifndef YY_NO_UNISTD_H
617 #ifndef YY_EXTRA_TYPE
618 #define YY_EXTRA_TYPE void *
663 # define yylval yyg->yylval_r
665 # define yylloc yyg->yylloc_r
716 #ifndef YY_SKIP_YYWRAP
727 static void yy_flex_strncpy (
char *,
yyconst char *,
int ,
yyscan_t yyscanner);
730 #ifdef YY_NEED_STRLEN
737 static int yyinput (
yyscan_t yyscanner );
745 #ifndef YY_READ_BUF_SIZE
746 #define YY_READ_BUF_SIZE 8192
754 #define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
761 #define YY_INPUT(buf,result,max_size) \
762 if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
766 for ( n = 0; n < max_size && \
767 (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
770 buf[n++] = (char) c; \
771 if ( c == EOF && ferror( yyin ) ) \
772 YY_FATAL_ERROR( "input in flex scanner failed" ); \
778 while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
780 if( errno != EINTR) \
782 YY_FATAL_ERROR( "input in flex scanner failed" ); \
798 #define yyterminate() return YY_NULL
802 #ifndef YY_START_STACK_INCR
803 #define YY_START_STACK_INCR 25
807 #ifndef YY_FATAL_ERROR
808 #define YY_FATAL_ERROR(msg) yy_fatal_error( msg , yyscanner)
817 #define YY_DECL_IS_OURS 1
822 #define YY_DECL int ast_yylex \
823 (YYSTYPE * yylval_param, YYLTYPE * yylloc_param , yyscan_t yyscanner)
829 #ifndef YY_USER_ACTION
830 #define YY_USER_ACTION
835 #define YY_BREAK break;
838 #define YY_RULE_SETUP \
850 #line 130 "ast_expr2.fl"
853 #line 852 "ast_expr2f.c"
913 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
915 yy_current_state = (int)
yy_def[yy_current_state];
916 if ( yy_current_state >= 63 )
917 yy_c =
yy_meta[(
unsigned int) yy_c];
919 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + (
unsigned int) yy_c];
922 while ( yy_current_state != 62 );
944 #line 132 "ast_expr2.fl"
949 #line 133 "ast_expr2.fl"
954 #line 134 "ast_expr2.fl"
959 #line 135 "ast_expr2.fl"
964 #line 136 "ast_expr2.fl"
969 #line 137 "ast_expr2.fl"
974 #line 138 "ast_expr2.fl"
979 #line 139 "ast_expr2.fl"
984 #line 140 "ast_expr2.fl"
989 #line 141 "ast_expr2.fl"
994 #line 142 "ast_expr2.fl"
999 #line 143 "ast_expr2.fl"
1004 #line 144 "ast_expr2.fl"
1009 #line 145 "ast_expr2.fl"
1014 #line 146 "ast_expr2.fl"
1019 #line 147 "ast_expr2.fl"
1024 #line 148 "ast_expr2.fl"
1029 #line 149 "ast_expr2.fl"
1034 #line 150 "ast_expr2.fl"
1039 #line 151 "ast_expr2.fl"
1044 #line 152 "ast_expr2.fl"
1049 #line 153 "ast_expr2.fl"
1054 #line 154 "ast_expr2.fl"
1059 #line 155 "ast_expr2.fl"
1064 #line 156 "ast_expr2.fl"
1069 #line 157 "ast_expr2.fl"
1082 #line 167 "ast_expr2.fl"
1088 #line 168 "ast_expr2.fl"
1094 #line 170 "ast_expr2.fl"
1099 #line 171 "ast_expr2.fl"
1112 #line 180 "ast_expr2.fl"
1122 #line 186 "ast_expr2.fl"
1132 #line 192 "ast_expr2.fl"
1135 if (curlycount < 0) {
1146 #line 202 "ast_expr2.fl"
1154 #line 208 "ast_expr2.fl"
1164 #line 215 "ast_expr2.fl"
1174 #line 221 "ast_expr2.fl"
1185 #line 230 "ast_expr2.fl"
1196 #line 238 "ast_expr2.fl"
1199 #line 1198 "ast_expr2f.c"
1207 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1240 yyg->
yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1257 if ( yy_next_state )
1261 yy_current_state = yy_next_state;
1269 goto yy_find_action;
1306 yyg->yytext_ptr + yy_amount_of_matched_text;
1322 goto yy_find_action;
1329 "fatal flex scanner internal error--no action found" );
1345 register char *source = yyg->yytext_ptr;
1346 register int number_to_move, i;
1351 "fatal flex scanner internal error--end of buffer missed" );
1375 number_to_move = (int) (yyg->
yy_c_buf_p - yyg->yytext_ptr) - 1;
1377 for ( i = 0; i < number_to_move; ++i )
1378 *(dest++) = *(source++);
1391 while ( num_to_read <= 0 )
1397 int yy_c_buf_p_offset =
1404 if ( new_size <= 0 )
1419 "fatal error - scanner input buffer overflow" );
1462 YY_FATAL_ERROR(
"out of dynamic memory in yy_get_next_buffer()" );
1479 register char *
yy_cp;
1492 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1494 yy_current_state = (int)
yy_def[yy_current_state];
1495 if ( yy_current_state >= 63 )
1496 yy_c =
yy_meta[(
unsigned int) yy_c];
1498 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + (
unsigned int) yy_c];
1501 return yy_current_state;
1511 register int yy_is_jam;
1521 while (
yy_chk[
yy_base[yy_current_state] + yy_c] != yy_current_state )
1523 yy_current_state = (int)
yy_def[yy_current_state];
1524 if ( yy_current_state >= 63 )
1525 yy_c =
yy_meta[(
unsigned int) yy_c];
1527 yy_current_state =
yy_nxt[
yy_base[yy_current_state] + (
unsigned int) yy_c];
1528 yy_is_jam = (yy_current_state == 62);
1530 return yy_is_jam ? 0 : yy_current_state;
1535 register char *
yy_cp;
1543 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1546 register int number_to_move = yyg->
yy_n_chars + 2;
1549 register char *source =
1553 *--dest = *--source;
1555 yy_cp += (int) (dest - source);
1556 yy_bp += (int) (dest - source);
1560 if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
1564 *--yy_cp = (char) c;
1566 yyg->yytext_ptr =
yy_bp;
1573 static int yyinput (
yyscan_t yyscanner)
1596 int offset = yyg->
yy_c_buf_p - yyg->yytext_ptr;
1625 return yyinput(yyscanner);
1627 return input(yyscanner);
1722 YY_FATAL_ERROR(
"out of dynamic memory in ast_yy_create_buffer()" );
1731 YY_FATAL_ERROR(
"out of dynamic memory in ast_yy_create_buffer()" );
1761 extern int isatty (
int );
1830 if (new_buffer == NULL)
1894 YY_FATAL_ERROR(
"out of dynamic memory in ast_yyensure_buffer_stack()" );
1914 YY_FATAL_ERROR(
"out of dynamic memory in ast_yyensure_buffer_stack()" );
1940 YY_FATAL_ERROR(
"out of dynamic memory in ast_yy_scan_buffer()" );
1986 n = _yybytes_len + 2;
1989 YY_FATAL_ERROR(
"out of dynamic memory in ast_yy_scan_bytes()" );
1991 for ( i = 0; i < _yybytes_len; ++i )
1992 buf[i] = yybytes[i];
2008 #ifndef YY_EXIT_FAILURE
2009 #define YY_EXIT_FAILURE 2
2014 (void) fprintf( stderr,
"%s\n", msg );
2025 int yyless_macro_arg = (n); \
2026 YY_LESS_LINENO(yyless_macro_arg);\
2027 yytext[yyleng] = yyg->yy_hold_char; \
2028 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2029 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2030 *yyg->yy_c_buf_p = '\0'; \
2031 yyleng = yyless_macro_arg; \
2129 yy_fatal_error(
"ast_yyset_lineno called with no buffer" , yyscanner);
2144 yy_fatal_error(
"ast_yyset_column called with no buffer" , yyscanner);
2215 if (ptr_yy_globals == NULL){
2222 if (*ptr_yy_globals == NULL){
2228 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
2248 if (ptr_yy_globals == NULL){
2255 if (*ptr_yy_globals == NULL){
2262 memset(*ptr_yy_globals,0x00,
sizeof(
struct yyguts_t));
2337 static void yy_flex_strncpy (
char* s1,
yyconst char * s2,
int n ,
yyscan_t yyscanner)
2340 for ( i = 0; i < n; ++i )
2345 #ifdef YY_NEED_STRLEN
2349 for ( n = 0; s[n]; ++n )
2358 return (
void *)
malloc( size );
2370 return (
void *)
realloc( (
char *) ptr, size );
2373 #define YYTABLES_NAME "yytables"
2375 #line 238 "ast_expr2.fl"
2393 free( (
char *) ptr );
2399 int return_value = 0;
2419 return_value = (res_length <= length) ? res_length : length;
2422 #if defined(STANDALONE) || defined(LOW_MEMORY) || defined(STANDALONE)
2423 strncpy(buf, io.
val->
u.
s, length - 1);
2429 return_value = strlen(buf);
2434 return return_value;
2453 }
else if (io.
val->
u.
s) {
2471 extra_error_message_supplied=1;
2472 strcpy(extra_error_message, message);
2477 extra_error_message_supplied=0;
2478 extra_error_message[0] = 0;
2543 for (p=mess; *p; p++) {
2544 for (i=0; i<expr2_token_equivs_entries; i++) {
2545 if ( strncmp(p,expr2_token_equivs1[i],strlen(expr2_token_equivs1[i])) == 0 )
2547 len+=strlen(expr2_token_equivs2[i])+2;
2548 p += strlen(expr2_token_equivs1[i])-1;
2554 res = (
char*)
malloc(len+1);
2559 for (i=0; i<expr2_token_equivs_entries; i++) {
2560 if ( strncmp(p,expr2_token_equivs1[i],strlen(expr2_token_equivs1[i])) == 0 ) {
2562 for (t=expr2_token_equivs2[i]; *t;) {
2566 p += strlen(expr2_token_equivs1[i]);
2581 char spacebuf[8000];
2582 char spacebuf2[8000];
2603 printf(
"ast_yyerror(): %s syntax error: %s; Input:\n%s\n%s\n",
2604 (extra_error_message_supplied?extra_error_message:
""), s2, parseio->
string,spacebuf2);
2607 (extra_error_message_supplied?extra_error_message:
""), s2, parseio->
string,spacebuf2);
2610 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_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)
struct parse_io * parseio
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)
YY_BUFFER_STATE ast_yy_scan_string(yyconst char *yy_str, yyscan_t yyscanner)
int extra_error_message_supplied
#define YY_STATE_EOF(state)
int ast_yylex(YYSTYPE *yylval_param, YYLTYPE *yylloc_param, yyscan_t yyscanner)
#define EOB_ACT_END_OF_FILE
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)
#define YY_RESTORE_YY_MORE_OFFSET
struct ast_channel * chan
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.
#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)
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_expr_clear_extra_error_info(void)
void ast_yyrestart(FILE *input_file, yyscan_t yyscanner)
char extra_error_message[4095]
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)
char * yy_last_accepting_cpos
void ast_yypop_buffer_state(yyscan_t yyscanner)
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
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)
void ast_expr_register_extra_error_info(char *errmsg)
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
int ast_str_expr(struct ast_str **str, ssize_t maxlen, struct ast_channel *chan, char *expr)
Evaluate the given expression.
#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 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)
int ast_expr(char *expr, char *buf, int length, struct ast_channel *chan)
Evaluate the given expression.
static yyconst flex_int32_t yy_ec[256]
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.
static YYSIZE_T const char * yystr
static yyconst flex_int16_t yy_accept[63]
static yyconst flex_int16_t yy_def[70]
#define EOB_ACT_LAST_MATCH