summaryrefslogtreecommitdiffstats
path: root/generic/tclScan.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-28 11:45:42 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-08-28 11:45:42 (GMT)
commitb7f809ade5521067cf0d90daa4b24ae48fd7e525 (patch)
tree0454687fff6f9605ebe2b160834f66b1acf33fd3 /generic/tclScan.c
parentfa1cc2cd3f640af44f4f766c1fdcbf4822b8053e (diff)
parentda423a1424e34834a64c209244ef64ca7c275f7d (diff)
downloadtcl-b7f809ade5521067cf0d90daa4b24ae48fd7e525.zip
tcl-b7f809ade5521067cf0d90daa4b24ae48fd7e525.tar.gz
tcl-b7f809ade5521067cf0d90daa4b24ae48fd7e525.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tclScan.c')
-rw-r--r--generic/tclScan.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/generic/tclScan.c b/generic/tclScan.c
index 95006ca..ba9ccbe 100644
--- a/generic/tclScan.c
+++ b/generic/tclScan.c
@@ -363,8 +363,10 @@ ValidateFormat(
format += TclUtfToUniChar(format, &ch);
break;
}
+ /* FALLTHRU */
case 'L':
flags |= SCAN_LONGER;
+ /* FALLTHRU */
case 'h':
format += TclUtfToUniChar(format, &ch);
}
@@ -386,9 +388,7 @@ ValidateFormat(
Tcl_SetErrorCode(interp, "TCL", "FORMAT", "BADWIDTH", NULL);
goto error;
}
- /*
- * Fall through!
- */
+ /* FALLTHRU */
case 'n':
case 's':
if (flags & (SCAN_LONGER|SCAN_BIG)) {
@@ -703,11 +703,10 @@ Tcl_ScanObjCmd(
format += TclUtfToUniChar(format, &ch);
break;
}
+ /* FALLTHRU */
case 'L':
flags |= SCAN_LONGER;
- /*
- * Fall through so we skip to the next character.
- */
+ /* FALLTHRU */
case 'h':
format += TclUtfToUniChar(format, &ch);
}