X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9189fe94c14ef9e31142d1603a1979ea7e731a0a..3ca7ba141fb09d54d776e57603c256e87a908fc9:/src/xbt/set.c diff --git a/src/xbt/set.c b/src/xbt/set.c index f4bc0e11cc..efada3837e 100644 --- a/src/xbt/set.c +++ b/src/xbt/set.c @@ -72,7 +72,7 @@ void xbt_set_add (xbt_set_t set, found_in_dict = xbt_dict_get_ext (set->dict, elm->name, elm->name_len); } CATCH(e) { - if (e.category != mismatch_error) + if (e.category != not_found_error) RETHROW; found = 0; elm->ID = xbt_dynar_length( set->dynar ); @@ -101,7 +101,7 @@ void xbt_set_add (xbt_set_t set, * * \param set * \param name Name of the searched cell - * \param dst where to put the found data into + * \returns the data you're looking for */ xbt_set_elm_t xbt_set_get_by_name (xbt_set_t set, const char *name) { @@ -114,7 +114,7 @@ xbt_set_elm_t xbt_set_get_by_name (xbt_set_t set, * \param set * \param name Name of the searched cell * \param name_len length of the name, when strlen cannot be trusted - * \param dst where to put the found data into + * \returns the data you're looking for * * This is useful when strlen cannot be trusted because you don't use a char* * as name, you weirdo. @@ -130,7 +130,7 @@ xbt_set_elm_t xbt_set_get_by_name_ext(xbt_set_t set, * * \param set * \param id what you're looking for - * \param dst where to put the found data into + * \returns the data you're looking for * * @warning, if the ID does not exists, you're getting into trouble */