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
YY_BUFFER_STATE pktloc__create_buffer(FILE* file, int size, yyscan_t yyscanner)
{
    YY_BUFFER_STATE b;

    b = (YY_BUFFER_STATE)pktloc_alloc(sizeof(struct yy_buffer_state),
                                      yyscanner);
    if (!b)
        YY_FATAL_ERROR("out of dynamic memory in pktloc__create_buffer()");

    b->yy_buf_size = (yy_size_t)size;

    /* yy_ch_buf has to be 2 characters longer than the size given because
     * we need to put in 2 end-of-buffer characters.
     */
    b->yy_ch_buf = (char*)pktloc_alloc(b->yy_buf_size + 2, yyscanner);
    if (!b->yy_ch_buf)
        YY_FATAL_ERROR("out of dynamic memory in pktloc__create_buffer()");

    b->yy_is_our_buffer = 1;

    pktloc__init_buffer(b, file, yyscanner);

    return b;
}
/** Allocate and initialize an input buffer state.
 * @param file A readable stream.
 * @param size The character buffer size in bytes. When in doubt, use @c
 * YY_BUF_SIZE.
 * @param yyscanner The scanner object.
 * @return the allocated buffer state.
 */
Allocate and initialize an input buffer state.
@param file A readable stream.
@param size The character buffer size in bytes. When in doubt, use @c
YY_BUF_SIZE.
@param yyscanner The scanner object.
@return the allocated buffer state.
Allocate and initialize an input buffer state . @param file A readable stream . @param size The character buffer size in bytes . When in doubt use @c YY_BUF_SIZE . @param yyscanner The scanner object . @return the allocated buffer state .
YY_BUFFER_STATE pktloc__create_buffer(FILE* file, int size, yyscan_t yyscanner)
{
    YY_BUFFER_STATE b;
    b = (YY_BUFFER_STATE)pktloc_alloc(sizeof(struct yy_buffer_state),
                                      yyscanner);
    if (!b)
        YY_FATAL_ERROR("out of dynamic memory in pktloc__create_buffer()");
    b->yy_buf_size = (yy_size_t)size;
    b->yy_ch_buf = (char*)pktloc_alloc(b->yy_buf_size + 2, yyscanner);
    if (!b->yy_ch_buf)
        YY_FATAL_ERROR("out of dynamic memory in pktloc__create_buffer()");
    b->yy_is_our_buffer = 1;
    pktloc__init_buffer(b, file, yyscanner);
    return b;
}
YY_BUFFER_STATE pktloc__create_buffer ( FILE * file , int size , yyscan_t yyscanner ) { YY_BUFFER_STATE b ; b = ( YY_BUFFER_STATE ) pktloc_alloc ( sizeof ( struct yy_buffer_state ) , yyscanner ) ; if ( ! b ) YY_FATAL_ERROR ( " " ) ; b -> yy_buf_size = ( yy_size_t ) size ; b -> yy_ch_buf = ( char * ) pktloc_alloc ( b -> yy_buf_size + 2 , yyscanner ) ; if ( ! b -> yy_ch_buf ) YY_FATAL_ERROR ( " " ) ; b -> yy_is_our_buffer = 1 ; pktloc__init_buffer ( b , file , yyscanner ) ; return b ; }
Allocate and initialize an input buffer state.
Allocate and initialize an input buffer state .
/* yy_ch_buf has to be 2 characters longer than the size given because
     * we need to put in 2 end-of-buffer characters.
     */