aboutsummaryrefslogtreecommitdiff
path: root/lref.c
diff options
context:
space:
mode:
Diffstat (limited to 'lref.c')
-rw-r--r--lref.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lref.c b/lref.c
index 879f25d7..2bfa773f 100644
--- a/lref.c
+++ b/lref.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lref.c,v 1.5 1999/12/23 18:19:57 roberto Exp roberto $ 2** $Id: lref.c,v 1.6 1999/12/27 17:33:22 roberto Exp roberto $
3** reference mechanism 3** reference mechanism
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -25,7 +25,7 @@ int lua_ref (lua_State *L, int lock) {
25 L->refFree = L->refArray[ref].st; 25 L->refFree = L->refArray[ref].st;
26 } 26 }
27 else { /* no more free places */ 27 else { /* no more free places */
28 luaM_growvector(L, L->refArray, L->refSize, 1, struct ref, refEM, MAX_INT); 28 luaM_growvector(L, L->refArray, L->refSize, 1, struct Ref, refEM, MAX_INT);
29 ref = L->refSize++; 29 ref = L->refSize++;
30 } 30 }
31 L->refArray[ref].o = *(L->top-1); 31 L->refArray[ref].o = *(L->top-1);
@@ -102,7 +102,7 @@ void luaR_invalidaterefs (lua_State *L) {
102 int n = L->refSize; 102 int n = L->refSize;
103 int i; 103 int i;
104 for (i=0; i<n; i++) { 104 for (i=0; i<n; i++) {
105 struct ref *r = &L->refArray[i]; 105 struct Ref *r = &L->refArray[i];
106 if (r->st == HOLD && !ismarked(&r->o)) 106 if (r->st == HOLD && !ismarked(&r->o))
107 r->st = COLLECTED; 107 r->st = COLLECTED;
108 LUA_ASSERT(L, (r->st == LOCK && ismarked(&r->o)) || 108 LUA_ASSERT(L, (r->st == LOCK && ismarked(&r->o)) ||