From: Rico Tzschichholz Date: Tue, 10 Aug 2021 12:03:08 +0000 (+0200) Subject: girwriter: Write missing c:type attribute of compact class record X-Git-Tag: 0.53.1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c68a9d0489f4d2fdd1a4d9aee0e5c0739579bfa2;p=thirdparty%2Fvala.git girwriter: Write missing c:type attribute of compact class record Thanks to Niels De Graef --- diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala index 4548f890a..997d899ff 100644 --- a/codegen/valagirwriter.vala +++ b/codegen/valagirwriter.vala @@ -609,6 +609,7 @@ public class Vala.GIRWriter : CodeVisitor { } else { write_indent (); buffer.append_printf ("\n"); indent++; diff --git a/tests/girwriter/GirTest-1.0.gir-expected b/tests/girwriter/GirTest-1.0.gir-expected index a7d604de4..7d30eea03 100644 --- a/tests/girwriter/GirTest-1.0.gir-expected +++ b/tests/girwriter/GirTest-1.0.gir-expected @@ -1830,7 +1830,7 @@ - + @@ -1909,7 +1909,7 @@ - + diff --git a/tests/girwriter/girtest.vapigen-expected b/tests/girwriter/girtest.vapigen-expected index 49084aab1..1bc67d83a 100644 --- a/tests/girwriter/girtest.vapigen-expected +++ b/tests/girwriter/girtest.vapigen-expected @@ -207,7 +207,7 @@ namespace GirTest { public static GirTest.BoxedStruct init (); public void inv (); } - [CCode (cheader_filename = "girtest.h", has_type_id = false)] + [CCode (cheader_filename = "girtest.h", cname = "GirTestNamedCompactClass", has_type_id = false)] public struct RenamedCompactClass { public weak string s; public int i;