PostGIS  2.1.10dev-r@@SVN_REVISION@@
int wkt_yylex_destroy ( void  )

Definition at line 1972 of file lwin_wkt_lex.c.

References wkt_yy_delete_buffer(), wkt_yyfree(), wkt_yypop_buffer_state(), yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_init_globals().

1973 {
1974 
1975  /* Pop the buffer stack, destroying each element. */
1976  while(YY_CURRENT_BUFFER){
1978  YY_CURRENT_BUFFER_LVALUE = NULL;
1980  }
1981 
1982  /* Destroy the stack itself. */
1984  (yy_buffer_stack) = NULL;
1985 
1986  /* Reset the globals. This is important in a non-reentrant scanner so the next time
1987  * wkt_yylex() is called, initialization will occur. */
1988  yy_init_globals( );
1989 
1990  return 0;
1991 }
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:282
void wkt_yyfree(void *)
void wkt_yy_delete_buffer(YY_BUFFER_STATE b)
Destroy the buffer.
void wkt_yypop_buffer_state(void)
Removes and deletes the top of the stack, if present.
#define YY_CURRENT_BUFFER_LVALUE
Definition: lwin_wkt_lex.c:289
static int yy_init_globals(void)
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: lwin_wkt_lex.c:274

Here is the call graph for this function: