[vala] Fix has_type_id attribute writing in VAPI files
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vala] Fix has_type_id attribute writing in VAPI files
- Date: Sat, 16 Jan 2010 19:47:55 +0000 (UTC)
commit 76d973b83c4f8268c7febd6aca95e6b232e252b4
Author: Jürg Billeter <j bitron ch>
Date: Sat Jan 16 20:47:24 2010 +0100
Fix has_type_id attribute writing in VAPI files
vala/valacodewriter.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index a23f05f..99252cb 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -321,7 +321,7 @@ public class Vala.CodeWriter : CodeVisitor {
}
if (!st.has_type_id) {
- write_string ("has_type_id = false");
+ write_string ("has_type_id = false, ");
} else if (!st.is_simple_type () && st.get_type_id () != "G_TYPE_POINTER") {
write_string ("type_id = \"%s\", ".printf (st.get_type_id ()));
}
@@ -472,7 +472,7 @@ public class Vala.CodeWriter : CodeVisitor {
write_string ("[CCode (cprefix = \"%s\", ".printf (en.get_cprefix ()));
if (!en.has_type_id) {
- write_string ("has_type_id = false");
+ write_string ("has_type_id = false, ");
}
write_string ("cheader_filename = \"%s\")]".printf (get_cheaders(en)));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]