A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change smpi::Colls static class into a namespace of functions
[simgrid.git]
/
src
/
xbt
/
dict.cpp
diff --git
a/src/xbt/dict.cpp
b/src/xbt/dict.cpp
index
256c277
..
44361dc
100644
(file)
--- a/
src/xbt/dict.cpp
+++ b/
src/xbt/dict.cpp
@@
-130,13
+130,11
@@
static void xbt_dict_rehash(xbt_dict_t dict)
* @param key the key to set the new data
* @param key_len the size of the @a key
* @param data the data to add in the dict
* @param key the key to set the new data
* @param key_len the size of the @a key
* @param data the data to add in the dict
- * @param free_ctn unused parameter (kept for compatibility)
*
* Set the @a data in the structure under the @a key, which can be any kind of data, as long as its length is provided
* in @a key_len.
*/
*
* Set the @a data in the structure under the @a key, which can be any kind of data, as long as its length is provided
* in @a key_len.
*/
-void xbt_dict_set_ext(xbt_dict_t dict, const char* key, int key_len, void* data,
- XBT_ATTRIB_UNUSED void_f_pvoid_t free_ctn)
+void xbt_dict_set_ext(xbt_dict_t dict, const char* key, int key_len, void* data)
{
unsigned int hash_code = xbt_str_hash_ext(key, key_len);
{
unsigned int hash_code = xbt_str_hash_ext(key, key_len);
@@
-178,13
+176,12
@@
void xbt_dict_set_ext(xbt_dict_t dict, const char* key, int key_len, void* data,
* @param dict the dict
* @param key the key to set the new data
* @param data the data to add in the dict
* @param dict the dict
* @param key the key to set the new data
* @param data the data to add in the dict
- * @param free_ctn unused parameter (kept for compatibility)
*
* set the @a data in the structure under the @a key, which is a null terminated string.
*/
*
* set the @a data in the structure under the @a key, which is a null terminated string.
*/
-void xbt_dict_set(xbt_dict_t dict, const char
*key, void *data, void_f_pvoid_t free_ctn
)
+void xbt_dict_set(xbt_dict_t dict, const char
* key, void* data
)
{
{
- xbt_dict_set_ext(dict, key, strlen(key), data
, free_ctn
);
+ xbt_dict_set_ext(dict, key, strlen(key), data);
}
/**
}
/**