summaryrefslogtreecommitdiff
path: root/giscanner/ast.py
diff options
context:
space:
mode:
authorColin Walters <walters@src.gnome.org>2008-10-02 13:25:46 +0000
committerColin Walters <walters@src.gnome.org>2008-10-02 13:25:46 +0000
commitddb93b98b955bd5d3080835047abf7a641abf440 (patch)
tree5a94d5960badb5ed44a33f2da4153b775520f232 /giscanner/ast.py
parent1ab23b133ad9b48b9f67117f150026ff48daa927 (diff)
downloadgobject-introspection-ddb93b98b955bd5d3080835047abf7a641abf440.tar.gz
Bug 554632: Create type tag for GType
svn path=/trunk/; revision=641
Diffstat (limited to 'giscanner/ast.py')
-rw-r--r--giscanner/ast.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/giscanner/ast.py b/giscanner/ast.py
index 93154d2c..7cd4fc6c 100644
--- a/giscanner/ast.py
+++ b/giscanner/ast.py
@@ -48,6 +48,7 @@ TYPE_ULONG = 'ulong'
TYPE_SSIZET = 'ssize_t'
TYPE_SIZET = 'size_t'
TYPE_TIMET = 'time_t'
+TYPE_GTYPE = 'GType'
TYPE_FLOAT = 'float'
TYPE_DOUBLE = 'double'
TYPE_STRING = 'utf8' # requires zero-terminated
@@ -57,7 +58,7 @@ BASIC_GIR_TYPES = [TYPE_BOOLEAN, TYPE_INT8, TYPE_UINT8, TYPE_INT16,
TYPE_UINT16, TYPE_INT32, TYPE_UINT32, TYPE_INT64,
TYPE_UINT64, TYPE_INT, TYPE_UINT, TYPE_LONG,
TYPE_ULONG, TYPE_SSIZET, TYPE_SIZET, TYPE_FLOAT,
- TYPE_DOUBLE, TYPE_TIMET]
+ TYPE_DOUBLE, TYPE_TIMET, TYPE_GTYPE]
GIR_TYPES = [TYPE_NONE, TYPE_ANY]
GIR_TYPES.extend(BASIC_GIR_TYPES)
GIR_TYPES.extend([TYPE_STRING, TYPE_FILENAME])