MCPcopy Create free account
hub / github.com/Gecode/gecode / yy_init_globals

Function yy_init_globals

gecode/flatzinc/lexer.yy.cpp:2396–2427  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2394}
2395
2396static int yy_init_globals (yyscan_t yyscanner)
2397{
2398 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
2399 /* Initialization is the same as for the non-reentrant scanner.
2400 * This function is called from yylex_destroy(), so don't allocate here.
2401 */
2402
2403 yyg->yy_buffer_stack = NULL;
2404 yyg->yy_buffer_stack_top = 0;
2405 yyg->yy_buffer_stack_max = 0;
2406 yyg->yy_c_buf_p = NULL;
2407 yyg->yy_init = 0;
2408 yyg->yy_start = 0;
2409
2410 yyg->yy_start_stack_ptr = 0;
2411 yyg->yy_start_stack_depth = 0;
2412 yyg->yy_start_stack = NULL;
2413
2414/* Defined in main.c */
2415#ifdef YY_STDINIT
2416 yyin = stdin;
2417 yyout = stdout;
2418#else
2419 yyin = NULL;
2420 yyout = NULL;
2421#endif
2422
2423 /* For future reference: Set errno on error, since we are called by
2424 * yylex_init()
2425 */
2426 return 0;
2427}
2428
2429/* yylex_destroy is for both reentrant and non-reentrant scanners. */
2430int yylex_destroy (yyscan_t yyscanner)

Callers 3

yylex_initFunction · 0.85
yylex_init_extraFunction · 0.85
yylex_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected