Prefix functions with l in lalloc
This commit is contained in:
+3
-3
@@ -7,8 +7,8 @@
|
||||
void debug_alloc(const LAlloc *allocator)
|
||||
{
|
||||
puts("--debug start--");
|
||||
for (BlockHeader *b = allocator->heap_start; b; b = block_from_offset(allocator, b->next)) {
|
||||
printf("Block size %u free %d prev %u next %u \n", block_size(b), block_is_free(b), b->prev, b->next);
|
||||
for (LBlockHeader *b = allocator->heap_start; b; b = lblock_from_offset(allocator, b->next)) {
|
||||
printf("Block size %u free %d prev %u next %u \n", lblock_size(b), lblock_is_free(b), b->prev, b->next);
|
||||
}
|
||||
puts("--debug end--");
|
||||
}
|
||||
@@ -16,7 +16,7 @@ void debug_alloc(const LAlloc *allocator)
|
||||
[[gnu::aligned(16)]] char buff[1023];
|
||||
int main(void)
|
||||
{
|
||||
printf("bh size %zu\n", sizeof(BlockHeader));
|
||||
printf("bh size %zu\n", sizeof(LBlockHeader));
|
||||
#define SZ 64
|
||||
LAlloc a;
|
||||
char *ptrs[SZ];
|
||||
|
||||
Reference in New Issue
Block a user