refactor: name conflict

This commit is contained in:
2026-05-26 20:20:15 -06:00
parent 278973a006
commit 4a55069171
3 changed files with 8 additions and 8 deletions

20
include/lae_allocator.h Normal file
View File

@@ -0,0 +1,20 @@
#ifndef LAE_ALLOCATOR_H
#define LAE_ALLOCATOR_H
#include <stdlib.h>
typedef struct Allocator Allocator;
Allocator allocator_default(void);
struct Allocator {
void* ctx;
void* (*alloc)(void* ctx, size_t size);
void* (*realloc)(void* ctx, void* ptr, size_t old_size, size_t new_size);
void (*free)(void* ctx, void* ptr, size_t size);
};
#endif