Discard all buffered characters. On the next scan, YY_INPUT will be called. * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. * @param yyscanner The scanner object. */
| 2076 | * @param yyscanner The scanner object. |
| 2077 | */ |
| 2078 | void ap_expr_yy_flush_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
| 2079 | { |
| 2080 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 2081 | if ( ! b ) |
| 2082 | return; |
| 2083 | |
| 2084 | b->yy_n_chars = 0; |
| 2085 | |
| 2086 | /* We always need two end-of-buffer characters. The first causes |
| 2087 | * a transition to the end-of-buffer state. The second causes |
| 2088 | * a jam in that state. |
| 2089 | */ |
| 2090 | b->yy_ch_buf[0] = YY_END_OF_BUFFER_CHAR; |
| 2091 | b->yy_ch_buf[1] = YY_END_OF_BUFFER_CHAR; |
| 2092 | |
| 2093 | b->yy_buf_pos = &b->yy_ch_buf[0]; |
| 2094 | |
| 2095 | b->yy_at_bol = 1; |
| 2096 | b->yy_buffer_status = YY_BUFFER_NEW; |
| 2097 | |
| 2098 | if ( b == YY_CURRENT_BUFFER ) |
| 2099 | ap_expr_yy_load_buffer_state(yyscanner ); |
| 2100 | } |
| 2101 | |
| 2102 | /** Pushes the new state onto the stack. The new state becomes |
| 2103 | * the current state. This function will allocate the stack |
no test coverage detected