1 // © 2016 and later: Unicode, Inc. and others. 
   2 // License & terms of use: http://www.unicode.org/copyright.html 
   3 /****************************************************************************** 
   5 *   Copyright (C) 2001, International Business Machines 
   6 *   Corporation and others.  All Rights Reserved. 
   8 ******************************************************************************* 
   9 *   file name:  stubdata.c 
  11 *   Define initialized data that will build into a valid, but empty 
  12 *   ICU data library.  Used to bootstrap the ICU build, which has these 
  14 *       ICU Common library depends on ICU data 
  15 *       ICU data requires data building tools. 
  16 *       ICU data building tools require the ICU common library. 
  18 *   The stub data library (for which this file is the source) is sufficient 
  19 *   for running the data building tools. 
  22 #include "unicode/utypes.h" 
  23 #include "unicode/udata.h" 
  24 #include "unicode/uversion.h" 
  29     uint8_t magic1
, magic2
; 
  32     uint32_t count
, reserved
; 
  35     const char *const name;  
  36     const void *const data; 
  39    int   fakeNameAndData
[4];       /* TODO:  Change this header type from */ 
  40                                    /*        pointerTOC to OffsetTOC.     */ 
  43 extern "C" U_EXPORT 
const ICU_Data_Header U_ICUDATA_ENTRY_POINT 
= { 
  45     0xda,        /* magic1,  (see struct MappedData in udata.c)  */ 
  48         sizeof(UDataInfo
),      /* size        */ 
  60         {                /* data format identifier */ 
  61            0x54, 0x6f, 0x43, 0x50}, /* "ToCP" */ 
  62            {1, 0, 0, 0},   /* format version major, minor, milli, micro */ 
  63            {0, 0, 0, 0}    /* dataVersion   */ 
  65     {0,0,0,0,0,0,0,0},  /* Padding[8]   */  
  70           0 , 0 , 0, 0  /* name and data entries.  Count says there are none,  */ 
  71                         /*  but put one in just in case.                       */