Subject: Re: CVS commit: syssrc/sys/dev/cardbus
To: enami tsugutomo <enami@sm.sony.co.jp>
From: Perry E. Metzger <perry@wasabisystems.com>
List: source-changes
Date: 11/22/2001 11:02:56
enami tsugutomo <enami@sm.sony.co.jp> writes:
> "Perry E. Metzger" <perry@wasabisystems.com> writes:
> > > Don't use __func__ as variable. It prevents compilation.
> > > Use __FUNCTION__ instead.
> >
> > This is a step backwards.
> >
> > __FUNCTION__ is a gcc extension. __func__ is C99. Please use __func__,
> > not __FUNCTION__.
>
> But pre-NEW_TOOLCHAIN compiler doesn't recognize __func__ (that's why
> it was able to be used for other purpose).
Oh, I see what you mean.
It is still wrong. __FUNCTION__ is special to gcc! You have to name
the thing something else.
--
Perry E. Metzger perry@wasabisystems.com
--
NetBSD Development, Support & CDs. http://www.wasabisystems.com/