mirror of
https://github.com/lua/lua.git
synced 2024-11-27 12:13:38 +08:00
comments
This commit is contained in:
parent
fa198197a0
commit
921b1723e2
@ -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);
|
||||
}
|
||||
|
||||
|
4
ldo.c
4
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;
|
||||
|
Loading…
Reference in New Issue
Block a user