diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-17 11:40:13 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-04-17 11:40:13 -0300 |
| commit | c6b442bd369ce05b3d4bfb95ba64451521aa1b31 (patch) | |
| tree | f46b96d8142564c05ad89400bb203510b71cb2b2 /lfunc.c | |
| parent | 4f88418170d298b065a7f71d86b1127153919ae9 (diff) | |
| download | lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.tar.gz lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.tar.bz2 lua-c6b442bd369ce05b3d4bfb95ba64451521aa1b31.zip | |
'luaM_freearray' does not need array type as argument
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 | ||
