summaryrefslogtreecommitdiff
path: root/lparser.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-01-05 14:22:37 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2016-01-05 14:22:37 -0200
commit1f259be52a6ac8f7cfdee3787ffbf7dd0966748e (patch)
treebf26e713d78c5d95c7c18b438f582accd9b0ac44 /lparser.c
parent1a44e822009752513ce895b9eabc51a4ee4a195a (diff)
downloadlua-github-1f259be52a6ac8f7cfdee3787ffbf7dd0966748e.tar.gz
'getcode' -> 'getinstruction'
Diffstat (limited to 'lparser.c')
-rw-r--r--lparser.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lparser.c b/lparser.c
index e687051e..757d6546 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
/*
-** $Id: lparser.c,v 2.149 2015/11/02 16:09:30 roberto Exp roberto $
+** $Id: lparser.c,v 2.150 2015/12/09 15:21:28 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
@@ -1498,7 +1498,7 @@ static void exprstat (LexState *ls) {
}
else { /* stat -> func */
check_condition(ls, v.v.k == VCALL, "syntax error");
- SETARG_C(getcode(fs, &v.v), 1); /* call statement uses no results */
+ SETARG_C(getinstruction(fs, &v.v), 1); /* call statement uses no results */
}
}
@@ -1515,8 +1515,8 @@ static void retstat (LexState *ls) {
if (hasmultret(e.k)) {
luaK_setmultret(fs, &e);
if (e.k == VCALL && nret == 1) { /* tail call? */
- SET_OPCODE(getcode(fs,&e), OP_TAILCALL);
- lua_assert(GETARG_A(getcode(fs,&e)) == fs->nactvar);
+ SET_OPCODE(getinstruction(fs,&e), OP_TAILCALL);
+ lua_assert(GETARG_A(getinstruction(fs,&e)) == fs->nactvar);
}
first = fs->nactvar;
nret = LUA_MULTRET; /* return all values */