Browse Source

typos in comments

Roberto Ierusalimschy 12 years ago
parent
commit
75250a237c
6 changed files with 13 additions and 13 deletions
  1. 2 2
      lapi.c
  2. 2 2
      lgc.c
  3. 2 2
      llex.c
  4. 2 2
      ltests.c
  5. 3 3
      luaconf.h
  6. 2 2
      lvm.c

+ 2 - 2
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
 ** Lua API
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -1106,7 +1106,7 @@ LUA_API int lua_error (lua_State *L) {
   lua_lock(L);
   lua_lock(L);
   api_checknelems(L, 1);
   api_checknelems(L, 1);
   luaG_errormsg(L);
   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 */
   return 0;  /* to avoid warnings */
 }
 }
 
 

+ 2 - 2
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
 ** Garbage Collector
 ** See Copyright Notice in lua.h
 ** 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
 ** 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
 ** sweep do not need to skip objects created between "now" and the start
 ** of the real sweep.
 ** of the real sweep.
-** Returns how many objects it sweeped.
+** Returns how many objects it swept.
 */
 */
 static int entersweep (lua_State *L) {
 static int entersweep (lua_State *L) {
   global_State *g = G(L);
   global_State *g = G(L);

+ 2 - 2
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
 ** Lexical Analyzer
 ** See Copyright Notice in lua.h
 ** 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 c[3], i;  /* keep input for error message */
   int r = 0;  /* result accumulator */
   int r = 0;  /* result accumulator */
   c[0] = 'x';  /* for error message */
   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);
     c[i] = next(ls);
     if (!lisxdigit(c[i]))
     if (!lisxdigit(c[i]))
       escerror(ls, c, i + 1, "hexadecimal digit expected");
       escerror(ls, c, i + 1, "hexadecimal digit expected");

+ 2 - 2
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
 ** Internal Module for Debugging of the Lua Implementation
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -444,7 +444,7 @@ int lua_checkmemory (lua_State *L) {
   maybedead = 0;
   maybedead = 0;
   for (o = g->allgc; o != NULL; o = gch(o)->next) {
   for (o = g->allgc; o != NULL; o = gch(o)->next) {
     if (g->sweepgc && o == *g->sweepgc)
     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);
     checkobject(g, o, maybedead);
     lua_assert(!testbit(o->gch.marked, SEPARATED));
     lua_assert(!testbit(o->gch.marked, SEPARATED));
   }
   }

+ 3 - 3
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
 ** Configuration file for Lua
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -44,7 +44,7 @@
 #define LUA_USE_POSIX
 #define LUA_USE_POSIX
 #define LUA_USE_DLOPEN		/* needs an extra library: -ldl */
 #define LUA_USE_DLOPEN		/* needs an extra library: -ldl */
 #define LUA_USE_READLINE	/* needs some extra libraries */
 #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_AFORMAT		/* assume 'printf' handles 'aA' specifiers */
 #define LUA_USE_LONGLONG	/* assume support for long long */
 #define LUA_USE_LONGLONG	/* assume support for long long */
 #endif
 #endif
@@ -53,7 +53,7 @@
 #define LUA_USE_POSIX
 #define LUA_USE_POSIX
 #define LUA_USE_DLOPEN		/* does not need -ldl */
 #define LUA_USE_DLOPEN		/* does not need -ldl */
 #define LUA_USE_READLINE	/* needs an extra library: -lreadline */
 #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_AFORMAT		/* assume 'printf' handles 'aA' specifiers */
 #define LUA_USE_LONGLONG	/* assume support for long long */
 #define LUA_USE_LONGLONG	/* assume support for long long */
 #endif
 #endif

+ 2 - 2
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
 ** Lua virtual machine
 ** See Copyright Notice in lua.h
 ** See Copyright Notice in lua.h
 */
 */
@@ -83,7 +83,7 @@ static void traceexec (lua_State *L) {
     if (counthook)
     if (counthook)
       L->hookcount = 1;  /* undo decrement to zero */
       L->hookcount = 1;  /* undo decrement to zero */
     ci->u.l.savedpc--;  /* undo increment (resume will increment it again) */
     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 */
     ci->func = L->top - 1;  /* protect stack below results */
     luaD_throw(L, LUA_YIELD);
     luaD_throw(L, LUA_YIELD);
   }
   }