diff options
| author | Mosder <git@mosder.eu> | 2026-09-15 15:52:47 +0200 |
|---|---|---|
| committer | Mosder <git@mosder.eu> | 2026-09-15 15:52:47 +0200 |
| commit | 451a320920c6e2f60445938aa98d4fe817c3d36a (patch) | |
| tree | 02e6b7bd9a6e2824ef332b0143c98348ff8c85b3 /analyzer/structures/heap.h | |
| parent | ad5eb982de97d982bc808ece89903d1113ab9917 (diff) | |
Diffstat (limited to 'analyzer/structures/heap.h')
| -rw-r--r-- | analyzer/structures/heap.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/analyzer/structures/heap.h b/analyzer/structures/heap.h index a2d7333..bfeb4b6 100644 --- a/analyzer/structures/heap.h +++ b/analyzer/structures/heap.h @@ -27,13 +27,15 @@ typedef struct { // - el2 - pointer to the second of the elements to compare // returns: // truthy if el1 should be el2's parent (e.g. el1 > el2 for max heap), falsy otherwise -// - el_cleanup - function for cleaning up any internal allocations inside element (not the element itself) +// - el_cleanup - function for cleaning up any internal allocations inside element (not the +// element itself) // if it has no heap allocations, this should be NULL // params: // - el - pointer to the element to cleanup // returns: // pointer to the new heap -extern Heap *heap_new(size_t el_size, int (*compare)(void *el1, void *el2), void (*el_cleanup)(void *el)); +extern Heap * +heap_new(size_t el_size, int (*compare)(void *el1, void *el2), void (*el_cleanup)(void *el)); // insert new element into the heap // params: |
