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

Side by Side Diff: source/tools/makeconv/makeconv.c

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 unified diff | Download patch
« no previous file with comments | « source/tools/makeconv/gencnvex.c ('k') | source/tools/pkgdata/pkgdata.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ******************************************************************************* * 2 ******************************************************************************* *
3 * 3 *
4 * Copyright (C) 1998-2012, International Business Machines 4 * Copyright (C) 1998-2014, International Business Machines
5 * Corporation and others. All Rights Reserved. 5 * Corporation and others. All Rights Reserved.
6 * 6 *
7 ******************************************************************************* * 7 ******************************************************************************* *
8 * 8 *
9 * 9 *
10 * makeconv.c: 10 * makeconv.c:
11 * tool creating a binary (compressed) representation of the conversion mapping 11 * tool creating a binary (compressed) representation of the conversion mapping
12 * table (IBM NLTC ucmap format). 12 * table (IBM NLTC ucmap format).
13 * 13 *
14 * 05/04/2000 helena Added fallback mapping into the picture... 14 * 05/04/2000 helena Added fallback mapping into the picture...
(...skipping 12 matching lines...) Expand all
27 #include "filestrm.h" 27 #include "filestrm.h"
28 #include "toolutil.h" 28 #include "toolutil.h"
29 #include "uoptions.h" 29 #include "uoptions.h"
30 #include "unicode/udata.h" 30 #include "unicode/udata.h"
31 #include "unewdata.h" 31 #include "unewdata.h"
32 #include "uparse.h" 32 #include "uparse.h"
33 #include "ucm.h" 33 #include "ucm.h"
34 #include "makeconv.h" 34 #include "makeconv.h"
35 #include "genmbcs.h" 35 #include "genmbcs.h"
36 36
37 #define LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
38
39 #define DEBUG 0 37 #define DEBUG 0
40 38
41 typedef struct ConvData { 39 typedef struct ConvData {
42 UCMFile *ucm; 40 UCMFile *ucm;
43 NewConverter *cnvData, *extData; 41 NewConverter *cnvData, *extData;
44 UConverterSharedData sharedData; 42 UConverterSharedData sharedData;
45 UConverterStaticData staticData; 43 UConverterStaticData staticData;
46 } ConvData; 44 } ConvData;
47 45
48 static void 46 static void
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 err = U_ZERO_ERROR; 204 err = U_ZERO_ERROR;
207 205
208 U_MAIN_INIT_ARGS(argc, argv); 206 U_MAIN_INIT_ARGS(argc, argv);
209 207
210 /* Set up the ICU version number */ 208 /* Set up the ICU version number */
211 u_getVersion(icuVersion); 209 u_getVersion(icuVersion);
212 uprv_memcpy(&dataInfo.dataVersion, &icuVersion, sizeof(UVersionInfo)); 210 uprv_memcpy(&dataInfo.dataVersion, &icuVersion, sizeof(UVersionInfo));
213 211
214 /* preset then read command line options */ 212 /* preset then read command line options */
215 options[OPT_DESTDIR].value=u_getDataDirectory(); 213 options[OPT_DESTDIR].value=u_getDataDirectory();
216 argc=u_parseArgs(argc, argv, LENGTHOF(options), options); 214 argc=u_parseArgs(argc, argv, UPRV_LENGTHOF(options), options);
217 215
218 /* error handling, printing usage message */ 216 /* error handling, printing usage message */
219 if(argc<0) { 217 if(argc<0) {
220 fprintf(stderr, 218 fprintf(stderr,
221 "error in command line argument \"%s\"\n", 219 "error in command line argument \"%s\"\n",
222 argv[-argc]); 220 argv[-argc]);
223 } else if(argc<2) { 221 } else if(argc<2) {
224 argc=-1; 222 argc=-1;
225 } 223 }
226 if(argc<0 || options[OPT_HELP_H].doesOccur || options[OPT_HELP_QUESTION_MARK ].doesOccur) { 224 if(argc<0 || options[OPT_HELP_H].doesOccur || options[OPT_HELP_QUESTION_MARK ].doesOccur) {
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 } 847 }
850 848
851 /* 849 /*
852 * Hey, Emacs, please set the following: 850 * Hey, Emacs, please set the following:
853 * 851 *
854 * Local Variables: 852 * Local Variables:
855 * indent-tabs-mode: nil 853 * indent-tabs-mode: nil
856 * End: 854 * End:
857 * 855 *
858 */ 856 */
OLDNEW
« no previous file with comments | « source/tools/makeconv/gencnvex.c ('k') | source/tools/pkgdata/pkgdata.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698