summaryrefslogtreecommitdiff
path: root/lstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'lstate.c')
-rw-r--r--lstate.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lstate.c b/lstate.c
index a50252bc..d3d045f0 100644
--- a/lstate.c
+++ b/lstate.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.c,v 1.32 2000/08/09 19:16:57 roberto Exp roberto $ 2** $Id: lstate.c,v 1.33 2000/08/14 17:46: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*/
@@ -9,13 +9,11 @@
9 9
10#include "lua.h" 10#include "lua.h"
11 11
12#include "lauxlib.h"
13#include "lbuiltin.h" 12#include "lbuiltin.h"
14#include "ldo.h" 13#include "ldo.h"
15#include "lgc.h" 14#include "lgc.h"
16#include "llex.h" 15#include "llex.h"
17#include "lmem.h" 16#include "lmem.h"
18#include "lref.h"
19#include "lstate.h" 17#include "lstate.h"
20#include "lstring.h" 18#include "lstring.h"
21#include "ltable.h" 19#include "ltable.h"
@@ -35,8 +33,6 @@ lua_State *lua_newstate (int stacksize, int put_builtin) {
35 L->Mbuffbase = 0; 33 L->Mbuffbase = 0;
36 L->Mbuffsize = 0; 34 L->Mbuffsize = 0;
37 L->Mbuffnext = 0; 35 L->Mbuffnext = 0;
38 L->Cblocks = NULL;
39 L->numCblocks = 0;
40 L->rootproto = NULL; 36 L->rootproto = NULL;
41 L->rootcl = NULL; 37 L->rootcl = NULL;
42 L->roottable = NULL; 38 L->roottable = NULL;
@@ -84,8 +80,6 @@ void lua_close (lua_State *L) {
84 luaM_free(L, L->IMtable); 80 luaM_free(L, L->IMtable);
85 luaM_free(L, L->refArray); 81 luaM_free(L, L->refArray);
86 luaM_free(L, L->Mbuffer); 82 luaM_free(L, L->Mbuffer);
87 luaM_free(L, L->Cblocks);
88 LUA_ASSERT(L->numCblocks == 0, "Cblocks still open");
89 LUA_ASSERT(L->nblocks == 0, "wrong count for nblocks"); 83 LUA_ASSERT(L->nblocks == 0, "wrong count for nblocks");
90 luaM_free(L, L); 84 luaM_free(L, L);
91 LUA_ASSERT(L != lua_state || memdebug_numblocks == 0, "memory leak!"); 85 LUA_ASSERT(L != lua_state || memdebug_numblocks == 0, "memory leak!");