diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-14 12:24:02 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-14 12:24:02 -0200 |
commit | e001d5aea693ca1bcf1a4dfd2f900737fc0a8604 (patch) | |
tree | c218bcff037fb8d5248d4338dffb4c988dd16cc8 /lparser.c | |
parent | e752d84ed8250820aa3f6a097e008de6c2ec8322 (diff) | |
download | lua-e001d5aea693ca1bcf1a4dfd2f900737fc0a8604.tar.gz lua-e001d5aea693ca1bcf1a4dfd2f900737fc0a8604.tar.bz2 lua-e001d5aea693ca1bcf1a4dfd2f900737fc0a8604.zip |
'VRELOCABLE' -> 'VRELOC'
Diffstat (limited to 'lparser.c')
-rw-r--r-- | lparser.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lparser.c,v 2.169 2017/11/30 13:29:18 roberto Exp roberto $ | 2 | ** $Id: lparser.c,v 2.170 2017/12/06 18:36:31 roberto Exp roberto $ |
3 | ** Lua Parser | 3 | ** Lua Parser |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -533,7 +533,7 @@ static Proto *addprototype (LexState *ls) { | |||
533 | */ | 533 | */ |
534 | static void codeclosure (LexState *ls, expdesc *v) { | 534 | static void codeclosure (LexState *ls, expdesc *v) { |
535 | FuncState *fs = ls->fs->prev; | 535 | FuncState *fs = ls->fs->prev; |
536 | init_exp(v, VRELOCABLE, luaK_codeABx(fs, OP_CLOSURE, 0, fs->np - 1)); | 536 | init_exp(v, VRELOC, luaK_codeABx(fs, OP_CLOSURE, 0, fs->np - 1)); |
537 | luaK_exp2nextreg(fs, v); /* fix it at the last register */ | 537 | luaK_exp2nextreg(fs, v); /* fix it at the last register */ |
538 | } | 538 | } |
539 | 539 | ||
@@ -740,7 +740,7 @@ static void constructor (LexState *ls, expdesc *t) { | |||
740 | struct ConsControl cc; | 740 | struct ConsControl cc; |
741 | cc.na = cc.nh = cc.tostore = 0; | 741 | cc.na = cc.nh = cc.tostore = 0; |
742 | cc.t = t; | 742 | cc.t = t; |
743 | init_exp(t, VRELOCABLE, pc); | 743 | init_exp(t, VRELOC, pc); |
744 | init_exp(&cc.v, VVOID, 0); /* no value (yet) */ | 744 | init_exp(&cc.v, VVOID, 0); /* no value (yet) */ |
745 | luaK_exp2nextreg(ls->fs, t); /* fix it at stack top */ | 745 | luaK_exp2nextreg(ls->fs, t); /* fix it at stack top */ |
746 | checknext(ls, '{'); | 746 | checknext(ls, '{'); |