PostGIS  2.1.10dev-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 1659 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.

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