[vala/staging] 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/staging] codegen: Make sure to include declarations for delegate typed parameters
- Date: Tue, 20 Nov 2018 16:28:33 +0000 (UTC)
commit 6c3f04b1fc680d92f95850db3036f01b53cd8a75
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 7ef39e395..ed6357c0a 100644
--- a/codegen/valaccodedelegatemodule.vala
+++ b/codegen/valaccodedelegatemodule.vala
@@ -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";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]