diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-25 13:15:52 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-25 13:15:52 -0300 |
commit | d8a442206d2845e1749cc36dd59208428ef1d117 (patch) | |
tree | d0748adfd80c01c59a865fa7cb8ee33f47460bda | |
parent | c9c6f9747c0bfc77a72214e4e95e26a95ab66bbd (diff) | |
download | lua-d8a442206d2845e1749cc36dd59208428ef1d117.tar.gz lua-d8a442206d2845e1749cc36dd59208428ef1d117.tar.bz2 lua-d8a442206d2845e1749cc36dd59208428ef1d117.zip |
lua_state (now called `L') should not be global
-rw-r--r-- | lua.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.50 2000/09/05 19:33:32 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.51 2000/09/11 19:42:57 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -16,8 +16,7 @@ | |||
16 | #include "lualib.h" | 16 | #include "lualib.h" |
17 | 17 | ||
18 | 18 | ||
19 | lua_State *lua_state = NULL; | 19 | static lua_State *L = NULL; |
20 | #define L lua_state | ||
21 | 20 | ||
22 | 21 | ||
23 | #ifndef PROMPT | 22 | #ifndef PROMPT |