Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: syssrc/sys/dev/cardbus



On Thu, Nov 22, 2001 at 11:02:56AM -0500, Perry E. Metzger wrote:
> 
> enami tsugutomo <enami%sm.sony.co.jp@localhost> writes:
> > "Perry E. Metzger" <perry%wasabisystems.com@localhost> 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@localhost)                          
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.



Home | Main Index | Thread Index | Old Index