1 Index: source/common/udata.cpp
2 ===================================================================
3 --- source/common/udata.cpp (revision 259715)
4 +++ source/common/udata.cpp (working copy)
8 *----------------------------------------------------------------------*/
9 -extern "C" const DataHeader U_DATA_API U_ICUDATA_ENTRY_POINT;
10 +extern "C" const ICU_Data_Header U_DATA_API U_ICUDATA_ENTRY_POINT;
13 * This would be a good place for weak-linkage declarations of
15 if(gCommonICUDataArray[commonDataIndex] == NULL) {
17 for(i = 0; i < commonDataIndex; ++i) {
18 - if(gCommonICUDataArray[i]->pHeader == &U_ICUDATA_ENTRY_POINT) {
19 + if(gCommonICUDataArray[i]->pHeader == &U_ICUDATA_ENTRY_POINT.hdr) {
20 /* The linked-in data is already in the list. */
24 setCommonICUDataPointer(uprv_getICUData_conversion(), FALSE, pErrorCode);
27 - setCommonICUDataPointer(&U_ICUDATA_ENTRY_POINT, FALSE, pErrorCode);
28 + setCommonICUDataPointer(&U_ICUDATA_ENTRY_POINT.hdr, FALSE, pErrorCode);
30 return gCommonICUDataArray[commonDataIndex];
32 Index: source/common/ucmndata.h
33 ===================================================================
34 --- source/common/ucmndata.h (revision 68397)
35 +++ source/common/ucmndata.h (working copy)
42 + uint32_t count, reserved;
45 + const char *const name;
46 + const void *const data;
49 + int fakeNameAndData[4]; /* TODO: Change this header type from */
50 + /* pointerTOC to OffsetTOC. */
56 } UDataOffsetTOCEntry;
57 Index: source/stubdata/stubdata.c
58 ===================================================================
59 --- source/stubdata/stubdata.c (revision 68397)
60 +++ source/stubdata/stubdata.c (working copy)
62 #include "unicode/utypes.h"
63 #include "unicode/udata.h"
64 #include "unicode/uversion.h"
65 +#include "ucmndata.h"
69 - uint16_t headerSize;
70 - uint8_t magic1, magic2;
73 - uint32_t count, reserved;
76 - const char *const name;
77 - const void *const data;
80 - int fakeNameAndData[4]; /* TODO: Change this header type from */
81 - /* pointerTOC to OffsetTOC. */
84 U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT = {
85 - 32, /* headerSize */
86 - 0xda, /* magic1, (see struct MappedData in udata.c) */
89 - sizeof(UDataInfo), /* size */
93 + 32, /* headerSize */
94 + 0xda, /* magic1, (see struct MappedData in udata.c) */
98 + sizeof(UDataInfo), /* size */
112 - { /* data format identifier */
113 - 0x54, 0x6f, 0x43, 0x50}, /* "ToCP" */
114 - {1, 0, 0, 0}, /* format version major, minor, milli, micro */
115 - {0, 0, 0, 0} /* dataVersion */
119 + { /* data format identifier */
120 + 0x54, 0x6f, 0x43, 0x50}, /* "ToCP" */
121 + {1, 0, 0, 0}, /* format version major, minor, milli, micro */
122 + {0, 0, 0, 0} /* dataVersion */
125 {0,0,0,0,0,0,0,0}, /* Padding[8] */