PostGIS  2.5.0dev-r@@SVN_REVISION@@
void wkt_yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 1538 of file lwin_wkt_lex.c.

References wkt_yy_load_buffer_state(), wkt_yyensure_buffer_stack(), yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, and yy_n_chars.

Referenced by wkt_yy_scan_buffer().

1539 {
1540 
1541  /* TODO. We should be able to replace this entire function body
1542  * with
1543  * wkt_yypop_buffer_state();
1544  * wkt_yypush_buffer_state(new_buffer);
1545  */
1547  if ( YY_CURRENT_BUFFER == new_buffer )
1548  return;
1549 
1550  if ( YY_CURRENT_BUFFER )
1551  {
1552  /* Flush out information for old buffer. */
1553  *(yy_c_buf_p) = (yy_hold_char);
1554  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1555  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1556  }
1557 
1558  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1560 
1561  /* We don't actually know whether we did this switch during
1562  * EOF (wkt_yywrap()) processing, but the only time this flag
1563  * is looked at is after wkt_yywrap() is called, so it's safe
1564  * to go ahead and always set it.
1565  */
1567 }
static int yy_did_buffer_switch_on_eof
Definition: lwin_wkt_lex.c:330
static void wkt_yy_load_buffer_state(void)
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:308
static yy_size_t yy_n_chars
Definition: lwin_wkt_lex.c:319
#define YY_CURRENT_BUFFER_LVALUE
Definition: lwin_wkt_lex.c:315
static char * yy_c_buf_p
Definition: lwin_wkt_lex.c:323
static char yy_hold_char
Definition: lwin_wkt_lex.c:318
static void wkt_yyensure_buffer_stack(void)

Here is the call graph for this function:

Here is the caller graph for this function: