XBT_IN;
xbt_dynar_pop(dynar,&former);
- memcpy(former.type->extra,&free_f, sizeof(free_f));
+ memcpy(former.type->extra,free_f, sizeof(free_f));
xbt_dynar_push(dynar,&former);
XBT_OUT;
}
if (!storage)
PARSE_ERROR1("value for free_f annotation of field %s is not a known constant",identifier.name);
if (identifier.tm.is_matrix == -1) {
- add_free_f(identifiers,*(void_f_pvoid_t**)storage);
+ add_free_f(identifiers,*(void_f_pvoid_t*)storage);
identifier.tm.is_matrix = 0;
} else if (identifier.tm.is_dynar == -1) {
- add_free_f(identifiers,*(void_f_pvoid_t**)storage);
+ add_free_f(identifiers,*(void_f_pvoid_t*)storage);
identifier.tm.is_dynar = 0;
} else {
PARSE_ERROR1("free_f annotation only accepted for dynars and matrices which subtype is already declared (field %s)",
int *stored = xbt_new(int, 1);
*stored=value;
- xbt_dict_set(gras_dd_constants,name, stored, free);
+ xbt_dict_set(gras_dd_constants,name, stored, xbt_free_f);
}