diff options
author | Luca Bruno <lucabru@src.gnome.org> | 2011-08-03 22:22:22 +0200 |
---|---|---|
committer | Luca Bruno <lucabru@src.gnome.org> | 2011-08-04 09:49:44 +0200 |
commit | 114013c4b47739e54699dee8826137994cecd27f (patch) | |
tree | 1d3cf60a89f5eb306a67391d9eb1ff7eff83534f /codegen/valaccodestructmodule.vala | |
parent | ef31992ef167578a1a97a7b7f52cc0c974ebe0da (diff) | |
download | vala-114013c4b47739e54699dee8826137994cecd27f.tar.gz |
Move DataType.get_cdeclarator_suffix to the codegen
Diffstat (limited to 'codegen/valaccodestructmodule.vala')
-rw-r--r-- | codegen/valaccodestructmodule.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/codegen/valaccodestructmodule.vala b/codegen/valaccodestructmodule.vala index 4d2aaa17c..b21829b54 100644 --- a/codegen/valaccodestructmodule.vala +++ b/codegen/valaccodestructmodule.vala @@ -64,7 +64,7 @@ public abstract class Vala.CCodeStructModule : CCodeBaseModule { if (f.binding == MemberBinding.INSTANCE) { generate_type_declaration (f.variable_type, decl_space); - instance_struct.add_field (field_ctype, get_ccode_name (f) + f.variable_type.get_cdeclarator_suffix (), f.deprecated ? " G_GNUC_DEPRECATED" : null); + instance_struct.add_field (field_ctype, get_ccode_name (f) + get_ccode_declarator_suffix (f.variable_type), f.deprecated ? " G_GNUC_DEPRECATED" : null); if (f.variable_type is ArrayType && get_ccode_array_length (f)) { // create fields to store array dimensions var array_type = (ArrayType) f.variable_type; |