Move FreeListBlock internal into source
This commit is contained in:
parent
682901cafd
commit
de6aee3a3a
2 changed files with 9 additions and 7 deletions
|
|
@ -18,16 +18,14 @@ static inline size_t align_up(size_t n) {
|
|||
#define ALIGN(x) (align_up(x))
|
||||
#endif // FREELIST_NOALIGN
|
||||
|
||||
typedef struct FreeListBlock {
|
||||
struct FreeListBlock *next;
|
||||
} FreeListBlock;
|
||||
typedef struct FreeListBlock FreeListBlock;
|
||||
|
||||
typedef struct {
|
||||
uintptr_t start;
|
||||
uintptr_t end;
|
||||
uintptr_t start;
|
||||
uintptr_t end;
|
||||
FreeListBlock *free;
|
||||
size_t size;
|
||||
size_t allocated;
|
||||
size_t size;
|
||||
size_t allocated;
|
||||
} FreeList;
|
||||
|
||||
int fl_init(FreeList *fl, uintptr_t start, uintptr_t end, size_t itemsize);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue