I am currently trying to implement a general allocator for my garbage collector project so you can create different allocators for different purposes, and have multiple allocators in one allocator (eg. a slab allocator). Eventually still have the garbage collector be able to manage it.
I've had a bunch of trouble with function pointers and trying to isolate the internal routines of warena.c, only exposing them through a allocator struct.
And currently im facing some issues with my arena_t not being avalible for linking outside of warena.c which I need for what im doing right now. Writing tests. But I am just not sure how to expose it.
But the big problem right now is i'm a little lost in errors and having tried a few things that didn't work like:
- Declaring the struct as extern (Current situation errors below)
- Trying to use typedef in different ways but getting an error trying to use an incomplete typedef
make tests - to run exactly what im running
