From 4542fb9f78ff72c6bc72be76385f9710ffee867a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 30 Oct 2014 16:53:28 -0200 Subject: comments (a few extra quotes around identifiers) --- lcode.c | 4 ++-- lgc.c | 8 ++++---- llex.c | 4 ++-- lstate.h | 10 +++++----- lstrlib.c | 4 ++-- ltests.c | 4 ++-- 6 files changed, 17 insertions(+), 17 deletions(-) diff --git a/lcode.c b/lcode.c index 00fd1646..2e7af2f7 100644 --- a/lcode.c +++ b/lcode.c @@ -1,5 +1,5 @@ /* -** $Id: lcode.c,v 2.92 2014/10/27 16:29:58 roberto Exp roberto $ +** $Id: lcode.c,v 2.93 2014/10/28 17:27:41 roberto Exp roberto $ ** Code generator for Lua ** See Copyright Notice in lua.h */ @@ -589,7 +589,7 @@ int luaK_exp2RK (FuncState *fs, expdesc *e) { } case VK: { vk: - if (e->u.info <= MAXINDEXRK) /* constant fits in argC? */ + if (e->u.info <= MAXINDEXRK) /* constant fits in 'argC'? */ return RKASK(e->u.info); else break; } diff --git a/lgc.c b/lgc.c index f8af048b..30779328 100644 --- a/lgc.c +++ b/lgc.c @@ -1,5 +1,5 @@ /* -** $Id: lgc.c,v 2.197 2014/10/25 11:50:46 roberto Exp roberto $ +** $Id: lgc.c,v 2.198 2014/10/29 15:02:53 roberto Exp roberto $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -975,7 +975,7 @@ static l_mem atomic (lua_State *L) { /* remark occasional upvalues of (maybe) dead threads */ remarkupvals(g); propagateall(g); /* propagate changes */ - work = g->GCmemtrav; /* stop counting (do not recount gray-agains) */ + work = g->GCmemtrav; /* stop counting (do not recount 'grayagain') */ g->gray = grayagain; propagateall(g); /* traverse 'grayagain' list */ g->GCmemtrav = 0; /* restart counting */ @@ -995,7 +995,7 @@ static l_mem atomic (lua_State *L) { /* at this point, all resurrected objects are marked. */ /* remove dead objects from weak tables */ clearkeys(g, g->ephemeron, NULL); /* clear keys from all ephemeron tables */ - clearkeys(g, g->allweak, NULL); /* clear keys from all allweak tables */ + clearkeys(g, g->allweak, NULL); /* clear keys from all 'allweak' tables */ /* clear values from resurrected weak tables */ clearvalues(g, g->weak, origweak); clearvalues(g, g->allweak, origall); @@ -1125,7 +1125,7 @@ void luaC_step (lua_State *L) { /* -** Performs a full GC cycle; if "isemergency", set a flag to avoid +** Performs a full GC cycle; if 'isemergency', set a flag to avoid ** some operations which could change the interpreter state in some ** unexpected ways (running finalizers and shrinking some structures). ** Before running the collection, check 'keepinvariant'; if it is true, diff --git a/llex.c b/llex.c index 16aac180..e737c169 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 2.85 2014/10/25 11:50:46 roberto Exp roberto $ +** $Id: llex.c,v 2.86 2014/10/26 15:45:41 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -438,7 +438,7 @@ static void read_string (LexState *ls, int del, SemInfo *seminfo) { } default: { esccheck(ls, lisdigit(ls->current), "invalid escape sequence"); - c = readdecesc(ls); /* digital escape \ddd */ + c = readdecesc(ls); /* digital escape '\ddd' */ goto only_save; } } diff --git a/lstate.h b/lstate.h index 37bf7739..fb2e91b4 100644 --- a/lstate.h +++ b/lstate.h @@ -1,5 +1,5 @@ /* -** $Id: lstate.h,v 2.117 2014/10/07 18:29:13 roberto Exp roberto $ +** $Id: lstate.h,v 2.118 2014/10/25 11:50:46 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -21,10 +21,10 @@ ** belong to one (and only one) of these lists, using field 'next' of ** the 'CommonHeader' for the link: ** -** allgc: all objects not marked for finalization; -** finobj: all objects marked for finalization; -** tobefnz: all objects ready to be finalized; -** fixedgc: all objects that are not to be collected (currently +** 'allgc': all objects not marked for finalization; +** 'finobj': all objects marked for finalization; +** 'tobefnz': all objects ready to be finalized; +** 'fixedgc': all objects that are not to be collected (currently ** only small strings, such as reserved words). */ diff --git a/lstrlib.c b/lstrlib.c index 18e76304..387dcd70 100644 --- a/lstrlib.c +++ b/lstrlib.c @@ -1,5 +1,5 @@ /* -** $Id: lstrlib.c,v 1.208 2014/10/27 13:30:24 roberto Exp roberto $ +** $Id: lstrlib.c,v 1.209 2014/10/28 18:23:31 roberto Exp roberto $ ** Standard library for string operations and pattern-matching ** See Copyright Notice in lua.h */ @@ -1101,7 +1101,7 @@ static KOption getoption (Header *h, const char **fmt, int *size) { ** alignment requirements. ** Local variable 'size' gets the size to be aligned. (Kpadal option ** always gets its full alignment, other options are limited by -** the maximum alignment ('maxalign). Kchar option needs no aligment +** the maximum alignment ('maxalign'). Kchar option needs no alignment ** despite its size. */ static KOption getdetails (Header *h, size_t totalsize, diff --git a/ltests.c b/ltests.c index 8db877dd..68f0c4a9 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.189 2014/10/25 11:50:46 roberto Exp roberto $ +** $Id: ltests.c,v 2.190 2014/10/27 17:00:02 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -1369,7 +1369,7 @@ static void Chook (lua_State *L, lua_Debug *ar) { /* -** sets registry.C_HOOK[L] = scpt and sets Chook as a hook +** sets 'registry.C_HOOK[L] = scpt' and sets 'Chook' as a hook */ static void sethookaux (lua_State *L, int mask, int count, const char *scpt) { if (*scpt == '\0') { /* no script? */ -- cgit v1.2.3-55-g6feb