'VRELOCABLE' -> 'VRELOC'

This commit is contained in:
Roberto Ierusalimschy
2017-12-14 12:24:02 -02:00
parent e752d84ed8
commit e001d5aea6
3 changed files with 22 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lparser.c,v 2.169 2017/11/30 13:29:18 roberto Exp roberto $
** $Id: lparser.c,v 2.170 2017/12/06 18:36:31 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
@@ -533,7 +533,7 @@ static Proto *addprototype (LexState *ls) {
*/
static void codeclosure (LexState *ls, expdesc *v) {
FuncState *fs = ls->fs->prev;
init_exp(v, VRELOCABLE, luaK_codeABx(fs, OP_CLOSURE, 0, fs->np - 1));
init_exp(v, VRELOC, luaK_codeABx(fs, OP_CLOSURE, 0, fs->np - 1));
luaK_exp2nextreg(fs, v); /* fix it at the last register */
}
@@ -740,7 +740,7 @@ static void constructor (LexState *ls, expdesc *t) {
struct ConsControl cc;
cc.na = cc.nh = cc.tostore = 0;
cc.t = t;
init_exp(t, VRELOCABLE, pc);
init_exp(t, VRELOC, pc);
init_exp(&cc.v, VVOID, 0); /* no value (yet) */
luaK_exp2nextreg(ls->fs, t); /* fix it at stack top */
checknext(ls, '{');