From 9fdf73bc9a6b4c6afbfff1d8181fface6b1c6761 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 28 Aug 2000 14:57:04 -0300 Subject: first version for new API --- lstate.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'lstate.c') diff --git a/lstate.c b/lstate.c index a50252bc..d3d045f0 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 1.32 2000/08/09 19:16:57 roberto Exp roberto $ +** $Id: lstate.c,v 1.33 2000/08/14 17:46:07 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -9,13 +9,11 @@ #include "lua.h" -#include "lauxlib.h" #include "lbuiltin.h" #include "ldo.h" #include "lgc.h" #include "llex.h" #include "lmem.h" -#include "lref.h" #include "lstate.h" #include "lstring.h" #include "ltable.h" @@ -35,8 +33,6 @@ lua_State *lua_newstate (int stacksize, int put_builtin) { L->Mbuffbase = 0; L->Mbuffsize = 0; L->Mbuffnext = 0; - L->Cblocks = NULL; - L->numCblocks = 0; L->rootproto = NULL; L->rootcl = NULL; L->roottable = NULL; @@ -84,8 +80,6 @@ void lua_close (lua_State *L) { luaM_free(L, L->IMtable); luaM_free(L, L->refArray); luaM_free(L, L->Mbuffer); - luaM_free(L, L->Cblocks); - LUA_ASSERT(L->numCblocks == 0, "Cblocks still open"); LUA_ASSERT(L->nblocks == 0, "wrong count for nblocks"); luaM_free(L, L); LUA_ASSERT(L != lua_state || memdebug_numblocks == 0, "memory leak!"); -- cgit v1.2.3-55-g6feb