aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-07-25 12:18:19 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2010-07-25 12:18:19 -0300
commit8b7cf8c62d0a3d20bfc8741a66d8c2447c847bd3 (patch)
tree6e91b533df43594cd6341c7dc149407b54ba7759 /lapi.c
parent73b0a3451d0bd59f1540271aa3b8d8de36b36580 (diff)
downloadlua-8b7cf8c62d0a3d20bfc8741a66d8c2447c847bd3.tar.gz
lua-8b7cf8c62d0a3d20bfc8741a66d8c2447c847bd3.tar.bz2
lua-8b7cf8c62d0a3d20bfc8741a66d8c2447c847bd3.zip
'lua_[gs]etenv' -> 'lua_[gs]etuservalue'
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lapi.c b/lapi.c
index 3b0d13a9..63d5e183 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lapi.c,v 2.131 2010/06/04 13:05:29 roberto Exp roberto $ 2** $Id: lapi.c,v 2.132 2010/07/02 17:35:06 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*/
@@ -644,7 +644,7 @@ LUA_API int lua_getmetatable (lua_State *L, int objindex) {
644} 644}
645 645
646 646
647LUA_API void lua_getenv (lua_State *L, int idx) { 647LUA_API void lua_getuservalue (lua_State *L, int idx) {
648 StkId o; 648 StkId o;
649 lua_lock(L); 649 lua_lock(L);
650 o = index2addr(L, idx); 650 o = index2addr(L, idx);
@@ -754,7 +754,7 @@ LUA_API int lua_setmetatable (lua_State *L, int objindex) {
754} 754}
755 755
756 756
757LUA_API void lua_setenv (lua_State *L, int idx) { 757LUA_API void lua_setuservalue (lua_State *L, int idx) {
758 StkId o; 758 StkId o;
759 lua_lock(L); 759 lua_lock(L);
760 api_checknelems(L, 1); 760 api_checknelems(L, 1);