X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/73c04bcfe1096173b00431f0cdc742894b15eef0..5ea0322b6ab2af986e4c764284141380031dd014:/icuSources/tools/icuswap/icuswap.cpp?ds=sidebyside diff --git a/icuSources/tools/icuswap/icuswap.cpp b/icuSources/tools/icuswap/icuswap.cpp index 2fb33199..2bc5a6cc 100644 --- a/icuSources/tools/icuswap/icuswap.cpp +++ b/icuSources/tools/icuswap/icuswap.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * -* Copyright (C) 2003-2006, International Business Machines +* Copyright (C) 2003-2014, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -41,7 +41,7 @@ /* definitions */ -#define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0])) +#define DEFAULT_PADDING_LENGTH 15 static UOption options[]={ UOPTION_HELP_H, @@ -129,7 +129,7 @@ main(int argc, char *argv[]) { pname=argv[0]; } - argc=u_parseArgs(argc, argv, LENGTHOF(options), options); + argc=u_parseArgs(argc, argv, UPRV_LENGTHOF(options), options); ishelp=options[OPT_HELP_H].doesOccur || options[OPT_HELP_QUESTION_MARK].doesOccur; if(ishelp || argc!=3) { return printUsage(pname, ishelp); @@ -170,7 +170,7 @@ main(int argc, char *argv[]) { } length=fileSize(in); - if(length<=0) { + if(length