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 765659 - Add pointer sized integer field to GValue and use it for GType
Add pointer sized integer field to GValue and use it for GType
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gobject
unspecified
Other Windows
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on: 758738
Blocks:
 
 
Reported: 2016-04-27 07:31 UTC by Sebastian Dröge (slomo)
Modified: 2018-05-24 18:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gvalue: Add uintptr field to the union for pointer sized integers (660 bytes, patch)
2016-04-27 07:43 UTC, Sebastian Dröge (slomo)
none Details | Review
gvalue: Use uintptr field of GValue to store GTypes (2.32 KB, patch)
2016-04-27 07:43 UTC, Sebastian Dröge (slomo)
none Details | Review

Description Sebastian Dröge (slomo) 2016-04-27 07:31:29 UTC
+++ This bug was initially created as a clone of Bug #758738 +++

See https://bugzilla.gnome.org/show_bug.cgi?id=758738#c40 and following comments
Comment 1 Sebastian Dröge (slomo) 2016-04-27 07:43:34 UTC
Created attachment 326838 [details] [review]
gvalue: Add uintptr field to the union for pointer sized integers
Comment 2 Sebastian Dröge (slomo) 2016-04-27 07:43:39 UTC
Created attachment 326839 [details] [review]
gvalue: Use uintptr field of GValue to store GTypes
Comment 3 Sebastian Dröge (slomo) 2016-04-27 07:44:59 UTC
I'm not 100% sure if this is the cleanest way though, GType is registered as a pointer type: https://git.gnome.org/browse/glib/tree/gobject/gvaluetypes.c#n1171

So collection from varargs functions for example would go through v_pointer anyway.


Should GType be registered as a new fundamental type? Should there be a uintptr fundamental type?
Comment 4 GNOME Infrastructure Team 2018-05-24 18:52:16 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/glib/issues/1163.