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);
- return false;
+ return 0;
}
*key = current->key;
*data = current->content;
- return true;
+ return 1;
}
/**
return cursor->current->content;
}
-
-/**
- * @brief Set current data
- * @param cursor the cursor
- * @param data the new data
- * @param free_ctn unused parameter (kept for compatibility)
- */
-inline void xbt_dict_cursor_set_data(xbt_dict_cursor_t cursor, void* data, XBT_ATTRIB_UNUSED void_f_pvoid_t free_ctn)
-{
- __cursor_not_null(cursor);
- xbt_dictelm_set_data(cursor->dict, cursor->current, data);
-}