gobject-introspection r1013 - branches/annotation/giscanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r1013 - branches/annotation/giscanner
- Date: Sun, 11 Jan 2009 23:37:02 +0000 (UTC)
Author: walters
Date: Sun Jan 11 23:37:02 2009
New Revision: 1013
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=1013&view=rev
Log:
Add compatibility transfer for gpointer returns
This matches the transfer defaults in the old system.
Modified:
branches/annotation/giscanner/annotationparser.py
Modified: branches/annotation/giscanner/annotationparser.py
==============================================================================
--- branches/annotation/giscanner/annotationparser.py (original)
+++ branches/annotation/giscanner/annotationparser.py Sun Jan 11 23:37:02 2009
@@ -490,7 +490,8 @@
return PARAM_TRANSFER_NONE
elif isinstance(node, Return):
if (node.type.canonical in BASIC_GIR_TYPES or
- node.type.canonical in [TYPE_NONE, TYPE_ANY]):
+ (node.type.canonical in [TYPE_NONE, TYPE_ANY] and
+ node.type.is_const)):
return PARAM_TRANSFER_NONE
else:
return PARAM_TRANSFER_FULL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]