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
routing: rename and sort things
[simgrid.git]
/
src
/
xbt
/
config.c
diff --git
a/src/xbt/config.c
b/src/xbt/config.c
index
ff9ee32
..
b78bdfb
100644
(file)
--- a/
src/xbt/config.c
+++ b/
src/xbt/config.c
@@
-340,11
+340,6
@@
void xbt_cfg_register_str(xbt_cfg_t * cfg, const char *entry)
free(entrycpy); /* strdup'ed by dict mechanism, but cannot be const */
}
free(entrycpy); /* strdup'ed by dict mechanism, but cannot be const */
}
-static int strcmp_voidp(const void *pa, const void *pb)
-{
- return strcmp(*(const char **)pa, *(const char **)pb);
-}
-
/** @brief Displays the declared options and their description */
void xbt_cfg_help(xbt_cfg_t cfg)
{
/** @brief Displays the declared options and their description */
void xbt_cfg_help(xbt_cfg_t cfg)
{
@@
-357,7
+352,7
@@
void xbt_cfg_help(xbt_cfg_t cfg)
xbt_dict_foreach((xbt_dict_t )cfg, dict_cursor, name, variable) {
xbt_dynar_push(names, &name);
}
xbt_dict_foreach((xbt_dict_t )cfg, dict_cursor, name, variable) {
xbt_dynar_push(names, &name);
}
- xbt_dynar_sort
(names, strcmp_voidp
);
+ xbt_dynar_sort
_strings(names
);
xbt_dynar_foreach(names, dynar_cursor, name) {
int i;
xbt_dynar_foreach(names, dynar_cursor, name) {
int i;