From 24cc09ca79cf8d53e10e23b1103287f168570899 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 3 Apr 2021 16:49:51 +0300 Subject: Revert "liblua: update to 5.4.3" This reverts commit 875bc74fa5fe083ba0b5c5a785c53ec0f49b9a1b. --- libs/liblua/src/lfunc.h | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'libs/liblua/src/lfunc.h') diff --git a/libs/liblua/src/lfunc.h b/libs/liblua/src/lfunc.h index dc1cebccd1..8d6f965cfc 100644 --- a/libs/liblua/src/lfunc.h +++ b/libs/liblua/src/lfunc.h @@ -42,9 +42,15 @@ #define MAXMISS 10 +/* +** Special "status" for 'luaF_close' +*/ + +/* close upvalues without running their closing methods */ +#define NOCLOSINGMETH (-1) -/* special status to close upvalues preserving the top of the stack */ -#define CLOSEKTOP (-1) +/* close upvalues running all closing methods in protected mode */ +#define CLOSEPROTECT (-2) LUAI_FUNC Proto *luaF_newproto (lua_State *L); @@ -53,8 +59,7 @@ LUAI_FUNC LClosure *luaF_newLclosure (lua_State *L, int nupvals); LUAI_FUNC void luaF_initupvals (lua_State *L, LClosure *cl); LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level); LUAI_FUNC void luaF_newtbcupval (lua_State *L, StkId level); -LUAI_FUNC void luaF_closeupval (lua_State *L, StkId level); -LUAI_FUNC void luaF_close (lua_State *L, StkId level, int status, int yy); +LUAI_FUNC int luaF_close (lua_State *L, StkId level, int status); LUAI_FUNC void luaF_unlinkupval (UpVal *uv); LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f); LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number, -- cgit v1.2.3