Home | History | Annotate | Download | only in compiler

Lines Matching refs:yyg

138 #define yyin yyg->yyin_r
139 #define yyout yyg->yyout_r
140 #define yyextra yyg->yyextra_r
141 #define yyleng yyg->yyleng_r
142 #define yytext yyg->yytext_r
145 #define yy_flex_debug yyg->yy_flex_debug_r
151 #define BEGIN yyg->yy_start = 1 + 2 *
157 #define YY_START ((yyg->yy_start - 1) / 2)
208 *yy_cp = yyg->yy_hold_char; \
210 yyg->yy_c_buf_p = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
215 #define unput(c) yyunput( c, yyg->yytext_ptr , yyscanner )
293 #define YY_CURRENT_BUFFER ( yyg->yy_buffer_stack \
294 ? yyg->yy_buffer_stack[yyg->yy_buffer_stack_top] \
300 #define YY_CURRENT_BUFFER_LVALUE yyg->yy_buffer_stack[yyg->yy_buffer_stack_top]
368 yyg->yytext_ptr = yy_bp; \
370 yyg->yy_hold_char = *yy_cp; \
372 yyg->yy_c_buf_p = yy_cp;
827 # define yylval yyg->yylval_r
1006 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1014 if ( !yyg->yy_init )
1016 yyg->yy_init = 1;
1022 if ( ! yyg->yy_start )
1023 yyg->yy_start = 1; /* first start state */
1042 yy_cp = yyg->yy_c_buf_p;
1045 *yy_cp = yyg->yy_hold_char;
1052 yy_current_state = yyg->yy_start;
1059 yyg->yy_last_accepting_state = yy_current_state;
1060 yyg->yy_last_accepting_cpos = yy_cp;
1072 yy_cp = yyg->yy_last_accepting_cpos;
1073 yy_current_state = yyg->yy_last_accepting_state;
1098 *yy_cp = yyg->yy_hold_char;
1099 yy_cp = yyg->yy_last_accepting_cpos;
1100 yy_current_state = yyg->yy_last_accepting_state;
1699 int yy_amount_of_matched_text = (int) (yy_cp - yyg->yytext_ptr) - 1;
1702 *yy_cp = yyg->yy_hold_char;
1716 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1728 if ( yyg->yy_c_buf_p <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
1732 yyg->yy_c_buf_p = yyg->yytext_ptr + yy_amount_of_matched_text;
1747 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1752 yy_cp = ++yyg->yy_c_buf_p;
1759 yy_cp = yyg->yy_last_accepting_cpos;
1760 yy_current_state = yyg->yy_last_accepting_state;
1769 yyg->yy_did_buffer_switch_on_eof = 0;
1782 yyg->yy_c_buf_p = yyg->yytext_ptr + YY_MORE_ADJ;
1790 if ( ! yyg->yy_did_buffer_switch_on_eof )
1797 yyg->yy_c_buf_p =
1798 yyg->yytext_ptr + yy_amount_of_matched_text;
1802 yy_cp = yyg->yy_c_buf_p;
1803 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1807 yyg->yy_c_buf_p =
1808 &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars];
1812 yy_cp = yyg->yy_c_buf_p;
1813 yy_bp = yyg->yytext_ptr + YY_MORE_ADJ;
1835 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1837 register char *source = yyg->yytext_ptr;
1841 if ( yyg->yy_c_buf_p > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] )
1847 if ( yyg->yy_c_buf_p - yyg->yytext_ptr - YY_MORE_ADJ == 1 )
1867 number_to_move = (int) (yyg->yy_c_buf_p - yyg->yytext_ptr) - 1;
1876 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars = 0;
1890 (int) (yyg->yy_c_buf_p - b->yy_ch_buf);
1913 yyg->yy_c_buf_p = &b->yy_ch_buf[yy_c_buf_p_offset];
1925 yyg->yy_n_chars, (size_t) num_to_read );
1927 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
1930 if ( yyg->yy_n_chars == 0 )
1949 if ((yy_size_t) (yyg->yy_n_chars + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
1951 yy_size_t new_size = yyg->yy_n_chars + number_to_move + (yyg->yy_n_chars >> 1);
1957 yyg->yy_n_chars += number_to_move;
1958 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] = YY_END_OF_BUFFER_CHAR;
1959 YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars + 1] = YY_END_OF_BUFFER_CHAR;
1961 yyg->yytext_ptr = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
1972 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1974 yy_current_state = yyg->yy_start;
1976 for ( yy_cp = yyg->yytext_ptr + YY_MORE_ADJ; yy_cp < yyg->yy_c_buf_p; ++yy_cp )
1981 yyg->yy_last_accepting_state = yy_current_state;
1982 yyg->yy_last_accepting_cpos = yy_cp;
2004 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; /* This var may be unused depending upon options. */
2005 register char *yy_cp = yyg->yy_c_buf_p;
2010 yyg->yy_last_accepting_state = yy_current_state;
2011 yyg->yy_last_accepting_cpos = yy_cp;
2034 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2036 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2038 if ( *yyg->yy_c_buf_p == YY_END_OF_BUFFER_CHAR )
2044 if ( yyg->yy_c_buf_p < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[yyg->yy_n_chars] )
2046 *yyg->yy_c_buf_p = '\0';
2050 int offset = yyg->yy_c_buf_p - yyg->yytext_ptr;
2051 ++yyg->yy_c_buf_p;
2076 if ( ! yyg->yy_did_buffer_switch_on_eof )
2086 yyg->yy_c_buf_p = yyg->yytext_ptr + offset;
2092 c = *(unsigned char *) yyg->yy_c_buf_p; /* cast for 8-bit char's */
2093 *yyg->yy_c_buf_p = '\0'; /* preserve yytext */
2094 yyg->yy_hold_char = *++yyg->yy_c_buf_p;
2114 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2132 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2146 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2147 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2148 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2159 yyg->yy_did_buffer_switch_on_eof = 1;
2164 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2165 yyg->yy_n_chars = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2166 yyg->yytext_ptr = yyg->yy_c_buf_p = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2168 yyg->yy_hold_char = *yyg->yy_c_buf_p;
2207 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2229 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2256 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2286 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2296 *yyg->yy_c_buf_p = yyg->yy_hold_char;
2297 YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
2298 YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
2303 yyg->yy_buffer_stack_top++;
2308 yyg->yy_did_buffer_switch_on_eof = 1;
2317 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2323 if (yyg->yy_buffer_stack_top > 0)
2324 --yyg->yy_buffer_stack_top;
2328 yyg->yy_did_buffer_switch_on_eof = 1;
2338 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2340 if (!yyg->yy_buffer_stack) {
2347 yyg->yy_buffer_stack = (struct yy_buffer_state**)yyalloc
2350 if ( ! yyg->yy_buffer_stack )
2353 memset(yyg->yy_buffer_stack, 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2355 yyg->yy_buffer_stack_max = num_to_alloc;
2356 yyg->yy_buffer_stack_top = 0;
2360 if (yyg->yy_buffer_stack_top >= (yyg->yy_buffer_stack_max) - 1){
2365 num_to_alloc = yyg->yy_buffer_stack_max + grow_size;
2366 yyg->yy_buffer_stack = (struct yy_buffer_state**)yyrealloc
2367 (yyg->yy_buffer_stack,
2370 if ( ! yyg->yy_buffer_stack )
2374 memset(yyg->yy_buffer_stack + yyg->yy_buffer_stack_max, 0, grow_size * sizeof(struct yy_buffer_state*));
2375 yyg->yy_buffer_stack_max = num_to_alloc;
2467 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2468 if ( yyg->yy_start_stack_ptr >= yyg->yy_start_stack_depth )
2472 yyg->yy_start_stack_depth += YY_START_STACK_INCR;
2473 new_size = yyg->yy_start_stack_depth * sizeof( int );
2475 if ( ! yyg->yy_start_stack )
2476 yyg->yy_start_stack = (int *) yyalloc(new_size ,yyscanner );
2479 yyg->yy_start_stack = (int *) yyrealloc((void *) yyg->yy_start_stack,new_size ,yyscanner );
2481 if ( ! yyg->yy_start_stack )
2485 yyg->yy_start_stack[yyg->yy_start_stack_ptr++] = YY_START;
2492 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2493 if ( --yyg->yy_start_stack_ptr < 0 )
2496 BEGIN(yyg->yy_start_stack[yyg->yy_start_stack_ptr]);
2501 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2502 return yyg->yy_start_stack[yyg->yy_start_stack_ptr - 1];
2524 yytext[yyleng] = yyg->yy_hold_char; \
2525 yyg->yy_c_buf_p = yytext + yyless_macro_arg; \
2526 yyg->yy_hold_char = *yyg->yy_c_buf_p; \
2527 *yyg->yy_c_buf_p = '\0'; \
2539 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2548 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2561 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2574 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2583 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2592 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2602 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2612 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2622 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2637 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2654 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2660 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2666 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2672 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2680 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2686 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2756 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2761 yyg->yy_buffer_stack = 0;
2762 yyg->yy_buffer_stack_top = 0;
2763 yyg->yy_buffer_stack_max = 0;
2764 yyg->yy_c_buf_p = (char *) 0;
2765 yyg->yy_init = 0;
2766 yyg->yy_start = 0;
2768 yyg->yy_start_stack_ptr = 0;
2769 yyg->yy_start_stack_depth = 0;
2770 yyg->yy_start_stack = NULL;
2790 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2800 yyfree(yyg->yy_buffer_stack ,yyscanner);
2801 yyg->yy_buffer_stack = NULL;
2804 yyfree(yyg->yy_start_stack ,yyscanner );
2805 yyg->yy_start_stack = NULL;
2871 struct yyguts_t* yyg = (struct yyguts_t*) context->scanner;
3120 struct yyguts_t* yyg = (struct yyguts_t*) yyscanner;
3136 struct yyguts_t* yyg = (struct yyguts_t*) yyscanner;
3144 struct yyguts_t* yyg = (struct yyguts_t*) context->scanner;