From 76d973b83c4f8268c7febd6aca95e6b232e252b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrg=20Billeter?= Date: Sat, 16 Jan 2010 20:47:24 +0100 Subject: [PATCH] Fix has_type_id attribute writing in VAPI files --- vala/valacodewriter.vala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))); -- 2.47.3