From 5c691de4421e7a5c397781a61e1826bc46a892eb Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 19 Jun 2006 14:25:06 +0000 Subject: * 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 --- ext/nkf/nkf-utf8/config.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'ext/nkf/nkf-utf8/config.h') 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 -- cgit v1.2.3