[vala] GIR writer: Fix critical warnings
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Subject: [vala] GIR writer: Fix critical warnings
- Date: Thu, 30 Apr 2009 17:13:19 -0400 (EDT)
commit f5e09e95b79225b0baaa4396bd5d8d2092e7a61f
Author: Jürg Billeter <j bitron ch>
Date: Thu Apr 30 23:10:22 2009 +0200
GIR writer: Fix critical warnings
---
gobject/valagirwriter.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/gobject/valagirwriter.vala b/gobject/valagirwriter.vala
index 9395143..407942d 100644
--- a/gobject/valagirwriter.vala
+++ b/gobject/valagirwriter.vala
@@ -633,7 +633,7 @@ public class Vala.GIRWriter : CodeVisitor {
} else if (type is PointerType) {
write_indent ();
stream.printf ("<type name=\"any\" c:type=\"%s\"/>\n", type.get_cname ());
- } else {
+ } else if (type.data_type != null) {
write_indent ();
stream.printf ("<type name=\"%s\" c:type=\"%s\"", gi_type_name (type.data_type), type.get_cname ());
@@ -652,6 +652,9 @@ public class Vala.GIRWriter : CodeVisitor {
write_indent ();
stream.printf ("</type>\n");
}
+ } else {
+ write_indent ();
+ stream.printf ("<type name=\"%s\"/>\n", type.to_string ());
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]