diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-17 11:59:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-07-17 11:59:26 +0000 |
commit | af2d3c98664d83519a3334d560fad3ecdc6990ee (patch) | |
tree | 5d1c25600faa7a8d1940585dcb952d8df6edebfd /enc/unicode.c | |
parent | 8cdb719ce03b1db015342b13ba0ed83a9c6b1007 (diff) |
Move generated headers to unicode data directory
* common.mk, enc/depend (casefold.h, name2ctype.h): move to
unicode data directory per version.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode.c')
-rw-r--r-- | enc/unicode.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/enc/unicode.c b/enc/unicode.c index 39d1e7a31f..ab91bca829 100644 --- a/enc/unicode.c +++ b/enc/unicode.c @@ -164,7 +164,7 @@ code3_equal(const OnigCodePoint *x, const OnigCodePoint *y) #define L(n) SpecialsLengthEncode(n) #endif /* ONIG_CASE_MAPPING */ -#include "enc/unicode/casefold.h" +#include "casefold.h" #ifdef ONIG_CASE_MAPPING #undef U @@ -178,7 +178,7 @@ code3_equal(const OnigCodePoint *x, const OnigCodePoint *y) #undef L #endif /* ONIG_CASE_MAPPING */ -#include "enc/unicode/name2ctype.h" +#include "name2ctype.h" #define CODE_RANGES_NUM numberof(CodeRanges) @@ -800,3 +800,21 @@ onigenc_unicode_case_map(OnigCaseFoldType* flagP, } #endif /* ONIG_CASE_MAPPING */ + +#if 0 +const char onigenc_unicode_version_string[] = +#ifdef ONIG_UNICODE_VERSION_STRING + ONIG_UNICODE_VERSION_STRING +#endif + ""; + +const int onigenc_unicode_version_number[3] = { +#ifdef ONIG_UNICODE_VERSION_MAJOR + ONIG_UNICODE_VERSION_MAJOR, + ONIG_UNICODE_VERSION_MINOR, + ONIG_UNICODE_VERSION_TEENY, +#else + 0 +#endif +}; +#endif |