diff options
Diffstat (limited to 'lib/lua/src/lfunc.c')
-rw-r--r-- | lib/lua/src/lfunc.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/lua/src/lfunc.c b/lib/lua/src/lfunc.c index 7dc41e2..45a60cb 100644 --- a/lib/lua/src/lfunc.c +++ b/lib/lua/src/lfunc.c @@ -1,5 +1,5 @@ /* -** $Id: lfunc.c,v 1.4 2004-11-27 21:46:07 pixel Exp $ +** $Id: lfunc.c,v 1.5 2007-07-25 16:54:32 pixel Exp $ ** Auxiliary functions to manipulate prototypes and closures ** See Copyright Notice in lua.h */ @@ -18,14 +18,6 @@ #include "lstate.h" -#define sizeCclosure(n) (cast(int, sizeof(CClosure)) + \ - cast(int, sizeof(TObject)*((n)-1))) - -#define sizeLclosure(n) (cast(int, sizeof(LClosure)) + \ - cast(int, sizeof(TObject *)*((n)-1))) - - - Closure *luaF_newCclosure (lua_State *L, int nelems) { Closure *c = cast(Closure *, luaM_malloc(L, sizeCclosure(nelems))); luaC_link(L, valtogco(c), LUA_TFUNCTION); |