diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-03-16 18:10:18 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-03-16 18:10:18 -0300 |
commit | 75250a237cb620ef44b344c07398b8a27bdcddc2 (patch) | |
tree | 45ef545008a6a6a9bd0fcc1eb1f732194d7b0315 | |
parent | 437a49be5eb312b97645a3c342ab90746c2674c4 (diff) | |
download | lua-75250a237cb620ef44b344c07398b8a27bdcddc2.tar.gz lua-75250a237cb620ef44b344c07398b8a27bdcddc2.tar.bz2 lua-75250a237cb620ef44b344c07398b8a27bdcddc2.zip |
typos in comments
-rw-r--r-- | lapi.c | 4 | ||||
-rw-r--r-- | lgc.c | 4 | ||||
-rw-r--r-- | llex.c | 4 | ||||
-rw-r--r-- | ltests.c | 4 | ||||
-rw-r--r-- | luaconf.h | 6 | ||||
-rw-r--r-- | lvm.c | 4 |
6 files changed, 13 insertions, 13 deletions
@@ -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 | ||
@@ -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 | */ |
929 | static int entersweep (lua_State *L) { | 929 | static int entersweep (lua_State *L) { |
930 | global_State *g = G(L); | 930 | global_State *g = G(L); |
@@ -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"); |
@@ -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 | } |
@@ -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 |
@@ -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 | } |