PostGIS  2.2.7dev-r@@SVN_REVISION@@
void wkt_yy_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with wkt_yy_create_buffer()

Definition at line 1586 of file lwin_wkt_lex.c.

References wkt_yyfree(), yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, and yy_buffer_state::yy_is_our_buffer.

Referenced by wkt_lexer_close(), wkt_yylex_destroy(), and wkt_yypop_buffer_state().

1587 {
1588 
1589  if ( ! b )
1590  return;
1591 
1592  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1594 
1595  if ( b->yy_is_our_buffer )
1596  wkt_yyfree((void *) b->yy_ch_buf );
1597 
1598  wkt_yyfree((void *) b );
1599 }
struct yy_buffer_state * YY_BUFFER_STATE
Definition: lwin_wkt_lex.c:173
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:283
void wkt_yyfree(void *)
#define YY_CURRENT_BUFFER_LVALUE
Definition: lwin_wkt_lex.c:290

Here is the call graph for this function:

Here is the caller graph for this function: