ICU-900 Fixed some compiler warnings
X-SVN-Rev: 7014
This commit is contained in:
parent
0a8cccc027
commit
1543490f94
@ -131,26 +131,34 @@ main(int argc, char* argv[]) {
|
||||
argc=-1;
|
||||
}
|
||||
if(argc<0 || options[0].doesOccur || options[1].doesOccur) {
|
||||
/*
|
||||
* Broken into chucks because the C89 standard says the minimum
|
||||
* required supported string length is 509 bytes.
|
||||
*/
|
||||
fprintf(stderr,
|
||||
"usage: %s [-options] maxsize [list-filename]\n"
|
||||
" read the list file (default: stdin) and \n"
|
||||
" create a common data file from specified files; omit any larger than maxsize\n"
|
||||
" \n"
|
||||
" option parameter description\n"
|
||||
" ---------------------------------------------------------------------------\n"
|
||||
" -h or -? or --help this usage text\n"
|
||||
" -v or --verbose verbose output\n"
|
||||
" -c or --copyright include the ICU copyright notice\n"
|
||||
" -C or --comment \"text\" include a comment string\n"
|
||||
" -d or --destdir dir destination directory\n"
|
||||
" -n or --name file-name output file name, without .type extension\n"
|
||||
" defaults to " COMMON_DATA_NAME "\n"
|
||||
" -t or --type file-type type of the destination file\n"
|
||||
" defaults to \"" DATA_TYPE "\"\n"
|
||||
" -S or --source toc-file write a .c source file with the table of contents\n"
|
||||
" -e or --entrypoint name override the c entrypoint name\n"
|
||||
" defaults to \"<name>_<type>\" ",
|
||||
"\n"
|
||||
"Read the list file (default: stdin) and \n"
|
||||
"create a common data file from specified files; omit any larger than maxsize\n"
|
||||
"\n",
|
||||
argv[0]);
|
||||
fprintf(stderr,
|
||||
" option parameter description\n"
|
||||
" ---------------------------------------------------------------------------\n"
|
||||
" -h or -? or --help this usage text\n"
|
||||
" -v or --verbose verbose output\n"
|
||||
" -c or --copyright include the ICU copyright notice\n"
|
||||
" -C or --comment \"text\" include a comment string\n"
|
||||
" -d or --destdir dir destination directory\n");
|
||||
fprintf(stderr,
|
||||
" -n or --name file-name output file name, without .type extension\n"
|
||||
" defaults to " COMMON_DATA_NAME "\n"
|
||||
" -t or --type file-type type of the destination file\n"
|
||||
" defaults to \"" DATA_TYPE "\"\n"
|
||||
" -S or --source toc-file write a .c source file with the table of contents\n"
|
||||
" -e or --entrypoint name override the c entrypoint name\n"
|
||||
" defaults to \"<name>_<type>\" ");
|
||||
|
||||
return argc<0 ? U_ILLEGAL_ARGUMENT_ERROR : U_ZERO_ERROR;
|
||||
}
|
||||
|
||||
|
@ -294,21 +294,29 @@ main(int argc, char* argv[]) {
|
||||
argc=-1;
|
||||
}
|
||||
if(argc<0 || options[0].doesOccur || options[1].doesOccur) {
|
||||
/*
|
||||
* Broken into chucks because the C89 standard says the minimum
|
||||
* required supported string length is 509 bytes.
|
||||
*/
|
||||
fprintf(stderr,
|
||||
"usage: %s [-1[+|-]] [-v[+|-]] [-c[+|-]] filename\n"
|
||||
"\tread the UnicodeData.txt file and \n"
|
||||
"\tcreate a binary file " DATA_NAME "." DATA_TYPE " with the character names\n"
|
||||
"\t\tfilename absolute path/filename for the\n"
|
||||
"\t\t\tUnicode database text file (default: standard input)\n"
|
||||
"\toptions:\n"
|
||||
"\t\t-h or -? or --help this usage text\n"
|
||||
"\t\t-v or --verbose verbose output\n"
|
||||
"\t\t-q or --quiet no output\n"
|
||||
"\t\t-c or --copyright include a copyright notice\n"
|
||||
"\t\t-d or --destdir destination directory, followed by the path\n"
|
||||
"\t\t-u or --unicode Unicode version, followed by the version like 3.0.0\n"
|
||||
"\t\t-1 or --unicode1-names store Unicode 1.0 character names\n",
|
||||
"Usage: %s [-1[+|-]] [-v[+|-]] [-c[+|-]] filename\n"
|
||||
"\n"
|
||||
"Read the UnicodeData.txt file and \n"
|
||||
"create a binary file " DATA_NAME "." DATA_TYPE " with the character names\n"
|
||||
"\n"
|
||||
"\tfilename absolute path/filename for the Unicode database text file\n"
|
||||
"\t\t(default: standard input)\n"
|
||||
"\n",
|
||||
argv[0]);
|
||||
fprintf(stderr,
|
||||
"Options:\n"
|
||||
"\t-h or -? or --help this usage text\n"
|
||||
"\t-v or --verbose verbose output\n"
|
||||
"\t-q or --quiet no output\n"
|
||||
"\t-c or --copyright include a copyright notice\n"
|
||||
"\t-d or --destdir destination directory, followed by the path\n"
|
||||
"\t-u or --unicode Unicode version, followed by the version like 3.0.0\n"
|
||||
"\t-1 or --unicode1-names store Unicode 1.0 character names\n");
|
||||
return argc<0 ? U_ILLEGAL_ARGUMENT_ERROR : U_ZERO_ERROR;
|
||||
}
|
||||
|
||||
|
@ -82,21 +82,29 @@ main(int argc, char* argv[]) {
|
||||
argv[-argc]);
|
||||
}
|
||||
if(argc<0 || options[0].doesOccur || options[1].doesOccur) {
|
||||
/*
|
||||
* Broken into chucks because the C89 standard says the minimum
|
||||
* required supported string length is 509 bytes.
|
||||
*/
|
||||
fprintf(stderr,
|
||||
"usage: %s [-options] [suffix]\n"
|
||||
"\tread the UnicodeData.txt file and other Unicode properties files and\n"
|
||||
"\tcreate a binary file " DATA_NAME "." DATA_TYPE " with the character properties\n"
|
||||
"\toptions:\n"
|
||||
"\t\t-h or -? or --help this usage text\n"
|
||||
"\t\t-v or --verbose verbose output\n"
|
||||
"\t\t-c or --copyright include a copyright notice\n"
|
||||
"\t\t-d or --destdir destination directory, followed by the path\n"
|
||||
"\t\t-s or --sourcedir source directory, followed by the path\n"
|
||||
"\t\t-u or --unicode Unicode version, followed by the version like 3.0.0\n"
|
||||
"\t\tsuffix suffix that is to be appended with a '-'\n"
|
||||
"\t\t to the source file basenames before opening;\n"
|
||||
"\t\t 'gennorm new' will read UnicodeData-new.txt etc.\n",
|
||||
"Usage: %s [-options] [suffix]\n"
|
||||
"\n"
|
||||
"Read the UnicodeData.txt file and other Unicode properties files and\n"
|
||||
"create a binary file " DATA_NAME "." DATA_TYPE " with the character properties\n"
|
||||
"\n",
|
||||
argv[0]);
|
||||
fprintf(stderr,
|
||||
"Options:\n"
|
||||
"\t-h or -? or --help this usage text\n"
|
||||
"\t-v or --verbose verbose output\n"
|
||||
"\t-c or --copyright include a copyright notice\n"
|
||||
"\t-u or --unicode Unicode version, followed by the version like 3.0.0\n");
|
||||
fprintf(stderr,
|
||||
"\t-d or --destdir destination directory, followed by the path\n"
|
||||
"\t-s or --sourcedir source directory, followed by the path\n"
|
||||
"\tsuffix suffix that is to be appended with a '-'\n"
|
||||
"\t to the source file basenames before opening;\n"
|
||||
"\t 'gennorm new' will read UnicodeData-new.txt etc.\n");
|
||||
return argc<0 ? U_ILLEGAL_ARGUMENT_ERROR : U_ZERO_ERROR;
|
||||
}
|
||||
|
||||
|
@ -116,23 +116,29 @@ main(int argc,
|
||||
}
|
||||
|
||||
if(argc<0 || options[HELP1].doesOccur || options[HELP2].doesOccur) {
|
||||
/*
|
||||
* Broken into chucks because the C89 standard says the minimum
|
||||
* required supported string length is 509 bytes.
|
||||
*/
|
||||
fprintf(stderr,
|
||||
"Usage: %s [OPTIONS] [FILES]\n"
|
||||
"\treads the list of resource bundle source files and creates\n"
|
||||
"\tbinary version of reosurce bundles (.res files)\n"
|
||||
"\tReads the list of resource bundle source files and creates\n"
|
||||
"\tbinary version of reosurce bundles (.res files)\n",
|
||||
argv[0]);
|
||||
fprintf(stderr,
|
||||
"Options:\n"
|
||||
"\t-h, -? or --help this usage text\n"
|
||||
"\t-h or -? or --help this usage text\n"
|
||||
"\t-V or --version prints out version number and exits\n"
|
||||
"\t-d of --destdir destination directory, followed by the path, defaults to %s\n"
|
||||
/* "\t-v or --verbose be verbose\n"*/
|
||||
"\t-q or --quiet do not display warnings\n"
|
||||
"\t-c or --copyright include copyright notice\n");
|
||||
fprintf(stderr,
|
||||
"\t-e or --encoding encoding of source files, leave empty for system default encoding\n"
|
||||
"\t NOTE: ICU must be completely built to use this option\n"
|
||||
"\t-d of --destdir destination directory, followed by the path, defaults to %s\n"
|
||||
"\t-s or --sourcedir source directory for files followed by path, defaults to %s\n"
|
||||
"\t-i or --icudatadir directory for locating any needed intermediate data files,\n"
|
||||
"\t followed by path, defaults to %s\n"
|
||||
"\t-c or --copyright include copyright notice \n",
|
||||
argv[0], u_getDataDirectory(), u_getDataDirectory(),u_getDataDirectory());
|
||||
"\t followed by path, defaults to %s\n",
|
||||
u_getDataDirectory(), u_getDataDirectory(), u_getDataDirectory());
|
||||
return argc < 0 ? U_ILLEGAL_ARGUMENT_ERROR : U_ZERO_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user