[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Invalid C output for !defined (YYPARSE_PARAM) && !defined (__STDC__)
From: |
Joel E. Denny |
Subject: |
Re: Invalid C output for !defined (YYPARSE_PARAM) && !defined (__STDC__) && !defined (__STDC__) |
Date: |
Sun, 14 Jan 2007 19:08:56 -0500 (EST) |
On Sun, 14 Jan 2007, Hans Breuer wrote:
> Bison 2.1 and 2.2 generate invalid C ouput, which breaks the build for a
> gimp plug-in [1]. A stray semicolon occures since 2.1
> #ifdef YYPARSE_PARAM
> # if defined (__STDC__) || defined (__cplusplus)
> int yyparse (void *YYPARSE_PARAM)
> # else
> int yyparse (YYPARSE_PARAM)
> void *YYPARSE_PARAM;
> # endif
> #else /* ! YYPARSE_PARAM */
> #if defined (__STDC__) || defined (__cplusplus)
> int
> yyparse (void)
> #else
> int
> yyparse ()
> ; /* <-- this is the bug! */
> #endif
> #endif
I see that semicolon from 2.1 but not 2.2 or 2.3. I tried this test
grammar:
%%
start: ;