summaryrefslogtreecommitdiff
path: root/ext/nkf/nkf-utf8/config.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-19 14:25:06 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-19 14:25:06 +0000
commit5c691de4421e7a5c397781a61e1826bc46a892eb (patch)
tree8441c2df7702aa178634dccf44e40f7743ff9278 /ext/nkf/nkf-utf8/config.h
parentcd15cdca77ec21a740a8dfff19062d65fd87a7f0 (diff)
* ext/nkf/nkf-utf8/nkf.c: imported nkf 2.0.7
* Fix: fallback in CP51932 * ANSI C * Fix bug arround MIME encode NL git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/nkf/nkf-utf8/config.h')
-rw-r--r--ext/nkf/nkf-utf8/config.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/ext/nkf/nkf-utf8/config.h b/ext/nkf/nkf-utf8/config.h
index 9b751fbecb..9da82c6aee 100644
--- a/ext/nkf/nkf-utf8/config.h
+++ b/ext/nkf/nkf-utf8/config.h
@@ -43,6 +43,15 @@
*/
/* #define INT_IS_SHORT */
+
+#if defined(INT_IS_SHORT)
+typedef long nkf_char;
+typedef unsigned char nkf_nfchar;
+#else
+typedef int nkf_char;
+typedef int nkf_nfchar;
+#endif
+
/* Unicode Normalization */
#define UNICODE_NORMALIZATION
@@ -71,8 +80,8 @@
#define NORMALIZATION_TABLE_NFC_LENGTH 3
#define NORMALIZATION_TABLE_NFD_LENGTH 9
struct normalization_pair{
- const int nfc[NORMALIZATION_TABLE_NFC_LENGTH];
- const int nfd[NORMALIZATION_TABLE_NFD_LENGTH];
+ const nkf_nfchar nfc[NORMALIZATION_TABLE_NFC_LENGTH];
+ const nkf_nfchar nfd[NORMALIZATION_TABLE_NFD_LENGTH];
};
#endif