]> 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>
Tue, 20 Nov 2018 15:38:31 +0000 (16:38 +0100)
So call generate_type_declaration() with all parameter types.

codegen/valaccodedelegatemodule.vala

index 7ef39e395f431c18552d0f617e18e2152d2c2db0..ed6357c0ad856d1fc72cc6baf9550db835dab612 100644 (file)
@@ -462,6 +462,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";