add signed integer and off_t to type_names
authorJürg Billeter <j@bitron.ch>
Mon, 13 Oct 2008 20:50:28 +0000 (20:50 +0000)
committerJürg Billeter <juergbi@src.gnome.org>
Mon, 13 Oct 2008 20:50:28 +0000 (20:50 +0000)
2008-10-13  Jürg Billeter  <j@bitron.ch>

* giscanner/ast.py: add signed integer and off_t to type_names

svn path=/trunk/; revision=702

ChangeLog
giscanner/ast.py

index 6ca560d3aa3e3c08029a94c6b13d408c1b48c5fc..b53fb4aafa477d83576cef1cac72aed822237624 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-10-13  Jürg Billeter  <j@bitron.ch>
+
+       * giscanner/ast.py: add signed integer and off_t to type_names
+
 2008-10-12  Jürg Billeter  <j@bitron.ch>
 
        * giscanner/girparser.py: Parse bits attribute of fields
index ec9c177ac0ae8d8458ae1dbd87e49a2cd3772ea9..3d2c76cb3297264fc2f8783fa60389f45875c88e 100644 (file)
@@ -84,13 +84,18 @@ for name in GIR_TYPES:
 
 # C
 type_names['char'] = TYPE_INT8
+type_names['signed char'] = TYPE_INT8
 type_names['unsigned char'] = TYPE_UINT8
 type_names['short'] = TYPE_INT16
+type_names['signed short'] = TYPE_INT16
 type_names['unsigned short'] = TYPE_UINT16
 type_names['int'] = TYPE_INT
+type_names['signed int'] = TYPE_INT
+type_names['signed'] = TYPE_INT
 type_names['unsigned int'] = TYPE_UINT
 type_names['unsigned'] = TYPE_UINT
 type_names['long'] = TYPE_LONG
+type_names['signed long'] = TYPE_LONG
 type_names['unsigned long'] = TYPE_ULONG
 type_names['float'] = TYPE_FLOAT
 type_names['double'] = TYPE_DOUBLE
@@ -99,6 +104,7 @@ type_names['void*'] = TYPE_ANY
 type_names['void'] = TYPE_NONE
 type_names['size_t'] = TYPE_SIZET
 type_names['ssize_t'] = TYPE_SSIZET
+type_names['off_t'] = TYPE_SIZET
 # FIXME - can we make libraries use GPid?
 type_names['pid_t'] = TYPE_INT