summaryrefslogtreecommitdiff
path: root/giscanner/transformer.py
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2008-10-21 17:41:32 +0000
committerOwen Taylor <otaylor@src.gnome.org>2008-10-21 17:41:32 +0000
commitb99a2dcf08cf3d6839894e374d88b7451aa65d90 (patch)
tree1bba386a74ffb23f20bef31600db27ad56caa087 /giscanner/transformer.py
parent3d22724567656cb559cf983660989a68241a0b95 (diff)
downloadgobject-introspection-b99a2dcf08cf3d6839894e374d88b7451aa65d90.tar.gz
For string parameters allow transfer annotation to override the standard
2008-10-21 Owen Taylor <otaylor@redhat.com> * giscanner/transformer.py: For string parameters allow transfer annotation to override the standard automatic guessing based on 'const'. svn path=/trunk/; revision=775
Diffstat (limited to 'giscanner/transformer.py')
-rw-r--r--giscanner/transformer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/transformer.py b/giscanner/transformer.py
index 489a7c35..6fcdd34e 100644
--- a/giscanner/transformer.py
+++ b/giscanner/transformer.py
@@ -402,7 +402,7 @@ class Transformer(object):
return result
# string memory management - we just look at 'const'
- if type_name_from_ctype(ctype) == TYPE_STRING:
+ if type_name_from_ctype(ctype) == TYPE_STRING and 'transfer' not in options:
if source_type.base_type.type_qualifier & TYPE_QUALIFIER_CONST:
options['transfer'] = ['none']
else: