diff options
| author | Pietro Gagliardi <[email protected]> | 2016-04-12 19:17:59 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2016-04-12 19:17:59 -0400 |
| commit | 53722b5b08344442a2e67b2bca3fd01776f96d3e (patch) | |
| tree | 75e350889b35baa751b8b51b914b3c52711c8008 /draw.go | |
| parent | 439f3f476c2b8fa2bd51bbb6257c3bf7c1208254 (diff) | |
Started the safer malloc() system.
Diffstat (limited to 'draw.go')
| -rw-r--r-- | draw.go | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |
