aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-13 12:55:42 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-03-13 12:55:42 -0300
commit22ef84b6c8d980eb869f414610f8ff5f25568ca7 (patch)
tree150de147a765e98015bfd4e8cd67f8bf3f157ef3 /lstate.h
parent63a2b62468d2aabb1086a8c88d32ff96c658c96b (diff)
downloadlua-22ef84b6c8d980eb869f414610f8ff5f25568ca7.tar.gz
lua-22ef84b6c8d980eb869f414610f8ff5f25568ca7.tar.bz2
lua-22ef84b6c8d980eb869f414610f8ff5f25568ca7.zip
'_ENV' name permanently stored in global state for easier access
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lstate.h b/lstate.h
index a6ea5546..eb0068fe 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.52 2009/12/22 15:32:50 roberto Exp roberto $ 2** $Id: lstate.h,v 2.53 2010/02/09 11:55:37 roberto Exp roberto $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -144,6 +144,7 @@ typedef struct global_State {
144 const lua_Number *version; /* pointer to version number */ 144 const lua_Number *version; /* pointer to version number */
145 struct Table *mt[NUM_TAGS]; /* metatables for basic types */ 145 struct Table *mt[NUM_TAGS]; /* metatables for basic types */
146 TString *tmname[TM_N]; /* array with tag-method names */ 146 TString *tmname[TM_N]; /* array with tag-method names */
147 TString *envn; /* environment variable name */
147} global_State; 148} global_State;
148 149
149 150