[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bison.simple and C++ conflict
From: |
Yotam Medini |
Subject: |
bison.simple and C++ conflict |
Date: |
Mon, 8 Jan 2001 16:49:07 +0200 |
Bison 1.28 uses a file 'bison.simple' that has:
iwsl010:304> sed -n 237,244p /usr/lib/bison.simple
/* Prevent warning if -Wstrict-prototypes. */
#ifdef __GNUC__
#ifdef YYPARSE_PARAM
int yyparse (void *);
#else
int yyparse (void);
#endif
#endif
Now, if yyparse is #define to be a _method_ of a C++ class
then this declaration fails C++ compilation.
Thus the above warning prevention creates a problem.
I suggest to have something like:
#ifndef YYPARSE_DECLARED_ELSEWHERE
... // the above
#endif
So applications can avoid the above yyparse declaration.
regards -- yotam
Yotam Medini (MS: IDC-4E) // (home:) haTamar 7 \\ Go .--. .--. -. -.
address@hidden // Binyamina, 30500 \\ Linux, | | | | | |
POBox 1659, Haifa 31015 // ISRAEL, (972) 4 6288995 \\ Go! | | | | | '
ISRAEL (972) 4 865-6181 // address@hidden \\ |__/_| | |
- bison.simple and C++ conflict,
Yotam Medini <=