aboutsummaryrefslogtreecommitdiff
path: root/lstate.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-06 19:40:51 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-11-06 19:40:51 -0200
commit617008f5521030d0a99432efda5af0ef705f25c9 (patch)
tree99b6b411a25aad6ee83b293e63ad85d70cb30348 /lstate.h
parentec9d8308b43cb468261f78fc4da6bd524c347db3 (diff)
downloadlua-617008f5521030d0a99432efda5af0ef705f25c9.tar.gz
lua-617008f5521030d0a99432efda5af0ef705f25c9.tar.bz2
lua-617008f5521030d0a99432efda5af0ef705f25c9.zip
field G renamed to _G to avoid problemas with bugged macro-systems
(there is a macro named G too)
Diffstat (limited to 'lstate.h')
-rw-r--r--lstate.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lstate.h b/lstate.h
index 4b4c60e7..9f7c7e5c 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 1.62 2001/10/25 19:12:21 roberto Exp roberto $ 2** $Id: lstate.h,v 1.63 2001/10/31 19:58:11 roberto Exp $
3** Global State 3** Global State
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -68,7 +68,7 @@ typedef struct global_State {
68 Closure *rootcl; /* list of all C closures and closed Lua closures */ 68 Closure *rootcl; /* list of all C closures and closed Lua closures */
69 Table *roottable; /* list of all tables */ 69 Table *roottable; /* list of all tables */
70 Udata *rootudata; /* list of all userdata */ 70 Udata *rootudata; /* list of all userdata */
71 UpVal *rootupval; /* list of all up values */ 71 TObject *rootupval; /* list of all up values */
72} global_State; 72} global_State;
73 73
74 74
@@ -81,7 +81,7 @@ struct lua_State {
81 CallInfo *ci; /* call info for current function */ 81 CallInfo *ci; /* call info for current function */
82 StkId stack_last; /* last free slot in the stack */ 82 StkId stack_last; /* last free slot in the stack */
83 TObject gt; /* table for globals */ 83 TObject gt; /* table for globals */
84 global_State *G; 84 global_State *_G;
85 StkId stack; /* stack base */ 85 StkId stack; /* stack base */
86 int stacksize; 86 int stacksize;
87 lua_Hook callhook; 87 lua_Hook callhook;
@@ -95,7 +95,7 @@ struct lua_State {
95}; 95};
96 96
97 97
98#define G(L) (L->G) 98#define G(L) (L->_G)
99 99
100 100
101#endif 101#endif