From: Jürg Billeter Date: Tue, 31 Mar 2009 15:30:00 +0000 (+0200) Subject: Declare field types in structs X-Git-Tag: 0.7.0~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9052c19200263b60fa19b3f23fd967e1a873b3b3;p=thirdparty%2Fvala.git Declare field types in structs --- diff --git a/gobject/valaccodestructmodule.vala b/gobject/valaccodestructmodule.vala index 00a60af44..9b6412ed0 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