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
API cleanup: s/dict_insert/dict_set/ and s/dict_retrieve/dict_get/ for consistency...
[simgrid.git]
/
src
/
xbt
/
dict.c
diff --git
a/src/xbt/dict.c
b/src/xbt/dict.c
index
6602cc0
..
1e8ccdb
100644
(file)
--- a/
src/xbt/dict.c
+++ b/
src/xbt/dict.c
@@
-63,18
+63,18
@@
gras_dict_free(gras_dict_t **dict) {
}
/**
}
/**
- * gras_dict_
inser
t_ext:
+ * gras_dict_
se
t_ext:
*
* @p_dict: the container
*
* @p_dict: the container
- * @key: the key to
inser
t the new data
+ * @key: the key to
se
t the new data
* @data: the data to add in the dict
* @Returns: a gras_error
*
* @data: the data to add in the dict
* @Returns: a gras_error
*
- *
Inser
t the @data in the structure under the @key, which can be any kind
+ *
se
t the @data in the structure under the @key, which can be any kind
* of data, as long as its length is provided in @key_len.
*/
gras_error_t
* of data, as long as its length is provided in @key_len.
*/
gras_error_t
-gras_dict_
inser
t_ext(gras_dict_t *p_dict,
+gras_dict_
se
t_ext(gras_dict_t *p_dict,
const char *key,
int key_len,
void *data,
const char *key,
int key_len,
void *data,
@@
-82,34
+82,34
@@
gras_dict_insert_ext(gras_dict_t *p_dict,
gras_assert(p_dict);
gras_assert(p_dict);
- return gras_dictelm_
inser
t_ext(&(p_dict->head),
+ return gras_dictelm_
se
t_ext(&(p_dict->head),
key, key_len, data, free_ctn);
}
/**
key, key_len, data, free_ctn);
}
/**
- * gras_dict_
inser
t:
+ * gras_dict_
se
t:
*
* @head: the head of the dict
*
* @head: the head of the dict
- * @key: the key to
inser
t the new data
+ * @key: the key to
se
t the new data
* @data: the data to add in the dict
* @Returns: a gras_error
*
* @data: the data to add in the dict
* @Returns: a gras_error
*
- *
Inser
t the @data in the structure under the @key, which is a
+ *
se
t the @data in the structure under the @key, which is a
* null terminated string.
*/
gras_error_t
* null terminated string.
*/
gras_error_t
-gras_dict_
inser
t(gras_dict_t *p_dict,
+gras_dict_
se
t(gras_dict_t *p_dict,
const char *key,
void *data,
void_f_pvoid_t *free_ctn) {
gras_assert(p_dict);
const char *key,
void *data,
void_f_pvoid_t *free_ctn) {
gras_assert(p_dict);
- return gras_dictelm_
inser
t(&(p_dict->head), key, data, free_ctn);
+ return gras_dictelm_
se
t(&(p_dict->head), key, data, free_ctn);
}
/**
}
/**
- * gras_dict_
retrieve
_ext:
+ * gras_dict_
get
_ext:
*
* @dict: the dealer of data
* @key: the key to find data
*
* @dict: the dealer of data
* @key: the key to find data
@@
-119,18
+119,18
@@
gras_dict_insert(gras_dict_t *p_dict,
* Search the given @key. mismatch_error when not found.
*/
gras_error_t
* Search the given @key. mismatch_error when not found.
*/
gras_error_t
-gras_dict_
retrieve
_ext(gras_dict_t *dict,
+gras_dict_
get
_ext(gras_dict_t *dict,
const char *key,
int key_len,
/* OUT */void **data) {
gras_assert(dict);
const char *key,
int key_len,
/* OUT */void **data) {
gras_assert(dict);
- return gras_dictelm_
retrieve
_ext(dict->head, key, key_len, data);
+ return gras_dictelm_
get
_ext(dict->head, key, key_len, data);
}
/**
}
/**
- * gras_dict_
retrieve
:
+ * gras_dict_
get
:
*
* @dict: the dealer of data
* @key: the key to find data
*
* @dict: the dealer of data
* @key: the key to find data
@@
-140,12
+140,12
@@
gras_dict_retrieve_ext(gras_dict_t *dict,
* Search the given @key. mismatch_error when not found.
*/
gras_error_t
* Search the given @key. mismatch_error when not found.
*/
gras_error_t
-gras_dict_
retrieve
(gras_dict_t *dict,
+gras_dict_
get
(gras_dict_t *dict,
const char *key,
/* OUT */void **data) {
gras_assert(dict);
const char *key,
/* OUT */void **data) {
gras_assert(dict);
- return gras_dictelm_
retrieve
(dict->head, key, data);
+ return gras_dictelm_
get
(dict->head, key, data);
}
}