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

Function ap_expr_yylex_init

server/util_expr_scan.c:2496–2515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2494 */
2495
2496int ap_expr_yylex_init(yyscan_t* ptr_yy_globals)
2497
2498{
2499 if (ptr_yy_globals == NULL){
2500 errno = EINVAL;
2501 return 1;
2502 }
2503
2504 *ptr_yy_globals = (yyscan_t) ap_expr_yyalloc ( sizeof( struct yyguts_t ), NULL );
2505
2506 if (*ptr_yy_globals == NULL){
2507 errno = ENOMEM;
2508 return 1;
2509 }
2510
2511 /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */
2512 memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t));
2513
2514 return yy_init_globals ( *ptr_yy_globals );
2515}
2516
2517/* ap_expr_yylex_init_extra has the same functionality as ap_expr_yylex_init, but follows the
2518 * convention of taking the scanner as the last argument. Note however, that

Callers 1

ap_expr_parseFunction · 0.85

Calls 2

ap_expr_yyallocFunction · 0.85
yy_init_globalsFunction · 0.85

Tested by

no test coverage detected