michael@0: /****************************************************************************** michael@0: * michael@0: * Copyright (C) 2001, International Business Machines michael@0: * Corporation and others. All Rights Reserved. michael@0: * michael@0: ******************************************************************************* michael@0: * file name: stubdata.c michael@0: * michael@0: * Define initialized data that will build into a valid, but empty michael@0: * ICU data library. Used to bootstrap the ICU build, which has these michael@0: * dependencies: michael@0: * ICU Common library depends on ICU data michael@0: * ICU data requires data building tools. michael@0: * ICU data building tools require the ICU common library. michael@0: * michael@0: * The stub data library (for which this file is the source) is sufficient michael@0: * for running the data building tools. michael@0: * michael@0: */ michael@0: #include "unicode/utypes.h" michael@0: #include "unicode/udata.h" michael@0: #include "unicode/uversion.h" michael@0: michael@0: michael@0: typedef struct { michael@0: uint16_t headerSize; michael@0: uint8_t magic1, magic2; michael@0: UDataInfo info; michael@0: char padding[8]; michael@0: uint32_t count, reserved; michael@0: /* michael@0: const struct { michael@0: const char *const name; michael@0: const void *const data; michael@0: } toc[1]; michael@0: */ michael@0: int fakeNameAndData[4]; /* TODO: Change this header type from */ michael@0: /* pointerTOC to OffsetTOC. */ michael@0: } ICU_Data_Header; michael@0: michael@0: U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT = { michael@0: 32, /* headerSize */ michael@0: 0xda, /* magic1, (see struct MappedData in udata.c) */ michael@0: 0x27, /* magic2 */ michael@0: { /*UDataInfo */ michael@0: sizeof(UDataInfo), /* size */ michael@0: 0, /* reserved */ michael@0: michael@0: #if U_IS_BIG_ENDIAN michael@0: 1, michael@0: #else michael@0: 0, michael@0: #endif michael@0: michael@0: U_CHARSET_FAMILY, michael@0: sizeof(UChar), michael@0: 0, /* reserved */ michael@0: { /* data format identifier */ michael@0: 0x54, 0x6f, 0x43, 0x50}, /* "ToCP" */ michael@0: {1, 0, 0, 0}, /* format version major, minor, milli, micro */ michael@0: {0, 0, 0, 0} /* dataVersion */ michael@0: }, michael@0: {0,0,0,0,0,0,0,0}, /* Padding[8] */ michael@0: 0, /* count */ michael@0: 0, /* Reserved */ michael@0: { /* TOC structure */ michael@0: /* { */ michael@0: 0 , 0 , 0, 0 /* name and data entries. Count says there are none, */ michael@0: /* but put one in just in case. */ michael@0: /* } */ michael@0: } michael@0: }; michael@0: michael@0: