[gobject-introspection] giscanner.ast: Map size_t and ssize_t to gsize and gssize, respectively



commit 63d06d32511097fa3cd3192566e022d45265d54b
Author: Mikhail Zabaluev <mikhail zabaluev gmail com>
Date:   Sat Oct 3 19:08:43 2015 +0300

    giscanner.ast: Map size_t and ssize_t to gsize and gssize, respectively
    
    The mapping to long int types seems bogus; the code above it did the right
    thing, but only for size_t.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756016

 giscanner/ast.py |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/giscanner/ast.py b/giscanner/ast.py
index f088817..aeb49ed 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -344,6 +344,7 @@ type_names['FILE*'] = TYPE_ANY
 # the relevant methods, but on the other hand, since these types are just
 # integers it's easy enough to expand them.
 type_names['size_t'] = type_names['gsize']
+type_names['ssize_t'] = type_names['gssize']
 type_names['time_t'] = TYPE_LONG
 type_names['off_t'] = type_names['gsize']
 type_names['pid_t'] = TYPE_INT
@@ -351,8 +352,6 @@ type_names['uid_t'] = TYPE_UINT
 type_names['gid_t'] = TYPE_UINT
 type_names['dev_t'] = TYPE_INT
 type_names['socklen_t'] = TYPE_INT32
-type_names['size_t'] = TYPE_ULONG
-type_names['ssize_t'] = TYPE_LONG
 
 # Obj-C
 type_names['id'] = TYPE_ANY


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