summaryrefslogtreecommitdiff
path: root/enc/unicode
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-01 00:34:41 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-12-01 00:34:41 (GMT)
commit4f7c3d3583f31f0754e69b94bf2eb55a65831582 (patch)
treef87db99a67b867219f0949cdabf827111019678d /enc/unicode
parent48beedd5db92b37ff6702e2e7a5e46e86be88a89 (diff)
constify CaseMappingSpecials
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/unicode')
-rw-r--r--enc/unicode/9.0.0/casefold.h2
-rwxr-xr-xenc/unicode/case-folding.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/enc/unicode/9.0.0/casefold.h b/enc/unicode/9.0.0/casefold.h
index f8f1167..5383d25 100644
--- a/enc/unicode/9.0.0/casefold.h
+++ b/enc/unicode/9.0.0/casefold.h
@@ -6931,7 +6931,7 @@ onigenc_unicode_CaseUnfold_13_lookup(const OnigCodePoint *codes)
return 0;
}
-OnigCodePoint CaseMappingSpecials[] = {
+static const OnigCodePoint CaseMappingSpecials[] = {
L(1)|0x039C,
L(2)|0x0053, 0x0073, L(2)|0x0053, 0x0053,
L(2)|0x02BC, 0x004E,
diff --git a/enc/unicode/case-folding.rb b/enc/unicode/case-folding.rb
index e94b582..687887b 100755
--- a/enc/unicode/case-folding.rb
+++ b/enc/unicode/case-folding.rb
@@ -326,7 +326,7 @@ class CaseMapping
end
def specials_output
- "OnigCodePoint CaseMappingSpecials[] = {\n" +
+ "static const OnigCodePoint CaseMappingSpecials[] = {\n" +
@specials.map do |sps|
' ' + sps.map do |sp|
chars = sp.split(/ /)