diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-11-24 17:20:21 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-11-24 17:20:21 -0200 |
| commit | 0e002005b1bf17e962d4640ef7b9fae900514f1a (patch) | |
| tree | c68a025d99d1dfa7a033baa765ba701909d8a4fb /lmem.h | |
| parent | 1d99a7360beaf1a50a3739413b1ad6ed4b71491d (diff) | |
| download | lua-0e002005b1bf17e962d4640ef7b9fae900514f1a.tar.gz lua-0e002005b1bf17e962d4640ef7b9fae900514f1a.tar.bz2 lua-0e002005b1bf17e962d4640ef7b9fae900514f1a.zip | |
better names for `luaM_free...' macros
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)) |
