diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2008-11-25 21:05:21 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-11-25 21:05:21 +0000 |
commit | 9d19713fed76e3be0c4f1a40dfd63f4cfd308e6b (patch) | |
tree | 3e680f861f33ec5ae35bec7a2c06bc875e5ff40d | |
parent | 679c2d533a05ea33fb2df99a1a08c9bd10bf0350 (diff) | |
download | gobject-introspection-9d19713fed76e3be0c4f1a40dfd63f4cfd308e6b.tar.gz |
Define socklen_t as an alias for int32.
2008-11-25 Johan Dahlin <jdahlin@async.com.br>
* giscanner/ast.py: Define socklen_t as an alias for int32.
svn path=/trunk/; revision=968
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | giscanner/ast.py | 10 |
2 files changed, 8 insertions, 4 deletions
@@ -1,5 +1,7 @@ 2008-11-25 Johan Dahlin <jdahlin@async.com.br> + * giscanner/ast.py: Define socklen_t as an alias for int32. + * giscanner/glibtransformer.py: * tools/g-ir-scanner: Execute the dumper program through libtool if it's installed, diff --git a/giscanner/ast.py b/giscanner/ast.py index f2d72191..3b3673f7 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -86,7 +86,7 @@ type_names = {} for name in GIR_TYPES: type_names[name] = name -# C +# C builtin type_names['char'] = TYPE_INT8 type_names['signed char'] = TYPE_INT8 type_names['unsigned char'] = TYPE_UINT8 @@ -106,11 +106,13 @@ type_names['double'] = TYPE_DOUBLE type_names['char*'] = TYPE_STRING type_names['void*'] = TYPE_ANY type_names['void'] = TYPE_NONE -type_names['size_t'] = TYPE_SIZET -type_names['ssize_t'] = TYPE_SSIZET + +# C unix types type_names['off_t'] = TYPE_SIZET -# FIXME - can we make libraries use GPid? type_names['pid_t'] = TYPE_INT +type_names['size_t'] = TYPE_SIZET +type_names['ssize_t'] = TYPE_SSIZET +type_names['socklen_t'] = TYPE_INT32 # Obj-C type_names['id'] = TYPE_ANY |