summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-02 08:22:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-02 08:22:15 +0000
commit263ce88f9f2f713273e628bcef64e5f13cdbc2ff (patch)
tree58bdd80c811af5b114684a94d1f772d1c09ccf6c /internal.h
parent22d508fc275ef1788e4510503217a7cc101bc6dd (diff)
encoding.c: preserved encindex
* encoding.c (rb_enc_init): register preserved indexes. * internal.h (ruby_preserved_encindex): move from encoding.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/internal.h b/internal.h
index 9f49260d6c..cd7117c518 100644
--- a/internal.h
+++ b/internal.h
@@ -196,9 +196,20 @@ PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
void Init_ext(void);
/* encoding.c */
-ID rb_id_encoding(void);
+#ifdef RUBY_ENCODING_H
+enum ruby_preserved_encindex {
+ ENCINDEX_ASCII,
+ ENCINDEX_UTF_8,
+ ENCINDEX_US_ASCII,
-/* encoding.c */
+#ifndef NO_PRESERVED_ENCODING
+ /* preserved indexes */
+#endif
+
+ ENCINDEX_BUILTIN_MAX
+};
+#endif
+ID rb_id_encoding(void);
void rb_gc_mark_encodings(void);
/* error.c */