aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-25 13:15:52 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-09-25 13:15:52 -0300
commitd8a442206d2845e1749cc36dd59208428ef1d117 (patch)
treed0748adfd80c01c59a865fa7cb8ee33f47460bda
parentc9c6f9747c0bfc77a72214e4e95e26a95ab66bbd (diff)
downloadlua-d8a442206d2845e1749cc36dd59208428ef1d117.tar.gz
lua-d8a442206d2845e1749cc36dd59208428ef1d117.tar.bz2
lua-d8a442206d2845e1749cc36dd59208428ef1d117.zip
lua_state (now called `L') should not be global
-rw-r--r--lua.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lua.c b/lua.c
index a9e98b33..c5229f76 100644
--- a/lua.c
+++ b/lua.c
@@ -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
19lua_State *lua_state = NULL; 19static lua_State *L = NULL;
20#define L lua_state
21 20
22 21
23#ifndef PROMPT 22#ifndef PROMPT