diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-19 15:26:14 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-12-19 15:26:14 -0200 |
commit | eb45f3a9b6cb1faa18bd552ae97e9679a4936361 (patch) | |
tree | 852e2b5ff2657a13b6978b653f408302f2ad5a26 /lmem.h | |
parent | 6321041058ec7a597a39df4564f28d5012fd7dfb (diff) | |
download | lua-eb45f3a9b6cb1faa18bd552ae97e9679a4936361.tar.gz lua-eb45f3a9b6cb1faa18bd552ae97e9679a4936361.tar.bz2 lua-eb45f3a9b6cb1faa18bd552ae97e9679a4936361.zip |
details in 'luaM_reallocvchar'
Diffstat (limited to 'lmem.h')
-rw-r--r-- | lmem.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lmem.h,v 1.41 2014/10/08 20:25:51 roberto Exp roberto $ | 2 | ** $Id: lmem.h,v 1.42 2014/12/19 13:45: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 | */ |
@@ -35,7 +35,8 @@ | |||
35 | /* | 35 | /* |
36 | ** Arrays of chars do not need any test | 36 | ** Arrays of chars do not need any test |
37 | */ | 37 | */ |
38 | #define luaM_reallocvchar(L,b,on,n) luaM_realloc_(L, (b), (on), (n)) | 38 | #define luaM_reallocvchar(L,b,on,n) \ |
39 | cast(char *, luaM_realloc_(L, (b), (on)*sizeof(char), (n)*sizeof(char))) | ||
39 | 40 | ||
40 | #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) | 41 | #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) |
41 | #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) | 42 | #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) |