summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbehdad <behdad>2002-06-17 19:22:43 +0000
committerbehdad <behdad>2002-06-17 19:22:43 +0000
commit9bf0280dfaa46cff542c92c722a355c0180234ad (patch)
treebd004d406a623bd5ea1b591f64d62e8a9f91e271
parent26108204c0e923f4767fbc7624783cb0a7d89a02 (diff)
Small fix.
-rw-r--r--ChangeLog5
-rw-r--r--fribidi_unicode.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4725e2b..be80f35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-17 Behdad Esfahbod <fribidi@behdad.org>
+ * fribidi_unicode.h: Set Unicode chars based on sizeof FriBidiChar.
+ Now if one changes FriBidiChar to 16bit, and regenerate char_type
+ tables, they will be 16bit too.
+
2002-05-18 Behdad Esfahbod <fribidi@behdad.org>
* packtab.c: Updated the search and output generating routines,
to use select among int8, int16 and int32 types, this helps to
diff --git a/fribidi_unicode.h b/fribidi_unicode.h
index c928497..6c6a76b 100644
--- a/fribidi_unicode.h
+++ b/fribidi_unicode.h
@@ -30,7 +30,7 @@ extern "C"
#endif
/* Unicode version */
-#define FRIBIDI_UNICODE_CHARS 0x110000
+#define FRIBIDI_UNICODE_CHARS (sizeof(FriBidiChar) >= 4 ? 0x110000 : 0x10000)
#define FRIBIDI_UNICODE_VERSION "3.2.0"
/* UAX#9 Unicode BiDirectional Algorithm */