gobject-introspection r790 - in trunk: . giscanner tests/scanner



Author: tko
Date: Thu Oct 23 17:37:00 2008
New Revision: 790
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=790&view=rev

Log:
make varargs transfer-ownership="none"

2008-10-23  Tommi Komulainen  <tommi komulainen iki fi>

	* giscanner/transformer.py (_create_parameter):
	* tests/scanner/foo-1.0-expected.gir: make varargs
	transfer-ownership="none"

Modified:
   trunk/ChangeLog
   trunk/giscanner/transformer.py
   trunk/tests/scanner/foo-1.0-expected.gir

Modified: trunk/giscanner/transformer.py
==============================================================================
--- trunk/giscanner/transformer.py	(original)
+++ trunk/giscanner/transformer.py	Thu Oct 23 17:37:00 2008
@@ -487,6 +487,8 @@
         options = self._parse_options(options)
         if symbol.type == CSYMBOL_TYPE_ELLIPSIS:
             ptype = Varargs()
+            if 'transfer' not in options:
+                options['transfer'] = ['none']
         else:
             ptype = self._create_type(symbol.base_type, options, True)
         param = Parameter(symbol.ident, ptype)

Modified: trunk/tests/scanner/foo-1.0-expected.gir
==============================================================================
--- trunk/tests/scanner/foo-1.0-expected.gir	(original)
+++ trunk/tests/scanner/foo-1.0-expected.gir	Thu Oct 23 17:37:00 2008
@@ -77,7 +77,7 @@
           <parameter name="x" transfer-ownership="none">
             <type name="int" c:type="int"/>
           </parameter>
-          <parameter>
+          <parameter transfer-ownership="none">
             <varargs>
             </varargs>
           </parameter>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]