diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-06-13 14:07:10 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2008-06-13 14:07:10 -0300 |
commit | 59e29733353159ecae3b73719043a75097583ccd (patch) | |
tree | 11860da704fb261a4978ecec11becf636ab980aa | |
parent | 5d09be48325cd17adff8b21dbff5a232bec89d84 (diff) | |
download | lua-59e29733353159ecae3b73719043a75097583ccd.tar.gz lua-59e29733353159ecae3b73719043a75097583ccd.tar.bz2 lua-59e29733353159ecae3b73719043a75097583ccd.zip |
removed static variable lua_state (not used)
-rw-r--r-- | ltests.c | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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 @@ | |||
40 | int l_Trick = 0; | 40 | int l_Trick = 0; |
41 | 41 | ||
42 | 42 | ||
43 | static lua_State *lua_state = NULL; | ||
44 | |||
45 | int islocked = 0; | 43 | int 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 | } |