diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-11 09:45:00 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-03-11 09:45:00 -0300 |
| commit | 71c716e5a88a6993369505c79cd1383ef27366c4 (patch) | |
| tree | c8b32cf297e5a6faca854c527fd9ea2056f615db /lstate.c | |
| parent | 51ad2f11623c25874b6a0e721e0597df784068ff (diff) | |
| download | lua-71c716e5a88a6993369505c79cd1383ef27366c4.tar.gz lua-71c716e5a88a6993369505c79cd1383ef27366c4.tar.bz2 lua-71c716e5a88a6993369505c79cd1383ef27366c4.zip | |
avoid C identifiers beginning with '_'
Diffstat (limited to 'lstate.c')
| -rw-r--r-- | lstate.c | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstate.c,v 1.85 2002/03/05 16:22:54 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.86 2002/03/07 18:14:29 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 | */ |
| @@ -46,7 +46,7 @@ static void stack_init (lua_State *L, lua_State *OL) { | |||
| 46 | static void f_luaopen (lua_State *L, void *ud) { | 46 | static void f_luaopen (lua_State *L, void *ud) { |
| 47 | UNUSED(ud); | 47 | UNUSED(ud); |
| 48 | /* create a new global state */ | 48 | /* create a new global state */ |
| 49 | L->_G = luaM_new(L, global_State); | 49 | L->l_G = luaM_new(L, global_State); |
| 50 | G(L)->strt.size = 0; | 50 | G(L)->strt.size = 0; |
| 51 | G(L)->strt.nuse = 0; | 51 | G(L)->strt.nuse = 0; |
| 52 | G(L)->strt.hash = NULL; | 52 | G(L)->strt.hash = NULL; |
| @@ -91,7 +91,7 @@ LUA_API lua_State *lua_newthread (lua_State *OL) { | |||
| 91 | lua_lock(OL); | 91 | lua_lock(OL); |
| 92 | L = luaM_new(OL, lua_State); | 92 | L = luaM_new(OL, lua_State); |
| 93 | preinit_state(L); | 93 | preinit_state(L); |
| 94 | L->_G = OL->_G; | 94 | L->l_G = OL->l_G; |
| 95 | OL->next->previous = L; /* insert L into linked list */ | 95 | OL->next->previous = L; /* insert L into linked list */ |
| 96 | L->next = OL->next; | 96 | L->next = OL->next; |
| 97 | OL->next = L; | 97 | OL->next = L; |
| @@ -111,7 +111,7 @@ LUA_API lua_State *lua_open (void) { | |||
| 111 | L = luaM_new(NULL, lua_State); | 111 | L = luaM_new(NULL, lua_State); |
| 112 | if (L) { /* allocation OK? */ | 112 | if (L) { /* allocation OK? */ |
| 113 | preinit_state(L); | 113 | preinit_state(L); |
| 114 | L->_G = NULL; | 114 | L->l_G = NULL; |
| 115 | L->next = L->previous = L; | 115 | L->next = L->previous = L; |
| 116 | if (luaD_runprotected(L, f_luaopen, NULL) != 0) { | 116 | if (luaD_runprotected(L, f_luaopen, NULL) != 0) { |
| 117 | /* memory allocation error: free partial state */ | 117 | /* memory allocation error: free partial state */ |
| @@ -146,7 +146,7 @@ static void close_state (lua_State *L) { | |||
| 146 | lua_assert(G(L)->roottable == NULL); | 146 | lua_assert(G(L)->roottable == NULL); |
| 147 | luaS_freeall(L); | 147 | luaS_freeall(L); |
| 148 | luaM_freearray(L, G(L)->Mbuffer, G(L)->Mbuffsize, char); | 148 | luaM_freearray(L, G(L)->Mbuffer, G(L)->Mbuffsize, char); |
| 149 | luaM_freelem(NULL, L->_G); | 149 | luaM_freelem(NULL, L->l_G); |
| 150 | } | 150 | } |
| 151 | luaE_closethread(NULL, L); | 151 | luaE_closethread(NULL, L); |
| 152 | } | 152 | } |
