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.50.10~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac35800f8c816606cfafe2a652fbfe45d922404e;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 795c2fe95..90d84695a 100644 --- a/codegen/valagirwriter.vala +++ b/codegen/valagirwriter.vala @@ -596,6 +596,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 52f97ab53..d7f9b8507 100644 --- a/tests/girwriter/GirTest-1.0.gir-expected +++ b/tests/girwriter/GirTest-1.0.gir-expected @@ -1811,7 +1811,7 @@ - + @@ -1890,7 +1890,7 @@ - + diff --git a/tests/girwriter/girtest.vapigen-expected b/tests/girwriter/girtest.vapigen-expected index 9287919f8..fa4eae1fd 100644 --- a/tests/girwriter/girtest.vapigen-expected +++ b/tests/girwriter/girtest.vapigen-expected @@ -199,7 +199,7 @@ namespace GirTest { public int internal_field_name; 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;