[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 CVS bugs
From: |
Derek R. Price |
Subject: |
Re: 2 CVS bugs |
Date: |
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
anything
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
in
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
prevent
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
are
you compiling? Can you try again with the dev source?
Derek
--
Derek Price CVS Solutions Architect ( http://CVSHome.org )
mailto:dprice@collab.net 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)