diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-17 11:40:13 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-17 11:40:13 -0300 |
commit | c6b442bd369ce05b3d4bfb95ba64451521aa1b31 (patch) | |
tree | f46b96d8142564c05ad89400bb203510b71cb2b2 /lmem.h | |
parent | 4f88418170d298b065a7f71d86b1127153919ae9 (diff) | |
download | lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.tar.gz lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.tar.bz2 lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.zip |
'luaM_freearray' does not need array type as argument
Diffstat (limited to 'lmem.h')
-rw-r--r-- | lmem.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmem.h,v 1.32 2006/09/14 18:42:28 roberto Exp roberto $ | 2 | ** $Id: lmem.h,v 1.33 2007/02/09 13:04:52 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 | */ |
@@ -23,7 +23,7 @@ | |||
23 | 23 | ||
24 | #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) | 24 | #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) |
25 | #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) | 25 | #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) |
26 | #define luaM_freearray(L, b, n, t) luaM_reallocv(L, (b), n, 0, sizeof(t)) | 26 | #define luaM_freearray(L, b, n) luaM_reallocv(L, (b), n, 0, sizeof((b)[0])) |
27 | 27 | ||
28 | #define luaM_malloc(L,t) luaM_realloc_(L, NULL, 0, (t)) | 28 | #define luaM_malloc(L,t) luaM_realloc_(L, NULL, 0, (t)) |
29 | #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) | 29 | #define luaM_new(L,t) cast(t *, luaM_malloc(L, sizeof(t))) |