]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Make sure to include declarations for delegate typed parameters
authorRico Tzschichholz <ricotz@ubuntu.com>
Tue, 20 Nov 2018 15:38:31 +0000 (16:38 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 26 Nov 2018 08:59:49 +0000 (09:59 +0100)
So call generate_type_declaration() with all parameter types.

codegen/valaccodedelegatemodule.vala

index 042e2be0538e52e826d7a475ca6f8e097ea3bda8..fecde81cbbe2ecc2b08baf5fdaed8d586a1b8d38 100644 (file)
@@ -464,6 +464,8 @@ public class Vala.CCodeDelegateModule : CCodeArrayModule {
                        return base.generate_parameter (param, decl_space, cparam_map, carg_map);
                }
 
+               generate_type_declaration (param.variable_type, decl_space);
+
                string ctypename = get_ccode_name (param.variable_type);
                string target_ctypename = "gpointer";
                string target_destroy_notify_ctypename = "GDestroyNotify";