PostGIS  2.2.7dev-r@@SVN_REVISION@@
void wkt_yypush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack.

The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 1662 of file lwin_wkt_lex.c.

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

1663 {
1664  if (new_buffer == NULL)
1665  return;
1666 
1668 
1669  /* This block is copied from wkt_yy_switch_to_buffer. */
1670  if ( YY_CURRENT_BUFFER )
1671  {
1672  /* Flush out information for old buffer. */
1673  *(yy_c_buf_p) = (yy_hold_char);
1674  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1675  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1676  }
1677 
1678  /* Only push if top exists. Otherwise, replace top. */
1679  if (YY_CURRENT_BUFFER)
1680  (yy_buffer_stack_top)++;
1681  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1682 
1683  /* copied from wkt_yy_switch_to_buffer. */
1686 }
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 size_t yy_buffer_stack_top
index of top of stack.
Definition: lwin_wkt_lex.c:273
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: