ICU-84 S/390 and EBCDIC updates

X-SVN-Rev: 969
This commit is contained in:
Markus Scherer 2000-03-21 20:37:32 +00:00
parent 5b96f9db05
commit 54921c0d79
4 changed files with 14 additions and 15 deletions

View File

@ -19,6 +19,8 @@
#include "unicode/utypes.h"
U_CDECL_BEGIN
/**
* Information about data memory.
* This structure may grow in the future, indicated by the
@ -209,4 +211,6 @@ udata_getMemory(UDataMemory *pData);
U_CAPI void U_EXPORT2
udata_getInfo(UDataMemory *pData, UDataInfo *pInfo);
U_CDECL_END
#endif

View File

@ -131,7 +131,7 @@ void TimeZone::loadZoneData() {
/**
* udata callback to verify the zone data.
*/
bool_t
bool_t U_CALLCONV
TimeZone::isDataAcceptable(void *context,
const char *type, const char *name,
UDataInfo *pInfo) {
@ -139,10 +139,10 @@ TimeZone::isDataAcceptable(void *context,
pInfo->size >= sizeof(UDataInfo) &&
pInfo->isBigEndian == U_IS_BIG_ENDIAN &&
pInfo->charsetFamily == U_CHARSET_FAMILY &&
pInfo->dataFormat[0] == TZ_SIG[0] &&
pInfo->dataFormat[1] == TZ_SIG[1] &&
pInfo->dataFormat[2] == TZ_SIG[2] &&
pInfo->dataFormat[3] == TZ_SIG[3] &&
pInfo->dataFormat[0] == 0x7a && // see TZ_SIG, must be numeric literals to be portable
pInfo->dataFormat[1] == 0x6f && // (this is not a string, it just looks like one for debugging)
pInfo->dataFormat[2] == 0x6e &&
pInfo->dataFormat[3] == 0x65 &&
pInfo->formatVersion[0] == TZ_FORMAT_VERSION;
}

View File

@ -506,7 +506,7 @@ private:
static void loadZoneData(void);
// See source file for documentation
static bool_t isDataAcceptable(void *context,
static bool_t U_CALLCONV isDataAcceptable(void *context,
const char *type, const char *name,
UDataInfo *pInfo);

View File

@ -140,19 +140,14 @@ int main(int argc, char *argv[]) {
const int32_t gentz::MAX_GMT_OFFSET = (int32_t)24*60*60; // seconds
const char gentz::COMMENT = '#';
const char gentz::CR = ((char)13);
// OS390 uses x'15' NL new line for LF
#ifdef OS390
const char gentz::LF = ((char)21);
#else
const char gentz::LF = ((char)10);
#endif
const char gentz::CR = '\r';
const char gentz::LF = '\n';
const char gentz::MINUS = '-';
const char gentz::SPACE = ' ';
const char gentz::TAB = ((char)9);
const char gentz::TAB = '\t';
const char gentz::ZERO = '0';
const char gentz::SEP = ',';
const char gentz::NUL = ((char)0);
const char gentz::NUL = '\0';
const char* gentz::END_KEYWORD = "end";
void gentz::usage(const char* argv0) {