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

Function ap_expr_yypop_buffer_state

server/util_expr_scan.c:2139–2154  ·  view source on GitHub ↗

Removes and deletes the top of the stack, if present. * The next element becomes the new top. * @param yyscanner The scanner object. */

Source from the content-addressed store, hash-verified

2137 * @param yyscanner The scanner object.
2138 */
2139void ap_expr_yypop_buffer_state (yyscan_t yyscanner)
2140{
2141 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2142 if (!YY_CURRENT_BUFFER)
2143 return;
2144
2145 ap_expr_yy_delete_buffer(YY_CURRENT_BUFFER ,yyscanner);
2146 YY_CURRENT_BUFFER_LVALUE = NULL;
2147 if (yyg->yy_buffer_stack_top > 0)
2148 --yyg->yy_buffer_stack_top;
2149
2150 if (YY_CURRENT_BUFFER) {
2151 ap_expr_yy_load_buffer_state(yyscanner );
2152 yyg->yy_did_buffer_switch_on_eof = 1;
2153 }
2154}
2155
2156/* Allocates the stack if it does not exist.
2157 * Guarantees space for at least one push.

Callers 1

ap_expr_yylex_destroyFunction · 0.85

Calls 2

ap_expr_yy_delete_bufferFunction · 0.85

Tested by

no test coverage detected