PostGIS  2.3.7dev-r@@SVN_REVISION@@
static void wkt_yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)
static

Definition at line 1630 of file lwin_wkt_lex.c.

References wkt_yy_flush_buffer(), yy_buffer_state::yy_bs_column, yy_buffer_state::yy_bs_lineno, YY_CURRENT_BUFFER, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, and yy_buffer_state::yy_is_interactive.

Referenced by wkt_yy_create_buffer(), and wkt_yyrestart().

1632 {
1633  int oerrno = errno;
1634 
1635  wkt_yy_flush_buffer(b );
1636 
1637  b->yy_input_file = file;
1638  b->yy_fill_buffer = 1;
1639 
1640  /* If b is the current buffer, then wkt_yy_init_buffer was _probably_
1641  * called from wkt_yyrestart() or through yy_get_next_buffer.
1642  * In that case, we don't want to reset the lineno or column.
1643  */
1644  if (b != YY_CURRENT_BUFFER){
1645  b->yy_bs_lineno = 1;
1646  b->yy_bs_column = 0;
1647  }
1648 
1649  b->yy_is_interactive = 0;
1650 
1651  errno = oerrno;
1652 }
int yy_bs_column
The column count.
Definition: lwin_wkt_lex.c:271
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:308
FILE * yy_input_file
Definition: lwin_wkt_lex.c:236
int yy_bs_lineno
The line count.
Definition: lwin_wkt_lex.c:270
void wkt_yy_flush_buffer(YY_BUFFER_STATE b)
Discard all buffered characters.

Here is the call graph for this function:

Here is the caller graph for this function: