This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: B20: Bug with Bison in bison.simple


> At 12:24 PM 2/1/2001, Ludovic DELAMOTTE wrote:
> 
> >I think there's a problem in bison.simple of B20.
> >
> >I want to give parameters to the function yyparse(), so I wrote:
> >#define YYPARSE_PARAM   cfg
> >
> >After running bison, I obtained the message :
> >"bison.simple:219: number of arguments doesn't match prototype"
> >
> >however, the SAME program compiles under Linux with bison.
> >
> >And then, there is written in bison.simple, lines 151 and above :
> >
> >/* Prevent warning if -Wstrict-prototypes. */
> >#ifdef __GNUC__
> >int yyparse( void );
> >#endif
> >
> >Instead of (I think...):
> >
> >/* Prevent warning if -Wstrict-prototypes. */
> >#ifdef __GNUC__
> >#ifdef YYPARSE_PARAM
> >int yyparse( void *);
> >#else
> >int yyparse( void );
> >#endif
> >#endif
> >
> >That'all...
> >What're you thinking about ?
> 
> 
> 
> Does it work with the current release (1.1.8)?  B20 is as old as the 
> hills...
> 
	Indeed, it looks like correct. :))



> Larry Hall                              lhall@rfk.com
> RFK Partners, Inc.                      http://www.rfk.com
> 118 Washington Street                   (508) 893-9779 - RFK Office
> Holliston, MA 01746                     (508) 893-9889 - FAX
> 

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]