diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-23 10:34:54 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-08-23 10:34:54 -0300 |
commit | 50955e27f592441a223c6267956e470f98eeb3c0 (patch) | |
tree | 4543b70e04d293c4eb09955d064f3446eb3e64a9 /lfunc.c | |
parent | 33c49f7fa03cf7e3bf7bb3aa697dc567d910c661 (diff) | |
download | lua-50955e27f592441a223c6267956e470f98eeb3c0.tar.gz lua-50955e27f592441a223c6267956e470f98eeb3c0.tar.bz2 lua-50955e27f592441a223c6267956e470f98eeb3c0.zip |
C functions and strings now go to the local list; first version
of the local collector
Diffstat (limited to '')
-rw-r--r-- | lfunc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 2.32 2013/08/07 12:18:11 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 2.33 2013/08/16 18:55:49 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 | */ |
@@ -21,7 +21,8 @@ | |||
21 | 21 | ||
22 | 22 | ||
23 | Closure *luaF_newCclosure (lua_State *L, int n) { | 23 | Closure *luaF_newCclosure (lua_State *L, int n) { |
24 | Closure *c = &luaC_newobj(L, LUA_TCCL, sizeCclosure(n), NULL, 0)->cl; | 24 | Closure *c = &luaC_newobj(L, LUA_TCCL, sizeCclosure(n), |
25 | &G(L)->localgc, 0)->cl; | ||
25 | c->c.nupvalues = cast_byte(n); | 26 | c->c.nupvalues = cast_byte(n); |
26 | return c; | 27 | return c; |
27 | } | 28 | } |