aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-03-16 18:10:18 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-03-16 18:10:18 -0300
commit75250a237cb620ef44b344c07398b8a27bdcddc2 (patch)
tree45ef545008a6a6a9bd0fcc1eb1f732194d7b0315
parent437a49be5eb312b97645a3c342ab90746c2674c4 (diff)
downloadlua-75250a237cb620ef44b344c07398b8a27bdcddc2.tar.gz
lua-75250a237cb620ef44b344c07398b8a27bdcddc2.tar.bz2
lua-75250a237cb620ef44b344c07398b8a27bdcddc2.zip
typos in comments
-rw-r--r--lapi.c4
-rw-r--r--lgc.c4
-rw-r--r--llex.c4
-rw-r--r--ltests.c4
-rw-r--r--luaconf.h6
-rw-r--r--lvm.c4
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 @@
1/* 1/*
2** $Id: lapi.c,v 2.169 2012/12/05 19:09:23 roberto Exp roberto $ 2** $Id: lapi.c,v 2.170 2012/12/05 19:49:55 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1106,7 +1106,7 @@ LUA_API int lua_error (lua_State *L) {
1106 lua_lock(L); 1106 lua_lock(L);
1107 api_checknelems(L, 1); 1107 api_checknelems(L, 1);
1108 luaG_errormsg(L); 1108 luaG_errormsg(L);
1109 /* code unreacheable; will unlock when control actually leaves the kernel */ 1109 /* code unreachable; will unlock when control actually leaves the kernel */
1110 return 0; /* to avoid warnings */ 1110 return 0; /* to avoid warnings */
1111} 1111}
1112 1112
diff --git a/lgc.c b/lgc.c
index 2f52a93f..64df6c14 100644
--- a/lgc.c
+++ b/lgc.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lgc.c,v 2.138 2012/10/19 19:00:33 roberto Exp roberto $ 2** $Id: lgc.c,v 2.139 2013/03/15 18:33:36 roberto Exp roberto $
3** Garbage Collector 3** Garbage Collector
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -924,7 +924,7 @@ static void setpause (global_State *g, l_mem estimate) {
924** object inside the list (instead of to the header), so that the real 924** object inside the list (instead of to the header), so that the real
925** sweep do not need to skip objects created between "now" and the start 925** sweep do not need to skip objects created between "now" and the start
926** of the real sweep. 926** of the real sweep.
927** Returns how many objects it sweeped. 927** Returns how many objects it swept.
928*/ 928*/
929static int entersweep (lua_State *L) { 929static int entersweep (lua_State *L) {
930 global_State *g = G(L); 930 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 @@
1/* 1/*
2** $Id: llex.c,v 2.61 2012/01/23 23:05:51 roberto Exp roberto $ 2** $Id: llex.c,v 2.62 2012/12/05 19:57:00 roberto Exp roberto $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -313,7 +313,7 @@ static int readhexaesc (LexState *ls) {
313 int c[3], i; /* keep input for error message */ 313 int c[3], i; /* keep input for error message */
314 int r = 0; /* result accumulator */ 314 int r = 0; /* result accumulator */
315 c[0] = 'x'; /* for error message */ 315 c[0] = 'x'; /* for error message */
316 for (i = 1; i < 3; i++) { /* read two hexa digits */ 316 for (i = 1; i < 3; i++) { /* read two hexadecimal digits */
317 c[i] = next(ls); 317 c[i] = next(ls);
318 if (!lisxdigit(c[i])) 318 if (!lisxdigit(c[i]))
319 escerror(ls, c, i + 1, "hexadecimal digit expected"); 319 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 @@
1/* 1/*
2** $Id: ltests.c,v 2.133 2012/08/16 17:34:28 roberto Exp roberto $ 2** $Id: ltests.c,v 2.134 2012/10/03 12:36:46 roberto Exp roberto $
3** Internal Module for Debugging of the Lua Implementation 3** Internal Module for Debugging of the Lua Implementation
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -444,7 +444,7 @@ int lua_checkmemory (lua_State *L) {
444 maybedead = 0; 444 maybedead = 0;
445 for (o = g->allgc; o != NULL; o = gch(o)->next) { 445 for (o = g->allgc; o != NULL; o = gch(o)->next) {
446 if (g->sweepgc && o == *g->sweepgc) 446 if (g->sweepgc && o == *g->sweepgc)
447 maybedead = 1; /* part of the list not yet sweeped */ 447 maybedead = 1; /* part of the list not yet swept */
448 checkobject(g, o, maybedead); 448 checkobject(g, o, maybedead);
449 lua_assert(!testbit(o->gch.marked, SEPARATED)); 449 lua_assert(!testbit(o->gch.marked, SEPARATED));
450 } 450 }
diff --git a/luaconf.h b/luaconf.h
index ebe038ce..c7b72b92 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: luaconf.h,v 1.174 2012/10/01 14:14:45 roberto Exp roberto $ 2** $Id: luaconf.h,v 1.175 2013/01/29 16:00:40 roberto Exp roberto $
3** Configuration file for Lua 3** Configuration file for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -44,7 +44,7 @@
44#define LUA_USE_POSIX 44#define LUA_USE_POSIX
45#define LUA_USE_DLOPEN /* needs an extra library: -ldl */ 45#define LUA_USE_DLOPEN /* needs an extra library: -ldl */
46#define LUA_USE_READLINE /* needs some extra libraries */ 46#define LUA_USE_READLINE /* needs some extra libraries */
47#define LUA_USE_STRTODHEX /* assume 'strtod' handles hexa formats */ 47#define LUA_USE_STRTODHEX /* assume 'strtod' handles hex formats */
48#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ 48#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
49#define LUA_USE_LONGLONG /* assume support for long long */ 49#define LUA_USE_LONGLONG /* assume support for long long */
50#endif 50#endif
@@ -53,7 +53,7 @@
53#define LUA_USE_POSIX 53#define LUA_USE_POSIX
54#define LUA_USE_DLOPEN /* does not need -ldl */ 54#define LUA_USE_DLOPEN /* does not need -ldl */
55#define LUA_USE_READLINE /* needs an extra library: -lreadline */ 55#define LUA_USE_READLINE /* needs an extra library: -lreadline */
56#define LUA_USE_STRTODHEX /* assume 'strtod' handles hexa formats */ 56#define LUA_USE_STRTODHEX /* assume 'strtod' handles hex formats */
57#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */ 57#define LUA_USE_AFORMAT /* assume 'printf' handles 'aA' specifiers */
58#define LUA_USE_LONGLONG /* assume support for long long */ 58#define LUA_USE_LONGLONG /* assume support for long long */
59#endif 59#endif
diff --git a/lvm.c b/lvm.c
index db8c93ba..04554a2d 100644
--- a/lvm.c
+++ b/lvm.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lvm.c,v 2.153 2012/08/14 18:12:34 roberto Exp roberto $ 2** $Id: lvm.c,v 2.154 2012/08/16 17:34:28 roberto Exp roberto $
3** Lua virtual machine 3** Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -83,7 +83,7 @@ static void traceexec (lua_State *L) {
83 if (counthook) 83 if (counthook)
84 L->hookcount = 1; /* undo decrement to zero */ 84 L->hookcount = 1; /* undo decrement to zero */
85 ci->u.l.savedpc--; /* undo increment (resume will increment it again) */ 85 ci->u.l.savedpc--; /* undo increment (resume will increment it again) */
86 ci->callstatus |= CIST_HOOKYIELD; /* mark that it yieled */ 86 ci->callstatus |= CIST_HOOKYIELD; /* mark that it yielded */
87 ci->func = L->top - 1; /* protect stack below results */ 87 ci->func = L->top - 1; /* protect stack below results */
88 luaD_throw(L, LUA_YIELD); 88 luaD_throw(L, LUA_YIELD);
89 } 89 }