diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-07-05 09:49:35 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-07-05 09:49:35 -0300 |
| commit | 79cbc3468caeab89b1c8492d54e1c28e7aafd1ed (patch) | |
| tree | ca69022ba190df2f3dbfed1d2861d2cf52f4e0af /loadlib.c | |
| parent | 9e89a55a4fd701a9991d55b73edb93639a48d624 (diff) | |
| download | lua-79cbc3468caeab89b1c8492d54e1c28e7aafd1ed.tar.gz lua-79cbc3468caeab89b1c8492d54e1c28e7aafd1ed.tar.bz2 lua-79cbc3468caeab89b1c8492d54e1c28e7aafd1ed.zip | |
removed and deprecated functions really removed from the code base
Diffstat (limited to 'loadlib.c')
| -rw-r--r-- | loadlib.c | 17 |
1 files changed, 5 insertions, 12 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: loadlib.c,v 1.98 2011/04/08 19:17:36 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.99 2011/06/28 17:13:28 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 | ** |
| @@ -569,17 +569,6 @@ static int ll_seeall (lua_State *L) { | |||
| 569 | return 0; | 569 | return 0; |
| 570 | } | 570 | } |
| 571 | 571 | ||
| 572 | |||
| 573 | #else | ||
| 574 | |||
| 575 | static int ll_seeall (lua_State *L) { | ||
| 576 | return luaL_error(L, "deprecated function"); | ||
| 577 | } | ||
| 578 | |||
| 579 | static int ll_module (lua_State *L) { | ||
| 580 | return luaL_error(L, "deprecated function"); | ||
| 581 | } | ||
| 582 | |||
| 583 | #endif | 572 | #endif |
| 584 | /* }====================================================== */ | 573 | /* }====================================================== */ |
| 585 | 574 | ||
| @@ -610,13 +599,17 @@ static void setpath (lua_State *L, const char *fieldname, const char *envname1, | |||
| 610 | static const luaL_Reg pk_funcs[] = { | 599 | static const luaL_Reg pk_funcs[] = { |
| 611 | {"loadlib", ll_loadlib}, | 600 | {"loadlib", ll_loadlib}, |
| 612 | {"searchpath", ll_searchpath}, | 601 | {"searchpath", ll_searchpath}, |
| 602 | #if defined(LUA_COMPAT_MODULE) | ||
| 613 | {"seeall", ll_seeall}, | 603 | {"seeall", ll_seeall}, |
| 604 | #endif | ||
| 614 | {NULL, NULL} | 605 | {NULL, NULL} |
| 615 | }; | 606 | }; |
| 616 | 607 | ||
| 617 | 608 | ||
| 618 | static const luaL_Reg ll_funcs[] = { | 609 | static const luaL_Reg ll_funcs[] = { |
| 610 | #if defined(LUA_COMPAT_MODULE) | ||
| 619 | {"module", ll_module}, | 611 | {"module", ll_module}, |
| 612 | #endif | ||
| 620 | {"require", ll_require}, | 613 | {"require", ll_require}, |
| 621 | {NULL, NULL} | 614 | {NULL, NULL} |
| 622 | }; | 615 | }; |
