Re: [PATCH] deprecated function attribute

From: Daniel Jacobowitz (dan@debian.org)
Date: Sat Dec 28 2002 - 13:53:55 EST


On Sat, Dec 28, 2002 at 01:03:52PM -0500, Robert Love wrote:
> On Sat, 2002-12-28 at 12:51, Robert Love wrote:
>
> > +#if __GNUC__ == 3
> > +#define deprecated __attribute__((deprecated))
> > +#else
> > +#define deprecated
> > +#endif
>
> Before someone points it out: I grepped the tree and did not see any
> uses of "deprecated" as a token on first glance. So the above is safe.
>
> If we want to be preemptive, we can rename the above to "__deprecated__"
> but I think plain "deprecated" is much better looking.

Eek, please call it something else - something that looks visibly like
a syntax rather than a name. __deprecated or __deprecated__ or
DEPRECATED.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Dec 31 2002 - 22:00:12 EST