summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-02 08:22:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-02 08:22:38 +0000
commit66564ab6b2d5a4d223573a13e39c9fdf21127cab (patch)
tree8cb5f3657fc68aeae622d3d6880311633fe87581 /internal.h
parent42a2f89b3918cbe352528a0addc5ec59dfe2ad83 (diff)
string.c: use built-in encoding indexes
* internal.h: add UTF-{16,32} dummy encodings. * string.c (rb_str_inspect, str_scrub0): use built-in encoding indexes in internal.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index a5d72164ec..6b76538608 100644
--- a/internal.h
+++ b/internal.h
@@ -208,6 +208,8 @@ enum ruby_preserved_encindex {
ENCINDEX_UTF_16LE,
ENCINDEX_UTF_32BE,
ENCINDEX_UTF_32LE,
+ ENCINDEX_UTF_16,
+ ENCINDEX_UTF_32,
#endif
ENCINDEX_BUILTIN_MAX