aboutsummaryrefslogtreecommitdiffstats
path: root/3rdparty/tinygl-0.4-ugfx/src/memory.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2014-08-20 17:44:40 +1000
committerinmarket <andrewh@inmarket.com.au>2014-08-20 17:44:40 +1000
commit2b47a0708602b45b0b5db120a496bf92232aa4b1 (patch)
tree6c5965b6bf1d109b853efe64777bbc7ee5548882 /3rdparty/tinygl-0.4-ugfx/src/memory.c
parentc06bff3304ed234c3a7f96fd049755ac59228ef7 (diff)
parent0f3f8f68f87233bf59c3fa68c3dfe1f492a1a478 (diff)
downloaduGFX-2b47a0708602b45b0b5db120a496bf92232aa4b1.tar.gz
uGFX-2b47a0708602b45b0b5db120a496bf92232aa4b1.tar.bz2
uGFX-2b47a0708602b45b0b5db120a496bf92232aa4b1.zip
Merge branch 'master' into newmouse
Diffstat (limited to '3rdparty/tinygl-0.4-ugfx/src/memory.c')
-rw-r--r--3rdparty/tinygl-0.4-ugfx/src/memory.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/3rdparty/tinygl-0.4-ugfx/src/memory.c b/3rdparty/tinygl-0.4-ugfx/src/memory.c
new file mode 100644
index 00000000..e1dc3cbb
--- /dev/null
+++ b/3rdparty/tinygl-0.4-ugfx/src/memory.c
@@ -0,0 +1,21 @@
+/*
+ * Memory allocator for TinyGL
+ */
+#include "zgl.h"
+
+/* modify these functions so that they suit your needs */
+
+void gl_free(void *p)
+{
+ free(p);
+}
+
+void *gl_malloc(int size)
+{
+ return malloc(size);
+}
+
+void *gl_zalloc(int size)
+{
+ return calloc(1, size);
+}