Re: [PATCH] deprecated function attribute

Daniel Jacobowitz
2002-12-28T18:44:05Z

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