replace fallthrough comment with macro

Follow-up of vim-patch:8.0.1215
This commit is contained in:
Jan Edmund Lazo
2018-09-20 23:57:06 -04:00
parent 6a329b0548
commit 300a7a4cf4
13 changed files with 61 additions and 60 deletions

View File

@@ -4356,7 +4356,7 @@ eval_index(
if (evaluate) {
return FAIL;
}
// fallthrough
FALLTHROUGH;
}
case VAR_STRING:
case VAR_NUMBER:
@@ -4755,7 +4755,7 @@ static int get_string_tv(char_u **arg, typval_T *rettv, int evaluate)
name += extra;
break;
}
// FALLTHROUGH
FALLTHROUGH;
default: MB_COPY_CHAR(p, name);
break;
@@ -9749,14 +9749,14 @@ static void f_getcwd(typval_T *argvars, typval_T *rettv, FunPtr fptr)
if (from) {
break;
}
// fallthrough
FALLTHROUGH;
case kCdScopeTab:
assert(tp);
from = tp->tp_localdir;
if (from) {
break;
}
// fallthrough
FALLTHROUGH;
case kCdScopeGlobal:
if (globaldir) { // `globaldir` is not always set.
from = globaldir;