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__switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
{
    struct yyguts_t* yyg = (struct yyguts_t*)yyscanner;

    /* TODO. We should be able to replace this entire function body
     * with
     *		pktloc_pop_buffer_state();
     *		pktloc_push_buffer_state(new_buffer);
     */
    pktloc_ensure_buffer_stack(yyscanner);
    if (YY_CURRENT_BUFFER == new_buffer)
        return;

    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;
    }

    YY_CURRENT_BUFFER_LVALUE = new_buffer;
    pktloc__load_buffer_state(yyscanner);

    /* We don't actually know whether we did this switch during
     * EOF (pktloc_wrap()) processing, but the only time this flag
     * is looked at is after pktloc_wrap() is called, so it's safe
     * to go ahead and always set it.
     */
    yyg->yy_did_buffer_switch_on_eof = 1;
}
/** Switch to a different input buffer.
 * @param new_buffer The new input buffer.
 * @param yyscanner The scanner object.
 */
Switch to a different input buffer.
@param new_buffer The new input buffer.
@param yyscanner The scanner object.
Switch to a different input buffer . @param new_buffer The new input buffer . @param yyscanner The scanner object .
void pktloc__switch_to_buffer(YY_BUFFER_STATE new_buffer, yyscan_t yyscanner)
{
    struct yyguts_t* yyg = (struct yyguts_t*)yyscanner;
    pktloc_ensure_buffer_stack(yyscanner);
    if (YY_CURRENT_BUFFER == new_buffer)
        return;
    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;
    }
    YY_CURRENT_BUFFER_LVALUE = new_buffer;
    pktloc__load_buffer_state(yyscanner);
    yyg->yy_did_buffer_switch_on_eof = 1;
}
void pktloc__switch_to_buffer ( YY_BUFFER_STATE new_buffer , yyscan_t yyscanner ) { struct yyguts_t * yyg = ( struct yyguts_t * ) yyscanner ; pktloc_ensure_buffer_stack ( yyscanner ) ; if ( YY_CURRENT_BUFFER == new_buffer ) return ; 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 ; } YY_CURRENT_BUFFER_LVALUE = new_buffer ; pktloc__load_buffer_state ( yyscanner ) ; yyg -> yy_did_buffer_switch_on_eof = 1 ; }
Switch to a different input buffer.
Switch to a different input buffer .
/* TODO. We should be able to replace this entire function body
     * with
     *		pktloc_pop_buffer_state();
     *		pktloc_push_buffer_state(new_buffer);
     */ /* Flush out information for old buffer. */ /* We don't actually know whether we did this switch during
     * EOF (pktloc_wrap()) processing, but the only time this flag
     * is looked at is after pktloc_wrap() is called, so it's safe
     * to go ahead and always set it.
     */