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

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

2001 {
2002 
2003  /* Pop the buffer stack, destroying each element. */
2004  while(YY_CURRENT_BUFFER){
2006  YY_CURRENT_BUFFER_LVALUE = NULL;
2008  }
2009 
2010  /* Destroy the stack itself. */
2012  (yy_buffer_stack) = NULL;
2013 
2014  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2015  * wkt_yylex() is called, initialization will occur. */
2016  yy_init_globals( );
2017 
2018  return 0;
2019 }
#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: