| 2494 | */ |
| 2495 | |
| 2496 | int 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 |
no test coverage detected