[vala/0.40] codegen: Make sure to include declarations for delegate typed parameters



commit afb1f0968b2217edea97518c64a65decc4dccec7
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Nov 20 16:38:31 2018 +0100

    codegen: Make sure to include declarations for delegate typed parameters
    
    So call generate_type_declaration() with all parameter types.

 codegen/valaccodedelegatemodule.vala | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/codegen/valaccodedelegatemodule.vala b/codegen/valaccodedelegatemodule.vala
index 3bcdd71f8..52dafc9d2 100644
--- a/codegen/valaccodedelegatemodule.vala
+++ b/codegen/valaccodedelegatemodule.vala
@@ -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";


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]