Subject: Re: CVS commit: syssrc/sys/dev/cardbus
To: Perry E. Metzger <perry@wasabisystems.com>
From: Bill Squier <groo@old-ones.com>
List: source-changes
Date: 11/22/2001 11:10:26
On Thu, Nov 22, 2001 at 11:02:56AM -0500, Perry E. Metzger wrote:
> 
> 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.

ANSI C reserves all identifiers which match _[_A-Z][_a-zA-Z0-9]*.
(C99 draft / 7.1.2)

-- 
Bill Squier (groo@old-ones.com)                          http://www.netbsd.org

        I know I don't deserve another chance, but this _is_ America,
        and as an American, aren't I entitled to one?  --Sideshow Bob.