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
Fix type mismatch for function pointer.
[simgrid.git]
/
src
/
xbt
/
dict_cursor.c
diff --git
a/src/xbt/dict_cursor.c
b/src/xbt/dict_cursor.c
index
6c8d2a5
..
f6b6a3d
100644
(file)
--- a/
src/xbt/dict_cursor.c
+++ b/
src/xbt/dict_cursor.c
@@
-24,7
+24,7
@@
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_dict_cursor, xbt_dict, "To traverse dictiona
*/
inline xbt_dict_cursor_t xbt_dict_cursor_new(const xbt_dict_t dict)
{
*/
inline xbt_dict_cursor_t xbt_dict_cursor_new(const xbt_dict_t dict)
{
- xbt_dict_cursor_t res = xbt_new(s
_xbt_dict_cursor_t
, 1);
+ xbt_dict_cursor_t res = xbt_new(s
truct s_xbt_dict_cursor
, 1);
res->dict = dict;
xbt_dict_cursor_rewind(res);
res->dict = dict;
xbt_dict_cursor_rewind(res);
@@
-128,17
+128,17
@@
inline int xbt_dict_cursor_get_or_free(xbt_dict_cursor_t * cursor, char **key, v
XBT_CDEBUG(xbt_dict_cursor, "xbt_dict_get_or_free");
if (!cursor || !(*cursor))
XBT_CDEBUG(xbt_dict_cursor, "xbt_dict_get_or_free");
if (!cursor || !(*cursor))
- return
false
;
+ return
0
;
current = (*cursor)->current;
if (current == NULL) { /* no data left */
xbt_dict_cursor_free(cursor);
current = (*cursor)->current;
if (current == NULL) { /* no data left */
xbt_dict_cursor_free(cursor);
- return
false
;
+ return
0
;
}
*key = current->key;
*data = current->content;
}
*key = current->key;
*data = current->content;
- return
true
;
+ return
1
;
}
/**
}
/**