diff -Nr lua-5.4.5/Makefile lua-5.4.6/Makefile 49c49 < R= $V.5 --- > R= $V.6 diff -Nr lua-5.4.5/README lua-5.4.6/README 2c2 < This is Lua 5.4.5, released on 18 Apr 2023. --- > This is Lua 5.4.6, released on 02 May 2023. diff -Nr lua-5.4.5/doc/manual.html lua-5.4.6/doc/manual.html 3848a3849,3877 >
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.) > > > > > 5222,5234c5251 <
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);5237,5240c5254,5256 < 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
.
12023c12039
< Tue Apr 18 12:51:25 UTC 2023
---
> Tue May 2 20:09:38 UTC 2023
12026c12042
< Last change: revised for Lua 5.4.5
---
> Last change: revised for Lua 5.4.6
diff -Nr lua-5.4.5/doc/readme.html lua-5.4.6/doc/readme.html
110c110
< the top-level directory, which is named lua-5.4.5.
---
> the top-level directory, which is named lua-5.4.6.
330c330
< Mon Mar 27 21:22:06 UTC 2023
---
> Tue May 2 20:08:55 UTC 2023
333c333
< Last change: revised for Lua 5.4.5
---
> Last change: revised for Lua 5.4.6
diff -Nr lua-5.4.5/src/lcorolib.c lua-5.4.6/src/lcorolib.c
79c79
< stat = lua_resetthread(co, L); /* close its tbc variables */
---
> stat = lua_closethread(co, L); /* close its tbc variables */
175c175
< status = lua_resetthread(co, L);
---
> status = lua_closethread(co, L);
diff -Nr lua-5.4.5/src/lstate.c lua-5.4.6/src/lstate.c
342c342
< LUA_API int lua_resetthread (lua_State *L, lua_State *from) {
---
> LUA_API int lua_closethread (lua_State *L, lua_State *from) {
348a349,356
> }
>
>
> /*
> ** Deprecated! Use 'lua_closethread' instead.
> */
> LUA_API int lua_resetthread (lua_State *L) {
> return lua_closethread(L, NULL);
diff -Nr lua-5.4.5/src/lua.h lua-5.4.6/src/lua.h
21c21
< #define LUA_VERSION_RELEASE "5"
---
> #define LUA_VERSION_RELEASE "6"
24c24
< #define LUA_VERSION_RELEASE_NUM (LUA_VERSION_NUM * 100 + 5)
---
> #define LUA_VERSION_RELEASE_NUM (LUA_VERSION_NUM * 100 + 6)
166c166,167
< LUA_API int (lua_resetthread) (lua_State *L, lua_State *from);
---
> LUA_API int (lua_closethread) (lua_State *L, lua_State *from);
> LUA_API int (lua_resetthread) (lua_State *L); /* Deprecated! */