X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6760cb07d6b57be16928d95339d71e57c4e24f36..3a12c004433359e3e2b0a29a7913668a33872a69:/include/xbt/heap.h diff --git a/include/xbt/heap.h b/include/xbt/heap.h index 4b5e707030..b6e968998c 100644 --- a/include/xbt/heap.h +++ b/include/xbt/heap.h @@ -18,7 +18,8 @@ /* @brief heap datatype */ typedef struct xbt_heap *xbt_heap_t; -XBT_PUBLIC(xbt_heap_t) xbt_heap_new(int num, void_f_pvoid_t const free_func); +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); @@ -27,8 +28,11 @@ XBT_PUBLIC(void *) xbt_heap_pop(xbt_heap_t H); XBT_PUBLIC(double) xbt_heap_maxkey(xbt_heap_t H); XBT_PUBLIC(void *) xbt_heap_maxcontent(xbt_heap_t H); -XBT_PUBLIC(void) xbt_heap_set_update_callback(xbt_heap_t H, void (*update_callback)(void*, int)); -XBT_PUBLIC(void*) xbt_heap_remove(xbt_heap_t H, int i); +XBT_PUBLIC(void) xbt_heap_set_update_callback(xbt_heap_t H, + void (*update_callback) (void + *, + int)); +XBT_PUBLIC(void *) xbt_heap_remove(xbt_heap_t H, int i); /* @} */ -#endif /* _XBT_HEAP_H */ +#endif /* _XBT_HEAP_H */