diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.17 1999/11/22 13:12:07 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.18 1999/11/29 19:12:07 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -23,9 +23,6 @@ lua_State *lua_state = NULL; | |||
23 | 23 | ||
24 | lua_State *lua_newstate (void) { | 24 | lua_State *lua_newstate (void) { |
25 | lua_State *L = luaM_new(NULL, lua_State); | 25 | lua_State *L = luaM_new(NULL, lua_State); |
26 | L->Cstack.base = 0; | ||
27 | L->Cstack.lua2C = 0; | ||
28 | L->Cstack.num = 0; | ||
29 | L->errorJmp = NULL; | 26 | L->errorJmp = NULL; |
30 | L->Mbuffer = NULL; | 27 | L->Mbuffer = NULL; |
31 | L->Mbuffbase = 0; | 28 | L->Mbuffbase = 0; |
@@ -63,7 +60,7 @@ void lua_close (lua_State *L) { | |||
63 | LUA_ASSERT(L, L->rootglobal == NULL, "list should be empty"); | 60 | LUA_ASSERT(L, L->rootglobal == NULL, "list should be empty"); |
64 | LUA_ASSERT(L, L->roottable == NULL, "list should be empty"); | 61 | LUA_ASSERT(L, L->roottable == NULL, "list should be empty"); |
65 | luaS_freeall(L); | 62 | luaS_freeall(L); |
66 | luaM_free(L, L->stack.stack); | 63 | luaM_free(L, L->stack); |
67 | luaM_free(L, L->IMtable); | 64 | luaM_free(L, L->IMtable); |
68 | luaM_free(L, L->refArray); | 65 | luaM_free(L, L->refArray); |
69 | luaM_free(L, L->Mbuffer); | 66 | luaM_free(L, L->Mbuffer); |