From 53722b5b08344442a2e67b2bca3fd01776f96d3e Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 12 Apr 2016 19:17:59 -0400 Subject: Started the safer malloc() system. --- draw.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'draw.go') 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 // #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) -- cgit v1.2.3