|Bison problem under Unix|
bison.simple file on many releases will not compile with the options used by the PWLib
getdate.y grammar. The options are required to make the date parser thread safe so it is
necessary to edit the bison.simple file to fix the problem.
The file is usually at /usr/lib/bison.simple but in the tradition of unix could actually be anywhere. We leave it up to you to find it.
/* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ int yyparse (void); #endif
should be changed to
/* Prevent warning if -Wstrict-prototypes. */ #ifdef __GNUC__ #ifndef YYPARSE_PARAM int yyparse (void); #endif #endif
To prevent the incorrect function prototype from being defined. The getdate.y should then produce a getdate.tab.c file that will actually compile.