diff options
Diffstat (limited to 'lmem.h')
-rw-r--r-- | lmem.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmem.h,v 1.26 2002/05/01 20:40:42 roberto Exp roberto $ | 2 | ** $Id: lmem.h,v 1.27 2004/11/19 15:52:40 roberto Exp roberto $ |
3 | ** Interface to Memory Manager | 3 | ** Interface to Memory Manager |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -29,8 +29,8 @@ void *luaM_toobig (lua_State *L); | |||
29 | void *luaM_growaux (lua_State *L, void *block, int *size, size_t size_elem, | 29 | void *luaM_growaux (lua_State *L, void *block, int *size, size_t size_elem, |
30 | int limit, const char *errormsg); | 30 | int limit, const char *errormsg); |
31 | 31 | ||
32 | #define luaM_free(L, b, s) luaM_realloc(L, (b), (s), 0) | 32 | #define luaM_freemem(L, b, s) luaM_realloc(L, (b), (s), 0) |
33 | #define luaM_freelem(L, b) luaM_realloc(L, (b), sizeof(*(b)), 0) | 33 | #define luaM_free(L, b) luaM_realloc(L, (b), sizeof(*(b)), 0) |
34 | #define luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) | 34 | #define luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) |
35 | 35 | ||
36 | #define luaM_malloc(L,t) luaM_realloc(L, NULL, 0, (t)) | 36 | #define luaM_malloc(L,t) luaM_realloc(L, NULL, 0, (t)) |