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

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

1977 {
1978 
1979  /* Pop the buffer stack, destroying each element. */
1980  while(YY_CURRENT_BUFFER){
1982  YY_CURRENT_BUFFER_LVALUE = NULL;
1984  }
1985 
1986  /* Destroy the stack itself. */
1988  (yy_buffer_stack) = NULL;
1989 
1990  /* Reset the globals. This is important in a non-reentrant scanner so the next time
1991  * wkt_yylex() is called, initialization will occur. */
1992  yy_init_globals( );
1993 
1994  return 0;
1995 }
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:283
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:290
static int yy_init_globals(void)
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: lwin_wkt_lex.c:275

Here is the call graph for this function:

Here is the caller graph for this function: