GNOME Bugzilla – Bug 674796
Add support for the fixed width types from C99
Last modified: 2015-02-07 16:58:39 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.
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.
Review of attachment 212782 [details] [review]: Makes sense to me, thank you!
Ok, thanks. I've pushed it to master. http://git.gnome.org/browse/gobject-introspection/commit/?id=4db11376208b46
*** Bug 676148 has been marked as a duplicate of this bug. ***
*** Bug 682179 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 ]