After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 629668 - (skip) annotation ignored on typedefs
(skip) annotation ignored on typedefs
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
2.25.x
Other Linux
: Normal major
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2010-09-14 14:54 UTC by Philip Withnall
Modified: 2015-02-07 16:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Philip Withnall 2010-09-14 14:54:56 UTC
I'm working on fixing the tp-glib introspection stuff to work with g-i master (fdo#30134), and I've come up against the following problem.

I have this code in an (introspected) C file, catering for the rename of TpIntSet → TpIntset (as all the methods are prefixed "tp_intset_"):

typedef struct _TpIntset TpIntset;

/* See fdo#30134 for the reasoning behind the rename of TpIntSet to TpIntset */

/**
 * TpIntSet: (skip)
 *
 * Before 0.11.UNRELEASED, this was the name for <type>TpIntset</type>, but it's
 * now just a backwards compatibility typedef.
 */
typedef TpIntset TpIntSet;

We're (skip)ing TpIntSet to avoid bug #629649 in vapigen.

However, g-ir-scanner seems to ignore the (skip) annotation and the following <alias> element still makes its way into the GIR file:

    <alias name="IntSet" c:type="TpIntSet">
      <type name="Intset" c:type="TpIntset"/>
    </alias>

which causes vapigen pain and discomfort.
Comment 1 Colin Walters 2010-09-14 16:00:15 UTC
I'm on this.
Comment 2 Colin Walters 2010-09-14 16:25:17 UTC
commit 53b4da85dcb49d1fd3dc5e4033e476119653b214
Author: Colin Walters <walters@verbum.org>
Date:   Tue Sep 14 12:23:59 2010 -0400

    scanner: Parse annotations for typedefs
    
    * Explicitly check for ast.Alias in annotation pass
    * Add "generic" attribs handling for aliases like docs, introspectable=0
      etc.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=629668
Comment 3 André Klapper 2015-02-07 16:53:06 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]