lua

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

commit 6480e735998a1dc738d8babc86af154babb3843c
parent 4a1612ff9b968fe446bc4dd20460bfaccabeb3b3
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Wed,  7 Mar 2018 13:25:34 -0300

details (avoid using non-C89 '//' comment)

Diffstat:
Mldo.c | 3+--
Mljumptab.h | 11++++++-----
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ldo.c b/ldo.c @@ -1,5 +1,5 @@ /* -** $Id: ldo.c,v 2.197 2018/02/26 14:16:05 roberto Exp roberto $ +** $Id: ldo.c,v 2.198 2018/03/05 14:13:55 roberto Exp roberto $ ** Stack and Call structure of Lua ** See Copyright Notice in lua.h */ @@ -687,7 +687,6 @@ LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs, : cast_int(L->top - (L->ci->func + 1)); L->nny = oldnny; /* restore 'nny' */ L->nCcalls--; - // lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0)); lua_unlock(L); return status; } diff --git a/ljumptab.h b/ljumptab.h @@ -11,11 +11,12 @@ static void *disptab[] = { -// you can update the following list with this command: -// -// sed -n '/^OP_/\!d; s/OP_/\&\&L_OP_/ ; s/,.*/,/ ; s/\/.*// ; p' lopcodes.h -// -// +#if 0 +** you can update the following list with this command: +** +** sed -n '/^OP_/\!d; s/OP_/\&\&L_OP_/ ; s/,.*/,/ ; s/\/.*// ; p' lopcodes.h +** +#endif &&L_OP_MOVE, &&L_OP_LOADI,