/* * grow.h: declaration of generic growing array */ #ifndef GROW_H #define GROW_H #include #include #include struct grow { void **arr; uint64_t elems; uint64_t alloc; uint64_t active_elems; bool dealloc; }; struct grow *grow_init(bool dealloc); bool grow_push (void *val, struct grow *g); void *grow_pop (struct grow *g); void grow_drop (struct grow *g); #endif