From a93f0b24fcf72e0033881f3a021bee03e254891b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrg=20Billeter?= Date: Mon, 13 Oct 2008 20:50:28 +0000 Subject: [PATCH] add signed integer and off_t to type_names MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-10-13 Jürg Billeter * giscanner/ast.py: add signed integer and off_t to type_names svn path=/trunk/; revision=702 --- ChangeLog | 4 ++++ giscanner/ast.py | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6ca560d3..b53fb4aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-10-13 Jürg Billeter + + * giscanner/ast.py: add signed integer and off_t to type_names + 2008-10-12 Jürg Billeter * giscanner/girparser.py: Parse bits attribute of fields diff --git a/giscanner/ast.py b/giscanner/ast.py index ec9c177a..3d2c76cb 100644 --- a/giscanner/ast.py +++ b/giscanner/ast.py @@ -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 -- 2.34.1