Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Unified Diff: source/common/ucnvscsu.c

Issue 2440913002: Update ICU to 58.1
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/common/ucnvmbcs.cpp ('k') | source/common/ucnvsel.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/common/ucnvscsu.c
diff --git a/source/common/ucnvscsu.c b/source/common/ucnvscsu.c
index 1aacd810d76e729f90cd91a0899bce1b937713c2..9849cdebbbb80ae2019344c6a0f99c39f1675f7c 100644
--- a/source/common/ucnvscsu.c
+++ b/source/common/ucnvscsu.c
@@ -1,7 +1,9 @@
+// Copyright (C) 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
/*
******************************************************************************
*
-* Copyright (C) 2000-2015, International Business Machines
+* Copyright (C) 2000-2016, International Business Machines
* Corporation and others. All Rights Reserved.
*
******************************************************************************
@@ -1395,12 +1397,16 @@ outputBytes:
/* each branch falls through to the next one */
case 4:
*target++=(uint8_t)(c>>24);
- case 3: /*fall through*/
+ U_FALLTHROUGH;
+ case 3:
*target++=(uint8_t)(c>>16);
- case 2: /*fall through*/
+ U_FALLTHROUGH;
+ case 2:
*target++=(uint8_t)(c>>8);
- case 1: /*fall through*/
+ U_FALLTHROUGH;
+ case 1:
*target++=(uint8_t)c;
+ U_FALLTHROUGH;
default:
/* will never occur */
break;
@@ -1411,15 +1417,19 @@ outputBytes:
case 4:
*target++=(uint8_t)(c>>24);
*offsets++=sourceIndex;
- case 3: /*fall through*/
+ U_FALLTHROUGH;
+ case 3:
*target++=(uint8_t)(c>>16);
*offsets++=sourceIndex;
- case 2: /*fall through*/
+ U_FALLTHROUGH;
+ case 2:
*target++=(uint8_t)(c>>8);
*offsets++=sourceIndex;
- case 1: /*fall through*/
+ U_FALLTHROUGH;
+ case 1:
*target++=(uint8_t)c;
*offsets++=sourceIndex;
+ U_FALLTHROUGH;
default:
/* will never occur */
break;
@@ -1448,12 +1458,16 @@ outputBytes:
/* each branch falls through to the next one */
case 4:
*p++=(uint8_t)(c>>24);
- case 3: /*fall through*/
+ U_FALLTHROUGH;
+ case 3:
*p++=(uint8_t)(c>>16);
- case 2: /*fall through*/
+ U_FALLTHROUGH;
+ case 2:
*p++=(uint8_t)(c>>8);
- case 1: /*fall through*/
+ U_FALLTHROUGH;
+ case 1:
*p=(uint8_t)c;
+ U_FALLTHROUGH;
default:
/* will never occur */
break;
@@ -1469,16 +1483,19 @@ outputBytes:
if(offsets!=NULL) {
*offsets++=sourceIndex;
}
- case 2: /*fall through*/
+ U_FALLTHROUGH;
+ case 2:
*target++=(uint8_t)(c>>8);
if(offsets!=NULL) {
*offsets++=sourceIndex;
}
- case 1: /*fall through*/
+ U_FALLTHROUGH;
+ case 1:
*target++=(uint8_t)c;
if(offsets!=NULL) {
*offsets++=sourceIndex;
}
+ U_FALLTHROUGH;
default:
break;
}
@@ -1853,12 +1870,16 @@ outputBytes:
/* each branch falls through to the next one */
case 4:
*target++=(uint8_t)(c>>24);
- case 3: /*fall through*/
+ U_FALLTHROUGH;
+ case 3:
*target++=(uint8_t)(c>>16);
- case 2: /*fall through*/
+ U_FALLTHROUGH;
+ case 2:
*target++=(uint8_t)(c>>8);
- case 1: /*fall through*/
+ U_FALLTHROUGH;
+ case 1:
*target++=(uint8_t)c;
+ U_FALLTHROUGH;
default:
/* will never occur */
break;
@@ -1885,12 +1906,16 @@ outputBytes:
/* each branch falls through to the next one */
case 4:
*p++=(uint8_t)(c>>24);
- case 3: /*fall through*/
+ U_FALLTHROUGH;
+ case 3:
*p++=(uint8_t)(c>>16);
- case 2: /*fall through*/
+ U_FALLTHROUGH;
+ case 2:
*p++=(uint8_t)(c>>8);
- case 1: /*fall through*/
+ U_FALLTHROUGH;
+ case 1:
*p=(uint8_t)c;
+ U_FALLTHROUGH;
default:
/* will never occur */
break;
@@ -1903,10 +1928,13 @@ outputBytes:
/* each branch falls through to the next one */
case 3:
*target++=(uint8_t)(c>>16);
- case 2: /*fall through*/
+ U_FALLTHROUGH;
+ case 2:
*target++=(uint8_t)(c>>8);
- case 1: /*fall through*/
+ U_FALLTHROUGH;
+ case 1:
*target++=(uint8_t)c;
+ U_FALLTHROUGH;
default:
break;
}
« no previous file with comments | « source/common/ucnvmbcs.cpp ('k') | source/common/ucnvsel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698