gobject-introspection r403 - in trunk: . tests/scanner
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: gobject-introspection r403 - in trunk: . tests/scanner
- Date: Tue, 19 Aug 2008 21:44:25 +0000 (UTC)
Author: johan
Date: Tue Aug 19 21:44:25 2008
New Revision: 403
URL: http://svn.gnome.org/viewvc/gobject-introspection?rev=403&view=rev
Log:
2008-08-19 Johan Dahlin <johan gnome org>
* tests/scanner/Foo-expected.gir:
* tests/scanner/foo-object.h:
Add a union testcase which the compiler currently
barfs at.
Modified:
trunk/ChangeLog
trunk/tests/scanner/Foo-expected.gir
trunk/tests/scanner/foo-object.h
Modified: trunk/tests/scanner/Foo-expected.gir
==============================================================================
--- trunk/tests/scanner/Foo-expected.gir (original)
+++ trunk/tests/scanner/Foo-expected.gir Tue Aug 19 21:44:25 2008
@@ -4,6 +4,7 @@
xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
<namespace name="Foo">
<alias name="List" target="GSList" c:type="FooList"/>
+ <alias name="Event" target="Event" c:type="FooEvent"/>
<interface name="Interface"
c:type="FooInterface"
glib:type-name="FooInterface"
@@ -406,5 +407,18 @@
</parameter>
</parameters>
</function>
+ <record name="EventAny" c:type="FooEventAny">
+ <field name="send_event">
+ <type name="int8" c:type="gint8"/>
+ </field>
+ </record>
+ <record name="EventExpose" c:type="FooEventExpose">
+ <field name="send_event">
+ <type name="int8" c:type="gint8"/>
+ </field>
+ <field name="count">
+ <type name="int" c:type="gint"/>
+ </field>
+ </record>
</namespace>
</repository>
Modified: trunk/tests/scanner/foo-object.h
==============================================================================
--- trunk/tests/scanner/foo-object.h (original)
+++ trunk/tests/scanner/foo-object.h Tue Aug 19 21:44:25 2008
@@ -158,4 +158,27 @@
void foo_rectangle_add(FooRectangle *r1, const FooRectangle *r2);
+typedef struct _FooEventAny FooEventAny;
+typedef struct _FooEventExpose FooEventExpose;
+
+typedef union _FooEvent FooEvent;
+
+struct _FooEventAny
+{
+ gint8 send_event;
+};
+
+struct _FooEventExpose
+{
+ gint8 send_event;
+ gint count;
+};
+
+union _FooEvent
+{
+ int type;
+ FooEventAny any;
+ FooEventExpose expose;
+};
+
#endif /* __FOO_OBJECT_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]