PostGIS  2.3.7dev-r@@SVN_REVISION@@
void wkt_yy_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 1658 of file lwin_wkt_lex.c.

References wkt_yy_load_buffer_state(), yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, and yy_buffer_state::yy_n_chars.

Referenced by wkt_yy_init_buffer().

1659 {
1660  if ( ! b )
1661  return;
1662 
1663  b->yy_n_chars = 0;
1664 
1665  /* We always need two end-of-buffer characters. The first causes
1666  * a transition to the end-of-buffer state. The second causes
1667  * a jam in that state.
1668  */
1671 
1672  b->yy_buf_pos = &b->yy_ch_buf[0];
1673 
1674  b->yy_at_bol = 1;
1676 
1677  if ( b == YY_CURRENT_BUFFER )
1679 }
yy_size_t yy_n_chars
Definition: lwin_wkt_lex.c:249
static void wkt_yy_load_buffer_state(void)
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:308
#define YY_BUFFER_NEW
Definition: lwin_wkt_lex.c:280
#define YY_END_OF_BUFFER_CHAR
Definition: lwin_wkt_lex.c:185

Here is the call graph for this function:

Here is the caller graph for this function: