diff --git a/include/allocator.h b/include/lae_allocator.h similarity index 86% rename from include/allocator.h rename to include/lae_allocator.h index 7e2b584..b32f1fb 100644 --- a/include/allocator.h +++ b/include/lae_allocator.h @@ -1,5 +1,5 @@ -#ifndef ALLOCATOR_H -#define ALLOCATOR_H +#ifndef LAE_ALLOCATOR_H +#define LAE_ALLOCATOR_H #include diff --git a/src/allocator.c b/src/lae_allocator.c similarity index 95% rename from src/allocator.c rename to src/lae_allocator.c index 39742b7..c6a120a 100644 --- a/src/allocator.c +++ b/src/lae_allocator.c @@ -1,4 +1,4 @@ -#include "allocator.h" +#include "lae_allocator.h" #include static void* stdlib_alloc(void* ctx, size_t size) { diff --git a/xmake.lua b/xmake.lua index ab4f942..bf0ccd1 100644 --- a/xmake.lua +++ b/xmake.lua @@ -1,4 +1,4 @@ -set_project("allocator") +set_project("lae_allocator") set_version("1.0.0") set_languages("c11") @@ -31,10 +31,10 @@ option_end() -- Library -- ========================================================= -target("allocator") +target("lae_allocator") set_kind("static") -add_files("src/allocator.c") +add_files("src/lae_allocator.c") add_headerfiles("include/*.h") @@ -54,7 +54,7 @@ if has_config("example") then add_files("src/main.c") - add_deps("allocator") + add_deps("lae_allocator") end -- ========================================================= @@ -69,7 +69,7 @@ if has_config("tests") then add_files("test/test_allocator.c") - add_deps("allocator") + add_deps("lae_allocator") add_packages("cmocka")