• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // © 2016 and later: Unicode, Inc. and others.
2 // License & terms of use: http://www.unicode.org/copyright.html
3 /******************************************************************************
4 *
5 *   Copyright (C) 2001, International Business Machines
6 *   Corporation and others.  All Rights Reserved.
7 *
8 *******************************************************************************
9 *   file name:  stubdata.c
10 *
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
13 *   dependencies:
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.
17 *
18 *   The stub data library (for which this file is the source) is sufficient
19 *   for running the data building tools.
20 *
21 */
22 #include "unicode/utypes.h"
23 #include "unicode/udata.h"
24 #include "unicode/uversion.h"
25 #include "ucmndata.h"
26 
27 
28 extern "C" U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT = {
29     {            /* DataHeader */
30         {            /* MappedData */
31             32,          /* headerSize */
32             0xda,        /* magic1,  (see struct MappedData in udata.c)  */
33             0x27,        /* magic2     */
34         },
35         {            /*UDataInfo   */
36             sizeof(UDataInfo),      /* size        */
37             0,                      /* reserved    */
38 
39 #if U_IS_BIG_ENDIAN
40             1,
41 #else
42             0,
43 #endif
44 
45             U_CHARSET_FAMILY,
46             sizeof(UChar),
47             0,               /* reserved      */
48             {                /* data format identifier */
49                0x54, 0x6f, 0x43, 0x50}, /* "ToCP" */
50                {1, 0, 0, 0},   /* format version major, minor, milli, micro */
51                {0, 0, 0, 0}    /* dataVersion   */
52         },
53     },
54     {0,0,0,0,0,0,0,0},  /* Padding[8]   */
55     0,                  /* count        */
56     0,                  /* Reserved     */
57     {                   /*  TOC structure */
58 /*        {    */
59           0 , 0 , 0, 0  /* name and data entries.  Count says there are none,  */
60                         /*  but put one in just in case.                       */
61 /*        }  */
62     }
63 };
64 
65 
66