瀏覽代碼

comment (FALLTHROUGH)

Roberto Ierusalimschy 9 年之前
父節點
當前提交
fbd8614bdb
共有 2 個文件被更改,包括 5 次插入5 次删除
  1. 2 2
      lcode.c
  2. 3 3
      lstrlib.c

+ 2 - 2
lcode.c

@@ -1,5 +1,5 @@
 /*
-** $Id: lcode.c,v 2.107 2016/01/04 13:40:57 roberto Exp roberto $
+** $Id: lcode.c,v 2.108 2016/01/05 16:22:37 roberto Exp roberto $
 ** Code generator for Lua
 ** See Copyright Notice in lua.h
 */
@@ -1065,7 +1065,7 @@ void luaK_prefix (FuncState *fs, UnOpr op, expdesc *e, int line) {
     case OPR_MINUS: case OPR_BNOT:
       if (constfolding(fs, op + LUA_OPUNM, e, &ef))
         break;
-      /* else go through */
+      /* FALLTHROUGH */
     case OPR_LEN:
       codeunexpval(fs, cast(OpCode, op + OP_UNM), e, line);
       break;

+ 3 - 3
lstrlib.c

@@ -1,5 +1,5 @@
 /*
-** $Id: lstrlib.c,v 1.247 2016/04/22 16:36:30 roberto Exp roberto $
+** $Id: lstrlib.c,v 1.248 2016/05/02 13:58:01 roberto Exp roberto $
 ** Standard library for string operations and pattern-matching
 ** See Copyright Notice in lua.h
 */
@@ -958,8 +958,8 @@ static void addliteral (lua_State *L, luaL_Buffer *b, int arg) {
         addliteralnum(L, b, lua_tonumber(L, arg));
         break;
       }
-      /* else integers; write in "native" format *//* FALLTHROUGH */
-    }
+      /* else integers; write in "native" format */
+    } /* FALLTHROUGH */
     case LUA_TNIL: case LUA_TBOOLEAN: {
       luaL_tolstring(L, arg, NULL);
       luaL_addvalue(b);