[gobject-introspection] Add the fixed width C99 types from stdint.h



commit 4db11376208b4662705d8b7a82ac12ba6fc1f745
Author: Neil Roberts <neil linux intel com>
Date:   Wed Apr 25 14:20:09 2012 +0100

    Add the fixed width C99 types from stdint.h
    
    C99 has standard types for fixed width 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.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=674796

 giscanner/ast.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/giscanner/ast.py b/giscanner/ast.py
index a78a9f1..cab3807 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -265,6 +265,15 @@ type_names['void*'] = TYPE_ANY
 type_names['void'] = TYPE_NONE
 # Also alias the signed one here
 type_names['signed long long'] = TYPE_LONG_LONG
+# C99 stdint exact width types
+type_names['int8_t'] = TYPE_INT8
+type_names['uint8_t'] = TYPE_UINT8
+type_names['int16_t'] = TYPE_INT16
+type_names['uint16_t'] = TYPE_UINT16
+type_names['int32_t'] = TYPE_INT32
+type_names['uint32_t'] = TYPE_UINT32
+type_names['int64_t'] = TYPE_INT64
+type_names['uint64_t'] = TYPE_UINT64
 
 # A few additional GLib type aliases
 type_names['guchar'] = TYPE_UINT8



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]