From 4343420d4d559a7d4cdacdbc1fd61552dcf59f04 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 4 Oct 1999 15:51:04 -0200 Subject: simplified version of `gc' tag method (only for userdata now). --- ldo.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'ldo.c') diff --git a/ldo.c b/ldo.c index da9207e4..e6125e36 100644 --- a/ldo.c +++ b/ldo.c @@ -1,18 +1,16 @@ /* -** $Id: ldo.c,v 1.46 1999/08/16 20:52:00 roberto Exp roberto $ +** $Id: ldo.c,v 1.47 1999/09/06 15:24:46 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ #include -#include #include #include #include "lauxlib.h" #include "ldo.h" -#include "lfunc.h" #include "lgc.h" #include "lmem.h" #include "lobject.h" @@ -219,17 +217,6 @@ void luaD_calln (int nArgs, int nResults) { } -/* -** Traverse all objects on L->stack.stack -*/ -void luaD_travstack (int (*fn)(TObject *)) { - StkId i; - for (i = (L->stack.top-1)-L->stack.stack; i>=0; i--) - fn(L->stack.stack+i); -} - - - static void message (const char *s) { const TObject *em = &(luaS_new("_ERRORMESSAGE")->u.s.globalval); if (ttype(em) == LUA_T_PROTO || ttype(em) == LUA_T_CPROTO || -- cgit v1.2.3-55-g6feb