]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/sntp/unity/unity_fixture_malloc_overrides.h
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / sntp / unity / unity_fixture_malloc_overrides.h
1 //- Copyright (c) 2010 James Grenning and Contributed to Unity Project
2 /* ==========================================
3     Unity Project - A Test Framework for C
4     Copyright (c) 2007 Mike Karlesky, Mark VanderVoord, Greg Williams
5     [Released under MIT License. Please refer to license.txt for details]
6 ========================================== */
7
8 #ifndef UNITY_FIXTURE_MALLOC_OVERRIDES_H_
9 #define UNITY_FIXTURE_MALLOC_OVERRIDES_H_
10
11 #define malloc  unity_malloc
12 #define calloc  unity_calloc
13 #define realloc unity_realloc
14 #define free    unity_free
15
16 void* unity_malloc(size_t size);
17 void* unity_calloc(size_t num, size_t size);
18 void* unity_realloc(void * oldMem, size_t size);
19 void unity_free(void * mem);
20
21 #endif /* UNITY_FIXTURE_MALLOC_OVERRIDES_H_ */