projects
/
platform
/
upstream
/
gobject-introspection.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6a1f04
)
[annotationparser] Reuse method for determining array type
author
Johan Dahlin
<johan@gnome.org>
Tue, 22 Jun 2010 12:47:26 +0000
(09:47 -0300)
committer
Johan Dahlin
<johan@gnome.org>
Tue, 22 Jun 2010 12:48:06 +0000
(09:48 -0300)
giscanner/annotationparser.py
patch
|
blob
|
history
diff --git
a/giscanner/annotationparser.py
b/giscanner/annotationparser.py
index
bea8773
..
43ca03c
100644
(file)
--- a/
giscanner/annotationparser.py
+++ b/
giscanner/annotationparser.py
@@
-713,9
+713,7
@@
class AnnotationApplier(object):
else:
array_values = {}
- is_g_array = (node.type.ctype.startswith('GArray*') or
- node.type.ctype.startswith('GPtrArray*') or
- node.type.ctype.startswith('GByteArray*'))
+ is_g_array = self._is_array_type(node)
element_type = options.get(OPT_ELEMENT_TYPE)
if element_type is not None: