Skip to content

Commit 39374cf

Browse files
committed
Convert fallthrough comment to pseudo-keyword in Zend Engine
1 parent dc4133d commit 39374cf

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Zend/zend_ini_scanner.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static void zend_ini_copy_typed_value(zval *retval, const int type, const char *
187187
if (convert_to_number(retval, str, len) == SUCCESS) {
188188
break;
189189
}
190-
/* intentional fall-through */
190+
fallthrough;
191191
default:
192192
zend_ini_copy_value(retval, str, len);
193193
}
@@ -608,7 +608,7 @@ end_raw_value_chars:
608608
if (YYCURSOR < YYLIMIT && *YYCURSOR != '"') {
609609
YYCURSOR++;
610610
}
611-
/* fall through */
611+
fallthrough;
612612
default:
613613
continue;
614614
}

Zend/zend_language_scanner.l

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,7 +2322,7 @@ inline_char_handler:
23222322
YYCURSOR--;
23232323
break;
23242324
}
2325-
/* fall through */
2325+
fallthrough;
23262326
default:
23272327
continue;
23282328
}
@@ -2505,7 +2505,7 @@ skip_escape_conversion:
25052505
if (YYCURSOR < YYLIMIT) {
25062506
YYCURSOR++;
25072507
}
2508-
/* fall through */
2508+
fallthrough;
25092509
default:
25102510
continue;
25112511
}
@@ -2742,7 +2742,7 @@ skip_escape_conversion:
27422742
if (YYCURSOR < YYLIMIT) {
27432743
YYCURSOR++;
27442744
}
2745-
/* fall through */
2745+
fallthrough;
27462746
default:
27472747
continue;
27482748
}
@@ -2789,7 +2789,7 @@ double_quotes_scan_done:
27892789
if (YYCURSOR < YYLIMIT) {
27902790
YYCURSOR++;
27912791
}
2792-
/* fall through */
2792+
fallthrough;
27932793
default:
27942794
continue;
27952795
}
@@ -2825,7 +2825,7 @@ double_quotes_scan_done:
28252825
if (*YYCURSOR == '\n') {
28262826
YYCURSOR++;
28272827
}
2828-
/* fall through */
2828+
fallthrough;
28292829
case '\n':
28302830
indentation = spacing = 0;
28312831
@@ -2895,7 +2895,7 @@ double_quotes_scan_done:
28952895
if (YYCURSOR < YYLIMIT && *YYCURSOR != '\n' && *YYCURSOR != '\r') {
28962896
YYCURSOR++;
28972897
}
2898-
/* fall through */
2898+
fallthrough;
28992899
default:
29002900
continue;
29012901
}
@@ -2949,7 +2949,7 @@ heredoc_scan_done:
29492949
if (*YYCURSOR == '\n') {
29502950
YYCURSOR++;
29512951
}
2952-
/* fall through */
2952+
fallthrough;
29532953
case '\n':
29542954
indentation = spacing = 0;
29552955
@@ -3000,7 +3000,7 @@ heredoc_scan_done:
30003000
30013001
goto nowdoc_scan_done;
30023002
}
3003-
/* fall through */
3003+
fallthrough;
30043004
default:
30053005
continue;
30063006
}

Zend/zend_virtual_cwd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1670,7 +1670,7 @@ CWD_API FILE *virtual_popen(const char *command, const char *type) /* {{{ */
16701670
*ptr++ = '\'';
16711671
*ptr++ = '\\';
16721672
*ptr++ = '\'';
1673-
/* fall-through */
1673+
fallthrough;
16741674
default:
16751675
*ptr++ = *dir;
16761676
}

0 commit comments

Comments
 (0)