summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2014-05-29 20:41:22 -0400
committerJarkko Hietaniemi <jhi@iki.fi>2014-05-29 20:43:37 -0400
commit924ba0765e4151c6d9a29ad6b3c3f97c24673477 (patch)
treef2eee0262fd1483fd9903917b85f8dbf532e3c5e /perl.c
parent81f54ac7f5f6cf7337babd8633132716c21d851a (diff)
downloadperl-924ba0765e4151c6d9a29ad6b3c3f97c24673477.tar.gz
Unify the "fall-through" lint annotation.
Used by linters (static checkers), and also good for human readers. Even though "FALL THROUGH" seems to be the most common, e.g BSD lint manual only knows "FALLTHROUGH" (or "FALLTHRU").
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/perl.c b/perl.c
index 8480a5d017..18bcf8c3a8 100644
--- a/perl.c
+++ b/perl.c
@@ -1615,7 +1615,7 @@ perl_parse(pTHXx_ XSINIT_t xsinit, int argc, char **argv, char **env)
break;
case 1:
STATUS_ALL_FAILURE;
- /* FALL THROUGH */
+ /* FALLTHROUGH */
case 2:
/* my_exit() was called */
while (PL_scopestack_ix > oldscope)
@@ -1896,7 +1896,7 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
case 'E':
PL_minus_E = TRUE;
- /* FALL THROUGH */
+ /* FALLTHROUGH */
case 'e':
forbid_setid('e', FALSE);
if (!PL_e_script) {
@@ -1977,7 +1977,7 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
if (strEQ(s, "help"))
usage();
s--;
- /* FALL THROUGH */
+ /* FALLTHROUGH */
default:
Perl_croak(aTHX_ "Unrecognized switch: -%s (-h will show valid options)",s);
}
@@ -2369,7 +2369,7 @@ perl_run(pTHXx)
case 0: /* normal completion */
redo_body:
run_body(oldscope);
- /* FALL THROUGH */
+ /* FALLTHROUGH */
case 2: /* my_exit() */
while (PL_scopestack_ix > oldscope)
LEAVE;
@@ -2775,7 +2775,7 @@ Perl_call_sv(pTHX_ SV *sv, VOL I32 flags)
break;
case 1:
STATUS_ALL_FAILURE;
- /* FALL THROUGH */
+ /* FALLTHROUGH */
case 2:
/* my_exit() was called */
SET_CURSTASH(PL_defstash);
@@ -2884,7 +2884,7 @@ Perl_eval_sv(pTHX_ SV *sv, I32 flags)
break;
case 1:
STATUS_ALL_FAILURE;
- /* FALL THROUGH */
+ /* FALLTHROUGH */
case 2:
/* my_exit() was called */
SET_CURSTASH(PL_defstash);
@@ -3318,7 +3318,7 @@ Perl_moreswitches(pTHX_ const char *s)
return s;
case 'M':
forbid_setid('M', FALSE); /* XXX ? */
- /* FALL THROUGH */
+ /* FALLTHROUGH */
case 'm':
forbid_setid('m', FALSE); /* XXX ? */
if (*++s) {
@@ -4907,7 +4907,7 @@ Perl_call_list(pTHX_ I32 oldscope, AV *paramList)
break;
case 1:
STATUS_ALL_FAILURE;
- /* FALL THROUGH */
+ /* FALLTHROUGH */
case 2:
/* my_exit() was called */
while (PL_scopestack_ix > oldscope)