bool require_copy_free = false;
if (current.new_symbol) {
cl = new Class (current.name, current.source_reference);
- cl.is_compact = true;
+ cl.set_attribute ("Compact", true);
current.symbol = cl;
} else {
cl = (Class) current.symbol;
cl.add_base_type (base_type);
}
cl.comment = alias.comment;
- cl.is_compact = ((Class) type_sym).is_compact;
+ cl.set_attribute ("Compact", ((Class) type_sym).is_compact);
alias.symbol = cl;
} else if (type_sym is Interface) {
// this is not a correct alias, but what can we do otherwise?
}
} else if (nv[0] == "is_immutable") {
if (eval (nv[1]) == "1") {
- cl.is_immutable = true;
+ cl.set_attribute ("Immutable", true);
}
} else if (nv[0] == "const_cname") {
cl.set_attribute_string ("CCode", "const_cname", eval (nv[1]));
cl.add_base_type (parent);
}
if (base_class == null && !is_fundamental) {
- cl.is_compact = true;
+ cl.set_attribute ("Compact", true);
}
}
if (cl == null) {
cl = new Class (name, current_source_reference);
cl.access = SymbolAccessibility.PUBLIC;
- cl.is_compact = true;
+ cl.set_attribute ("Compact", true);
var cl_attributes = get_attributes (node.name);
if (cl_attributes != null) {
cl = new Class (name, current_source_reference);
cl.access = SymbolAccessibility.PUBLIC;
- cl.is_compact = true;
+ cl.set_attribute ("Compact", true);
if (boxed_node.gtype_init != null) {
cl.set_attribute_string ("CCode", "type_id", "%s ()".printf (boxed_node.gtype_init));
}
base_class = eval (nv[1]);
} else if (nv[0] == "is_immutable") {
if (eval (nv[1]) == "1") {
- cl.is_immutable = true;
+ cl.set_attribute ("Immutable", true);
}
} else if (nv[0] == "deprecated") {
if (eval (nv[1]) == "1") {
}
} else if (nv[0] == "compact") {
if (eval (nv[1]) == "1") {
- cl.is_compact = true;
+ cl.set_attribute ("Compact", true);
}
} else if (nv[0] == "ref_function") {
cl.set_attribute_string ("CCode", "ref_function", eval (nv[1]));