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_init(yyscan_t* ptr_yy_globals)

{
    if (ptr_yy_globals == NULL)
    {
        errno = EINVAL;
        return 1;
    }

    *ptr_yy_globals = (yyscan_t)pktloc_alloc(sizeof(struct yyguts_t), NULL);

    if (*ptr_yy_globals == NULL)
    {
        errno = ENOMEM;
        return 1;
    }

    /* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for
     * releases. */
    memset(*ptr_yy_globals, 0x00, sizeof(struct yyguts_t));

    return yy_init_globals(*ptr_yy_globals);
}
/* pktloc_lex_init is special because it creates the scanner itself, so it is
 * the ONLY reentrant function that doesn't take the scanner as the last
 * argument. That's why we explicitly handle the declaration, instead of using
 * our macros.
 */
pktloc_lex_init is special because it creates the scanner itself, so it is
the ONLY reentrant function that doesn't take the scanner as the last
argument. That's why we explicitly handle the declaration, instead of using
our macros.
pktloc_lex_init is special because it creates the scanner itself so it is the ONLY reentrant function that doesn ' t take the scanner as the last argument . That ' s why we explicitly handle the declaration instead of using our macros .
int pktloc_lex_init(yyscan_t* ptr_yy_globals)
{
    if (ptr_yy_globals == NULL)
    {
        errno = EINVAL;
        return 1;
    }
    *ptr_yy_globals = (yyscan_t)pktloc_alloc(sizeof(struct yyguts_t), NULL);
    if (*ptr_yy_globals == NULL)
    {
        errno = ENOMEM;
        return 1;
    }
    memset(*ptr_yy_globals, 0x00, sizeof(struct yyguts_t));
    return yy_init_globals(*ptr_yy_globals);
}
int pktloc_lex_init ( yyscan_t * ptr_yy_globals ) { if ( ptr_yy_globals == NULL ) { errno = EINVAL ; return 1 ; } * ptr_yy_globals = ( yyscan_t ) pktloc_alloc ( sizeof ( struct yyguts_t ) , NULL ) ; if ( * ptr_yy_globals == NULL ) { errno = ENOMEM ; return 1 ; } memset ( * ptr_yy_globals , 0x00 , sizeof ( struct yyguts_t ) ) ; return yy_init_globals ( * ptr_yy_globals ) ; }
pktloc_lex_init is special because it creates the scanner itself, so it is
 the ONLY reentrant function that doesn't take the scanner as the last
 argument.
pktloc_lex_init is special because it creates the scanner itself so it is the ONLY reentrant function that doesn ' t take the scanner as the last argument .
/* By setting to 0xAA, we expose bugs in yy_init_globals. Leave at 0x00 for
     * releases. */