From: Jürg Billeter Date: Sat, 16 Jan 2010 19:47:24 +0000 (+0100) Subject: Fix has_type_id attribute writing in VAPI files X-Git-Tag: 0.7.10~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76d973b83c4f8268c7febd6aca95e6b232e252b4;p=thirdparty%2Fvala.git Fix has_type_id attribute writing in VAPI files --- diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala index a23f05f99..99252cbd0 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)));