diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-03-07 13:26:01 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-03-07 13:26:01 -0300 |
| commit | 6480e735998a1dc738d8babc86af154babb3843c (patch) | |
| tree | 42de57db4962a90aa9376ab869a6f1dab3326e75 | |
| parent | 4a1612ff9b968fe446bc4dd20460bfaccabeb3b3 (diff) | |
| download | lua-6480e735998a1dc738d8babc86af154babb3843c.tar.gz lua-6480e735998a1dc738d8babc86af154babb3843c.tar.bz2 lua-6480e735998a1dc738d8babc86af154babb3843c.zip | |
details (avoid using non-C89 '//' comment)
| -rw-r--r-- | ldo.c | 3 | ||||
| -rw-r--r-- | ljumptab.h | 11 |
2 files changed, 7 insertions, 7 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldo.c,v 2.197 2018/02/26 14:16:05 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 2.198 2018/03/05 14:13:55 roberto Exp roberto $ |
| 3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -687,7 +687,6 @@ LUA_API int lua_resume (lua_State *L, lua_State *from, int nargs, | |||
| 687 | : cast_int(L->top - (L->ci->func + 1)); | 687 | : cast_int(L->top - (L->ci->func + 1)); |
| 688 | L->nny = oldnny; /* restore 'nny' */ | 688 | L->nny = oldnny; /* restore 'nny' */ |
| 689 | L->nCcalls--; | 689 | L->nCcalls--; |
| 690 | // lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0)); | ||
| 691 | lua_unlock(L); | 690 | lua_unlock(L); |
| 692 | return status; | 691 | return status; |
| 693 | } | 692 | } |
| @@ -11,11 +11,12 @@ | |||
| 11 | 11 | ||
| 12 | static void *disptab[] = { | 12 | static void *disptab[] = { |
| 13 | 13 | ||
| 14 | // you can update the following list with this command: | 14 | #if 0 |
| 15 | // | 15 | ** you can update the following list with this command: |
| 16 | // sed -n '/^OP_/\!d; s/OP_/\&\&L_OP_/ ; s/,.*/,/ ; s/\/.*// ; p' lopcodes.h | 16 | ** |
| 17 | // | 17 | ** sed -n '/^OP_/\!d; s/OP_/\&\&L_OP_/ ; s/,.*/,/ ; s/\/.*// ; p' lopcodes.h |
| 18 | // | 18 | ** |
| 19 | #endif | ||
| 19 | 20 | ||
| 20 | &&L_OP_MOVE, | 21 | &&L_OP_MOVE, |
| 21 | &&L_OP_LOADI, | 22 | &&L_OP_LOADI, |
