-void
-gras_dict_cursor_new(const gras_dict_t *p_head,
- /*OUT*/gras_dict_cursor_t **pp_cursor) {
- gras_error_t errcode = no_error;
- gras_dict_cursor_t *p_cursor = NULL;
-
- p_cursor = gras_new(gras_dict_cursor_t,1);
-
- gras_dynar_new(&p_cursor->keys, sizeof(char **), NULL);
- gras_dynar_new(&p_cursor->key_lens, sizeof(int *), NULL);
-
- p_cursor->pos = 0;
- p_cursor->pos_len = 0;
- p_cursor->head = p_head ? p_head->head : NULL;
+xbt_dict_cursor_t
+xbt_dict_cursor_new(const xbt_dict_t head) {
+ xbt_error_t errcode = no_error;
+ xbt_dict_cursor_t res = NULL;