intl/icu/source/stubdata/stubdata.c

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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"
    25 typedef struct {
    26     uint16_t headerSize;
    27     uint8_t magic1, magic2;
    28     UDataInfo info;
    29     char padding[8];
    30     uint32_t count, reserved;
    31     /*
    32     const struct {
    33     const char *const name; 
    34     const void *const data;
    35     } toc[1];
    36     */
    37    int   fakeNameAndData[4];       /* TODO:  Change this header type from */
    38                                    /*        pointerTOC to OffsetTOC.     */
    39 } ICU_Data_Header;
    41 U_EXPORT const ICU_Data_Header U_ICUDATA_ENTRY_POINT = {
    42     32,          /* headerSize */
    43     0xda,        /* magic1,  (see struct MappedData in udata.c)  */
    44     0x27,        /* magic2     */
    45     {            /*UDataInfo   */
    46         sizeof(UDataInfo),      /* size        */
    47         0,                      /* reserved    */
    49 #if U_IS_BIG_ENDIAN
    50         1,
    51 #else
    52         0,
    53 #endif
    55         U_CHARSET_FAMILY,
    56         sizeof(UChar),   
    57         0,               /* reserved      */
    58         {                /* data format identifier */
    59            0x54, 0x6f, 0x43, 0x50}, /* "ToCP" */
    60            {1, 0, 0, 0},   /* format version major, minor, milli, micro */
    61            {0, 0, 0, 0}    /* dataVersion   */
    62     },
    63     {0,0,0,0,0,0,0,0},  /* Padding[8]   */ 
    64     0,                  /* count        */
    65     0,                  /* Reserved     */
    66     {                   /*  TOC structure */
    67 /*        {    */
    68           0 , 0 , 0, 0  /* name and data entries.  Count says there are none,  */
    69                         /*  but put one in just in case.                       */
    70 /*        }  */
    71     }
    72 };

mercurial