} CATCH(e) {
if (e.category == not_found_error) {
found = 1;
- xbt_ex_free(e);
+ xbt_ex_free(&e);
} else {
RETHROW;
}
res = xbt_dict_get((xbt_dict_t)cfg,name);
} CATCH(e) {
if (e.category == not_found_error) {
- xbt_ex_free(e);
+ xbt_ex_free(&e);
THROW1(not_found_error,0,
"No registered variable '%s' in this config set",name);
}
variable = xbt_dict_get((xbt_dict_t)cfg,name);
} CATCH(e) {
if (e.category == not_found_error) {
- xbt_ex_free(e);
+ xbt_ex_free(&e);
THROW1(not_found_error,0,
"Can't get the type of '%s' since this variable does not exist",name);
}
type = xbt_cfg_get_type(cfg,name);
} CATCH(e) {
if (e.category == not_found_error) {
- xbt_ex_free(e);
+ xbt_ex_free(&e);
THROW1(not_found_error,0,"Can't set the property '%s' since it's not registered",name);
}
RETHROW;
name = (char*) (optionlist_cpy-name + options);
free(optionlist_cpy);
if (e.category == not_found_error) {
- xbt_ex_free(e);
+ xbt_ex_free(&e);
THROW1(not_found_error,0,"No registrated variable corresponding to '%s'.",name);
}
RETHROW;
if (e.category != not_found_error)
RETHROW;
- xbt_ex_free(e);
+ xbt_ex_free(&e);
THROW1(not_found_error,0,
"Can't empty '%s' since this config element does not exist", name);
}
variable = xbt_dict_get((xbt_dict_t)cfg,name);
} CATCH(e) {
if (e.category == not_found_error) {
- xbt_ex_free(e);
+ xbt_ex_free(&e);
THROW1(not_found_error,0,
"No registered variable %s in this config set",name);
}
if (e.category != mismatch_error ||
strncmp(e.msg,"Config elem speed needs",strlen("Config elem speed needs")))
xbt_test_fail1("Got an exception. msg=%s",e.msg);
- xbt_ex_free(e);
+ xbt_ex_free(&e);
}
xbt_cfg_free(&set);
xbt_cfg_free(&set);
strncmp(e.msg,"Cannot add value 34 to the config elem speed",
strlen("Config elem speed needs")))
xbt_test_fail1("Got an exception. msg=%s",e.msg);
- xbt_ex_free(e);
+ xbt_ex_free(&e);
}
xbt_cfg_check(set);
xbt_cfg_free(&set);
} CATCH(e) {
if (e.category != not_found_error)
xbt_test_exception(e);
- xbt_ex_free(e);
+ xbt_ex_free(&e);
}
xbt_cfg_free(&myset);
}