Mass reformat

This commit is contained in:
Imbus 2025-08-18 14:59:16 +02:00
parent 4d27def35e
commit df11e34235
27 changed files with 121 additions and 136 deletions

View file

@ -25,7 +25,7 @@ typedef struct block {
// int is_free;
} block_t;
static char *heap;
static char *heap;
static block_t *free_lists[MAX_ORDER - MIN_ORDER + 1];
void buddy_init() {
@ -59,7 +59,7 @@ void *buddy_alloc(size_t size) {
size_t split_size = ORDER_TO_SZ(i);
// FIXME: Char???
char *middle = ((char *)bigger + split_size);
char *middle = ((char *)bigger + split_size);
block_t *buddy = (block_t *)middle;
// block_t *buddy = (block_t *)((char *)bigger + split_size);
buddy->next = NULL;