summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-02 08:22:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-02 08:22:34 +0000
commit42a2f89b3918cbe352528a0addc5ec59dfe2ad83 (patch)
tree288b9e2285d4d25e588def7e0915b62840b59888 /internal.h
parentea2b115efda5e1f0c7edea3d9951a073fbaacb37 (diff)
io.c: use built-in encoding indexes
* internal.h: add UTF-{16,32}{BE,LE}. * io.c (io_strip_bom): use built-in encoding indexes in internal.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal.h b/internal.h
index 8c716e7be7..a5d72164ec 100644
--- a/internal.h
+++ b/internal.h
@@ -204,6 +204,10 @@ enum ruby_preserved_encindex {
#ifndef NO_PRESERVED_ENCODING
/* preserved indexes */
+ ENCINDEX_UTF_16BE,
+ ENCINDEX_UTF_16LE,
+ ENCINDEX_UTF_32BE,
+ ENCINDEX_UTF_32LE,
#endif
ENCINDEX_BUILTIN_MAX