aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-02-15 11:12:01 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2014-02-15 11:12:01 -0200
commitffa96d988d60f31591014fe417c27e44fc3116d1 (patch)
tree8048f52acbc6bbda2733849dfb14b0b57e0ff416 /lgc.c
parent6a24bd17a8203394405005c1d63d08f0c7c25a27 (diff)
downloadlua-ffa96d988d60f31591014fe417c27e44fc3116d1.tar.gz
lua-ffa96d988d60f31591014fe417c27e44fc3116d1.tar.bz2
lua-ffa96d988d60f31591014fe417c27e44fc3116d1.zip
field 'op' renamed to 'open'
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lgc.c b/lgc.c
index 5c365e32..d51c4f5f 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.173 2014/02/13 17:25:20 roberto Exp roberto $ 2** $Id: lgc.c,v 2.174 2014/02/14 16:43: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*/
@@ -296,10 +296,10 @@ static void remarkupvals (global_State *g) {
296 lua_assert(!isblack(thread)); /* threads are never black */ 296 lua_assert(!isblack(thread)); /* threads are never black */
297 if (!isgray(thread)) { /* dead thread? */ 297 if (!isgray(thread)) { /* dead thread? */
298 UpVal *uv = gco2th(thread)->openupval; 298 UpVal *uv = gco2th(thread)->openupval;
299 for (; uv != NULL; uv = uv->u.op.next) { 299 for (; uv != NULL; uv = uv->u.open.next) {
300 if (uv->u.op.touched) { 300 if (uv->u.open.touched) {
301 markvalue(g, uv->v); /* remark upvalue's value */ 301 markvalue(g, uv->v); /* remark upvalue's value */
302 uv->u.op.touched = 0; 302 uv->u.open.touched = 0;
303 } 303 }
304 } 304 }
305 } 305 }
@@ -466,7 +466,7 @@ static lu_mem traverseLclosure (global_State *g, LClosure *cl) {
466 UpVal *uv = cl->upvals[i]; 466 UpVal *uv = cl->upvals[i];
467 if (uv != NULL) { 467 if (uv != NULL) {
468 if (upisopen(uv)) 468 if (upisopen(uv))
469 uv->u.op.touched = 1; /* can be marked in 'remarkupvals' */ 469 uv->u.open.touched = 1; /* can be marked in 'remarkupvals' */
470 else 470 else
471 markvalue(g, uv->v); 471 markvalue(g, uv->v);
472 } 472 }