[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison output file should not second-guess autoconf re 'const'

From: Akim Demaille
Subject: Re: Bison output file should not second-guess autoconf re 'const'
Date: 20 Aug 2001 20:47:30 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence)

| Bison 1.28c still generates the following code:
|       #ifndef __cplusplus
|       # ifndef __STDC__
|       #  define const
|       # endif
|       #endif
| This code is incompatible with the more modern tradition where it's
| the job of 'configure' to #define const when necessary.  This has
| caused me problem on more than one occasion, when 'configure' decides
| to #define const, but the above code decides not to define it (or vice
| versa), causing declaration incompatibilities when part of the code
| defines const and part does not.

I agree very much with this patch, as I already had to struggle
against it.  But I fear some people still don't use Autoconf (shame on
them :).  So maybe something like



would be better than completely removing it.  Or something like that
(if people use DEFS instead of config.h, or if people have packages
part under Autoconf, and other without (gee!)).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]