Switch to a different input buffer. * @param new_buffer The new input buffer. * @param yyscanner The scanner object. */
| 1952 | * @param yyscanner The scanner object. |
| 1953 | */ |
| 1954 | void ap_expr_yy_switch_to_buffer (YY_BUFFER_STATE new_buffer , yyscan_t yyscanner) |
| 1955 | { |
| 1956 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 1957 | |
| 1958 | /* TODO. We should be able to replace this entire function body |
| 1959 | * with |
| 1960 | * ap_expr_yypop_buffer_state(); |
| 1961 | * ap_expr_yypush_buffer_state(new_buffer); |
| 1962 | */ |
| 1963 | ap_expr_yyensure_buffer_stack (yyscanner); |
| 1964 | if ( YY_CURRENT_BUFFER == new_buffer ) |
| 1965 | return; |
| 1966 | |
| 1967 | if ( YY_CURRENT_BUFFER ) |
| 1968 | { |
| 1969 | /* Flush out information for old buffer. */ |
| 1970 | *yyg->yy_c_buf_p = yyg->yy_hold_char; |
| 1971 | YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p; |
| 1972 | YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars; |
| 1973 | } |
| 1974 | |
| 1975 | YY_CURRENT_BUFFER_LVALUE = new_buffer; |
| 1976 | ap_expr_yy_load_buffer_state(yyscanner ); |
| 1977 | |
| 1978 | /* We don't actually know whether we did this switch during |
| 1979 | * EOF (ap_expr_yywrap()) processing, but the only time this flag |
| 1980 | * is looked at is after ap_expr_yywrap() is called, so it's safe |
| 1981 | * to go ahead and always set it. |
| 1982 | */ |
| 1983 | yyg->yy_did_buffer_switch_on_eof = 1; |
| 1984 | } |
| 1985 | |
| 1986 | static void ap_expr_yy_load_buffer_state (yyscan_t yyscanner) |
| 1987 | { |
no test coverage detected