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

Function ap_expr_yyrestart

server/util_expr_scan.c:1936–1948  ·  view source on GitHub ↗

Immediately switch to a different input stream. * @param input_file A readable stream. * @param yyscanner The scanner object. * @note This function does not reset the start condition to @c INITIAL . */

Source from the content-addressed store, hash-verified

1934 * @note This function does not reset the start condition to @c INITIAL .
1935 */
1936 void ap_expr_yyrestart (FILE * input_file , yyscan_t yyscanner)
1937{
1938 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
1939
1940 if ( ! YY_CURRENT_BUFFER ){
1941 ap_expr_yyensure_buffer_stack (yyscanner);
1942 YY_CURRENT_BUFFER_LVALUE =
1943 ap_expr_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
1944 }
1945
1946 ap_expr_yy_init_buffer(YY_CURRENT_BUFFER,input_file ,yyscanner);
1947 ap_expr_yy_load_buffer_state(yyscanner );
1948}
1949
1950/** Switch to a different input buffer.
1951 * @param new_buffer The new input buffer.

Callers 2

yy_get_next_bufferFunction · 0.85
inputFunction · 0.85

Calls 4

ap_expr_yy_create_bufferFunction · 0.85
ap_expr_yy_init_bufferFunction · 0.85

Tested by

no test coverage detected