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

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

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