openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/build/lib/route/pktloc_grammar.c
void pktloc_push_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
{
    struct yyguts_t* yyg = (struct yyguts_t*)yyscanner;
    if (new_buffer == NULL)
        return;

    pktloc_ensure_buffer_stack(yyscanner);

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

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

    /* copied from pktloc__switch_to_buffer. */
    pktloc__load_buffer_state(yyscanner);
    yyg->yy_did_buffer_switch_on_eof = 1;
}
/** Pushes the new state onto the stack. The new state becomes
 *  the current state. This function will allocate the stack
 *  if necessary.
 *  @param new_buffer The new state.
 *  @param yyscanner The scanner object.
 */
Pushes the new state onto the stack. The new state becomes
the current state. This function will allocate the stack
if necessary.
@param new_buffer The new state.
@param yyscanner The scanner object.
Pushes the new state onto the stack . The new state becomes the current state . This function will allocate the stack if necessary . @param new_buffer The new state . @param yyscanner The scanner object .
void pktloc_push_buffer_state(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
{
    struct yyguts_t* yyg = (struct yyguts_t*)yyscanner;
    if (new_buffer == NULL)
        return;
    pktloc_ensure_buffer_stack(yyscanner);
    if (YY_CURRENT_BUFFER)
    {
        *yyg->yy_c_buf_p = yyg->yy_hold_char;
        YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = yyg->yy_c_buf_p;
        YY_CURRENT_BUFFER_LVALUE->yy_n_chars = yyg->yy_n_chars;
    }
    if (YY_CURRENT_BUFFER)
        yyg->yy_buffer_stack_top++;
    YY_CURRENT_BUFFER_LVALUE = new_buffer;
    pktloc__load_buffer_state(yyscanner);
    yyg->yy_did_buffer_switch_on_eof = 1;
}
void pktloc_push_buffer_state ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ) { struct yyguts_t * yyg = ( struct yyguts_t * ) yyscanner ; if ( new_buffer == NULL ) return ; pktloc_ensure_buffer_stack ( yyscanner ) ; if ( YY_CURRENT_BUFFER ) { * yyg -> yy_c_buf_p = yyg -> yy_hold_char ; YY_CURRENT_BUFFER_LVALUE -> yy_buf_pos = yyg -> yy_c_buf_p ; YY_CURRENT_BUFFER_LVALUE -> yy_n_chars = yyg -> yy_n_chars ; } if ( YY_CURRENT_BUFFER ) yyg -> yy_buffer_stack_top ++ ; YY_CURRENT_BUFFER_LVALUE = new_buffer ; pktloc__load_buffer_state ( yyscanner ) ; yyg -> yy_did_buffer_switch_on_eof = 1 ; }
Pushes the new state onto the stack.
Pushes the new state onto the stack .
/* This block is copied from pktloc__switch_to_buffer. */ /* Flush out information for old buffer. */ /* Only push if top exists. Otherwise, replace top. */ /* copied from pktloc__switch_to_buffer. */