refactor: name conflict
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#ifndef ALLOCATOR_H
|
#ifndef LAE_ALLOCATOR_H
|
||||||
#define ALLOCATOR_H
|
#define LAE_ALLOCATOR_H
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "allocator.h"
|
#include "lae_allocator.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
static void* stdlib_alloc(void* ctx, size_t size) {
|
static void* stdlib_alloc(void* ctx, size_t size) {
|
||||||
10
xmake.lua
10
xmake.lua
@@ -1,4 +1,4 @@
|
|||||||
set_project("allocator")
|
set_project("lae_allocator")
|
||||||
set_version("1.0.0")
|
set_version("1.0.0")
|
||||||
|
|
||||||
set_languages("c11")
|
set_languages("c11")
|
||||||
@@ -31,10 +31,10 @@ option_end()
|
|||||||
-- Library
|
-- Library
|
||||||
-- =========================================================
|
-- =========================================================
|
||||||
|
|
||||||
target("allocator")
|
target("lae_allocator")
|
||||||
set_kind("static")
|
set_kind("static")
|
||||||
|
|
||||||
add_files("src/allocator.c")
|
add_files("src/lae_allocator.c")
|
||||||
|
|
||||||
add_headerfiles("include/*.h")
|
add_headerfiles("include/*.h")
|
||||||
|
|
||||||
@@ -54,7 +54,7 @@ if has_config("example") then
|
|||||||
|
|
||||||
add_files("src/main.c")
|
add_files("src/main.c")
|
||||||
|
|
||||||
add_deps("allocator")
|
add_deps("lae_allocator")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- =========================================================
|
-- =========================================================
|
||||||
@@ -69,7 +69,7 @@ if has_config("tests") then
|
|||||||
|
|
||||||
add_files("test/test_allocator.c")
|
add_files("test/test_allocator.c")
|
||||||
|
|
||||||
add_deps("allocator")
|
add_deps("lae_allocator")
|
||||||
|
|
||||||
add_packages("cmocka")
|
add_packages("cmocka")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user