aboutsummaryrefslogtreecommitdiff
path: root/src/3rdParty/lua/lfunc.c
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2022-08-25 11:24:10 +0800
committerLi Jin <dragon-fly@qq.com>2022-08-26 10:10:19 +0800
commitdf85ad2e7f975026ca1e6bd84b26fff81c8d99c8 (patch)
tree2b9300041c291382b15da3c354de3640a1498c1b /src/3rdParty/lua/lfunc.c
parent2f497477c984e576e9ba7e8f6cb92ee9f794e56b (diff)
downloadyuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.tar.gz
yuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.tar.bz2
yuescript-df85ad2e7f975026ca1e6bd84b26fff81c8d99c8.zip
update to Lua 5.4.5.
Diffstat (limited to 'src/3rdParty/lua/lfunc.c')
-rw-r--r--src/3rdParty/lua/lfunc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/3rdParty/lua/lfunc.c b/src/3rdParty/lua/lfunc.c
index f5889a2..daba0ab 100644
--- a/src/3rdParty/lua/lfunc.c
+++ b/src/3rdParty/lua/lfunc.c
@@ -209,7 +209,7 @@ void luaF_closeupval (lua_State *L, StkId level) {
209 209
210 210
211/* 211/*
212** Remove firt element from the tbclist plus its dummy nodes. 212** Remove first element from the tbclist plus its dummy nodes.
213*/ 213*/
214static void poptbclist (lua_State *L) { 214static void poptbclist (lua_State *L) {
215 StkId tbc = L->tbclist; 215 StkId tbc = L->tbclist;
@@ -223,9 +223,9 @@ static void poptbclist (lua_State *L) {
223 223
224/* 224/*
225** Close all upvalues and to-be-closed variables up to the given stack 225** Close all upvalues and to-be-closed variables up to the given stack
226** level. 226** level. Return restored 'level'.
227*/ 227*/
228void luaF_close (lua_State *L, StkId level, int status, int yy) { 228StkId luaF_close (lua_State *L, StkId level, int status, int yy) {
229 ptrdiff_t levelrel = savestack(L, level); 229 ptrdiff_t levelrel = savestack(L, level);
230 luaF_closeupval(L, level); /* first, close the upvalues */ 230 luaF_closeupval(L, level); /* first, close the upvalues */
231 while (L->tbclist >= level) { /* traverse tbc's down to that level */ 231 while (L->tbclist >= level) { /* traverse tbc's down to that level */
@@ -234,6 +234,7 @@ void luaF_close (lua_State *L, StkId level, int status, int yy) {
234 prepcallclosemth(L, tbc, status, yy); /* close variable */ 234 prepcallclosemth(L, tbc, status, yy); /* close variable */
235 level = restorestack(L, levelrel); 235 level = restorestack(L, levelrel);
236 } 236 }
237 return level;
237} 238}
238 239
239 240