diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-11-29 18:22:22 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-11-29 18:22:22 -0200 |
| commit | 413fc7334bf8ceaea71417d73edef15c99d3a793 (patch) | |
| tree | 50e762d979ad8e80681902cdeb8aa42b041ae323 /ldo.c | |
| parent | fca0a12e23f964006ce43d35ab86b27c6bbb0a48 (diff) | |
| download | lua-413fc7334bf8ceaea71417d73edef15c99d3a793.tar.gz lua-413fc7334bf8ceaea71417d73edef15c99d3a793.tar.bz2 lua-413fc7334bf8ceaea71417d73edef15c99d3a793.zip | |
new implementation for lua upvalues (sugested by E.T.): simpler and solves
a bug for multi-stacks
Diffstat (limited to 'ldo.c')
| -rw-r--r-- | ldo.c | 1 |
1 files changed, 0 insertions, 1 deletions
| @@ -215,7 +215,6 @@ static void f_parser (lua_State *L, void *ud) { | |||
| 215 | Proto *tf = p->bin ? luaU_undump(L, p->z) : luaY_parser(L, p->z); | 215 | Proto *tf = p->bin ? luaU_undump(L, p->z) : luaY_parser(L, p->z); |
| 216 | Closure *cl = luaF_newLclosure(L, 0); | 216 | Closure *cl = luaF_newLclosure(L, 0); |
| 217 | cl->l.p = tf; | 217 | cl->l.p = tf; |
| 218 | luaF_LConlist(L, cl); | ||
| 219 | setclvalue(L->top, cl); | 218 | setclvalue(L->top, cl); |
| 220 | incr_top; | 219 | incr_top; |
| 221 | } | 220 | } |
