src/tokenizer/token_lex.cc
YY_BUFFER_STATE milkcat_yy_create_buffer  (FILE * file, int  size , yyscan_t yyscanner)
{
	YY_BUFFER_STATE b;
    
	b = (YY_BUFFER_STATE) milkcat_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in milkcat_yy_create_buffer()" );

	b->yy_buf_size = 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 *) milkcat_yyalloc(b->yy_buf_size + 2 ,yyscanner );
	if ( ! b->yy_ch_buf )
		YY_FATAL_ERROR( "out of dynamic memory in milkcat_yy_create_buffer()" );

	b->yy_is_our_buffer = 1;

	milkcat_yy_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 milkcat_yy_create_buffer  (FILE * file, int  size , yyscan_t yyscanner)
{
	YY_BUFFER_STATE b;
	b = (YY_BUFFER_STATE) milkcat_yyalloc(sizeof( struct yy_buffer_state ) ,yyscanner );
	if ( ! b )
		YY_FATAL_ERROR( "out of dynamic memory in milkcat_yy_create_buffer()" );
	b->yy_buf_size = size;
	b->yy_ch_buf = (char *) milkcat_yyalloc(b->yy_buf_size + 2 ,yyscanner );
	if ( ! b->yy_ch_buf )
		YY_FATAL_ERROR( "out of dynamic memory in milkcat_yy_create_buffer()" );
	b->yy_is_our_buffer = 1;
	milkcat_yy_init_buffer(b,file ,yyscanner);
	return b;
}
YY_BUFFER_STATE milkcat_yy_create_buffer ( FILE * file , int size , yyscan_t yyscanner ) { YY_BUFFER_STATE b ; b = ( YY_BUFFER_STATE ) milkcat_yyalloc ( sizeof ( struct yy_buffer_state ) , yyscanner ) ; if ( ! b ) YY_FATAL_ERROR ( " " ) ; b -> yy_buf_size = size ; b -> yy_ch_buf = ( char * ) milkcat_yyalloc ( b -> yy_buf_size + 2 , yyscanner ) ; if ( ! b -> yy_ch_buf ) YY_FATAL_ERROR ( " " ) ; b -> yy_is_our_buffer = 1 ; milkcat_yy_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.
	 */