From 75250a237cb620ef44b344c07398b8a27bdcddc2 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sat, 16 Mar 2013 18:10:18 -0300 Subject: typos in comments --- lapi.c | 4 ++-- lgc.c | 4 ++-- llex.c | 4 ++-- ltests.c | 4 ++-- luaconf.h | 6 +++--- lvm.c | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lapi.c b/lapi.c index c4ad8461..c870049b 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.169 2012/12/05 19:09:23 roberto Exp roberto $ +** $Id: lapi.c,v 2.170 2012/12/05 19:49:55 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -1106,7 +1106,7 @@ LUA_API int lua_error (lua_State *L) { lua_lock(L); api_checknelems(L, 1); luaG_errormsg(L); - /* code unreacheable; will unlock when control actually leaves the kernel */ + /* code unreachable; will unlock when control actually leaves the kernel */ return 0; /* to avoid warnings */ } diff --git a/lgc.c b/lgc.c index 2f52a93f..64df6c14 100644 --- a/lgc.c +++ b/lgc.c @@ -1,5 +1,5 @@ /* -** $Id: lgc.c,v 2.138 2012/10/19 19:00:33 roberto Exp roberto $ +** $Id: lgc.c,v 2.139 2013/03/15 18:33:36 roberto Exp roberto $ ** Garbage Collector ** See Copyright Notice in lua.h */ @@ -924,7 +924,7 @@ static void setpause (global_State *g, l_mem estimate) { ** object inside the list (instead of to the header), so that the real ** sweep do not need to skip objects created between "now" and the start ** of the real sweep. -** Returns how many objects it sweeped. +** Returns how many objects it swept. */ static int entersweep (lua_State *L) { global_State *g = G(L); diff --git a/llex.c b/llex.c index 6bc42fe7..3423f86f 100644 --- a/llex.c +++ b/llex.c @@ -1,5 +1,5 @@ /* -** $Id: llex.c,v 2.61 2012/01/23 23:05:51 roberto Exp roberto $ +** $Id: llex.c,v 2.62 2012/12/05 19:57:00 roberto Exp roberto $ ** Lexical Analyzer ** See Copyright Notice in lua.h */ @@ -313,7 +313,7 @@ static int readhexaesc (LexState *ls) { int c[3], i; /* keep input for error message */ int r = 0; /* result accumulator */ c[0] = 'x'; /* for error message */ - for (i = 1; i < 3; i++) { /* read two hexa digits */ + for (i = 1; i < 3; i++) { /* read two hexadecimal digits */ c[i] = next(ls); if (!lisxdigit(c[i])) escerror(ls, c, i + 1, "hexadecimal digit expected"); diff --git a/ltests.c b/ltests.c index 17833ec5..70409f2e 100644 --- a/ltests.c +++ b/ltests.c @@ -1,5 +1,5 @@ /* -** $Id: ltests.c,v 2.133 2012/08/16 17:34:28 roberto Exp roberto $ +** $Id: ltests.c,v 2.134 2012/10/03 12:36:46 roberto Exp roberto $ ** Internal Module for Debugging of the Lua Implementation ** See Copyright Notice in lua.h */ @@ -444,7 +444,7 @@ int lua_checkmemory (lua_State *L) { maybedead = 0; for (o = g->allgc; o != NULL; o = gch(o)->next) { if (g->sweepgc && o == *g->sweepgc) - maybedead = 1; /* part of the list not yet sweeped */ + maybedead = 1; /* part of the list not yet swept */ checkobject(g, o, maybedead); lua_assert(!testbit(o->gch.marked, SEPARATED)); } diff --git a/luaconf.h b/luaconf.h index ebe038ce..c7b72b92 100644 --- a/luaconf.h +++ b/luaconf.h @@ -1,5 +1,5 @@ /* -** $Id: luaconf.h,v 1.174 2012/10/01 14:14:45 roberto Exp roberto $ +** $Id: luaconf.h,v 1.175 2013/01/29 16:00:40 roberto Exp roberto $ ** Configuration file for Lua ** See Copyright Notice in lua.h */ @@ -44,7 +44,7 @@ #define LUA_USE_POSIX #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ #define LUA_USE_READLINE /* needs some extra libraries */ -#define LUA_USE_STRTODHEX /* assume 'strtod' handles hexa formats */ +#define LUA_USE_STRTODHEX /* assume 'strtod' handles hex formats */ #define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ #define LUA_USE_LONGLONG /* assume support for long long */ #endif @@ -53,7 +53,7 @@ #define LUA_USE_POSIX #define LUA_USE_DLOPEN /* does not need -ldl */ #define LUA_USE_READLINE /* needs an extra library: -lreadline */ -#define LUA_USE_STRTODHEX /* assume 'strtod' handles hexa formats */ +#define LUA_USE_STRTODHEX /* assume 'strtod' handles hex formats */ #define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ #define LUA_USE_LONGLONG /* assume support for long long */ #endif diff --git a/lvm.c b/lvm.c index db8c93ba..04554a2d 100644 --- a/lvm.c +++ b/lvm.c @@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 2.153 2012/08/14 18:12:34 roberto Exp roberto $ +** $Id: lvm.c,v 2.154 2012/08/16 17:34:28 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -83,7 +83,7 @@ static void traceexec (lua_State *L) { if (counthook) L->hookcount = 1; /* undo decrement to zero */ ci->u.l.savedpc--; /* undo increment (resume will increment it again) */ - ci->callstatus |= CIST_HOOKYIELD; /* mark that it yieled */ + ci->callstatus |= CIST_HOOKYIELD; /* mark that it yielded */ ci->func = L->top - 1; /* protect stack below results */ luaD_throw(L, LUA_YIELD); } -- cgit v1.2.3-55-g6feb