summaryrefslogtreecommitdiff
path: root/new/uipriv_darwin.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-07 16:38:51 -0400
committerPietro Gagliardi <[email protected]>2015-04-07 16:38:51 -0400
commit77a60d63a6aa6ffc02c541a8cdc7483744cc827c (patch)
tree95da186810be45a756d8433e437c268ef3714456 /new/uipriv_darwin.h
parent3969095a33a518023564ec32f8373bbad913b6c3 (diff)
Fixed compiler errors and bugs. uiButton on Mac OS X works!
Diffstat (limited to 'new/uipriv_darwin.h')
-rw-r--r--new/uipriv_darwin.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/new/uipriv_darwin.h b/new/uipriv_darwin.h
index c613810..3c9c731 100644
--- a/new/uipriv_darwin.h
+++ b/new/uipriv_darwin.h
@@ -7,8 +7,14 @@
#define toNSString(str) [NSString stringWithUTF8String:(str)]
+// TODO move this to the right place
+struct uiSizing {
+};
+
// alloc_darwin.m
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 *);