- struct heap_node **nodes; /* Element 0 unused, 1...CNT are the heap. */
- size_t cnt; /* Number of elements in heap. */
- size_t cap; /* Max CNT without allocating more memory. */
+ struct heap_node **nodes; /* Element 0 unused, 1...N are the heap. */
+ size_t n; /* Number of elements in heap. */
+ size_t allocated; /* Max N without allocating more memory. */