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

Function yy_init_globals

maplexer.c:5108–5134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5106}
5107
5108static int yy_init_globals (void)
5109{
5110 /* Initialization is the same as for the non-reentrant scanner.
5111 * This function is called from msyylex_destroy(), so don't allocate here.
5112 */
5113
5114 (yy_buffer_stack) = 0;
5115 (yy_buffer_stack_top) = 0;
5116 (yy_buffer_stack_max) = 0;
5117 (yy_c_buf_p) = (char *) 0;
5118 (yy_init) = 0;
5119 (yy_start) = 0;
5120
5121/* Defined in main.c */
5122#ifdef YY_STDINIT
5123 msyyin = stdin;
5124 msyyout = stdout;
5125#else
5126 msyyin = (FILE *) 0;
5127 msyyout = (FILE *) 0;
5128#endif
5129
5130 /* For future reference: Set errno on error, since we are called by
5131 * msyylex_init()
5132 */
5133 return 0;
5134}
5135
5136/* msyylex_destroy is for both reentrant and non-reentrant scanners. */
5137int msyylex_destroy (void)

Callers 1

msyylex_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected