summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu-xetex/common/ubidi_props.c
diff options
context:
space:
mode:
authorJonathan Kew <jfkthame@googlemail.com>2007-11-21 12:29:46 +0000
committerJonathan Kew <jfkthame@googlemail.com>2007-11-21 12:29:46 +0000
commit952d69f85d43b087ce9fa79d3fc6f1c076000bc7 (patch)
treedd6937a6486e80e1638618308481075efab000ae /Build/source/libs/icu-xetex/common/ubidi_props.c
parent888236cb9df7b7d7b5a3e2d784037a9a59511c53 (diff)
updated icu-xetex library for XeTeX 0.997
git-svn-id: svn://tug.org/texlive/trunk@5536 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/icu-xetex/common/ubidi_props.c')
-rw-r--r--Build/source/libs/icu-xetex/common/ubidi_props.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/Build/source/libs/icu-xetex/common/ubidi_props.c b/Build/source/libs/icu-xetex/common/ubidi_props.c
index 4cba512d648..8538c6c5bd4 100644
--- a/Build/source/libs/icu-xetex/common/ubidi_props.c
+++ b/Build/source/libs/icu-xetex/common/ubidi_props.c
@@ -1,7 +1,7 @@
/*
*******************************************************************************
*
-* Copyright (C) 2004-2005, International Business Machines
+* Copyright (C) 2004-2006, International Business Machines
* Corporation and others. All Rights Reserved.
*
*******************************************************************************
@@ -191,7 +191,9 @@ ubidi_openBinary(const uint8_t *bin, int32_t length, UErrorCode *pErrorCode) {
U_CAPI void U_EXPORT2
ubidi_closeProps(UBiDiProps *bdp) {
if(bdp!=NULL) {
+#if !UBIDI_HARDCODE_DATA
udata_close(bdp->mem);
+#endif
uprv_free(bdp);
}
}
@@ -199,17 +201,21 @@ ubidi_closeProps(UBiDiProps *bdp) {
/* UBiDiProps singleton ----------------------------------------------------- */
static UBiDiProps *gBdp=NULL, *gBdpDummy=NULL;
+#if !UBIDI_HARDCODE_DATA
static UErrorCode gErrorCode=U_ZERO_ERROR;
static int8_t gHaveData=0;
+#endif
static UBool U_CALLCONV
ubidi_cleanup(void) {
ubidi_closeProps(gBdp);
gBdp=NULL;
- gErrorCode=U_ZERO_ERROR;
- gHaveData=0;
ubidi_closeProps(gBdpDummy);
gBdpDummy=NULL;
+#if !UBIDI_HARDCODE_DATA
+ gErrorCode=U_ZERO_ERROR;
+ gHaveData=0;
+#endif
return TRUE;
}