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

Unified Diff: source/tools/toolutil/pkg_icu.cpp

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 years, 11 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/tools/toolutil/pkg_genc.c ('k') | source/tools/toolutil/pkgitems.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/tools/toolutil/pkg_icu.cpp
diff --git a/source/tools/toolutil/pkg_icu.cpp b/source/tools/toolutil/pkg_icu.cpp
index e543220a05697ff1fafd077928539fff0ba4fe8d..c2f3904878dc3a4c690de991fe9d3ec5ed754fd7 100644
--- a/source/tools/toolutil/pkg_icu.cpp
+++ b/source/tools/toolutil/pkg_icu.cpp
@@ -1,5 +1,5 @@
/******************************************************************************
- * Copyright (C) 2008-2013, International Business Machines
+ * Copyright (C) 2008-2014, International Business Machines
* Corporation and others. All Rights Reserved.
*******************************************************************************
*/
@@ -16,9 +16,6 @@
#include <stdlib.h>
#include <string.h>
-
-#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
-
// read a file list -------------------------------------------------------- ***
U_NAMESPACE_USE
@@ -38,7 +35,7 @@ isListTextFile(const char *listname) {
const char *listNameEnd=strchr(listname, 0);
const char *suffix;
int32_t i, length;
- for(i=0; i<LENGTHOF(listFileSuffixes); ++i) {
+ for(i=0; i<UPRV_LENGTHOF(listFileSuffixes); ++i) {
suffix=listFileSuffixes[i].suffix;
length=listFileSuffixes[i].length;
if((listNameEnd-listname)>length && 0==memcmp(listNameEnd-length, suffix, length)) {
« no previous file with comments | « source/tools/toolutil/pkg_genc.c ('k') | source/tools/toolutil/pkgitems.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698