diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-01-25 11:57:18 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-01-25 11:57:18 -0200 |
commit | d11e5adf55b11a446671775a6c7803e066fc94e8 (patch) | |
tree | b7881e03e792bcc46f497577e8141b5ecc2e5b17 /lgc.c | |
parent | 99e340b2ba08226f4f7b457b170296af8d82959b (diff) | |
download | lua-d11e5adf55b11a446671775a6c7803e066fc94e8.tar.gz lua-d11e5adf55b11a446671775a6c7803e066fc94e8.tar.bz2 lua-d11e5adf55b11a446671775a6c7803e066fc94e8.zip |
`const' array in protos breaked in 3 arrays (for strings, numbers, and
prototypes).
Diffstat (limited to 'lgc.c')
-rw-r--r-- | lgc.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lgc.c,v 1.38 1999/12/23 18:19:57 roberto Exp roberto $ | 2 | ** $Id: lgc.c,v 1.39 1999/12/27 17:33:22 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 | */ |
@@ -33,8 +33,10 @@ static void protomark (lua_State *L, TProtoFunc *f) { | |||
33 | int i; | 33 | int i; |
34 | f->marked = 1; | 34 | f->marked = 1; |
35 | strmark(L, f->source); | 35 | strmark(L, f->source); |
36 | for (i=f->nconsts-1; i>=0; i--) | 36 | for (i=f->nstrcnst-1; i>=0; i--) |
37 | markobject(L, &f->consts[i]); | 37 | strmark(L, f->strcnst[i]); |
38 | for (i=f->nprotocnst-1; i>=0; i--) | ||
39 | protomark(L, f->protocnst[i]); | ||
38 | } | 40 | } |
39 | } | 41 | } |
40 | 42 | ||