aboutsummaryrefslogtreecommitdiff
path: root/ltests.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-04-08 16:17:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2011-04-08 16:17:36 -0300
commit19fbdf6cae4c5186a498eb7a2fcc128804a9c3d5 (patch)
treee36890f7302eef1d9bc0eb5199a58b441f2c738c /ltests.c
parent427ee519db76b7a0747b5fc1d5dcf97092b5c0bf (diff)
downloadlua-19fbdf6cae4c5186a498eb7a2fcc128804a9c3d5.tar.gz
lua-19fbdf6cae4c5186a498eb7a2fcc128804a9c3d5.tar.bz2
lua-19fbdf6cae4c5186a498eb7a2fcc128804a9c3d5.zip
'luaL_findtable' -> 'luaL_getsubtable'
Diffstat (limited to 'ltests.c')
-rw-r--r--ltests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ltests.c b/ltests.c
index 16b13dd1..888a3c48 100644
--- a/ltests.c
+++ b/ltests.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ltests.c,v 2.114 2010/11/26 14:32:31 roberto Exp roberto $ 2** $Id: ltests.c,v 2.115 2010/12/10 13:40:22 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -853,7 +853,7 @@ static int loadlib (lua_State *L) {
853 lua_State *L1 = getstate(L); 853 lua_State *L1 = getstate(L);
854 int i; 854 int i;
855 luaL_requiref(L1, "package", luaopen_package, 1); 855 luaL_requiref(L1, "package", luaopen_package, 1);
856 luaL_findtable(L1, LUA_REGISTRYINDEX, "_PRELOAD"); 856 luaL_getsubtable(L1, LUA_REGISTRYINDEX, "_PRELOAD");
857 for (i = 0; libs[i].name; i++) { 857 for (i = 0; libs[i].name; i++) {
858 lua_pushcfunction(L1, libs[i].func); 858 lua_pushcfunction(L1, libs[i].func);
859 lua_setfield(L1, -2, libs[i].name); 859 lua_setfield(L1, -2, libs[i].name);