summaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-10-31 17:58:11 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-10-31 17:58:11 -0200
commitaf59848219abcab589ac174c829102ed8a2adc8d (patch)
tree3deabe4b29f255013ae2fe83553ffa48f578d90d /lgc.c
parent46347d768e571ba9b36581c36d11d2de1dee2cfb (diff)
downloadlua-af59848219abcab589ac174c829102ed8a2adc8d.tar.gz
lua-af59848219abcab589ac174c829102ed8a2adc8d.tar.bz2
lua-af59848219abcab589ac174c829102ed8a2adc8d.zip
tables of globals accessible through pseudo-index in C API
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lgc.c b/lgc.c
index cf9148e9..abace987 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 1.113 2001/10/17 21:12:57 roberto Exp $ 2** $Id: lgc.c,v 1.114 2001/10/25 19:14:14 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -112,7 +112,7 @@ static void markstacks (lua_State *L, GCState *st) {
112 lua_State *L1 = L; 112 lua_State *L1 = L;
113 do { /* for each thread */ 113 do { /* for each thread */
114 StkId o, lim; 114 StkId o, lim;
115 marktable(st, L1->gt); /* mark table of globals */ 115 markobject(st, &L1->gt); /* mark table of globals */
116 for (o=L1->stack; o<L1->top; o++) 116 for (o=L1->stack; o<L1->top; o++)
117 markobject(st, o); 117 markobject(st, o);
118 lim = (L1->stack_last - L1->ci->base > MAXSTACK) ? L1->ci->base+MAXSTACK 118 lim = (L1->stack_last - L1->ci->base > MAXSTACK) ? L1->ci->base+MAXSTACK