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 658848 - g_type_info_is_pointer() fails on manually redefined argument types
g_type_info_is_pointer() fails on manually redefined argument types
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
2.29.x
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-09-12 17:51 UTC by Pavel Holejsovsky
Modified: 2015-02-07 17:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Make sure that gpointer and gconstpointer ctypes are recognizes as pointer types (2.99 KB, patch)
2011-09-12 17:55 UTC, Pavel Holejsovsky
committed Details | Review

Description Pavel Holejsovsky 2011-09-12 17:51:24 UTC
Consider following annotation of g_variant_equal:

/**
 * g_variant_equal:
 * @one: (type GVariant): a #GVariant instance
 * @two: (type GVariant): a #GVariant instance
 * @returns: %TRUE if @one and @two are equal

produces following .gir snippet parameters:

        <parameters>
          <parameter name="two" transfer-ownership="none">
            <doc xml:whitespace="preserve">a #GVariant instance</doc>
            <type name="Variant" c:type="gconstpointer"/>
          </parameter>
        </parameters>

girparser.c then fails to deduce that input argument is actually pointer, because there is no '*' mark in the c:type.
Comment 1 Pavel Holejsovsky 2011-09-12 17:55:35 UTC
Created attachment 196294 [details] [review]
Make sure that gpointer and gconstpointer ctypes are recognizes as pointer types
Comment 2 Johan (not receiving bugmail) Dahlin 2011-09-12 18:11:17 UTC
Review of attachment 196294 [details] [review]:

Unfortunate, but looks good to me.
Comment 3 Pavel Holejsovsky 2011-09-12 18:22:12 UTC
Review of attachment 196294 [details] [review]:

Committed, thanks for quick review! :-)
Comment 4 André Klapper 2015-02-07 17:01:19 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]