6a7,10
> 
> #define YY_INPUT(buf,result,max_size) \
> 	if ( (result = LexerReadStatic( (char *) buf, max_size )) < 0 ) \
> 		YY_FATAL_ERROR( "input in flex scanner failed" );
172a177,223
> 
> int yyFlexLexer::LexerReadStatic( char* buf, int max_size )
> {
>     char** cur = (char**)yyin;
>     char* start = *cur;
> #if 0
>     for (; **cur && max_size > 0; (*cur)++, buf++) {
>       *buf = **cur;
>       max_size--;
>     }
> #else
>     if (**cur && max_size > 0) {
>       *buf = **cur;
>       (*cur)++, buf++;
>     }
> #endif
>     return *cur - start;
> }
> 
> yyFlexLexer::yyFlexLexer( char** ptr )
> 	{
> 	yyin = (std::istream*)ptr;
> 	yyout = NULL;
> 	yy_c_buf_p = 0;
> 	yy_init = 1;
> 	yy_start = 0;
> 	yy_flex_debug = 0;
> 	yylineno = 1;	// this will only get updated if %option yylineno
> 
> 	yy_did_buffer_switch_on_eof = 0;
> 
> 	yy_looking_for_trail_begin = 0;
> 	yy_more_flag = 0;
> 	yy_more_len = 0;
> 	yy_more_offset = yy_prev_more_offset = 0;
> 
> 	yy_start_stack_ptr = yy_start_stack_depth = 0;
> 	yy_start_stack = 0;
> 
> 	yy_current_buffer = 0;
> 
> #ifdef YY_USES_REJECT
> 	yy_state_buf = new yy_state_type[YY_BUF_SIZE + 2];
> #else
> 	yy_state_buf = 0;
> #endif
> 	}
