3 This file is part of gldbg
4 Copyright © 2009 Mikko Rasa, Mikkosoft Productions
5 Distributed under the GPL
11 static void *buffer = 0;
12 static unsigned buf_size = 8192;
13 static unsigned offset = 0;
15 void *tmpalloc(unsigned size)
19 buffer = malloc(buf_size);
20 if(offset+size>buf_size)
22 ptr = (char *)buffer+offset;