From: Jean Pierre Dudey Date: Sun, 19 Jul 2020 23:34:36 +0000 (-0500) Subject: girwriter: Write c:type="void" when name="none" X-Git-Tag: 0.40.24~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b99320a5d8e1cfafce4d63ae5908dcf9c1524d74;p=thirdparty%2Fvala.git girwriter: Write c:type="void" when name="none" This is to match g-ir-scanner behaviour of using the c:type to identify void return value. --- diff --git a/codegen/valagirwriter.vala b/codegen/valagirwriter.vala index 90f2836fa..28063d248 100644 --- a/codegen/valagirwriter.vala +++ b/codegen/valagirwriter.vala @@ -1558,7 +1558,7 @@ public class Vala.GIRWriter : CodeVisitor { buffer.append_printf ("\n"); } else if (type is VoidType) { write_indent (); - buffer.append_printf ("\n"); + buffer.append_printf ("\n"); } else if (type is PointerType) { write_indent (); buffer.append_printf ("\n", get_ccode_name (type), direction == ParameterDirection.IN ? "" : "*");