Re: Accompany index of deprecated symbols with GTK+ version?



On Mon, Nov 13, 2006 at 08:06:30PM -0700, Jim George wrote:

Why not use the "deprecated" keyword in the headers? Then at least gcc
will warn you if you use deprecated functions and typedefs. This could
be made as a macro which gets expanded only if you're using gcc, and
if you have something like GTK_WARN_DEPRECATED defined first.

It works only with gcc, conditional compilation works
always.

It is impossible to achieve the effect of the #ifdefs (i.e.,
symbols disappearing) with this approach, so do you suggest
to use two types of marking or to remove the #ifdefs?
You can define GTK_DISABLE_DEPRECATED now and get errors (or
warnings in the case of functions if you wish).

And again: do you think it would be such a great improvement
that you are willing to go through the headers and add the
versioned deprecated info there?

Yeti


--
Whatever.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]