From c091d0dcc4017f10cd11f24860001dddeacb4749 Mon Sep 17 00:00:00 2001 From: Mineplay Date: Sat, 12 Apr 2025 17:05:14 -0500 Subject: [PATCH] refactor(file structure): seperated files in seperate folders --- Include/Hallocy/{ => Core}/Allocator.h | 2 +- Include/Hallocy/{ => Utils}/Error.h | 0 Src/{ => Core}/Allocator.c | 2 +- Tests/Main.c | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename Include/Hallocy/{ => Core}/Allocator.h (97%) rename Include/Hallocy/{ => Utils}/Error.h (100%) rename Src/{ => Core}/Allocator.c (99%) diff --git a/Include/Hallocy/Allocator.h b/Include/Hallocy/Core/Allocator.h similarity index 97% rename from Include/Hallocy/Allocator.h rename to Include/Hallocy/Core/Allocator.h index a8f0805..ed2fc87 100644 --- a/Include/Hallocy/Allocator.h +++ b/Include/Hallocy/Core/Allocator.h @@ -26,7 +26,7 @@ #include #include -#include "Error.h" +#include "../Utils/Error.h" void *hallocy_malloc(size_t size); HallocyError hallocy_free(void *pointer); diff --git a/Include/Hallocy/Error.h b/Include/Hallocy/Utils/Error.h similarity index 100% rename from Include/Hallocy/Error.h rename to Include/Hallocy/Utils/Error.h diff --git a/Src/Allocator.c b/Src/Core/Allocator.c similarity index 99% rename from Src/Allocator.c rename to Src/Core/Allocator.c index 5471122..89bd271 100644 --- a/Src/Allocator.c +++ b/Src/Core/Allocator.c @@ -20,7 +20,7 @@ * Author: Mineplay * ----------------------------------------------------------------------------- */ -#include "../Include/Hallocy/Allocator.h" +#include "../../Include/Hallocy/Core/Allocator.h" #if defined(_WIN32) #include diff --git a/Tests/Main.c b/Tests/Main.c index 3b13990..2978a7d 100644 --- a/Tests/Main.c +++ b/Tests/Main.c @@ -20,7 +20,7 @@ * ----------------------------------------------------------------------------- */ #include - #include + #include int main() { char *memory = (char *)hallocy_malloc(12288);