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

Definition at line 1605 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().

1607 {
1608  int oerrno = errno;
1609 
1610  wkt_yy_flush_buffer(b );
1611 
1612  b->yy_input_file = file;
1613  b->yy_fill_buffer = 1;
1614 
1615  /* If b is the current buffer, then wkt_yy_init_buffer was _probably_
1616  * called from wkt_yyrestart() or through yy_get_next_buffer.
1617  * In that case, we don't want to reset the lineno or column.
1618  */
1619  if (b != YY_CURRENT_BUFFER){
1620  b->yy_bs_lineno = 1;
1621  b->yy_bs_column = 0;
1622  }
1623 
1624  b->yy_is_interactive = 0;
1625 
1626  errno = oerrno;
1627 }
int yy_bs_column
The column count.
Definition: lwin_wkt_lex.c:246
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:283
FILE * yy_input_file
Definition: lwin_wkt_lex.c:211
int yy_bs_lineno
The line count.
Definition: lwin_wkt_lex.c:245
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: