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 707654 - intptr_t not recognized as int type?
intptr_t not recognized as int type?
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: g-ir-scanner
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks: 720090
 
 
Reported: 2013-09-06 20:26 UTC by Behdad Esfahbod
Modified: 2018-02-08 12:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2013-09-06 20:26:07 UTC
If I do this:

typedef int hb_language_t;

then my API:

hb_language_t 
hb_language_get_default (void);

is correctly introspected.  However, if I do this:

typedef intptr_t hb_language_t;

then the same API generates this warning:

/home/behdad/src/freedesktop/harfbuzz/src/hb-common.h:149: Warning: HarfBuzz: hb_language_get_default: return value: Missing (transfer) annotation

moreover, the generate GIR is invalid and generates this error during typelib compilation:

error parsing file HarfBuzz-0.0.gir: Line 52, character 32: The attribute 'name' on the element 'type' must be specified

Here's the relevant lines from the gir:

    <alias name="language_t" c:type="hb_language_t" introspectable="0"> 
      <type c:type="intptr_t"/> 
    </alias>
Comment 1 André Klapper 2015-02-07 17:16:10 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 2 GNOME Infrastructure Team 2018-02-08 12:24:00 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/93.