repo.or.cz
/
tgl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge branch 'master' of ssh://repo.or.cz/srv/git/tgl
[tgl.git]
/
src
/
memory.c
blob
cc61facc6adcb534d5227d41ff924599c9c73ec1
1
/*
2
* Memory allocator for TinyGL
3
*/
4
#include
"zgl.h"
5
6
/* modify these functions so that they suit your needs */
7
8
void
gl_free
(
void
*
p
)
9
{
10
free
(
p
);
11
}
12
13
void
*
gl_malloc
(
int
size
)
14
{
15
return
malloc
(
size
);
16
}
17
18
void
*
gl_zalloc
(
int
size
)
19
{
20
return
calloc
(
1
,
size
);
21
}