Maximum amount of allocations doesn't have to be public

This commit is contained in:
Jozef Nagy 2025-01-26 01:06:54 +01:00
parent b7639e84dc
commit b4289c429e
Signed by untrusted user who does not match committer: crz
GPG key ID: 459A4811CEAC7068
2 changed files with 3 additions and 3 deletions

View file

@ -23,6 +23,9 @@
#include <print.h>
#include <stddef.h>
// NOTE: If any allocations fail, try increasing this number.
#define MAX_ALLOCATIONS 256
struct alloc_header allocation_list[MAX_ALLOCATIONS] = {0};
int find_alloc(void *addr)

View file

@ -22,9 +22,6 @@
#include <stddef.h>
// NOTE: If any allocations fail, try increasing this number.
#define MAX_ALLOCATIONS 256
struct alloc_header {
void *addr;
size_t size;