diff options
author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-04-28 00:00:00 +0000 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2018-06-20 19:43:48 +0200 |
commit | 7043bb4b6842ba5572a4cf289a720b4044aeab5f (patch) | |
tree | 39b125e75a52e1fcb90c2edc8d8310fb0fe0c316 /giscanner | |
parent | b310d006968030862714398e89254402d0b00edb (diff) | |
download | gobject-introspection-7043bb4b6842ba5572a4cf289a720b4044aeab5f.tar.gz |
Preserve complete C type when applying array annotations.
Diffstat (limited to 'giscanner')
-rw-r--r-- | giscanner/maintransformer.py | 1 |
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 |