-
-static _XBT_INLINE
-void
-_cursor_push_keys(xbt_dict_cursor_t cursor,
- xbt_dictelm_t elm) {
- xbt_dictelm_t child = NULL;
- int i = 0;
- static volatile int count = 0; /* ??? */
-
- CDEBUG1(dict_cursor, "Push childs of %p in the cursor", (void*)elm);
-
- if (elm->content) {
- xbt_dynar_push(cursor->keys, &elm->key );
- xbt_dynar_push(cursor->key_lens, &elm->key_len);
- count++;
- }
-
- xbt_dynar_foreach(elm->sub, i, child) {
- if (child)
- _cursor_push_keys(cursor, child);
- }
-
- CDEBUG1(dict_cursor, "Count = %d", count);
-}
-
-/**
- * xbt_dict_cursor_rewind:
- * @cursor: the cursor
- * @Returns: xbt_error_t
- *
- * back to the first element
- */
-void
-xbt_dict_cursor_rewind(xbt_dict_cursor_t cursor) {
-
- CDEBUG0(dict_cursor, "xbt_dict_cursor_rewind");
+/** @brief Reinitialize the cursor. Mandatory after removal or add in dict. */
+inline void xbt_dict_cursor_rewind(xbt_dict_cursor_t cursor)
+{
+ XBT_CDEBUG(xbt_dict_cursor, "xbt_dict_cursor_rewind");