gobject-introspection r735 - in trunk: giscanner tests/scanner
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r735 - in trunk: giscanner tests/scanner
- Date: Thu, 16 Oct 2008 20:49:30 +0000 (UTC)
Author: walters
Date: Thu Oct 16 20:49:30 2008
New Revision: 735
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=735&view=rev
Log:
Bug 556579 - Don't try to resolve names for structs/unions
Modified:
trunk/giscanner/transformer.py
trunk/tests/scanner/foo-1.0-expected.gir
trunk/tests/scanner/foo.h
Modified: trunk/giscanner/transformer.py
==============================================================================
--- trunk/giscanner/transformer.py (original)
+++ trunk/giscanner/transformer.py Thu Oct 16 20:49:30 2008
@@ -497,7 +497,6 @@
else:
name = symbol.ident
name = self.strip_namespace_object(name)
- name = self.resolve_type_name(name)
struct = Struct(name, symbol.ident)
for child in symbol.base_type.child_list:
@@ -518,7 +517,6 @@
else:
name = symbol.ident
name = self.strip_namespace_object(name)
- name = self.resolve_type_name(name)
union = Union(name, symbol.ident)
for child in symbol.base_type.child_list:
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 16 20:49:30 2008
@@ -474,6 +474,11 @@
</return-value>
</method>
</union>
+ <union name="Union" c:type="_FooUnion">
+ <field name="foo">
+ <type name="int" c:type="int"/>
+ </field>
+ </union>
<function name="test_unsigned_qualifier"
c:identifier="foo_test_unsigned_qualifier">
<return-value>
Modified: trunk/tests/scanner/foo.h
==============================================================================
--- trunk/tests/scanner/foo.h (original)
+++ trunk/tests/scanner/foo.h Thu Oct 16 20:49:30 2008
@@ -227,6 +227,11 @@
FooBRect *rect;
};
+typedef union _FooUnion
+{
+ int foo;
+} FooUnion;
+
FooBUnion *foo_bunion_new (void);
GType foo_bunion_get_type (void);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]