diff options
-rw-r--r-- | lgc.c | 2 | ||||
-rw-r--r-- | lstate.c | 4 | ||||
-rw-r--r-- | lstate.h | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -132,7 +132,7 @@ static size_t objsize (GCObject *o) { | |||
132 | return luaF_protosize(gco2p(o)); | 132 | return luaF_protosize(gco2p(o)); |
133 | } | 133 | } |
134 | case LUA_VTHREAD: { | 134 | case LUA_VTHREAD: { |
135 | return luaE_statesize(gco2th(o)); | 135 | return luaE_threadsize(gco2th(o)); |
136 | } | 136 | } |
137 | case LUA_VSHRSTR: { | 137 | case LUA_VSHRSTR: { |
138 | TString *ts = gco2ts(o); | 138 | TString *ts = gco2ts(o); |
@@ -257,8 +257,8 @@ static void preinit_thread (lua_State *L, global_State *g) { | |||
257 | } | 257 | } |
258 | 258 | ||
259 | 259 | ||
260 | size_t luaE_statesize (lua_State *L) { | 260 | size_t luaE_threadsize (lua_State *L) { |
261 | size_t sz = sizeof(LG) + cast_uint(L->nci) * sizeof(CallInfo); | 261 | size_t sz = sizeof(LX) + cast_uint(L->nci) * sizeof(CallInfo); |
262 | if (L->stack.p != NULL) | 262 | if (L->stack.p != NULL) |
263 | sz += cast_uint(stacksize(L) + EXTRA_STACK) * sizeof(StackValue); | 263 | sz += cast_uint(stacksize(L) + EXTRA_STACK) * sizeof(StackValue); |
264 | return sz; | 264 | return sz; |
@@ -416,7 +416,7 @@ union GCUnion { | |||
416 | 416 | ||
417 | LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); | 417 | LUAI_FUNC void luaE_setdebt (global_State *g, l_mem debt); |
418 | LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); | 418 | LUAI_FUNC void luaE_freethread (lua_State *L, lua_State *L1); |
419 | LUAI_FUNC size_t luaE_statesize (lua_State *L); | 419 | LUAI_FUNC size_t luaE_threadsize (lua_State *L); |
420 | LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); | 420 | LUAI_FUNC CallInfo *luaE_extendCI (lua_State *L); |
421 | LUAI_FUNC void luaE_shrinkCI (lua_State *L); | 421 | LUAI_FUNC void luaE_shrinkCI (lua_State *L); |
422 | LUAI_FUNC void luaE_checkcstack (lua_State *L); | 422 | LUAI_FUNC void luaE_checkcstack (lua_State *L); |