write_string (", lower_case_csuffix = \"%s\"".printf (iface.get_lower_case_csuffix ()));
if (iface.get_type_cname () != iface.get_default_type_cname ())
write_string (", type_cname = \"%s\"".printf (iface.get_type_cname ()));
+ if (iface.get_type_id () != iface.get_default_type_id ())
+ write_string (", type_id = \"%s\"".printf (iface.get_type_id ()));
write_string (")]");
write_newline ();
return null;
}
+ public string? get_default_type_id () {
+ return get_upper_case_cname ("TYPE_");
+ }
+
public override string? get_type_id () {
if (type_id == null) {
- type_id = get_upper_case_cname ("TYPE_");
+ type_id = get_default_type_id ();
}
return type_id;
}
+ public void set_type_id (string type_id) {
+ this.type_id = type_id;
+ }
+
public override void replace_type (DataType old_type, DataType new_type) {
for (int i = 0; i < prerequisites.size; i++) {
if (prerequisites[i] == old_type) {