summaryrefslogtreecommitdiff
path: root/giscanner/maintransformer.py
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2018-04-28 00:00:00 +0000
committerChristoph Reiter <reiter.christoph@gmail.com>2018-06-20 19:43:48 +0200
commit7043bb4b6842ba5572a4cf289a720b4044aeab5f (patch)
tree39b125e75a52e1fcb90c2edc8d8310fb0fe0c316 /giscanner/maintransformer.py
parentb310d006968030862714398e89254402d0b00edb (diff)
downloadgobject-introspection-7043bb4b6842ba5572a4cf289a720b4044aeab5f.tar.gz
Preserve complete C type when applying array annotations.
Diffstat (limited to 'giscanner/maintransformer.py')
-rw-r--r--giscanner/maintransformer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/giscanner/maintransformer.py b/giscanner/maintransformer.py
index 4f6db545..a7287ec2 100644
--- a/giscanner/maintransformer.py
+++ b/giscanner/maintransformer.py
@@ -389,6 +389,7 @@ class MainTransformer(object):
array_options = annotations.get(ANN_ARRAY)
container_type = ast.Array(array_type, element_type_node, ctype=node.type.ctype,
+ complete_ctype=node.type.complete_ctype,
is_const=node.type.is_const)
if array_options.get(OPT_ARRAY_ZERO_TERMINATED, '0') == '0':
container_type.zeroterminated = False