[vala] Declare field types in structs



commit 9052c19200263b60fa19b3f23fd967e1a873b3b3
Author: Jürg Billeter <j bitron ch>
Date:   Tue Mar 31 17:30:00 2009 +0200

    Declare field types in structs
---
 gobject/valaccodestructmodule.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gobject/valaccodestructmodule.vala b/gobject/valaccodestructmodule.vala
index 00a60af..9b6412e 100644
--- a/gobject/valaccodestructmodule.vala
+++ b/gobject/valaccodestructmodule.vala
@@ -43,6 +43,8 @@ internal class Vala.CCodeStructModule : CCodeBaseModule {
 			}
 
 			if (f.binding == MemberBinding.INSTANCE)  {
+				generate_type_declaration (f.field_type, decl_space);
+
 				instance_struct.add_field (field_ctype, f.get_cname ());
 				if (f.field_type is ArrayType && !f.no_array_length) {
 					// create fields to store array dimensions



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