You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
266 B

  1. #include <stdint.h>
  2. struct Arena {
  3. void *root_freespace;
  4. void *root_treealloc;
  5. void *(*get_new_region)(uintptr_t);
  6. void (*error)(char*);
  7. };
  8. void unalloc(struct Arena *arena, void *addr);
  9. void *alloc(struct Arena *arena, uintptr_t size, uintptr_t align);