aboutsummaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lstate.c b/lstate.c
index 1ce6b9a1..37301c3c 100644
--- a/lstate.c
+++ b/lstate.c
@@ -88,7 +88,7 @@ CallInfo *luaE_extendCI (lua_State *L) {
88/* 88/*
89** free all CallInfo structures not in use by a thread 89** free all CallInfo structures not in use by a thread
90*/ 90*/
91void luaE_freeCI (lua_State *L) { 91static void freeCI (lua_State *L) {
92 CallInfo *ci = L->ci; 92 CallInfo *ci = L->ci;
93 CallInfo *next = ci->next; 93 CallInfo *next = ci->next;
94 ci->next = NULL; 94 ci->next = NULL;
@@ -173,7 +173,7 @@ static void freestack (lua_State *L) {
173 if (L->stack.p == NULL) 173 if (L->stack.p == NULL)
174 return; /* stack not completely built yet */ 174 return; /* stack not completely built yet */
175 L->ci = &L->base_ci; /* free the entire 'ci' list */ 175 L->ci = &L->base_ci; /* free the entire 'ci' list */
176 luaE_freeCI(L); 176 freeCI(L);
177 lua_assert(L->nci == 0); 177 lua_assert(L->nci == 0);
178 luaM_freearray(L, L->stack.p, stacksize(L) + EXTRA_STACK); /* free stack */ 178 luaM_freearray(L, L->stack.p, stacksize(L) + EXTRA_STACK); /* free stack */
179} 179}
@@ -309,7 +309,7 @@ int luaE_resetthread (lua_State *L, int status) {
309} 309}
310 310
311 311
312LUA_API int lua_resetthread (lua_State *L, lua_State *from) { 312LUA_API int lua_closethread (lua_State *L, lua_State *from) {
313 int status; 313 int status;
314 lua_lock(L); 314 lua_lock(L);
315 L->nCcalls = (from) ? getCcalls(from) : 0; 315 L->nCcalls = (from) ? getCcalls(from) : 0;