[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Possible bison 2.1 bug?
From: |
Mike Martin |
Subject: |
Possible bison 2.1 bug? |
Date: |
Fri, 21 Apr 2006 11:25:21 -0500 |
The generated code for the yyparse() function header looks like this:
#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 ()
;
#endif
#endif
In the case where neither __STDC__ nor __cplusplus is defined,
a function prototype (note the semi-colon) is generated, rather
than a function header. Is this by design, or is it truly a bug?
Thanks,
Michael Martin
address@hidden
- Possible bison 2.1 bug?,
Mike Martin <=