This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Request to drop daft GNU extension


> I'd like to request we drop a GNU extension.  I realise this will make
> me unpopular with the backwards compatibility crowd, but there are
> sound reasons for doing so.

I'm in favour of dropping it, but I would really like to see the C99
version as a replacement, not an ongoing support for the GNU macro
varargs feature. If possible, the preprocessor should detect that a
certain expansion has a different meaning under GNU C and C99, issue a
warning, and use the C99 meaning. There should be an option to restore
the GNU C meaning.

> #define eprintf(format, args...) fprintf (stderr, format , ## args)

In C99, this would be written as

#define eprintf(format, ...) fprintf (stderr, format __VA_ARGS__)

Right?

Regards,
Martin

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]