From 3c18febd87234f54c149bb4a6353e3b0e0103db7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Nov 2020 12:22:28 +0100 Subject: Add const, pure, and malloc function attributes --- test/test_malloc.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test/test_malloc.h') diff --git a/test/test_malloc.h b/test/test_malloc.h index ba7cad3..be59008 100644 --- a/test/test_malloc.h +++ b/test/test_malloc.h @@ -14,8 +14,10 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "zix/common.h" + #include -void test_malloc_init(void); -void test_malloc_reset(size_t fail_after); -size_t test_malloc_get_n_allocs(void); +void test_malloc_init(void); +void test_malloc_reset(size_t fail_after); +ZIX_PURE_API size_t test_malloc_get_n_allocs(void); -- cgit v1.2.1