// object_info
-mc_object_info_t MC_new_object_info() {
+mc_object_info_t MC_new_object_info(void) {
mc_object_info_t res = xbt_new(s_mc_object_info_t, 1);
res->file_name = NULL;
res->start_text = NULL;
dw_type_t type;
xbt_dict_foreach(info->types, cursor, origin, type){
if(type->type==e_dw_array_type) {
- xbt_assert(type->dw_type_id, "No base type for array %s %s", type->id, type->name);
+ xbt_assert(type->dw_type_id, "No base type for array <%p>%s", type->id, type->name);
dw_type_t subtype = xbt_dict_get_or_null(info->types, type->dw_type_id);
- xbt_assert(subtype, "Unkown base type for array %s %s", type->id, type->name);
+ xbt_assert(subtype, "Unkown base type for array <%p>%s", type->id, type->name);
type->byte_size = type->element_count*subtype->byte_size;
}
}
xbt_dict_t types; // xbt_dict_t<origin as hexadecimal string, dw_type_t>
} s_mc_object_info_t, *mc_object_info_t;
-mc_object_info_t MC_new_object_info();
+mc_object_info_t MC_new_object_info(void);
mc_object_info_t MC_find_object_info(memory_map_t maps, char* name);
void MC_free_object_info(mc_object_info_t* p);