lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 2f4d429071ef6c1fd372bf0bbdf48b09eb5741a9
parent 27f7bd2e8301213d1b84eecad5c3e5cee35b24eb
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Fri,  3 Oct 2014 09:54:32 -0300

details (comments)

Diffstat:
Mlgc.c | 8++++----
Mliolib.c | 4++--
2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/lgc.c b/lgc.c @@ -1,5 +1,5 @@ /* -** $Id: lgc.c,v 2.194 2014/09/03 16:54:41 roberto Exp roberto $ +** $Id: lgc.c,v 2.195 2014/09/04 18:15:29 roberto Exp roberto $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -852,7 +852,7 @@ static GCObject **findlast (GCObject **p) { /* ** move all unreachable objects (or 'all' objects) that need -** finalization from list 'p' to list 'tobefnz' (to be finalized) +** finalization from list 'finobj' to list 'tobefnz' (to be finalized) */ static void separatetobefnz (global_State *g, int all) { GCObject *curr; @@ -863,7 +863,7 @@ static void separatetobefnz (global_State *g, int all) { if (!(iswhite(curr) || all)) /* not being collected? */ p = &curr->next; /* don't bother with it */ else { - *p = curr->next; /* remove 'curr' from "fin" list */ + *p = curr->next; /* remove 'curr' from 'finobj' list */ curr->next = *lastnext; /* link at the end of 'tobefnz' list */ *lastnext = curr; lastnext = &curr->next; @@ -891,7 +891,7 @@ void luaC_checkfinalizer (lua_State *L, GCObject *o, Table *mt) { /* search for pointer pointing to 'o' */ for (p = &g->allgc; *p != o; p = &(*p)->next) { /* empty */ } *p = o->next; /* remove 'o' from 'allgc' list */ - o->next = g->finobj; /* link it in "fin" list */ + o->next = g->finobj; /* link it in 'finobj' list */ g->finobj = o; l_setbit(o->marked, FINALIZEDBIT); /* mark it as such */ } diff --git a/liolib.c b/liolib.c @@ -1,5 +1,5 @@ /* -** $Id: liolib.c,v 2.129 2014/09/26 14:09:21 roberto Exp roberto $ +** $Id: liolib.c,v 2.130 2014/10/01 16:05:06 roberto Exp roberto $ ** Standard I/O (and system) library ** See Copyright Notice in lua.h */ @@ -195,7 +195,7 @@ static LStream *newprefile (lua_State *L) { /* ** Calls the 'close' function from a file handle. The 'volatile' avoids -** a bug in some verisions of the Clang compiler (e.g., clang 3.0 for +** a bug in some versions of the Clang compiler (e.g., clang 3.0 for ** 32 bits). */ static int aux_close (lua_State *L) {