diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-21 09:29:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-21 09:29:19 +0000 |
commit | b2c81746ace2e7a2ab5433e59b585776d945499a (patch) | |
tree | 434009cb2d12aeb2da728dbe7a74f38f295b23f2 /include/ruby | |
parent | 6c77d5835604b672601ba9ce3a1716440b02de2f (diff) | |
download | ruby-b2c81746ace2e7a2ab5433e59b585776d945499a.tar.gz |
* encoding.c (rb_enc_default, rb_enc_primary): return pointers to
rb_encoding of default and primary respectively. [ruby-core:12795]
* encoding.c (set_primary_encoding): removed primary_encoding setter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/encoding.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 08371cc141..0d02c88459 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -100,6 +100,8 @@ ID rb_intern3(const char*, long, rb_encoding*); int rb_enc_symname_p(const char*, rb_encoding*); int rb_enc_str_coderange(VALUE); VALUE rb_enc_from_encoding(rb_encoding *enc); +rb_encoding *rb_enc_primary(void); +rb_encoding *rb_enc_default(void); VALUE rb_get_primary_encoding(void); void rb_set_primary_encoding(VALUE encoding); |