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
Now that there is some mallocated space in the category architectures (the layouts...
[simgrid.git]
/
src
/
xbt
/
dict_cursor.c
diff --git
a/src/xbt/dict_cursor.c
b/src/xbt/dict_cursor.c
index
1110af7
..
de99ef2
100644
(file)
--- a/
src/xbt/dict_cursor.c
+++ b/
src/xbt/dict_cursor.c
@@
-58,7
+58,7
@@
void xbt_dict_cursor_free(xbt_dict_cursor_t *cursor) {
/*
* Sanity check to see if the head contains something
*/
/*
* Sanity check to see if the head contains something
*/
-static
_
XBT_INLINE void __cursor_not_null(xbt_dict_cursor_t cursor) {
+static XBT_INLINE void __cursor_not_null(xbt_dict_cursor_t cursor) {
xbt_assert0(cursor, "Null cursor");
}
xbt_assert0(cursor, "Null cursor");
}
@@
-103,11
+103,16
@@
void xbt_dict_cursor_first(const xbt_dict_t dict,
* \brief Move to the next element.
*/
void xbt_dict_cursor_step(xbt_dict_cursor_t cursor) {
* \brief Move to the next element.
*/
void xbt_dict_cursor_step(xbt_dict_cursor_t cursor) {
+
+
+ xbt_dictelm_t current ;
+ int line;
+
DEBUG0("xbt_dict_cursor_step");
xbt_assert(cursor);
DEBUG0("xbt_dict_cursor_step");
xbt_assert(cursor);
-
xbt_dictelm_t
current = cursor->current;
-
int
line = cursor->line;
+ current = cursor->current;
+ line = cursor->line;
if (cursor->dict != NULL) {
if (cursor->dict != NULL) {
@@
-137,10
+142,12
@@
void xbt_dict_cursor_step(xbt_dict_cursor_t cursor) {
int xbt_dict_cursor_get_or_free(xbt_dict_cursor_t *cursor,
char **key,
void **data) {
int xbt_dict_cursor_get_or_free(xbt_dict_cursor_t *cursor,
char **key,
void **data) {
- DEBUG0("xbt_dict_get_or_free");
xbt_dictelm_t current;
xbt_dictelm_t current;
+ DEBUG0("xbt_dict_get_or_free");
+
+
if (!cursor || !(*cursor))
return FALSE;
if (!cursor || !(*cursor))
return FALSE;