From b940f09984b47979caf8142046e1fe813e531e3d Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 20 Jun 2001 14:25:30 -0300 Subject: no more "compat mode" with 3.2 (deprecated functions) --- lbaselib.c | 68 +------------------------------------------------------------- 1 file changed, 1 insertion(+), 67 deletions(-) diff --git a/lbaselib.c b/lbaselib.c index 2c41aae1..7865e62f 100644 --- a/lbaselib.c +++ b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.36 2001/06/05 19:41:31 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.37 2001/06/06 18:00:19 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -690,71 +690,6 @@ static int luaB_sort (lua_State *L) { -/* -** {====================================================== -** Deprecated functions to manipulate global environment. -** ======================================================= -*/ - - -#define num_deprecated 4 - -static const luaL_reg deprecated_names [num_deprecated] = { - {l_s("foreachvar"), luaB_foreach}, - {l_s("nextvar"), luaB_next}, - {l_s("rawgetglobal"), luaB_rawget}, - {l_s("rawsetglobal"), luaB_rawset} -}; - - -#ifdef LUA_DEPRECATEDFUNCS - -/* -** call corresponding function inserting `globals' as first argument -*/ -static int deprecated_func (lua_State *L) { - lua_insert(L, 1); /* upvalue is the function to be called */ - lua_getglobals(L); - lua_insert(L, 2); /* table of globals is 1o argument */ - lua_rawcall(L, lua_gettop(L)-1, LUA_MULTRET); - return lua_gettop(L); /* return all results */ -} - - -static void deprecated_funcs (lua_State *L) { - int i; - for (i=0; i