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

Definition at line 2001 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().

Referenced by lwgeom_parse_wkt().

2002 {
2003 
2004  /* Pop the buffer stack, destroying each element. */
2005  while(YY_CURRENT_BUFFER){
2007  YY_CURRENT_BUFFER_LVALUE = NULL;
2009  }
2010 
2011  /* Destroy the stack itself. */
2013  (yy_buffer_stack) = NULL;
2014 
2015  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2016  * wkt_yylex() is called, initialization will occur. */
2017  yy_init_globals( );
2018 
2019  return 0;
2020 }
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:308
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:315
static int yy_init_globals(void)
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: lwin_wkt_lex.c:300

Here is the call graph for this function:

Here is the caller graph for this function: