Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Kill useless typedef s_xbt_dict_cursor_t.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 3 Apr 2018 16:38:21 +0000 (18:38 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 3 Apr 2018 20:28:37 +0000 (22:28 +0200)
src/xbt/dict_cursor.c
src/xbt/dict_private.h

index 6c8d2a5..9959a34 100644 (file)
@@ -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(struct s_xbt_dict_cursor, 1);
   res->dict = dict;
 
   xbt_dict_cursor_rewind(res);
   res->dict = dict;
 
   xbt_dict_cursor_rewind(res);
index 4d80294..50ee25e 100644 (file)
@@ -29,8 +29,6 @@ typedef struct s_xbt_dict {
   int fill;
 } s_xbt_dict_t;
 
   int fill;
 } s_xbt_dict_t;
 
-typedef struct s_xbt_dict_cursor s_xbt_dict_cursor_t;
-
 extern XBT_PRIVATE xbt_mallocator_t dict_elm_mallocator;
 XBT_PRIVATE void * dict_elm_mallocator_new_f(void);
 #define dict_elm_mallocator_free_f xbt_free_f
 extern XBT_PRIVATE xbt_mallocator_t dict_elm_mallocator;
 XBT_PRIVATE void * dict_elm_mallocator_new_f(void);
 #define dict_elm_mallocator_free_f xbt_free_f