PostGIS  2.1.10dev-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 1583 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().

1584 {
1585 
1586  if ( ! b )
1587  return;
1588 
1589  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1591 
1592  if ( b->yy_is_our_buffer )
1593  wkt_yyfree((void *) b->yy_ch_buf );
1594 
1595  wkt_yyfree((void *) b );
1596 }
struct yy_buffer_state * YY_BUFFER_STATE
Definition: lwin_wkt_lex.c:172
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:282
void wkt_yyfree(void *)
#define YY_CURRENT_BUFFER_LVALUE
Definition: lwin_wkt_lex.c:289

Here is the call graph for this function:

Here is the caller graph for this function: