Subject: bison
To: None <netbsd-help@netbsd.org>
From: Patrick Welche <prlw1@cam.ac.uk>
List: netbsd-help
Date: 09/04/1998 17:30:12
Has any of you tried to use bison, calling yyparse with a variable?

/usr/local/share/bison.simple: In function `yyparse':
/usr/local/share/bison.simple:219: number of arguments doesn't match prototype
/usr/local/share/bison.simple:153: prototype declaration

153:
/* Prevent warning if -Wstrict-prototypes.  */
#ifdef __GNUC__
int yyparse (void); 
#endif

which is simply wrong, and 219:

int
yyparse(YYPARSE_PARAM_ARG)
     YYPARSE_PARAM_DECL

which is correct.

Any ideas why this __GNUC__ bit is in there?

Cheers,

Patrick