aboutsummaryrefslogtreecommitdiffstats
path: root/ext/nkf/nkf-utf8/config.h
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-21 16:13:08 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-21 16:13:08 +0000
commit0580cf2696d440cb29d34501dc4667ec533c508c (patch)
tree5e9be8cb17cf6aa465078cc8b9adba08fdd67dbb /ext/nkf/nkf-utf8/config.h
parentf4a0cc5101e290e176c027a80fb2025df3423899 (diff)
downloadruby-0580cf2696d440cb29d34501dc4667ec533c508c.tar.gz
* ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c,config.h}:
import 1.76 [ruby-dev:26592] nkf constification git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/nkf/nkf-utf8/config.h')
-rw-r--r--ext/nkf/nkf-utf8/config.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/ext/nkf/nkf-utf8/config.h b/ext/nkf/nkf-utf8/config.h
index e46fe95a44..9b751fbecb 100644
--- a/ext/nkf/nkf-utf8/config.h
+++ b/ext/nkf/nkf-utf8/config.h
@@ -59,16 +59,21 @@
#define DEFAULT_CODE_SJIS
#endif
-#if defined(UTF8_INPUT_ENABLE) && defined(UNICODE_NORMALIZATION)
+#if defined(NUMCHAR_OPTION) && !defined(UTF8_INPUT_ENABLE)
+#define UTF8_INPUT_ENABLE
+#endif
+
+#ifdef UNICODE_NORMALIZATION
+#ifndef UTF8_INPUT_ENABLE
+#define UTF8_INPUT_ENABLE
+#endif
#define NORMALIZATION_TABLE_LENGTH 942
#define NORMALIZATION_TABLE_NFC_LENGTH 3
#define NORMALIZATION_TABLE_NFD_LENGTH 9
struct normalization_pair{
- int nfc[NORMALIZATION_TABLE_NFC_LENGTH];
- int nfd[NORMALIZATION_TABLE_NFD_LENGTH];
+ const int nfc[NORMALIZATION_TABLE_NFC_LENGTH];
+ const int nfd[NORMALIZATION_TABLE_NFD_LENGTH];
};
-#else
-#undef UNICODE_NORMALIZATION
#endif
#endif /* _CONFIG_H_ */