PostGIS  2.2.7dev-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 1513 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().

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

Here is the call graph for this function:

Here is the caller graph for this function: