From 340abfc31c81ff55545665f7dc17b9f78b939e08 Mon Sep 17 00:00:00 2001 From: Nikolai Nosov Date: Tue, 28 Jan 2020 20:17:47 +0400 Subject: [PATCH] fix pst_alloc_init.. names and stub for pst_alloc_init_cutom() --- framework/allocator.cpp | 3 ++- framework/allocator.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/framework/allocator.cpp b/framework/allocator.cpp index d297143..15d498a 100644 --- a/framework/allocator.cpp +++ b/framework/allocator.cpp @@ -46,9 +46,10 @@ void pst_alloc_init(pst_allocator& alloc) return; } -void pst_allocator_init_custom(pst_allocator& alloc, void* buff, uint32_t size) +void pst_alloc_init_custom(pst_allocator& alloc, void* buff, uint32_t size) { // TBD to implement custom allocator + pst_alloc_init(alloc); return; } diff --git a/framework/allocator.h b/framework/allocator.h index 46195b4..afa4157 100644 --- a/framework/allocator.h +++ b/framework/allocator.h @@ -34,7 +34,7 @@ typedef struct __pst_allocator { } pst_allocator; void pst_alloc_init(pst_allocator& alloc); -void pst_allocator_init_custom(pst_allocator& alloc, void* buff, uint32_t size); +void pst_alloc_init_custom(pst_allocator& alloc, void* buff, uint32_t size); void pst_alloc_fini(pst_allocator& alloc); #endif /* FRAMEWORK_ALLOCATOR_H_ */