This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Request to drop daft GNU extension
- To: NeilB at earthling dot net
- Subject: Re: Request to drop daft GNU extension
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sun, 11 Jun 2000 09:09:10 +0200
- CC: gcc at gcc dot gnu dot org, zack at wolery dot cumb dot org
- References: <E130udJ-00064L-00@monkey.rosenet.ne.jp>
> 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