aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-07-09 10:22:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2005-07-09 10:22:34 -0300
commite84b11a4940d418106854184bd8259b9a8ec37da (patch)
tree4006ddb049930dcd9575d4d334cf13049f01aa35
parentbbf2cea9a1fe81739b707bc658ac58366cbfd49c (diff)
downloadlua-e84b11a4940d418106854184bd8259b9a8ec37da.tar.gz
lua-e84b11a4940d418106854184bd8259b9a8ec37da.tar.bz2
lua-e84b11a4940d418106854184bd8259b9a8ec37da.zip
avoid names starting with '_'
-rw-r--r--lstate.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/lstate.h b/lstate.h
index 64903149..f2f7baa7 100644
--- a/lstate.h
+++ b/lstate.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lstate.h,v 2.21 2005/05/05 15:34:03 roberto Exp roberto $ 2** $Id: lstate.h,v 2.22 2005/06/03 20:15:58 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*/
@@ -19,10 +19,10 @@ struct lua_longjmp; /* defined in ldo.c */
19 19
20 20
21/* table of globals */ 21/* table of globals */
22#define gt(L) (&L->_gt) 22#define gt(L) (&L->l_gt)
23 23
24/* registry */ 24/* registry */
25#define registry(L) (&G(L)->_registry) 25#define registry(L) (&G(L)->l_registry)
26 26
27 27
28/* extra stack space to handle TM calls and some other extras */ 28/* extra stack space to handle TM calls and some other extras */
@@ -86,7 +86,7 @@ typedef struct global_State {
86 int gcpause; /* size of pause between successive GCs */ 86 int gcpause; /* size of pause between successive GCs */
87 int gcstepmul; /* GC `granularity' */ 87 int gcstepmul; /* GC `granularity' */
88 lua_CFunction panic; /* to be called in unprotected errors */ 88 lua_CFunction panic; /* to be called in unprotected errors */
89 TValue _registry; 89 TValue l_registry;
90 struct lua_State *mainthread; 90 struct lua_State *mainthread;
91 UpVal uvhead; /* head of double-linked list of all open upvalues */ 91 UpVal uvhead; /* head of double-linked list of all open upvalues */
92 struct Table *mt[NUM_TAGS]; /* metatables for basic types */ 92 struct Table *mt[NUM_TAGS]; /* metatables for basic types */
@@ -101,7 +101,7 @@ struct lua_State {
101 CommonHeader; 101 CommonHeader;
102 StkId top; /* first free slot in the stack */ 102 StkId top; /* first free slot in the stack */
103 StkId base; /* base of current function */ 103 StkId base; /* base of current function */
104 global_State *_G; 104 global_State *l_G;
105 CallInfo *ci; /* call info for current function */ 105 CallInfo *ci; /* call info for current function */
106 const Instruction *savedpc; /* `savedpc' of current function */ 106 const Instruction *savedpc; /* `savedpc' of current function */
107 StkId stack_last; /* last free slot in the stack */ 107 StkId stack_last; /* last free slot in the stack */
@@ -117,7 +117,7 @@ struct lua_State {
117 int basehookcount; 117 int basehookcount;
118 int hookcount; 118 int hookcount;
119 lua_Hook hook; 119 lua_Hook hook;
120 TValue _gt; /* table of globals */ 120 TValue l_gt; /* table of globals */
121 TValue env; /* temporary place for environments */ 121 TValue env; /* temporary place for environments */
122 GCObject *openupval; /* list of open upvalues in this stack */ 122 GCObject *openupval; /* list of open upvalues in this stack */
123 GCObject *gclist; 123 GCObject *gclist;
@@ -126,7 +126,7 @@ struct lua_State {
126}; 126};
127 127
128 128
129#define G(L) (L->_G) 129#define G(L) (L->l_G)
130 130
131 131
132/* 132/*