diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-10-24 15:17:24 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-10-24 15:17:24 -0200 |
commit | e78cf96c971234ea25e35a9672ef00ea389d843f (patch) | |
tree | 57dc00fb747c26730acb13a087afb9bc7dcd3216 /lua.stx | |
parent | 0cb38439560fc2b912d41d3116d2d74c030d13af (diff) | |
download | lua-e78cf96c971234ea25e35a9672ef00ea389d843f.tar.gz lua-e78cf96c971234ea25e35a9672ef00ea389d843f.tar.bz2 lua-e78cf96c971234ea25e35a9672ef00ea389d843f.zip |
first version of Cclosures.
Diffstat (limited to 'lua.stx')
-rw-r--r-- | lua.stx | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ | |||
1 | %{ | 1 | %{ |
2 | /* | 2 | /* |
3 | ** $Id: lua.stx,v 1.11 1997/10/16 10:59:34 roberto Exp roberto $ | 3 | ** $Id: lua.stx,v 1.12 1997/10/18 16:46:39 roberto Exp roberto $ |
4 | ** Syntax analizer and code generator | 4 | ** Syntax analizer and code generator |
5 | ** See Copyright Notice in lua.h | 5 | ** See Copyright Notice in lua.h |
6 | */ | 6 | */ |
@@ -520,9 +520,9 @@ static void func_onstack (TProtoFunc *f) | |||
520 | int c = next_constant(currState); | 520 | int c = next_constant(currState); |
521 | ttype(&currState->f->consts[c]) = LUA_T_PROTO; | 521 | ttype(&currState->f->consts[c]) = LUA_T_PROTO; |
522 | currState->f->consts[c].value.tf = (currState+1)->f; | 522 | currState->f->consts[c].value.tf = (currState+1)->f; |
523 | code_constant(c); | ||
524 | for (i=0; i<nupvalues; i++) | 523 | for (i=0; i<nupvalues; i++) |
525 | lua_pushvar((currState+1)->upvalues[i]); | 524 | lua_pushvar((currState+1)->upvalues[i]); |
525 | code_constant(c); | ||
526 | code_oparg(CLOSURE, 2, nupvalues, -nupvalues); | 526 | code_oparg(CLOSURE, 2, nupvalues, -nupvalues); |
527 | } | 527 | } |
528 | 528 | ||