Lua diffs-lua-5.4.5-lua-5.4.6


Makefile

49c49
< R= $V.5
> R= $V.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.

doc/manual.html

3848a3849,3877
> <hr><h3><a name="lua_closethread"><code>lua_closethread</code></a></h3><p>
> <span class="apii">[-0, +?, &ndash;]</span>
> <pre>int lua_closethread (lua_State *L, lua_State *from);</pre>
> 
> <p>
> Resets a thread, cleaning its call stack and closing all pending
> to-be-closed variables.
> Returns a status code:
> <a href="#pdf-LUA_OK"><code>LUA_OK</code></a> 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.
> 
> 
> <p>
> The parameter <code>from</code> represents the coroutine that is resetting <code>L</code>.
> If there is no such coroutine,
> this parameter can be <code>NULL</code>.
> 
> 
> <p>
> (This function was introduced in release&nbsp;5.4.6.)
> 
> 
> 
> 
> 

5222,5234c5251
< <pre>int lua_resetthread (lua_State *L, lua_State *from);</pre>
< 
< <p>
< Resets a thread, cleaning its call stack and closing all pending
< to-be-closed variables.
< Returns a status code:
< <a href="#pdf-LUA_OK"><code>LUA_OK</code></a> 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.
< 
> <pre>int lua_resetthread (lua_State *L);</pre>

5237,5240c5254,5256
< The parameter <code>from</code> represents the coroutine that is resetting <code>L</code>.
< If there is no such coroutine,
< this parameter can be <code>NULL</code>.
< (This parameter was introduced in release&nbsp;5.4.5.)
> This function is deprecated;
> it is equivalent to <a href="#lua_closethread"><code>lua_closethread</code></a> with
> <code>from</code> being <code>NULL</code>.

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

doc/readme.html

110c110
< the top-level directory, which is named <TT>lua-5.4.5</TT>.
> the top-level directory, which is named <TT>lua-5.4.6</TT>.

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

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);

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);

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! */