aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2008-06-13 14:07:10 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2008-06-13 14:07:10 -0300
commit59e29733353159ecae3b73719043a75097583ccd (patch)
tree11860da704fb261a4978ecec11becf636ab980aa
parent5d09be48325cd17adff8b21dbff5a232bec89d84 (diff)
downloadlua-59e29733353159ecae3b73719043a75097583ccd.tar.gz
lua-59e29733353159ecae3b73719043a75097583ccd.tar.bz2
lua-59e29733353159ecae3b73719043a75097583ccd.zip
removed static variable lua_state (not used)
-rw-r--r--ltests.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ltests.c b/ltests.c
index c5bba55c..0831028a 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.49 2008/06/12 14:20:49 roberto Exp roberto $ 2** $Id: ltests.c,v 2.50 2008/06/13 14:15:59 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -40,8 +40,6 @@
40int l_Trick = 0; 40int l_Trick = 0;
41 41
42 42
43static lua_State *lua_state = NULL;
44
45int islocked = 0; 43int islocked = 0;
46 44
47 45
@@ -1134,7 +1132,6 @@ int luaB_opentests (lua_State *L) {
1134 lua_assert(lua_getallocf(L, &ud) == debug_realloc); 1132 lua_assert(lua_getallocf(L, &ud) == debug_realloc);
1135 lua_assert(ud == cast(void *, &l_memcontrol)); 1133 lua_assert(ud == cast(void *, &l_memcontrol));
1136 lua_setallocf(L, lua_getallocf(L, NULL), ud); 1134 lua_setallocf(L, lua_getallocf(L, NULL), ud);
1137 lua_state = L; /* keep first state to be opened */
1138 luaL_register(L, "T", tests_funcs); 1135 luaL_register(L, "T", tests_funcs);
1139 return 0; 1136 return 0;
1140} 1137}