diff options
Diffstat (limited to 'ext/nkf/nkf-utf8/config.h')
-rw-r--r-- | ext/nkf/nkf-utf8/config.h | 13 |
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 |