Initializes or reinitializes a buffer. * This function is sometimes called more than once on the same buffer, * such as during a ap_expr_yyrestart() or at EOF. */
| 2047 | * such as during a ap_expr_yyrestart() or at EOF. |
| 2048 | */ |
| 2049 | static void ap_expr_yy_init_buffer (YY_BUFFER_STATE b, FILE * file , yyscan_t yyscanner) |
| 2050 | |
| 2051 | { |
| 2052 | int oerrno = errno; |
| 2053 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 2054 | |
| 2055 | ap_expr_yy_flush_buffer(b ,yyscanner); |
| 2056 | |
| 2057 | b->yy_input_file = file; |
| 2058 | b->yy_fill_buffer = 1; |
| 2059 | |
| 2060 | /* If b is the current buffer, then ap_expr_yy_init_buffer was _probably_ |
| 2061 | * called from ap_expr_yyrestart() or through yy_get_next_buffer. |
| 2062 | * In that case, we don't want to reset the lineno or column. |
| 2063 | */ |
| 2064 | if (b != YY_CURRENT_BUFFER){ |
| 2065 | b->yy_bs_lineno = 1; |
| 2066 | b->yy_bs_column = 0; |
| 2067 | } |
| 2068 | |
| 2069 | b->yy_is_interactive = 0; |
| 2070 | |
| 2071 | errno = oerrno; |
| 2072 | } |
| 2073 | |
| 2074 | /** Discard all buffered characters. On the next scan, YY_INPUT will be called. |
| 2075 | * @param b the buffer state to be flushed, usually @c YY_CURRENT_BUFFER. |
no test coverage detected