PostGIS  2.5.0dev-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 1611 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().

1612 {
1613 
1614  if ( ! b )
1615  return;
1616 
1617  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
1619 
1620  if ( b->yy_is_our_buffer )
1621  wkt_yyfree((void *) b->yy_ch_buf );
1622 
1623  wkt_yyfree((void *) b );
1624 }
struct yy_buffer_state * YY_BUFFER_STATE
Definition: lwin_wkt_lex.c:198
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:308
void wkt_yyfree(void *)
#define YY_CURRENT_BUFFER_LVALUE
Definition: lwin_wkt_lex.c:315

Here is the call graph for this function:

Here is the caller graph for this function: