From 277e3b7dd1bc85cd190c6e4c451c7bfab71ee07e Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Mon, 24 Mar 2025 22:55:45 -0500 Subject: Fix MEM_ALIGN_BYTES not being static --- src/arena.h | 2 +- src/main.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/arena.h b/src/arena.h index a94001b..e656f9a 100644 --- a/src/arena.h +++ b/src/arena.h @@ -11,7 +11,7 @@ typedef struct arena arena; typedef arena simplearena; #define ISPOWOF2(x) (((x) & ((x) - 1)) == 0) -const size_t MEM_ALIGN_BYTES = (2 * sizeof(void*)); +static const size_t MEM_ALIGN_BYTES = (2 * sizeof(void*)); // Hey, the static keyword did something for once! #define MEM_ALIGN(x) ((x) + (((x) & (MEM_ALIGN_BYTES - 1)) != 0) * (MEM_ALIGN_BYTES - ((x) & (MEM_ALIGN_BYTES - 1)))) int arena_init(arena **a, size_t bytes); diff --git a/src/main.c b/src/main.c index 3f6d566..f3ca77e 100644 --- a/src/main.c +++ b/src/main.c @@ -1,12 +1,14 @@ #include "shared.h" +#include "arena.h" +#include "encryption.h" +#include "ll.h" #include #include #include int main() { - - + error(1, ENOTSUP, "No main file lol"); return 0; } \ No newline at end of file -- cgit v1.2.3