PostGIS  2.5.0dev-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 1687 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.

1688 {
1689  if (new_buffer == NULL)
1690  return;
1691 
1693 
1694  /* This block is copied from wkt_yy_switch_to_buffer. */
1695  if ( YY_CURRENT_BUFFER )
1696  {
1697  /* Flush out information for old buffer. */
1698  *(yy_c_buf_p) = (yy_hold_char);
1699  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
1700  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
1701  }
1702 
1703  /* Only push if top exists. Otherwise, replace top. */
1704  if (YY_CURRENT_BUFFER)
1705  (yy_buffer_stack_top)++;
1706  YY_CURRENT_BUFFER_LVALUE = new_buffer;
1707 
1708  /* copied from wkt_yy_switch_to_buffer. */
1711 }
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 size_t yy_buffer_stack_top
index of top of stack.
Definition: lwin_wkt_lex.c:298
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: