Move FreeListBlock internal into source
This commit is contained in:
parent
682901cafd
commit
de6aee3a3a
2 changed files with 9 additions and 7 deletions
|
|
@ -6,6 +6,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
struct FreeListBlock {
|
||||
struct FreeListBlock *next;
|
||||
};
|
||||
|
||||
/* Initialize the FreeList */
|
||||
int fl_init(FreeList *fl, uintptr_t start, uintptr_t end, size_t itemsize) {
|
||||
size_t size = ALIGN(itemsize);
|
||||
|
|
|
|||
|
|
@ -18,9 +18,7 @@ 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue