MCPcopy Index your code
hub / github.com/MapServer/MapServer / msyylex_destroy

Function msyylex_destroy

maplexer.c:5137–5156  ·  view source on GitHub ↗

msyylex_destroy is for both reentrant and non-reentrant scanners. */

Source from the content-addressed store, hash-verified

5135
5136/* msyylex_destroy is for both reentrant and non-reentrant scanners. */
5137int msyylex_destroy (void)
5138{
5139
5140 /* Pop the buffer stack, destroying each element. */
5141 while(YY_CURRENT_BUFFER){
5142 msyy_delete_buffer(YY_CURRENT_BUFFER );
5143 YY_CURRENT_BUFFER_LVALUE = NULL;
5144 msyypop_buffer_state();
5145 }
5146
5147 /* Destroy the stack itself. */
5148 msyyfree((yy_buffer_stack) );
5149 (yy_buffer_stack) = NULL;
5150
5151 /* Reset the globals. This is important in a non-reentrant scanner so the next time
5152 * msyylex() is called, initialization will occur. */
5153 yy_init_globals( );
5154
5155 return 0;
5156}
5157
5158/*
5159 * Internal utility routines.

Callers 12

msUpdateLabelFromStringFunction · 0.85
msUpdateStyleFromStringFunction · 0.85
msUpdateClassFromStringFunction · 0.85
msUpdateLayerFromStringFunction · 0.85
msUpdateLegendFromStringFunction · 0.85
msUpdateWebFromStringFunction · 0.85
msLoadMapFromStringFunction · 0.85
msCleanupFunction · 0.85

Calls 4

msyy_delete_bufferFunction · 0.85
msyypop_buffer_stateFunction · 0.85
msyyfreeFunction · 0.85
yy_init_globalsFunction · 0.85

Tested by

no test coverage detected