At 21:26 +0800 2005/04/01, martin nylin wrote:
Hi
I am testing bison 2.0 on cygwin and has found a bug in scan-skel.l. This bug causes 122 test cases to fail with the error message:
fatal error: invalid token in skeleton: @output @output_parser_name@
The mistake is in line 50 of scan-skel.l:
yytext[yyleng - 1] = '\0';
Where the programmer did not consider the fact that windoze uses two characters to represent end of line. I have no patch ready, but I assume the nicest solution would be to add something like this to system.h:
#ifdef _WIN32 #define NUMBER_OF_EOL_CHARACTERS 2 #else #define NUMBER_OF_EOL_CHARACTERS 1 #endif
and then modify line 50 in scan-skel.l to:
yytext[yyleng - NUMBER_OF_EOL_CHARACTERS] = '\0';
What to do think? At least it resolves my problem.
Regards Martin
http://www.nosoftwarepatents.com/
-- ______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox.
Powered by Outblaze
