| 2205 | */ |
| 2206 | |
| 2207 | int cmListFileLexer_yylex_init(yyscan_t* ptr_yy_globals) |
| 2208 | |
| 2209 | { |
| 2210 | if (ptr_yy_globals == NULL){ |
| 2211 | errno = EINVAL; |
| 2212 | return 1; |
| 2213 | } |
| 2214 | |
| 2215 | *ptr_yy_globals = (yyscan_t) cmListFileLexer_yyalloc ( sizeof( struct yyguts_t ), NULL ); |
| 2216 | |
| 2217 | if (*ptr_yy_globals == NULL){ |
| 2218 | errno = ENOMEM; |
| 2219 | return 1; |
| 2220 | } |
| 2221 | |
| 2222 | /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for releases. */ |
| 2223 | memset(*ptr_yy_globals,0x00,sizeof(struct yyguts_t)); |
| 2224 | |
| 2225 | return yy_init_globals ( *ptr_yy_globals ); |
| 2226 | } |
| 2227 | |
| 2228 | /* cmListFileLexer_yylex_init_extra has the same functionality as cmListFileLexer_yylex_init, but follows the |
| 2229 | * convention of taking the scanner as the last argument. Note however, that |
no test coverage detected