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.35 2009/12/16 16:42:58 roberto Exp roberto $ | 2 | ** $Id: lmem.h,v 1.36 2010/04/08 17:16:46 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 | */ |
@@ -17,7 +17,7 @@ | |||
17 | #define luaM_reallocv(L,b,on,n,e) \ | 17 | #define luaM_reallocv(L,b,on,n,e) \ |
18 | ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ | 18 | ((cast(size_t, (n)+1) <= MAX_SIZET/(e)) ? /* +1 to avoid warnings */ \ |
19 | luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \ | 19 | luaM_realloc_(L, (b), (on)*(e), (n)*(e)) : \ |
20 | luaM_toobig(L)) | 20 | (luaM_toobig(L), NULL)) |
21 | 21 | ||
22 | #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) | 22 | #define luaM_freemem(L, b, s) luaM_realloc_(L, (b), (s), 0) |
23 | #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) | 23 | #define luaM_free(L, b) luaM_realloc_(L, (b), sizeof(*(b)), 0) |
@@ -37,7 +37,7 @@ | |||
37 | #define luaM_reallocvector(L, v,oldn,n,t) \ | 37 | #define luaM_reallocvector(L, v,oldn,n,t) \ |
38 | ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) | 38 | ((v)=cast(t *, luaM_reallocv(L, v, oldn, n, sizeof(t)))) |
39 | 39 | ||
40 | LUAI_FUNC void *luaM_toobig (lua_State *L); | 40 | LUAI_FUNC l_noret luaM_toobig (lua_State *L); |
41 | 41 | ||
42 | /* not to be called directly */ | 42 | /* not to be called directly */ |
43 | LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, | 43 | LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, |