From d11e5adf55b11a446671775a6c7803e066fc94e8 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 25 Jan 2000 11:57:18 -0200 Subject: `const' array in protos breaked in 3 arrays (for strings, numbers, and prototypes). --- lgc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lgc.c') diff --git a/lgc.c b/lgc.c index 6fc73942..0dda7d8d 100644 --- a/lgc.c +++ b/lgc.c @@ -1,5 +1,5 @@ /* -** $Id: lgc.c,v 1.38 1999/12/23 18:19:57 roberto Exp roberto $ +** $Id: lgc.c,v 1.39 1999/12/27 17:33:22 roberto Exp roberto $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -33,8 +33,10 @@ static void protomark (lua_State *L, TProtoFunc *f) { int i; f->marked = 1; strmark(L, f->source); - for (i=f->nconsts-1; i>=0; i--) - markobject(L, &f->consts[i]); + for (i=f->nstrcnst-1; i>=0; i--) + strmark(L, f->strcnst[i]); + for (i=f->nprotocnst-1; i>=0; i--) + protomark(L, f->protocnst[i]); } } -- cgit v1.2.3-55-g6feb