GNOME Bugzilla – Bug 560280
Include bitfield information in typelib
Last modified: 2018-02-08 11:45:53 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.
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.
*** Bug 561575 has been marked as a duplicate of this bug. ***
*** Bug 702193 has been marked as a duplicate of this bug. ***
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]
-- 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.