MCPcopy Create free account
hub / github.com/apache/httpd / ap_expr_yy_delete_buffer

Function ap_expr_yy_delete_buffer

server/util_expr_scan.c:2029–2043  ·  view source on GitHub ↗

Destroy the buffer. * @param b a buffer created with ap_expr_yy_create_buffer() * @param yyscanner The scanner object. */

Source from the content-addressed store, hash-verified

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,

Callers 2

ap_expr_yylex_destroyFunction · 0.85

Calls 1

ap_expr_yyfreeFunction · 0.85

Tested by

no test coverage detected