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
Current state. See changelog, sorry, I'm out of time
[simgrid.git]
/
src
/
xbt
/
dict.c
diff --git
a/src/xbt/dict.c
b/src/xbt/dict.c
index
3bf65c2
..
101a08a
100644
(file)
--- a/
src/xbt/dict.c
+++ b/
src/xbt/dict.c
@@
-8,8
+8,6
@@
/* This program is free software; you can redistribute it and/or modify it
under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
under the terms of the license (GNU LGPL) which comes with this package. */
-
-#include "gras_private.h"
#include "dict_private.h"
#include <stdlib.h> /* malloc() */
#include "dict_private.h"
#include <stdlib.h> /* malloc() */
@@
-17,7
+15,7
@@
#include <stdio.h>
#include <stdio.h>
-GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(dict,
gros
,
+GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(dict,
xbt
,
"Dictionaries provide the same functionnalities than hash tables");
/*####[ Private prototypes ]#################################################*/
"Dictionaries provide the same functionnalities than hash tables");
/*####[ Private prototypes ]#################################################*/
@@
-32,12
+30,11
@@
GRAS_LOG_NEW_DEFAULT_SUBCATEGORY(dict,gros,
*
* Creates and initialize a new dictionnary
*/
*
* Creates and initialize a new dictionnary
*/
-void
-gras_dict_new(gras_dict_t **whereto) {
-
- (*whereto) = gras_new(gras_dict_t,1);
- (*whereto)->head=NULL;
-
+gras_dict_t *
+gras_dict_new(void) {
+ gras_dict_t *res= gras_new(gras_dict_t,1);
+ res->head=NULL;
+ return res;
}
/**
* gras_dict_free:
}
/**
* gras_dict_free: