Files
tyche/lib/heap.c
2026-05-12 11:25:37 -05:00

24 lines
317 B
C

#include "stack.c"
#include <stdlib.h>
#include "khash.h"
typedef struct {
} HeapValue;
KHASH_MAP_INIT_INT(heap, HeapValue)
typedef struct {
khash_t(heap) *items;
} Heap;
static void heap_init(Heap* h)
{
h->items = kh_init(heap);
}
static void heap_finalize(Heap* h)
{
kh_destroy(heap, h->items);
}