Enhanced error handling on input stream reading.

oldstable
Eric Pouech 2002-07-10 03:04:30 +00:00 committed by Alexandre Julliard
parent 9e4cf5cb5c
commit 81963df6cf
1 changed files with 2 additions and 2 deletions

View File

@ -29,8 +29,8 @@
#undef YY_INPUT
#define YY_INPUT(buf,result,max_size) \
if ( (result = DEBUG_ReadLine("Wine-dbg>", (char *) buf, max_size, TRUE, TRUE )) < 0 ) \
YY_FATAL_ERROR( "read() in flex scanner failed" );
if ( (result = DEBUG_ReadLine("Wine-dbg>", buf, max_size, TRUE, TRUE)) <= 0 ) \
YY_FATAL_ERROR( "ReadLine() in flex scanner failed" );
#define YY_NO_UNPUT