summaryrefslogtreecommitdiff
path: root/draw.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2016-04-12 19:17:59 -0400
committerPietro Gagliardi <[email protected]>2016-04-12 19:17:59 -0400
commit53722b5b08344442a2e67b2bca3fd01776f96d3e (patch)
tree75e350889b35baa751b8b51b914b3c52711c8008 /draw.go
parent439f3f476c2b8fa2bd51bbb6257c3bf7c1208254 (diff)
Started the safer malloc() system.
Diffstat (limited to 'draw.go')
-rw-r--r--draw.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/draw.go b/draw.go
index 5468b19..bc1971e 100644
--- a/draw.go
+++ b/draw.go
@@ -4,12 +4,13 @@ package ui
// #include <stdlib.h>
// #include "ui.h"
+// // TODO figure this one out
+// extern void *uimalloc(size_t);
// static uiDrawBrush *newBrush(void)
// {
// uiDrawBrush *b;
//
-// b = (uiDrawBrush *) malloc(sizeof (uiDrawBrush));
-// // TODO
+// b = (uiDrawBrush *) uimalloc(sizeof (uiDrawBrush));
// return b;
// }
// static uiDrawBrushGradientStop *newStops(size_t n)