diff options
-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 |