diff options
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 2.12 2005/12/22 16:19:56 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 2.13 2007/02/07 17:48:52 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -139,12 +139,12 @@ Proto *luaF_newproto (lua_State *L) { | |||
139 | 139 | ||
140 | 140 | ||
141 | void luaF_freeproto (lua_State *L, Proto *f) { | 141 | void luaF_freeproto (lua_State *L, Proto *f) { |
142 | luaM_freearray(L, f->code, f->sizecode, Instruction); | 142 | luaM_freearray(L, f->code, f->sizecode); |
143 | luaM_freearray(L, f->p, f->sizep, Proto *); | 143 | luaM_freearray(L, f->p, f->sizep); |
144 | luaM_freearray(L, f->k, f->sizek, TValue); | 144 | luaM_freearray(L, f->k, f->sizek); |
145 | luaM_freearray(L, f->lineinfo, f->sizelineinfo, int); | 145 | luaM_freearray(L, f->lineinfo, f->sizelineinfo); |
146 | luaM_freearray(L, f->locvars, f->sizelocvars, struct LocVar); | 146 | luaM_freearray(L, f->locvars, f->sizelocvars); |
147 | luaM_freearray(L, f->upvalues, f->sizeupvalues, TString *); | 147 | luaM_freearray(L, f->upvalues, f->sizeupvalues); |
148 | luaM_free(L, f); | 148 | luaM_free(L, f); |
149 | } | 149 | } |
150 | 150 | ||