diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-14 16:18:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-08-14 16:18:14 -0300 |
commit | ddc8d94a087f9c0ef758dc26540a5f5ac486e19d (patch) | |
tree | 71d9fdd285fed688ba212cf9e9cec6ea70be979b /lbuiltin.c | |
parent | 5d9cbdadfb04e7ce8810af7d40e0723222937024 (diff) | |
download | lua-ddc8d94a087f9c0ef758dc26540a5f5ac486e19d.tar.gz lua-ddc8d94a087f9c0ef758dc26540a5f5ac486e19d.tar.bz2 lua-ddc8d94a087f9c0ef758dc26540a5f5ac486e19d.zip |
new name for `lua_[sg]etglobaltable'
Diffstat (limited to 'lbuiltin.c')
-rw-r--r-- | lbuiltin.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbuiltin.c,v 1.118 2000/08/04 19:38:35 roberto Exp roberto $ | 2 | ** $Id: lbuiltin.c,v 1.119 2000/08/09 19:16:57 roberto Exp roberto $ |
3 | ** Built-in functions | 3 | ** Built-in functions |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -101,7 +101,7 @@ void luaB__ALERT (lua_State *L) { | |||
101 | */ | 101 | */ |
102 | void luaB__ERRORMESSAGE (lua_State *L) { | 102 | void luaB__ERRORMESSAGE (lua_State *L) { |
103 | lua_Object al; | 103 | lua_Object al; |
104 | lua_pushglobaltable(L); | 104 | lua_pushglobals(L); |
105 | lua_pushstring(L, LUA_ALERT); | 105 | lua_pushstring(L, LUA_ALERT); |
106 | al = lua_rawget(L); | 106 | al = lua_rawget(L); |
107 | if (lua_isfunction(L, al)) { /* avoid error loop if _ALERT is not defined */ | 107 | if (lua_isfunction(L, al)) { /* avoid error loop if _ALERT is not defined */ |
@@ -206,9 +206,9 @@ void luaB_copytagmethods (lua_State *L) { | |||
206 | } | 206 | } |
207 | 207 | ||
208 | void luaB_globals (lua_State *L) { | 208 | void luaB_globals (lua_State *L) { |
209 | lua_pushglobaltable(L); | 209 | lua_pushglobals(L); |
210 | if (lua_getparam(L, 1) != LUA_NOOBJECT) | 210 | if (lua_getparam(L, 1) != LUA_NOOBJECT) |
211 | lua_setglobaltable(L, luaL_tablearg(L, 1)); | 211 | lua_setglobals(L, luaL_tablearg(L, 1)); |
212 | } | 212 | } |
213 | 213 | ||
214 | void luaB_rawget (lua_State *L) { | 214 | void luaB_rawget (lua_State *L) { |