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

Function yy_init_globals

server/util_expr_scan.c:2553–2584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2551}
2552
2553static int yy_init_globals (yyscan_t yyscanner)
2554{
2555 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2556 /* Initialization is the same as for the non-reentrant scanner.
2557 * This function is called from ap_expr_yylex_destroy(), so don't allocate here.
2558 */
2559
2560 yyg->yy_buffer_stack = 0;
2561 yyg->yy_buffer_stack_top = 0;
2562 yyg->yy_buffer_stack_max = 0;
2563 yyg->yy_c_buf_p = (char *) 0;
2564 yyg->yy_init = 0;
2565 yyg->yy_start = 0;
2566
2567 yyg->yy_start_stack_ptr = 0;
2568 yyg->yy_start_stack_depth = 0;
2569 yyg->yy_start_stack = NULL;
2570
2571/* Defined in main.c */
2572#ifdef YY_STDINIT
2573 yyin = stdin;
2574 yyout = stdout;
2575#else
2576 yyin = (FILE *) 0;
2577 yyout = (FILE *) 0;
2578#endif
2579
2580 /* For future reference: Set errno on error, since we are called by
2581 * ap_expr_yylex_init()
2582 */
2583 return 0;
2584}
2585
2586/* ap_expr_yylex_destroy is for both reentrant and non-reentrant scanners. */
2587int ap_expr_yylex_destroy (yyscan_t yyscanner)

Callers 3

ap_expr_yylex_initFunction · 0.85
ap_expr_yylex_init_extraFunction · 0.85
ap_expr_yylex_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected