[vala/0.36] codegen: Make sure to include declarations for delegate typed parameters
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.36] codegen: Make sure to include declarations for delegate typed parameters
- Date: Thu, 6 Dec 2018 15:03:46 +0000 (UTC)
commit d8d16a851d223f64a03880fd98577b1b909df42c
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 d2b59d705..4e402894a 100644
--- a/codegen/valaccodedelegatemodule.vala
+++ b/codegen/valaccodedelegatemodule.vala
@@ -459,6 +459,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]