summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikhail Zabaluev <mikhail.zabaluev@gmail.com>2015-10-03 19:08:43 +0300
committerColin Walters <walters@verbum.org>2015-10-04 11:20:23 -0400
commit63d06d32511097fa3cd3192566e022d45265d54b (patch)
tree0fe4c5c25dff78a6c2aa7e29cde2952327c5d30d
parent1be0372c2f6653f0a434e88ef1431507bd47e33d (diff)
downloadgobject-introspection-63d06d32511097fa3cd3192566e022d45265d54b.tar.gz
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
-rw-r--r--giscanner/ast.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index f0888171..aeb49ed2 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