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 560280 - Include bitfield information in typelib
Include bitfield information in typelib
Status: RESOLVED OBSOLETE
Product: gobject-introspection
Classification: Platform
Component: libgirepository
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
: 561575 702193 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-11-11 05:32 UTC by Owen Taylor
Modified: 2018-02-08 11:45 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Bug 560280 - Reserve typelib space for bitfield data (1.22 KB, patch)
2009-02-24 20:39 UTC, Colin Walters
none Details | Review

Description Owen Taylor 2008-11-11 05:32:51 UTC
We should compute bitfield positions and store them in the typelib.

FieldBlob needs to be extended for this, since it's missing the 
position of the bits within the bitfield. (Possibly an incompatible change,
some shifting around of:

  guint          readable : 1; 
  guint          writable : 1;
  guint          reserved : 6;
  guint8         bits;

seems indicated. Assuming we don't care about > 32-bit fields, 
then 5 bits are needed for 'bits' and 5 for the position.)

Computation is a little challenging because bitfields differ significantly
between differnet ABIs (and on Windows you have different bitfield handling
in the Microsoft and GCC ABIs...) Will take a bit of study.
Comment 1 Colin Walters 2009-02-24 20:39:41 UTC
Created attachment 129426 [details] [review]
Bug 560280 - Reserve typelib space for bitfield data

We aren't calculating this yet, but better to reserve the space now.

Also, we add in a missing 16 bit reserved block that was needed
for alignment to FieldBlob, so it stays the same size while "gaining"
16 reserved bits.
Comment 2 Johan (not receiving bugmail) Dahlin 2010-09-06 16:43:56 UTC
*** Bug 561575 has been marked as a duplicate of this bug. ***
Comment 3 Emmanuele Bassi (:ebassi) 2013-08-26 11:21:19 UTC
*** Bug 702193 has been marked as a duplicate of this bug. ***
Comment 4 André Klapper 2015-02-07 17:17:20 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
Comment 5 GNOME Infrastructure Team 2018-02-08 11:45:53 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/5.