git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1602
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
xbt_cfg_t myset=make_set();
TRY {
xbt_cfg_set_parse(myset,"color:blue");
xbt_cfg_t myset=make_set();
TRY {
xbt_cfg_set_parse(myset,"color:blue");
- THROW1(unknown_error,0,"Found an option which shouldn't be there (%s)","color:blue");
+ THROW1(mismatch_error,0,"Found an option which shouldn't be there (%s)","color:blue");
- if (e.category != mismatch_error)
+ if (e.category != not_found_error)
RETHROW;
xbt_ex_free(e);
}
RETHROW;
xbt_ex_free(e);
}
if (!(j%10000)) printf("."); fflush(stdout);
sprintf(key,"%d",j);
if (!(j%10000)) printf("."); fflush(stdout);
sprintf(key,"%d",j);
- TRYFAIL(xbt_dict_remove(head,key));
+ xbt_dict_remove(head,key);
}
printf("\n");
free(key);
}
printf("\n");
free(key);
data = xbt_dict_get(head,"Can't be found");
THROW1(unknown_error,0,"Found something which shouldn't be there (%s)",data);
} CATCH(e) {
data = xbt_dict_get(head,"Can't be found");
THROW1(unknown_error,0,"Found something which shouldn't be there (%s)",data);
} CATCH(e) {
- if (e.category == mismatch_error) {
- xbt_ex_free(e);
- } else {
+ if (e.category != not_found_error)
TRY {
debuged_remove(head,"Does not exist");
} CATCH(e) {
TRY {
debuged_remove(head,"Does not exist");
} CATCH(e) {
- if (e.category != mismatch_error)
+ if (e.category != not_found_error)
RETHROW;
xbt_ex_free(e);
}
RETHROW;
xbt_ex_free(e);
}
TRY {
debuged_remove(head,"12346");
} CATCH(e) {
TRY {
debuged_remove(head,"12346");
} CATCH(e) {
- if (e.category != mismatch_error)
+ if (e.category != not_found_error)
RETHROW;
xbt_ex_free(e); traverse(head);
}
RETHROW;
xbt_ex_free(e); traverse(head);
}
TRY {
debuged_remove(head,"12346");
} CATCH(e) {
TRY {
debuged_remove(head,"12346");
} CATCH(e) {
- if (e.category != mismatch_error)
+ if (e.category != not_found_error)
RETHROW;
xbt_ex_free(e); traverse(head);
}
RETHROW;
xbt_ex_free(e); traverse(head);
}