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 674796 - Add support for the fixed width types from C99
Add support for the fixed width types from C99
Status: RESOLVED FIXED
Product: gobject-introspection
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gobject-introspection Maintainer(s)
gobject-introspection Maintainer(s)
: 676148 682179 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-04-25 13:44 UTC by Neil Roberts
Modified: 2015-02-07 16:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add the fixed width C99 types from stdint.h (1.46 KB, patch)
2012-04-25 13:45 UTC, Neil Roberts
accepted-commit_now Details | Review

Description Neil Roberts 2012-04-25 13:44:34 UTC
Git master of Cogl has started using the fixed-width integer types from C99 (ie, int32_t etc) in its public API so that it doesn't have to publicly depend on glib. It has a CoglAngle typedef which is defined to int32_t. When the gi scanner sees this it ends up generating a <type> tag with no name attribute and then the IR compiler can't parse it so the build fails.
Comment 1 Neil Roberts 2012-04-25 13:45:23 UTC
Created attachment 212782 [details] [review]
Add the fixed width C99 types from stdint.h

C99 has standard types for fixed with signed and unsigned integers.
This adds types to giscanner to map them to the glib equivalent types.

stdint.h also has other types to specify specify sizes with at least a
certain number of bits, the fastest type with at least some number of
bits, a type big enough to store a pointer and a type containing the
most number of bits. These don't map well to glib types so I have
ignored them.
Comment 2 Colin Walters 2012-05-02 13:16:03 UTC
Review of attachment 212782 [details] [review]:

Makes sense to me, thank you!
Comment 3 Neil Roberts 2012-05-02 13:39:49 UTC
Ok, thanks. I've pushed it to master.

http://git.gnome.org/browse/gobject-introspection/commit/?id=4db11376208b46
Comment 4 Neil Roberts 2012-05-16 10:50:24 UTC
*** Bug 676148 has been marked as a duplicate of this bug. ***
Comment 5 Emmanuele Bassi (:ebassi) 2013-08-26 09:43:24 UTC
*** Bug 682179 has been marked as a duplicate of this bug. ***
Comment 6 André Klapper 2015-02-07 16:58:39 UTC
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]