Logo Search packages:      
Sourcecode: pcsc-lite version File versions  Download package

void tppush_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_buffer The new state.

Definition at line 1346 of file tokenparser.c.

References yy_buffer_stack_top.

{
      if (new_buffer == NULL)
            return;

      tpensure_buffer_stack();

      /* This block is copied from tp_switch_to_buffer. */
      if ( YY_CURRENT_BUFFER )
            {
            /* Flush out information for old buffer. */
            *(yy_c_buf_p) = (yy_hold_char);
            YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
            YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
            }

      /* Only push if top exists. Otherwise, replace top. */
      if (YY_CURRENT_BUFFER)
            (yy_buffer_stack_top)++;
      YY_CURRENT_BUFFER_LVALUE = new_buffer;

      /* copied from tp_switch_to_buffer. */
      tp_load_buffer_state( );
      (yy_did_buffer_switch_on_eof) = 1;
}


Generated by  Doxygen 1.6.0   Back to index