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
+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'.
+
2008-10-21 Johan Bilien <jobi@via.ecp.fr>
Bug 557241 – "throws" flag for functions
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: