1 /****************************************************************************** 2 * 3 * Copyright (C) 2001, International Business Machines 4 * Corporation and others. All Rights Reserved. 5 * 6 ******************************************************************************* 7 * file name: stubdata.c 8 * 9 * Define initialized data that will build into a valid, but empty 10 * ICU data library. Used to bootstrap the ICU build, which has these 11 * dependencies: 12 * ICU Common library depends on ICU data 13 * ICU data requires data building tools. 14 * ICU data building tools require the ICU common library. 15 * 16 * The stub data library (for which this file is the source) is sufficient 17 * for running the data building tools. 18 * 19 */ 20 #include "unicode/utypes.h" 21 #include "unicode/udata.h" 22 #include "unicode/uversion.h" 23 #include "ucmndata.h" 24 25 26 U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT = { 27 { /* DataHeader */ 28 { /* MappedData */ 29 32, /* headerSize */ 30 0xda, /* magic1, (see struct MappedData in udata.c) */ 31 0x27, /* magic2 */ 32 }, 33 { /*UDataInfo */ 34 sizeof(UDataInfo), /* size */ 35 0, /* reserved */ 36 37 #if U_IS_BIG_ENDIAN 38 1, 39 #else 40 0, 41 #endif 42 43 U_CHARSET_FAMILY, 44 sizeof(UChar), 45 0, /* reserved */ 46 { /* data format identifier */ 47 0x54, 0x6f, 0x43, 0x50}, /* "ToCP" */ 48 {1, 0, 0, 0}, /* format version major, minor, milli, micro */ 49 {0, 0, 0, 0} /* dataVersion */ 50 }, 51 }, 52 {0,0,0,0,0,0,0,0}, /* Padding[8] */ 53 0, /* count */ 54 0, /* Reserved */ 55 { /* TOC structure */ 56 /* { */ 57 0 , 0 , 0, 0 /* name and data entries. Count says there are none, */ 58 /* but put one in just in case. */ 59 /* } */ 60 } 61 }; 62 63 64