From f497a65ba1f3ee297eb65e7ee1d3ca2d403223db Mon Sep 17 00:00:00 2001 From: mquinson Date: Sun, 7 Aug 2005 14:04:53 +0000 Subject: [PATCH] More xbt_error_t eradication git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1597 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/xbt/config.h | 2 +- include/xbt/dict.h | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/include/xbt/config.h b/include/xbt/config.h index 322c377a44..8227db6525 100644 --- a/include/xbt/config.h +++ b/include/xbt/config.h @@ -166,7 +166,7 @@ void xbt_cfg_empty(xbt_cfg_t cfg, const char *name); const char *name, e_xbt_cfgelm_type_t type, int min, int max, xbt_cfg_cb_t cb_set, xbt_cfg_cb_t cb_rm); - xbt_error_t xbt_cfg_unregister(xbt_cfg_t cfg, const char *name); + void xbt_cfg_unregister(xbt_cfg_t cfg, const char *name); xbt_error_t xbt_cfg_register_str(xbt_cfg_t cfg, const char *entry); xbt_error_t xbt_cfg_check(xbt_cfg_t cfg); e_xbt_cfgelm_type_t xbt_cfg_get_type(xbt_cfg_t cfg, const char *name); diff --git a/include/xbt/dict.h b/include/xbt/dict.h index d708a715df..9d3406348e 100644 --- a/include/xbt/dict.h +++ b/include/xbt/dict.h @@ -65,7 +65,7 @@ BEGIN_DECL() void *xbt_dict_get(xbt_dict_t head,const char *key); void *xbt_dict_get_or_null(xbt_dict_t dict, const char *key); - xbt_error_t xbt_dict_remove(xbt_dict_t head, const char *key); + void xbt_dict_remove(xbt_dict_t head, const char *key); void xbt_dict_dump(xbt_dict_t head,void (*output)(void*)); /** @} */ @@ -80,8 +80,7 @@ BEGIN_DECL() void *data, void_f_pvoid_t *free_ctn); void *xbt_dict_get_ext(xbt_dict_t head,const char *key, int key_len); - xbt_error_t xbt_dict_remove_ext(xbt_dict_t head, - const char *key, int key_len); + void xbt_dict_remove_ext(xbt_dict_t head, const char *key, int key_len); /** @} */ @@ -164,11 +163,8 @@ void *xbt_multidict_get_ext(xbt_dict_t mdict, xbt_dynar_t keys, xbt_dynar_t lens /*----[ xbt_multidict_remove ]-----------------------------------------------*/ /*---------------------------------------------------------------------------*/ -xbt_error_t -xbt_multidict_remove(xbt_dict_t mdict, xbt_dynar_t keys); -xbt_error_t -xbt_multidict_remove_ext(xbt_dict_t mdict, - xbt_dynar_t keys, xbt_dynar_t lens); +void xbt_multidict_remove(xbt_dict_t mdict, xbt_dynar_t keys); +void xbt_multidict_remove_ext(xbt_dict_t mdict, xbt_dynar_t keys, xbt_dynar_t lens); /** @} */ /** @} */ -- 2.20.1