rsys

Basic data structures and low-level features
git clone git://git.meso-star.fr/rsys.git
Log | Files | Refs | README | LICENSE

commit d2cc6eec8ce52a8665b553579b14a6d2240c0dc8
parent 1f48b0268f12674b080dc51258a3514a4b6fdb31
Author: vaplv <vaplv@free.fr>
Date:   Thu,  6 Feb 2014 21:48:58 +0100

Minor adjustments

Diffstat:
Mcmake/toolchain/x86_64-w64-mingw32-toolchain.cmake | 6+++---
Msrc/mem_allocator.h | 9---------
2 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/cmake/toolchain/x86_64-w64-mingw32-toolchain.cmake b/cmake/toolchain/x86_64-w64-mingw32-toolchain.cmake @@ -2,10 +2,10 @@ set(CMAKE_SYSTEM_NAME Windows) set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres) -# here is the target environment located -SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32/sys-root/mingw) +# Here is the target environment located +set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32/sys-root/mingw) -# adjust the default behaviour of the FIND_XXX() commands: +# Adjust the default behaviour of the FIND_XXX() commands: # search headers and libraries in the target environment, search # programs in the host environment set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) diff --git a/src/mem_allocator.h b/src/mem_allocator.h @@ -85,15 +85,6 @@ extern struct mem_allocator mem_default_allocator; #define MEM_DUMP(Allocator, Msg, MaxLen) \ ((Allocator)->dump((Allocator)->data, (Msg), (MaxLen))) -#define MEM_IS_ALLOCATOR_VALID(Allocator) \ - ( NULL != (Allocator)->alloc \ - && NULL != (Allocator)->calloc \ - && NULL != (Allocator)->realloc \ - && NULL != (Allocator)->aligned_alloc \ - && NULL != (Allocator)->free \ - && NULL != (Allocator)->allocated_size \ - && NULL != (Allocator)->dump) - #ifdef __cplusplus extern "C" { #endif