Commit 9052c192 authored by Jürg Billeter's avatar Jürg Billeter

Declare field types in structs

parent b054e6e3
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment