diff options
author | Brian <[email protected]> | 2007-04-21 12:08:56 -0600 |
---|---|---|
committer | Brian <[email protected]> | 2007-04-21 12:30:58 -0600 |
commit | cd3e39340f057712fcf02a35dff85645e475053a (patch) | |
tree | a7c6e2d0d6be2ccaa882075539e38935b77b5522 /src/mesa/shader/slang/slang_mem.h | |
parent | ad3cc95485c488e3920f9c460b373338043000c5 (diff) |
Use new memory pool allocator. Lots of debug code still in place...
Diffstat (limited to 'src/mesa/shader/slang/slang_mem.h')
-rw-r--r-- | src/mesa/shader/slang/slang_mem.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/shader/slang/slang_mem.h b/src/mesa/shader/slang/slang_mem.h index f44892666bf..a91c2b8791f 100644 --- a/src/mesa/shader/slang/slang_mem.h +++ b/src/mesa/shader/slang/slang_mem.h @@ -30,12 +30,7 @@ #include "imports.h" -typedef struct slang_mempool_ -{ - GLuint Size, Used; - char *Data; - struct slang_mempool_ *Next; -} slang_mempool; +typedef struct slang_mempool_ slang_mempool; extern slang_mempool * @@ -53,6 +48,9 @@ _slang_realloc(void *oldBuffer, GLuint oldSize, GLuint newSize); extern char * _slang_strdup(const char *s); +extern void +_slang_free(void *addr); + #define USE_MEMPOOL 1 /* XXX temporary */ |