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
int pktloc_lex_destroy(yyscan_t yyscanner)
{
    struct yyguts_t* yyg = (struct yyguts_t*)yyscanner;

    /* Pop the buffer stack, destroying each element. */
    while (YY_CURRENT_BUFFER)
    {
        pktloc__delete_buffer(YY_CURRENT_BUFFER, yyscanner);
        YY_CURRENT_BUFFER_LVALUE = NULL;
        pktloc_pop_buffer_state(yyscanner);
    }

    /* Destroy the stack itself. */
    pktloc_free(yyg->yy_buffer_stack, yyscanner);
    yyg->yy_buffer_stack = NULL;

    /* Destroy the start condition stack. */
    pktloc_free(yyg->yy_start_stack, yyscanner);
    yyg->yy_start_stack = NULL;

    /* Reset the globals. This is important in a non-reentrant scanner so the
     * next time pktloc_lex() is called, initialization will occur. */
    yy_init_globals(yyscanner);

    /* Destroy the main struct (reentrant only). */
    pktloc_free(yyscanner, yyscanner);
    yyscanner = NULL;
    return 0;
}
/* pktloc_lex_destroy is for both reentrant and non-reentrant scanners. */
pktloc_lex_destroy is for both reentrant and non-reentrant scanners.
pktloc_lex_destroy is for both reentrant and non - reentrant scanners .
int pktloc_lex_destroy(yyscan_t yyscanner)
{
    struct yyguts_t* yyg = (struct yyguts_t*)yyscanner;
    while (YY_CURRENT_BUFFER)
    {
        pktloc__delete_buffer(YY_CURRENT_BUFFER, yyscanner);
        YY_CURRENT_BUFFER_LVALUE = NULL;
        pktloc_pop_buffer_state(yyscanner);
    }
    pktloc_free(yyg->yy_buffer_stack, yyscanner);
    yyg->yy_buffer_stack = NULL;
    pktloc_free(yyg->yy_start_stack, yyscanner);
    yyg->yy_start_stack = NULL;
    yy_init_globals(yyscanner);
    pktloc_free(yyscanner, yyscanner);
    yyscanner = NULL;
    return 0;
}
int pktloc_lex_destroy ( yyscan_t yyscanner ) { struct yyguts_t * yyg = ( struct yyguts_t * ) yyscanner ; while ( YY_CURRENT_BUFFER ) { pktloc__delete_buffer ( YY_CURRENT_BUFFER , yyscanner ) ; YY_CURRENT_BUFFER_LVALUE = NULL ; pktloc_pop_buffer_state ( yyscanner ) ; } pktloc_free ( yyg -> yy_buffer_stack , yyscanner ) ; yyg -> yy_buffer_stack = NULL ; pktloc_free ( yyg -> yy_start_stack , yyscanner ) ; yyg -> yy_start_stack = NULL ; yy_init_globals ( yyscanner ) ; pktloc_free ( yyscanner , yyscanner ) ; yyscanner = NULL ; return 0 ; }
pktloc_lex_destroy is for both reentrant and non-reentrant scanners.
pktloc_lex_destroy is for both reentrant and non - reentrant scanners .
/* Pop the buffer stack, destroying each element. */ /* Destroy the stack itself. */ /* Destroy the start condition stack. */ /* Reset the globals. This is important in a non-reentrant scanner so the
     * next time pktloc_lex() is called, initialization will occur. */ /* Destroy the main struct (reentrant only). */