diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-13 10:11:34 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2014-02-13 10:11:34 -0200 |
| commit | 733c58595bb57541e38275103fade1330aeb839d (patch) | |
| tree | 313583474068cdde188d72a876c7883d47b9e863 /lfunc.c | |
| parent | 4a1ed6e6e53f8b208fd21d6ac8b0a34331c43ede (diff) | |
| download | lua-733c58595bb57541e38275103fade1330aeb839d.tar.gz lua-733c58595bb57541e38275103fade1330aeb839d.tar.bz2 lua-733c58595bb57541e38275103fade1330aeb839d.zip | |
no more local collection
Diffstat (limited to 'lfunc.c')
| -rw-r--r-- | lfunc.c | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lfunc.c,v 2.37 2013/08/27 20:04:00 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 2.38 2013/09/11 12:26:14 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 | */ |
| @@ -86,7 +86,6 @@ void luaF_close (lua_State *L, StkId level) { | |||
| 86 | 86 | ||
| 87 | Proto *luaF_newproto (lua_State *L) { | 87 | Proto *luaF_newproto (lua_State *L) { |
| 88 | Proto *f = &luaC_newobj(L, LUA_TPROTO, sizeof(Proto))->p; | 88 | Proto *f = &luaC_newobj(L, LUA_TPROTO, sizeof(Proto))->p; |
| 89 | nolocal(obj2gco(f)); /* prototypes are never local */ | ||
| 90 | f->k = NULL; | 89 | f->k = NULL; |
| 91 | f->sizek = 0; | 90 | f->sizek = 0; |
| 92 | f->p = NULL; | 91 | f->p = NULL; |
