Re: deprecation lost
- From: Matthias Clasen <maclas gmx de>
- To: gtk-devel-list gnome org
- Subject: Re: deprecation lost
- Date: 29 Nov 2002 22:32:18 +0100
On Fri, 2002-11-29 at 22:01, Owen Taylor wrote:
>
> Matthias Clasen <maclas gmx de> writes:
>
> > Multiple deprecation guards in gdk headers have been changed to
> >
> > #if !defined (GDK_DISABLE_DEPRECATED) || defined (GDK_COMPILATION)
> >
> > (I think this happened during deprecation cleanups.) Unfortunately,
> > gtk-doc doesn't grok this, so that the affected symbols have lost their
> > deprecation, at least documentation-wise.
> >
> > Can we do this differently ?
>
> Hmm, I looked at the the code in gtk-doc when we tried to figure
> out how to do it, and it looked like it would grok it ... it seemed
> that having GDK_DISABLE_DEPRECATED anywhere on the line would be enough.
>
I believe it doesn't match those lines at all, since the regex is
/^\s*#\s*if\w*\s+(\w+)/
the first \w* matches nothing, \s+ matches the single space after if,
but the ! which comes then doesn't fit in (\w+).
> Suggestions for how to do it differently? I don't see that it
> is possible. (The requirement being a way to include certain
> deprecated header bits when compiling GDK or GTK.)
I guess we have to do some regex fiddling to match both
#ifndef DEPRECATION_GUARD
and
#if !defined(DEPRECATION_GUARD) || ..
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]