diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-07-02 12:56:43 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2011-07-02 12:56:43 -0300 |
| commit | 2f125ebc33bb61938dbdb37bee13013b988062b8 (patch) | |
| tree | 65978d14d7f5c3975bb207daa17c6f7229706bc3 | |
| parent | 49a01c0991462ad5c6143b0d4ba37ec35c8bca2b (diff) | |
| download | lua-2f125ebc33bb61938dbdb37bee13013b988062b8.tar.gz lua-2f125ebc33bb61938dbdb37bee13013b988062b8.tar.bz2 lua-2f125ebc33bb61938dbdb37bee13013b988062b8.zip | |
'deprecated' x 'removed' (they are not the same thing)
| -rw-r--r-- | lbaselib.c | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lbaselib.c,v 1.261 2011/05/26 16:09:40 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.262 2011/06/16 14:12:24 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,8 +120,8 @@ static int luaB_setmetatable (lua_State *L) { | |||
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | 122 | ||
| 123 | static int luaB_deprecated (lua_State *L) { | 123 | static int luaB_removed (lua_State *L) { |
| 124 | return luaL_error(L, "deprecated function"); | 124 | return luaL_error(L, "removed function"); |
| 125 | } | 125 | } |
| 126 | 126 | ||
| 127 | 127 | ||
| @@ -359,7 +359,7 @@ static int luaB_load (lua_State *L) { | |||
| 359 | #if defined(LUA_COMPAT_LOADSTRING) | 359 | #if defined(LUA_COMPAT_LOADSTRING) |
| 360 | #define luaB_loadstring luaB_load | 360 | #define luaB_loadstring luaB_load |
| 361 | #else | 361 | #else |
| 362 | #define luaB_loadstring luaB_deprecated | 362 | #define luaB_loadstring luaB_removed |
| 363 | #endif | 363 | #endif |
| 364 | 364 | ||
| 365 | 365 | ||
| @@ -454,7 +454,7 @@ static const luaL_Reg base_funcs[] = { | |||
| 454 | {"collectgarbage", luaB_collectgarbage}, | 454 | {"collectgarbage", luaB_collectgarbage}, |
| 455 | {"dofile", luaB_dofile}, | 455 | {"dofile", luaB_dofile}, |
| 456 | {"error", luaB_error}, | 456 | {"error", luaB_error}, |
| 457 | {"getfenv", luaB_deprecated}, | 457 | {"getfenv", luaB_removed}, |
| 458 | {"getmetatable", luaB_getmetatable}, | 458 | {"getmetatable", luaB_getmetatable}, |
| 459 | {"ipairs", luaB_ipairs}, | 459 | {"ipairs", luaB_ipairs}, |
| 460 | {"loadfile", luaB_loadfile}, | 460 | {"loadfile", luaB_loadfile}, |
| @@ -469,7 +469,7 @@ static const luaL_Reg base_funcs[] = { | |||
| 469 | {"rawget", luaB_rawget}, | 469 | {"rawget", luaB_rawget}, |
| 470 | {"rawset", luaB_rawset}, | 470 | {"rawset", luaB_rawset}, |
| 471 | {"select", luaB_select}, | 471 | {"select", luaB_select}, |
| 472 | {"setfenv", luaB_deprecated}, | 472 | {"setfenv", luaB_removed}, |
| 473 | {"setmetatable", luaB_setmetatable}, | 473 | {"setmetatable", luaB_setmetatable}, |
| 474 | {"tonumber", luaB_tonumber}, | 474 | {"tonumber", luaB_tonumber}, |
| 475 | {"tostring", luaB_tostring}, | 475 | {"tostring", luaB_tostring}, |
