Destroy the buffer. * @param b a buffer created with ap_expr_yy_create_buffer() * @param yyscanner The scanner object. */
| 2027 | * @param yyscanner The scanner object. |
| 2028 | */ |
| 2029 | void ap_expr_yy_delete_buffer (YY_BUFFER_STATE b , yyscan_t yyscanner) |
| 2030 | { |
| 2031 | struct yyguts_t * yyg = (struct yyguts_t*)yyscanner; |
| 2032 | |
| 2033 | if ( ! b ) |
| 2034 | return; |
| 2035 | |
| 2036 | if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */ |
| 2037 | YY_CURRENT_BUFFER_LVALUE = (YY_BUFFER_STATE) 0; |
| 2038 | |
| 2039 | if ( b->yy_is_our_buffer ) |
| 2040 | ap_expr_yyfree((void *) b->yy_ch_buf ,yyscanner ); |
| 2041 | |
| 2042 | ap_expr_yyfree((void *) b ,yyscanner ); |
| 2043 | } |
| 2044 | |
| 2045 | /* Initializes or reinitializes a buffer. |
| 2046 | * This function is sometimes called more than once on the same buffer, |
no test coverage detected