aboutsummaryrefslogtreecommitdiff
path: root/lgc.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-11 11:07:24 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-11 11:07:24 -0300
commita7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7 (patch)
treef452f26770539293979a3dbd752ee0b38b849123 /lgc.c
parentcedd2092ebe402e0c6d600969ec926496a8a9d22 (diff)
downloadlua-a7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7.tar.gz
lua-a7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7.tar.bz2
lua-a7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7.zip
avoid trailing white spaces
Diffstat (limited to 'lgc.c')
-rw-r--r--lgc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lgc.c b/lgc.c
index 93316741..7c1aea5f 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.38 2006/05/24 14:34:06 roberto Exp roberto $ 2** $Id: lgc.c,v 2.39 2006/07/11 15:53:29 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*/
@@ -310,7 +310,7 @@ static l_mem propagatemark (global_State *g) {
310 traverseproto(g, p); 310 traverseproto(g, p);
311 return sizeof(Proto) + sizeof(Instruction) * p->sizecode + 311 return sizeof(Proto) + sizeof(Instruction) * p->sizecode +
312 sizeof(Proto *) * p->sizep + 312 sizeof(Proto *) * p->sizep +
313 sizeof(TValue) * p->sizek + 313 sizeof(TValue) * p->sizek +
314 sizeof(int) * p->sizelineinfo + 314 sizeof(int) * p->sizelineinfo +
315 sizeof(LocVar) * p->sizelocvars + 315 sizeof(LocVar) * p->sizelocvars +
316 sizeof(TString *) * p->sizeupvalues; 316 sizeof(TString *) * p->sizeupvalues;
@@ -569,7 +569,7 @@ static void atomic (lua_State *L) {
569 569
570#define correctestimate(g,s) {lu_mem old = g->totalbytes; s; \ 570#define correctestimate(g,s) {lu_mem old = g->totalbytes; s; \
571 lua_assert(old >= g->totalbytes); g->estimate -= old - g->totalbytes;} 571 lua_assert(old >= g->totalbytes); g->estimate -= old - g->totalbytes;}
572 572
573 573
574static l_mem singlestep (lua_State *L) { 574static l_mem singlestep (lua_State *L) {
575 global_State *g = G(L); 575 global_State *g = G(L);
@@ -713,7 +713,7 @@ void luaC_linkupval (lua_State *L, UpVal *uv) {
713 GCObject *o = obj2gco(uv); 713 GCObject *o = obj2gco(uv);
714 o->gch.next = g->rootgc; /* link upvalue into `rootgc' list */ 714 o->gch.next = g->rootgc; /* link upvalue into `rootgc' list */
715 g->rootgc = o; 715 g->rootgc = o;
716 if (isgray(o)) { 716 if (isgray(o)) {
717 if (g->gcstate == GCSpropagate) { 717 if (g->gcstate == GCSpropagate) {
718 gray2black(o); /* closed upvalues need barrier */ 718 gray2black(o); /* closed upvalues need barrier */
719 luaC_barrier(L, uv, uv->v); 719 luaC_barrier(L, uv, uv->v);