diff options
Diffstat (limited to 'loadlib.c')
-rw-r--r-- | loadlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loadlib.c,v 1.53 2006/06/22 16:12:59 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.54 2006/07/03 20:16:49 roberto Exp roberto $ |
3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | ** | 5 | ** |
@@ -502,7 +502,7 @@ static int ll_require (lua_State *L) { | |||
502 | ** 'module' function | 502 | ** 'module' function |
503 | ** ======================================================= | 503 | ** ======================================================= |
504 | */ | 504 | */ |
505 | 505 | ||
506 | 506 | ||
507 | static void setfenv (lua_State *L) { | 507 | static void setfenv (lua_State *L) { |
508 | lua_Debug ar; | 508 | lua_Debug ar; |
@@ -630,7 +630,7 @@ LUALIB_API int luaopen_package (lua_State *L) { | |||
630 | lua_setfield(L, -2, "__gc"); | 630 | lua_setfield(L, -2, "__gc"); |
631 | /* create `package' table */ | 631 | /* create `package' table */ |
632 | luaL_register(L, LUA_LOADLIBNAME, pk_funcs); | 632 | luaL_register(L, LUA_LOADLIBNAME, pk_funcs); |
633 | #if defined(LUA_COMPAT_LOADLIB) | 633 | #if defined(LUA_COMPAT_LOADLIB) |
634 | lua_getfield(L, -1, "loadlib"); | 634 | lua_getfield(L, -1, "loadlib"); |
635 | lua_setfield(L, LUA_GLOBALSINDEX, "loadlib"); | 635 | lua_setfield(L, LUA_GLOBALSINDEX, "loadlib"); |
636 | #endif | 636 | #endif |