typos in comments

This commit is contained in:
Roberto Ierusalimschy 2013-03-16 18:10:18 -03:00
parent 437a49be5e
commit 75250a237c
6 changed files with 13 additions and 13 deletions

4
lapi.c
View File

@ -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 */
}

4
lgc.c
View File

@ -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);

4
llex.c
View File

@ -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");

View File

@ -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));
}

View File

@ -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

4
lvm.c
View File

@ -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);
}