aboutsummaryrefslogtreecommitdiff
path: root/lmem.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-30 10:42:49 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-11-30 10:42:49 -0200
commite21b26a964774e29f24e5f6ae97808fdb5bce9d5 (patch)
treef512c9e2843fdc12c5bba13e17346633893b3dc3 /lmem.h
parent0f388193b3d00571126abadfd4dc9bf02ea17b24 (diff)
downloadlua-e21b26a964774e29f24e5f6ae97808fdb5bce9d5.tar.gz
lua-e21b26a964774e29f24e5f6ae97808fdb5bce9d5.tar.bz2
lua-e21b26a964774e29f24e5f6ae97808fdb5bce9d5.zip
avoid 'return' "to avoid warnings"
Diffstat (limited to 'lmem.h')
-rw-r--r--lmem.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lmem.h b/lmem.h
index 710a4904..276bb32a 100644
--- a/lmem.h
+++ b/lmem.h
@@ -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
40LUAI_FUNC void *luaM_toobig (lua_State *L); 40LUAI_FUNC l_noret luaM_toobig (lua_State *L);
41 41
42/* not to be called directly */ 42/* not to be called directly */
43LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize, 43LUAI_FUNC void *luaM_realloc_ (lua_State *L, void *block, size_t oldsize,