From 945137ee0966987afe5e31c8b8b138a498740dfe Mon Sep 17 00:00:00 2001 From: Mineplay Date: Sun, 5 Oct 2025 10:28:59 -0500 Subject: [PATCH] refactor(linting): removed const in header files for function definitions --- Include/Hallocy/Core/Allocator.h | 4 ++-- Include/Hallocy/Core/Memory.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Include/Hallocy/Core/Allocator.h b/Include/Hallocy/Core/Allocator.h index 20f5f5d..014b4ff 100644 --- a/Include/Hallocy/Core/Allocator.h +++ b/Include/Hallocy/Core/Allocator.h @@ -28,11 +28,11 @@ #include "../Utils/Error.h" -void *hallocy_allocate(const size_t size, const bool zero_memory); +void *hallocy_allocate(size_t size, bool zero_memory); static inline void *hallocy_malloc(const size_t size) { return hallocy_allocate(size, false); } static inline void *hallocy_calloc(const size_t size, size_t count) { return hallocy_allocate(size * count, true); } -void *hallocy_realloc(void *memory_pointer, const size_t size); +void *hallocy_realloc(void *memory_pointer, size_t size); HallocyError hallocy_free(void *pointer); #endif diff --git a/Include/Hallocy/Core/Memory.h b/Include/Hallocy/Core/Memory.h index 44b8402..fad05bf 100644 --- a/Include/Hallocy/Core/Memory.h +++ b/Include/Hallocy/Core/Memory.h @@ -28,9 +28,9 @@ #include "../Utils/Error.h" -HallocyError hallocy_set_memory(void *destination, int value, const size_t size); -HallocyError hallocy_copy_memory(void *destination, void *source, const size_t size); -HallocyError hallocy_move_memory(void *destination, void *source, const size_t size); -bool hallocy_compare_memory(void *left_side, void *right_side, const size_t size); +HallocyError hallocy_set_memory(void *destination, int value, size_t size); +HallocyError hallocy_copy_memory(void *destination, void *source, size_t size); +HallocyError hallocy_move_memory(void *destination, void *source, size_t size); +bool hallocy_compare_memory(void *left_side, void *right_side, size_t size); #endif