Browse Source

Rearranged types a bit

tree_alloc
Thomas Johnson 1 year ago
parent
commit
ba0f93f487
  1. 6
      allocator_internal.h

6
allocator_internal.h

@ -20,9 +20,9 @@ typedef struct TreeAlloc {
struct TreeAlloc *parent;
struct TreeAlloc *left;
struct TreeAlloc *right;
uintptr_t size;
struct TreeAlloc *before;
struct TreeAlloc *after;
uintptr_t size;
} TreeAlloc;
typedef struct FreeSpace {
@ -30,8 +30,6 @@ typedef struct FreeSpace {
struct FreeSpace *parent;
struct FreeSpace *left;
struct FreeSpace *right;
struct TreeAlloc *before;
struct TreeAlloc *after;
uintptr_t size;
} FreeSpace;
@ -40,9 +38,9 @@ typedef struct WatermarkAlloc {
struct TreeAlloc *parent;
struct TreeAlloc *left;
struct TreeAlloc *right;
uintptr_t size;
struct TreeAlloc *before;
struct TreeAlloc *after;
uintptr_t size;
int num_allocs;
void *next_alloc;
} WatermarkAlloc;

Loading…
Cancel
Save