diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-30 09:33:44 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-05-30 09:33:44 -0300 |
commit | b77a90681ed28ba11384ed7ad7c93ef2a1c9b7b7 (patch) | |
tree | a9943438fbd7ac6db30ed434bb6b8d533fcd0e58 | |
parent | 6efffb9acd65020687627866afe877f0f5071e8e (diff) | |
download | lua-b77a90681ed28ba11384ed7ad7c93ef2a1c9b7b7.tar.gz lua-b77a90681ed28ba11384ed7ad7c93ef2a1c9b7b7.tar.bz2 lua-b77a90681ed28ba11384ed7ad7c93ef2a1c9b7b7.zip |
typos in comments
-rw-r--r-- | loadlib.c | 6 | ||||
-rw-r--r-- | lstate.c | 4 |
2 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: loadlib.c,v 1.109 2012/04/11 16:35:32 roberto Exp roberto $ | 2 | ** $Id: loadlib.c,v 1.110 2012/04/26 19:38:52 roberto Exp roberto $ |
3 | ** Dynamic library loader for Lua | 3 | ** Dynamic library loader for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | ** | 5 | ** |
@@ -482,9 +482,9 @@ static void findloader (lua_State *L, const char *name) { | |||
482 | lua_getfield(L, lua_upvalueindex(1), "searchers"); /* will be at index 3 */ | 482 | lua_getfield(L, lua_upvalueindex(1), "searchers"); /* will be at index 3 */ |
483 | if (!lua_istable(L, 3)) | 483 | if (!lua_istable(L, 3)) |
484 | luaL_error(L, LUA_QL("package.searchers") " must be a table"); | 484 | luaL_error(L, LUA_QL("package.searchers") " must be a table"); |
485 | /* iterate over available seachers to find a loader */ | 485 | /* iterate over available searchers to find a loader */ |
486 | for (i = 1; ; i++) { | 486 | for (i = 1; ; i++) { |
487 | lua_rawgeti(L, 3, i); /* get a seacher */ | 487 | lua_rawgeti(L, 3, i); /* get a searcher */ |
488 | if (lua_isnil(L, -1)) { /* no more searchers? */ | 488 | if (lua_isnil(L, -1)) { /* no more searchers? */ |
489 | lua_pop(L, 1); /* remove nil */ | 489 | lua_pop(L, 1); /* remove nil */ |
490 | luaL_pushresult(&msg); /* create error message */ | 490 | luaL_pushresult(&msg); /* create error message */ |
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.96 2012/05/22 17:50:39 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.97 2012/05/23 15:37:09 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -79,7 +79,7 @@ typedef struct LG { | |||
79 | 79 | ||
80 | /* | 80 | /* |
81 | ** Compute an initial seed as random as possible. In ANSI, rely on | 81 | ** Compute an initial seed as random as possible. In ANSI, rely on |
82 | ** Address Space Layour Randomization (if present) to increase | 82 | ** Address Space Layout Randomization (if present) to increase |
83 | ** randomness.. | 83 | ** randomness.. |
84 | */ | 84 | */ |
85 | #define addbuff(b,p,e) \ | 85 | #define addbuff(b,p,e) \ |