[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 CVS bugs
Derek R. Price
Re: 2 CVS bugs
Mon, 02 Apr 2001 14:30:46 -0400
"Derek R. Price" wrote:
> Alon Ziv wrote:
> > +static int yyparse ();
> > static int yylex ();
> > static int yyerror ();
Whoops, just noticed you sent me the patch for getdate.c & not getdate.y. So
first of all, you should know that getdate.c is a generated file. Yacc (Yet
another C compiler) is used to generate getdate.c from getdate.y.
I researched the yyparse() prototype a little farther. Bison (GNU yacc) appears
to generate prototypes for yyparse() automatically. Apparently it's not
a user should override because it ifdef's on some things like YYPARSE_PARAM &
__cplusplus for various reasons.
I still don't know why it's not working on your system. There _is_ a prototype
the dev source. I notice that 'cvs annotate' seems to think those lines are
recent (and checked in by me, in fact), and they have a comment that they
warnings with '-Wstrict-prototype', so maybe I'm using a more recent version of
Bison than was available when your source was generated? What version of CVS
you compiling? Can you try again with the dev source?
Derek Price CVS Solutions Architect ( http://CVSHome.org )
mailto:address@hidden CollabNet ( http://collab.net )
The man who reads nothing at all is better educated than the man who reads
nothing but newspapers.
- Thomas Jefferson (1743-1826)