From d9e61e8ceafe8c3f6ad936979719ca7c446ce228 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 7 Aug 2000 17:21:34 -0300 Subject: new algorithm for traversing in GC to avoid deep recursion calls --- ltm.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'ltm.c') diff --git a/ltm.c b/ltm.c index 27866c2c..a6f39155 100644 --- a/ltm.c +++ b/ltm.c @@ -1,5 +1,5 @@ /* -** $Id: ltm.c,v 1.43 2000/06/12 13:52:05 roberto Exp roberto $ +** $Id: ltm.c,v 1.44 2000/08/04 19:38:35 roberto Exp roberto $ ** Tag methods ** See Copyright Notice in lua.h */ @@ -147,16 +147,3 @@ void luaT_settagmethod (lua_State *L, int t, const char *event, TObject *func) { *luaT_getim(L, t, e) = temp; } - -const char *luaT_travtagmethods (lua_State *L, - int (*fn)(lua_State *, TObject *)) { /* ORDER IM */ - int e; - for (e=IM_GETTABLE; e<=IM_FUNCTION; e++) { - int t; - for (t=0; t<=L->last_tag; t++) - if (fn(L, luaT_getim(L, t,e))) - return luaT_eventname[e]; - } - return NULL; -} - -- cgit v1.2.3-55-g6feb