summaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-08 17:42:07 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-08-08 17:42:07 -0300
commit0802a9df9e9326c5e61f0d6b69685c2c253de5f2 (patch)
treec0f34b8fbf79694ea3d5f9d98f14680ba74a2b14 /lgc.c
parentf90bc248b3c3c18941a96038b2a7517ad571d8b1 (diff)
downloadlua-github-0802a9df9e9326c5e61f0d6b69685c2c253de5f2.tar.gz
no more options for debug information: it is always on
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lgc.c b/lgc.c
index d884d224..4391316f 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
/*
-** $Id: lgc.c,v 1.59 2000/06/30 14:35:17 roberto Exp roberto $
+** $Id: lgc.c,v 1.60 2000/08/07 20:21:34 roberto Exp roberto $
** Garbage Collector
** See Copyright Notice in lua.h
*/
@@ -44,11 +44,9 @@ static void protomark (Proto *f) {
strmark(f->kstr[i]);
for (i=0; i<f->nkproto; i++)
protomark(f->kproto[i]);
- if (f->locvars) { /* is there debug information? */
- LocVar *lv;
- for (lv=f->locvars; lv->pc != -1; lv++) /* mark local-variable names */
- if (lv->varname) strmark(lv->varname);
- }
+ for (i=0; f->locvars[i].pc != -1; i++) /* mark local-variable names */
+ if (f->locvars[i].varname)
+ strmark(f->locvars[i].varname);
}
}