Wed, 31 Dec 2014 07:22:50 +0100
Correct previous dual key logic pending first delivery installment.
michael@0 | 1 | /****************************************************************************** |
michael@0 | 2 | * Copyright (C) 2008-2011, International Business Machines |
michael@0 | 3 | * Corporation and others. All Rights Reserved. |
michael@0 | 4 | ******************************************************************************* |
michael@0 | 5 | */ |
michael@0 | 6 | |
michael@0 | 7 | #ifndef __PKG_GENC_H__ |
michael@0 | 8 | #define __PKG_GENC_H__ |
michael@0 | 9 | |
michael@0 | 10 | #include "unicode/utypes.h" |
michael@0 | 11 | #include "toolutil.h" |
michael@0 | 12 | |
michael@0 | 13 | #include "unicode/putil.h" |
michael@0 | 14 | #include "putilimp.h" |
michael@0 | 15 | |
michael@0 | 16 | /*** Platform #defines move here ***/ |
michael@0 | 17 | #if U_PLATFORM_HAS_WIN32_API |
michael@0 | 18 | #ifdef __GNUC__ |
michael@0 | 19 | #define WINDOWS_WITH_GNUC |
michael@0 | 20 | #else |
michael@0 | 21 | #define WINDOWS_WITH_MSVC |
michael@0 | 22 | #endif |
michael@0 | 23 | #endif |
michael@0 | 24 | |
michael@0 | 25 | |
michael@0 | 26 | #if !defined(WINDOWS_WITH_MSVC) |
michael@0 | 27 | #define BUILD_DATA_WITHOUT_ASSEMBLY |
michael@0 | 28 | #endif |
michael@0 | 29 | |
michael@0 | 30 | #ifndef U_DISABLE_OBJ_CODE /* testing */ |
michael@0 | 31 | #if defined(WINDOWS_WITH_MSVC) || U_PLATFORM_IS_LINUX_BASED |
michael@0 | 32 | #define CAN_WRITE_OBJ_CODE |
michael@0 | 33 | #endif |
michael@0 | 34 | #if U_PLATFORM_HAS_WIN32_API || defined(U_ELF) |
michael@0 | 35 | #define CAN_GENERATE_OBJECTS |
michael@0 | 36 | #endif |
michael@0 | 37 | #endif |
michael@0 | 38 | |
michael@0 | 39 | #if U_PLATFORM == U_PF_CYGWIN || defined(CYGWINMSVC) |
michael@0 | 40 | #define USING_CYGWIN |
michael@0 | 41 | #endif |
michael@0 | 42 | |
michael@0 | 43 | /* |
michael@0 | 44 | * When building the data library without assembly, |
michael@0 | 45 | * some platforms use a single c code file for all of |
michael@0 | 46 | * the data to generate the final data library. This can |
michael@0 | 47 | * increase the performance of the pkdata tool. |
michael@0 | 48 | */ |
michael@0 | 49 | #if U_PLATFORM == U_PF_OS400 |
michael@0 | 50 | #define USE_SINGLE_CCODE_FILE |
michael@0 | 51 | #endif |
michael@0 | 52 | |
michael@0 | 53 | /* Need to fix the file seperator character when using MinGW. */ |
michael@0 | 54 | #if defined(WINDOWS_WITH_GNUC) || defined(USING_CYGWIN) |
michael@0 | 55 | #define PKGDATA_FILE_SEP_STRING "/" |
michael@0 | 56 | #else |
michael@0 | 57 | #define PKGDATA_FILE_SEP_STRING U_FILE_SEP_STRING |
michael@0 | 58 | #endif |
michael@0 | 59 | |
michael@0 | 60 | #define LARGE_BUFFER_MAX_SIZE 2048 |
michael@0 | 61 | #define SMALL_BUFFER_MAX_SIZE 512 |
michael@0 | 62 | #define SMALL_BUFFER_FLAG_NAMES 32 |
michael@0 | 63 | #define BUFFER_PADDING_SIZE 20 |
michael@0 | 64 | |
michael@0 | 65 | /** End platform defines **/ |
michael@0 | 66 | |
michael@0 | 67 | |
michael@0 | 68 | |
michael@0 | 69 | U_INTERNAL void U_EXPORT2 |
michael@0 | 70 | printAssemblyHeadersToStdErr(void); |
michael@0 | 71 | |
michael@0 | 72 | U_INTERNAL UBool U_EXPORT2 |
michael@0 | 73 | checkAssemblyHeaderName(const char* optAssembly); |
michael@0 | 74 | |
michael@0 | 75 | U_INTERNAL void U_EXPORT2 |
michael@0 | 76 | writeCCode(const char *filename, const char *destdir, const char *optName, const char *optFilename, char *outFilePath); |
michael@0 | 77 | |
michael@0 | 78 | U_INTERNAL void U_EXPORT2 |
michael@0 | 79 | writeAssemblyCode(const char *filename, const char *destdir, const char *optEntryPoint, const char *optFilename, char *outFilePath); |
michael@0 | 80 | |
michael@0 | 81 | U_INTERNAL void U_EXPORT2 |
michael@0 | 82 | writeObjectCode(const char *filename, const char *destdir, const char *optEntryPoint, const char *optMatchArch, const char *optFilename, char *outFilePath); |
michael@0 | 83 | |
michael@0 | 84 | #endif |