gobject-introspection r1018 - in trunk: . giscanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r1018 - in trunk: . giscanner
- Date: Mon, 12 Jan 2009 20:16:33 +0000 (UTC)
Author: johan
Date: Mon Jan 12 20:16:33 2009
New Revision: 1018
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=1018&view=rev
Log:
2009-01-12 Johan Dahlin <jdahlin async com br>
Bug 566560 â giscanner.transformer.SkipError
* giscanner/transformer.py:
Catch SkipError for all nodes, not just functions.
Makes it possible to skip unsupported parameter types in
callbacks.
Modified:
trunk/ChangeLog
trunk/giscanner/transformer.py
Modified: trunk/giscanner/transformer.py
==============================================================================
--- trunk/giscanner/transformer.py (original)
+++ trunk/giscanner/transformer.py Mon Jan 12 20:16:33 2009
@@ -86,7 +86,10 @@
def parse(self):
nodes = []
for symbol in self.generator.get_symbols():
- node = self._traverse_one(symbol)
+ try:
+ node = self._traverse_one(symbol)
+ except SkipError:
+ continue
self._add_node(node)
return self._namespace
@@ -179,10 +182,7 @@
if stype is None:
stype = symbol.type
if stype == CSYMBOL_TYPE_FUNCTION:
- try:
- return self._create_function(symbol)
- except SkipError:
- return
+ return self._create_function(symbol)
elif stype == CSYMBOL_TYPE_TYPEDEF:
return self._create_typedef(symbol)
elif stype == CSYMBOL_TYPE_STRUCT:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]