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 /lbaselib.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 'lbaselib.c')
| -rw-r--r-- | lbaselib.c | 21 |
1 files changed, 4 insertions, 17 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbaselib.c,v 1.262 2011/06/16 14:12:24 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.263 2011/07/02 15:56:43 roberto Exp roberto $ |
| 3 | ** Basic library | 3 | ** Basic library |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -120,11 +120,6 @@ static int luaB_setmetatable (lua_State *L) { | |||
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | 122 | ||
| 123 | static int luaB_removed (lua_State *L) { | ||
| 124 | return luaL_error(L, "removed function"); | ||
| 125 | } | ||
| 126 | |||
| 127 | |||
| 128 | static int luaB_rawequal (lua_State *L) { | 123 | static int luaB_rawequal (lua_State *L) { |
| 129 | luaL_checkany(L, 1); | 124 | luaL_checkany(L, 1); |
| 130 | luaL_checkany(L, 2); | 125 | luaL_checkany(L, 2); |
| @@ -355,14 +350,6 @@ static int luaB_load (lua_State *L) { | |||
| 355 | return load_aux(L, status); | 350 | return load_aux(L, status); |
| 356 | } | 351 | } |
| 357 | 352 | ||
| 358 | |||
| 359 | #if defined(LUA_COMPAT_LOADSTRING) | ||
| 360 | #define luaB_loadstring luaB_load | ||
| 361 | #else | ||
| 362 | #define luaB_loadstring luaB_removed | ||
| 363 | #endif | ||
| 364 | |||
| 365 | |||
| 366 | /* }====================================================== */ | 353 | /* }====================================================== */ |
| 367 | 354 | ||
| 368 | 355 | ||
| @@ -454,12 +441,13 @@ static const luaL_Reg base_funcs[] = { | |||
| 454 | {"collectgarbage", luaB_collectgarbage}, | 441 | {"collectgarbage", luaB_collectgarbage}, |
| 455 | {"dofile", luaB_dofile}, | 442 | {"dofile", luaB_dofile}, |
| 456 | {"error", luaB_error}, | 443 | {"error", luaB_error}, |
| 457 | {"getfenv", luaB_removed}, | ||
| 458 | {"getmetatable", luaB_getmetatable}, | 444 | {"getmetatable", luaB_getmetatable}, |
| 459 | {"ipairs", luaB_ipairs}, | 445 | {"ipairs", luaB_ipairs}, |
| 460 | {"loadfile", luaB_loadfile}, | 446 | {"loadfile", luaB_loadfile}, |
| 461 | {"load", luaB_load}, | 447 | {"load", luaB_load}, |
| 462 | {"loadstring", luaB_loadstring}, | 448 | #if defined(LUA_COMPAT_LOADSTRING) |
| 449 | {"loadstring", luaB_load}, | ||
| 450 | #endif | ||
| 463 | {"next", luaB_next}, | 451 | {"next", luaB_next}, |
| 464 | {"pairs", luaB_pairs}, | 452 | {"pairs", luaB_pairs}, |
| 465 | {"pcall", luaB_pcall}, | 453 | {"pcall", luaB_pcall}, |
| @@ -469,7 +457,6 @@ static const luaL_Reg base_funcs[] = { | |||
| 469 | {"rawget", luaB_rawget}, | 457 | {"rawget", luaB_rawget}, |
| 470 | {"rawset", luaB_rawset}, | 458 | {"rawset", luaB_rawset}, |
| 471 | {"select", luaB_select}, | 459 | {"select", luaB_select}, |
| 472 | {"setfenv", luaB_removed}, | ||
| 473 | {"setmetatable", luaB_setmetatable}, | 460 | {"setmetatable", luaB_setmetatable}, |
| 474 | {"tonumber", luaB_tonumber}, | 461 | {"tonumber", luaB_tonumber}, |
| 475 | {"tostring", luaB_tostring}, | 462 | {"tostring", luaB_tostring}, |
