From ddc8d94a087f9c0ef758dc26540a5f5ac486e19d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 14 Aug 2000 16:18:14 -0300 Subject: new name for `lua_[sg]etglobaltable' --- liolib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'liolib.c') diff --git a/liolib.c b/liolib.c index fc75999b..b92e809d 100644 --- a/liolib.c +++ b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 1.68 2000/06/20 17:13:21 roberto Exp roberto $ +** $Id: liolib.c,v 1.69 2000/08/09 19:16:57 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -73,7 +73,7 @@ static void atribTM (lua_State *L) { ctrl->file[inout] = (FILE *)lua_getuserdata(L, newvalue); } /* set the actual variable */ - lua_pushglobaltable(L); + lua_pushglobals(L); lua_pushstring(L, varname); lua_pushobject(L, newvalue); lua_rawset(L); @@ -590,7 +590,7 @@ static void errorfb (lua_State *L) { sprintf(buff+strlen(buff), " [%.70s]", buffchunk); strcat(buff, "\n"); } - lua_pushglobaltable(L); + lua_pushglobals(L); lua_pushstring(L, LUA_ALERT); alertfunc = lua_rawget(L); if (lua_isfunction(L, alertfunc)) { /* avoid loop if _ALERT is not defined */ -- cgit v1.2.3-55-g6feb