byacc problem with "gcc -ansi" in beta18

Lutz Jaenicke Lutz.Jaenicke@aet.TU-Cottbus.DE
Fri Jul 18 02:40:00 GMT 1997


Hello out there!

When porting a UNIX (and Linux) software to gnu-win32 I found a small
portability problem in beta18:

byacc under gnu-win32 b18 generates the following code for yygrow():

static int
#ifdef __GNUC__
inline
#endif
yygrow ()
{
...

When running gcc with "gcc -ansi", __GNUC__ is recognized, the "inline"
keyword is however invalid in strict ANSI mode.
In byacc/skeleton.c, line 113ff this should be changed to e.g.
#if (defined(__GNUC__) && !defined(__STRICT_ANSI__))
inline
#endif

Best regards,
	Lutz Jaenicke
PS. Nice set of tools.
PPS. Since I am not myself on the list (I only access it from the archive)
and don't intend to get on it (ssh, kde and samba is already enough
traffic :-), please CC all comments to my email address.
-- 
Lutz Jaenicke                             Lutz.Jaenicke@aet.TU-Cottbus.DE
BTU Cottbus                http://www.aet.TU-Cottbus.DE/personen/jaenicke
Lehrstuhl Allgemeine Elektrotechnik                  Tel. +49 355 69-2772
Postfach 101344, D-03013 Cottbus                     Fax. +49 355 69-2395
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list