2008-06-04 Jürg Billeter <j@bitron.ch>
+ * vapigen/valagidlparser.vala:
+
+ Support 'cheader_filename' attribute for fields and methods,
+ fixes bug 533634
+
+2008-06-04 Jürg Billeter <j@bitron.ch>
+
* gobject/valaccodeclassbinding.vala:
* gobject/valaccodegenerator.vala:
* gobject/valaccodeinterfacebinding.vala:
arg_type.value_owned = true;
return_type.add_type_argument (arg_type);
}
+ } else if (nv[0] == "cheader_filename") {
+ m.add_cheader_filename (eval (nv[1]));
}
}
}
return null;
}
+ string cheader_filename = null;
+
var attributes = get_attributes ("%s.%s".printf (current_data_type.get_cname (), node.name));
if (attributes != null) {
foreach (string attr in attributes) {
arg_type.value_owned = true;
type.add_type_argument (arg_type);
}
+ } else if (nv[0] == "cheader_filename") {
+ cheader_filename = eval (nv[1]);
}
}
}
field.set_cname (node.name);
}
+ if (cheader_filename != null) {
+ field.add_cheader_filename (cheader_filename);
+ }
+
field.no_array_length = true;
return field;