MCPcopy Create free account
hub / github.com/activeloopai/deeplake / yy_init_globals

Function yy_init_globals

cpp/3rd_party/sql-parser/src/parser/flex_lexer.cpp:5027–5058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5025}
5026
5027static int yy_init_globals (yyscan_t yyscanner)
5028{
5029 struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
5030 /* Initialization is the same as for the non-reentrant scanner.
5031 * This function is called from yylex_destroy(), so don't allocate here.
5032 */
5033
5034 yyg->yy_buffer_stack = NULL;
5035 yyg->yy_buffer_stack_top = 0;
5036 yyg->yy_buffer_stack_max = 0;
5037 yyg->yy_c_buf_p = NULL;
5038 yyg->yy_init = 0;
5039 yyg->yy_start = 0;
5040
5041 yyg->yy_start_stack_ptr = 0;
5042 yyg->yy_start_stack_depth = 0;
5043 yyg->yy_start_stack = NULL;
5044
5045/* Defined in main.c */
5046#ifdef YY_STDINIT
5047 yyin = stdin;
5048 yyout = stdout;
5049#else
5050 yyin = NULL;
5051 yyout = NULL;
5052#endif
5053
5054 /* For future reference: Set errno on error, since we are called by
5055 * yylex_init()
5056 */
5057 return 0;
5058}
5059
5060/* yylex_destroy is for both reentrant and non-reentrant scanners. */
5061int 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