MCPcopy Create free account
hub / github.com/Entware/Entware / yy_init_globals

Function yy_init_globals

scripts/config/lexer.lex.c:3842–3871  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3840}
3841
3842static int yy_init_globals (void)
3843{
3844 /* Initialization is the same as for the non-reentrant scanner.
3845 * This function is called from yylex_destroy(), so don't allocate here.
3846 */
3847
3848 /* We do not touch yylineno unless the option is enabled. */
3849 yylineno = 1;
3850
3851 (yy_buffer_stack) = NULL;
3852 (yy_buffer_stack_top) = 0;
3853 (yy_buffer_stack_max) = 0;
3854 (yy_c_buf_p) = NULL;
3855 (yy_init) = 0;
3856 (yy_start) = 0;
3857
3858/* Defined in main.c */
3859#ifdef YY_STDINIT
3860 yyin = stdin;
3861 yyout = stdout;
3862#else
3863 yyin = NULL;
3864 yyout = NULL;
3865#endif
3866
3867 /* For future reference: Set errno on error, since we are called by
3868 * yylex_init()
3869 */
3870 return 0;
3871}
3872
3873/* yylex_destroy is for both reentrant and non-reentrant scanners. */
3874int yylex_destroy (void)

Callers 1

yylex_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected