From 7b1dfbf1d6de954efdb5d9d9d4df61a98935ddd4 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 19:04:09 -0400 Subject: Unified the allocators across all platforms so that everyone uses uiAlloc() and friends. --- new/uipriv.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'new/uipriv.h') diff --git a/new/uipriv.h b/new/uipriv.h index 02aa72b..4b150dd 100644 --- a/new/uipriv.h +++ b/new/uipriv.h @@ -18,3 +18,9 @@ struct uiControl { void (*containerShow)(uiControl *); void (*containerHide)(uiControl *); }; + +extern void *uiAlloc(size_t); +// TODO use this in existing files +#define uiNew(T) ((T *) uiAlloc(sizeof (T))) +extern void *uiRealloc(void *, size_t); +extern void uiFree(void *); -- cgit v1.2.3