PostGIS  2.1.10dev-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 1510 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().

1511 {
1512 
1513  /* TODO. We should be able to replace this entire function body
1514  * with
1515  * wkt_yypop_buffer_state();
1516  * wkt_yypush_buffer_state(new_buffer);
1517  */
1519  if ( YY_CURRENT_BUFFER == new_buffer )
1520  return;
1521 
1522  if ( YY_CURRENT_BUFFER )
1523  {
1524  /* Flush out information for old buffer. */
1525  *(yy_c_buf_p) = (yy_hold_char);
1526  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1527  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1528  }
1529 
1530  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1532 
1533  /* We don't actually know whether we did this switch during
1534  * EOF (wkt_yywrap()) processing, but the only time this flag
1535  * is looked at is after wkt_yywrap() is called, so it's safe
1536  * to go ahead and always set it.
1537  */
1539 }
static int yy_did_buffer_switch_on_eof
Definition: lwin_wkt_lex.c:304
static void wkt_yy_load_buffer_state(void)
#define YY_CURRENT_BUFFER
Definition: lwin_wkt_lex.c:282
static yy_size_t yy_n_chars
Definition: lwin_wkt_lex.c:293
#define YY_CURRENT_BUFFER_LVALUE
Definition: lwin_wkt_lex.c:289
static char * yy_c_buf_p
Definition: lwin_wkt_lex.c:297
static char yy_hold_char
Definition: lwin_wkt_lex.c:292
static void wkt_yyensure_buffer_stack(void)

Here is the call graph for this function:

Here is the caller graph for this function: