diff -u -Nr lua-5.4.5/Makefile lua-5.4.6/Makefile --- lua-5.4.5/Makefile 2023-04-11 11:29:22.000000000 -0300 +++ lua-5.4.6/Makefile 2023-05-02 17:06:08.000000000 -0300 @@ -46,7 +46,7 @@ # Lua version and release. V= 5.4 -R= $V.5 +R= $V.6 # Targets start here. all: $(PLAT) diff -u -Nr lua-5.4.5/README lua-5.4.6/README --- lua-5.4.5/README 2023-04-18 09:53:01.000000000 -0300 +++ lua-5.4.6/README 2023-05-02 17:12:04.000000000 -0300 @@ -1,5 +1,5 @@ -This is Lua 5.4.5, released on 18 Apr 2023. +This is Lua 5.4.6, released on 02 May 2023. For installation instructions, license details, and further information about Lua, see doc/readme.html. diff -u -Nr lua-5.4.5/doc/manual.html lua-5.4.6/doc/manual.html --- lua-5.4.5/doc/manual.html 2023-04-18 09:51:26.000000000 -0300 +++ lua-5.4.6/doc/manual.html 2023-05-02 17:09:39.000000000 -0300 @@ -3846,6 +3846,35 @@ +
lua_closethread
+[-0, +?, –] +
int lua_closethread (lua_State *L, lua_State *from);+ +
+Resets a thread, cleaning its call stack and closing all pending
+to-be-closed variables.
+Returns a status code:
+LUA_OK
for no errors in the thread
+(either the original error that stopped the thread or
+errors in closing methods),
+or an error status otherwise.
+In case of error,
+leaves the error object on the top of the stack.
+
+
+
+The parameter from
represents the coroutine that is resetting L
.
+If there is no such coroutine,
+this parameter can be NULL
.
+
+
+
+(This function was introduced in release 5.4.6.) + + + + +
lua_compare
[-0, +0, e]
int lua_compare (lua_State *L, int index1, int index2, int op);@@ -5219,25 +5248,12 @@
lua_resetthread
[-0, +?, –] -
int lua_resetthread (lua_State *L, lua_State *from);- -
-Resets a thread, cleaning its call stack and closing all pending
-to-be-closed variables.
-Returns a status code:
-LUA_OK
for no errors in the thread
-(either the original error that stopped the thread or
-errors in closing methods),
-or an error status otherwise.
-In case of error,
-leaves the error object on the top of the stack.
-
+
int lua_resetthread (lua_State *L);
-The parameter from
represents the coroutine that is resetting L
.
-If there is no such coroutine,
-this parameter can be NULL
.
-(This parameter was introduced in release 5.4.5.)
+This function is deprecated;
+it is equivalent to lua_closethread
with
+from
being NULL
.
@@ -12020,10 +12036,10 @@