lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 921b1723e2fddde0382143b28b5be3b7128204b8
parent fa198197a0202bd3a7b68d228cd1c2fd88166ff7
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Tue, 11 Nov 2003 14:33:55 -0200

comments

Diffstat:
Mlbaselib.c | 6+++---
Mldo.c | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/lbaselib.c b/lbaselib.c @@ -1,5 +1,5 @@ /* -** $Id: lbaselib.c,v 1.136 2003/10/23 18:06:22 roberto Exp roberto $ +** $Id: lbaselib.c,v 1.137 2003/11/05 11:59:14 roberto Exp roberto $ ** Basic library ** See Copyright Notice in lua.h */ @@ -484,14 +484,14 @@ static void pushcomposename (lua_State *L) { const char *wild; int n = 1; while ((wild = strchr(path, LUA_PATH_MARK)) != NULL) { - /* is there stack space for prefix, name, and eventual last sufix? */ + /* is there stack space for prefix, name, and eventual last suffix? */ luaL_checkstack(L, 3, "too many marks in a path component"); lua_pushlstring(L, path, wild - path); /* push prefix */ lua_pushvalue(L, 1); /* push package name (in place of MARK) */ path = wild + 1; /* continue after MARK */ n += 2; } - lua_pushstring(L, path); /* push last sufix (`n' already includes this) */ + lua_pushstring(L, path); /* push last suffix (`n' already includes this) */ lua_concat(L, n); } diff --git a/ldo.c b/ldo.c @@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 1.227 2003/10/20 12:24:26 roberto Exp roberto $ +** $Id: ldo.c,v 1.228 2003/10/20 17:42:41 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -334,7 +334,7 @@ static void resume (lua_State *L, void *ud) { lua_assert(ci == L->base_ci && nargs < L->top - L->base); luaD_precall(L, L->top - (nargs + 1)); /* start coroutine */ } - else { /* resumming from previous yield */ + else { /* resuming from previous yield */ if (!f_isLua(ci)) { /* `common' yield? */ /* finish interrupted execution of `OP_CALL' */ int nresults;