MCPcopy Create free account
hub / github.com/KDE/kdevelop / cmListFileLexer_yylex_init

Function cmListFileLexer_yylex_init

plugins/cmake/parser/cmListFileLexer.c:2207–2226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2205 */
2206
2207int 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

Callers 1

cmListFileLexerInitFunction · 0.85

Calls 2

cmListFileLexer_yyallocFunction · 0.85
yy_init_globalsFunction · 0.85

Tested by

no test coverage detected