Request to drop daft GNU extension
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Sun Jun 11 00:17:00 GMT 2000
> 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
More information about the Gcc
mailing list