diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-09-07 14:30:16 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-09-07 14:30:16 -0300 |
commit | 4d0935ec0ffed827aade5594216fae15bed7c6b5 (patch) | |
tree | f86f3e8eb68b95c5b556b85b6de83fc7747ba38a /lmem.h | |
parent | e1d072571ec6f9d830e575a2ecdc95fd43428e53 (diff) | |
download | lua-4d0935ec0ffed827aade5594216fae15bed7c6b5.tar.gz lua-4d0935ec0ffed827aade5594216fae15bed7c6b5.tar.bz2 lua-4d0935ec0ffed827aade5594216fae15bed7c6b5.zip |
better definition for `luaM_freelem'
Diffstat (limited to 'lmem.h')
-rw-r--r-- | lmem.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -19,7 +19,7 @@ void *luaM_growaux (lua_State *L, void *block, int *size, int size_elem, | |||
19 | int limit, const l_char *errormsg); | 19 | int limit, const l_char *errormsg); |
20 | 20 | ||
21 | #define luaM_free(L, b, s) luaM_realloc(L, (b), (s), 0) | 21 | #define luaM_free(L, b, s) luaM_realloc(L, (b), (s), 0) |
22 | #define luaM_freelem(L, b, t) luaM_realloc(L, (b), sizeof(t), 0) | 22 | #define luaM_freelem(L, b) luaM_realloc(L, (b), sizeof(*(b)), 0) |
23 | #define luaM_freearray(L, b, n, t) luaM_realloc(L, (b), \ | 23 | #define luaM_freearray(L, b, n, t) luaM_realloc(L, (b), \ |
24 | cast(lu_mem, n)*cast(lu_mem, sizeof(t)), 0) | 24 | cast(lu_mem, n)*cast(lu_mem, sizeof(t)), 0) |
25 | 25 | ||