Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cosmetics
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 8 Dec 2011 22:10:53 +0000 (23:10 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 8 Dec 2011 22:10:53 +0000 (23:10 +0100)
include/xbt/heap.h
src/xbt/heap_private.h

index ab20dfe..b6e9689 100644 (file)
@@ -18,7 +18,7 @@
 /* @brief heap datatype */
 typedef struct xbt_heap *xbt_heap_t;
 
 /* @brief heap datatype */
 typedef struct xbt_heap *xbt_heap_t;
 
-XBT_PUBLIC(xbt_heap_t) xbt_heap_new(int num,
+XBT_PUBLIC(xbt_heap_t) xbt_heap_new(int init_size,
                                     void_f_pvoid_t const free_func);
 XBT_PUBLIC(void) xbt_heap_free(xbt_heap_t H);
 XBT_PUBLIC(int) xbt_heap_size(xbt_heap_t H);
                                     void_f_pvoid_t const free_func);
 XBT_PUBLIC(void) xbt_heap_free(xbt_heap_t H);
 XBT_PUBLIC(int) xbt_heap_size(xbt_heap_t H);
index c0330c7..cd2b6a8 100644 (file)
@@ -18,7 +18,7 @@ typedef struct xbt_heap_item {
 typedef struct xbt_heap {
   int size;
   int count;
 typedef struct xbt_heap {
   int size;
   int count;
-  xbt_heap_item_t items;
+  s_xbt_heap_item_t* items; /* array of structs */
   void_f_pvoid_t free;
   void (*update_callback) (void *, int);
 } s_xbt_heap_t;
   void_f_pvoid_t free;
   void (*update_callback) (void *, int);
 } s_xbt_heap_t;