mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Update liblua to 5.4.8
This commit is contained in:
parent
9373947e60
commit
08cf89313d
11 changed files with 52 additions and 28 deletions
|
|
@ -166,7 +166,7 @@ void luaE_checkcstack (lua_State *L) {
|
|||
if (getCcalls(L) == LUAI_MAXCCALLS)
|
||||
luaG_runerror(L, "C stack overflow");
|
||||
else if (getCcalls(L) >= (LUAI_MAXCCALLS / 10 * 11))
|
||||
luaD_throw(L, LUA_ERRERR); /* error while handling stack error */
|
||||
luaD_errerr(L); /* error while handling stack error */
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -272,7 +272,9 @@ static void close_state (lua_State *L) {
|
|||
luaC_freeallobjects(L); /* just collect its objects */
|
||||
else { /* closing a fully built state */
|
||||
L->ci = &L->base_ci; /* unwind CallInfo list */
|
||||
L->errfunc = 0; /* stack unwind can "throw away" the error function */
|
||||
luaD_closeprotected(L, 1, LUA_OK); /* close all upvalues */
|
||||
L->top.p = L->stack.p + 1; /* empty the stack to run finalizers */
|
||||
luaC_freeallobjects(L); /* collect all objects */
|
||||
luai_userstateclose(L);
|
||||
}
|
||||
|
|
@ -328,6 +330,7 @@ int luaE_resetthread (lua_State *L, int status) {
|
|||
if (status == LUA_YIELD)
|
||||
status = LUA_OK;
|
||||
L->status = LUA_OK; /* so it can run __close metamethods */
|
||||
L->errfunc = 0; /* stack unwind can "throw away" the error function */
|
||||
status = luaD_closeprotected(L, 1, status);
|
||||
if (status != LUA_OK) /* errors? */
|
||||
luaD_seterrorobj(L, status, L->stack.p + 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue