diff options
author | Lua Team <team@lua.org> | 2011-07-05 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2011-07-05 12:00:00 +0000 |
commit | 76e52968cfea8eccaffae99512879d664796e6a6 (patch) | |
tree | 6105722d5a672f6bc2280bfd54f4e7b9531431cb /src/loadlib.c | |
parent | cc3a4be74122bb2c002798696730bca68d36fcc9 (diff) | |
download | lua-github-5.2.0-beta-rc6.tar.gz |
Lua 5.2.0-beta-rc65.2.0-beta-rc6
Diffstat (limited to 'src/loadlib.c')
-rw-r--r-- | src/loadlib.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/loadlib.c b/src/loadlib.c index 32c6ed25..0313d8e4 100644 --- a/src/loadlib.c +++ b/src/loadlib.c @@ -1,5 +1,5 @@ /* -** $Id: loadlib.c,v 1.99 2011/06/28 17:13:28 roberto Exp $ +** $Id: loadlib.c,v 1.100 2011/07/05 12:49:35 roberto Exp $ ** Dynamic library loader for Lua ** See Copyright Notice in lua.h ** @@ -569,17 +569,6 @@ static int ll_seeall (lua_State *L) { return 0; } - -#else - -static int ll_seeall (lua_State *L) { - return luaL_error(L, "deprecated function"); -} - -static int ll_module (lua_State *L) { - return luaL_error(L, "deprecated function"); -} - #endif /* }====================================================== */ @@ -610,13 +599,17 @@ static void setpath (lua_State *L, const char *fieldname, const char *envname1, static const luaL_Reg pk_funcs[] = { {"loadlib", ll_loadlib}, {"searchpath", ll_searchpath}, +#if defined(LUA_COMPAT_MODULE) {"seeall", ll_seeall}, +#endif {NULL, NULL} }; static const luaL_Reg ll_funcs[] = { +#if defined(LUA_COMPAT_MODULE) {"module", ll_module}, +#endif {"require", ll_require}, {NULL, NULL} }; |