diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-02-24 13:54:20 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-02-24 13:54:20 -0300 |
| commit | 5cd99b82b7fc11c527929e5e95f03767f6432d8e (patch) | |
| tree | dc5e5dfb1731701dc91d14777d6e0e446324b4d6 /lapi.c | |
| parent | 07e210e6555b9930edc2f2fb21220f6f6769f110 (diff) | |
| download | lua-5cd99b82b7fc11c527929e5e95f03767f6432d8e.tar.gz lua-5cd99b82b7fc11c527929e5e95f03767f6432d8e.tar.bz2 lua-5cd99b82b7fc11c527929e5e95f03767f6432d8e.zip | |
`set/getenvtable' -> `set/getfenv'
Diffstat (limited to 'lapi.c')
| -rw-r--r-- | lapi.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lapi.c,v 1.229 2003/02/18 16:13:15 roberto Exp roberto $ | 2 | ** $Id: lapi.c,v 1.230 2003/02/20 19:33:23 roberto Exp roberto $ |
| 3 | ** Lua API | 3 | ** Lua API |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -542,7 +542,7 @@ LUA_API int lua_getmetatable (lua_State *L, int objindex) { | |||
| 542 | } | 542 | } |
| 543 | 543 | ||
| 544 | 544 | ||
| 545 | LUA_API void lua_getenvtable (lua_State *L, int index) { | 545 | LUA_API void lua_getfenv (lua_State *L, int index) { |
| 546 | StkId o; | 546 | StkId o; |
| 547 | lua_lock(L); | 547 | lua_lock(L); |
| 548 | o = luaA_index(L, index); | 548 | o = luaA_index(L, index); |
| @@ -620,7 +620,7 @@ LUA_API int lua_setmetatable (lua_State *L, int objindex) { | |||
| 620 | } | 620 | } |
| 621 | 621 | ||
| 622 | 622 | ||
| 623 | LUA_API int lua_setenvtable (lua_State *L, int index) { | 623 | LUA_API int lua_setfenv (lua_State *L, int index) { |
| 624 | StkId o; | 624 | StkId o; |
| 625 | int res = 0; | 625 | int res = 0; |
| 626 | lua_lock(L); | 626 | lua_lock(L); |
