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

Function yy_init_globals

plugins/cmake/parser/cmListFileLexer.c:2264–2295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2262}
2263
2264static int yy_init_globals (yyscan_t yyscanner)
2265{
2266 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2267 /* Initialization is the same as for the non-reentrant scanner.
2268 * This function is called from cmListFileLexer_yylex_destroy(), so don't allocate here.
2269 */
2270
2271 yyg->yy_buffer_stack = NULL;
2272 yyg->yy_buffer_stack_top = 0;
2273 yyg->yy_buffer_stack_max = 0;
2274 yyg->yy_c_buf_p = NULL;
2275 yyg->yy_init = 0;
2276 yyg->yy_start = 0;
2277
2278 yyg->yy_start_stack_ptr = 0;
2279 yyg->yy_start_stack_depth = 0;
2280 yyg->yy_start_stack = NULL;
2281
2282/* Defined in main.c */
2283#ifdef YY_STDINIT
2284 yyin = stdin;
2285 yyout = stdout;
2286#else
2287 yyin = NULL;
2288 yyout = NULL;
2289#endif
2290
2291 /* For future reference: Set errno on error, since we are called by
2292 * cmListFileLexer_yylex_init()
2293 */
2294 return 0;
2295}
2296
2297/* cmListFileLexer_yylex_destroy is for both reentrant and non-reentrant scanners. */
2298int cmListFileLexer_yylex_destroy (yyscan_t yyscanner)

Calls

no outgoing calls

Tested by

no test coverage detected