Prechádzať zdrojové kódy

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

Roberto Ierusalimschy 7 rokov pred
rodič
commit
6480e73599
2 zmenil súbory, kde vykonal 7 pridanie a 7 odobranie
  1. 1 2
      ldo.c
  2. 6 5
      ljumptab.h

+ 1 - 2
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;
 }

+ 6 - 5
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,