Prefix functions with l in lalloc

This commit is contained in:
Nils O. Selåsdal
2026-05-11 22:45:13 +02:00
parent c9a51a85ea
commit ce0e998d2a
3 changed files with 61 additions and 61 deletions
+3 -3
View File
@@ -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];