From f2980e3e2050f21273bfc8412e83adef5f75b1f0 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 2 Jun 2014 20:23:47 +0000 Subject: encoding.h: constify rb_encoding * include/ruby/encoding.h: constify `rb_encoding` itself, not only arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal.h') diff --git a/internal.h b/internal.h index a02b5550ab..2c1c6a3dfc 100644 --- a/internal.h +++ b/internal.h @@ -769,7 +769,7 @@ VALUE rb_str_dynamic_intern(VALUE); ID rb_check_id_without_pindown(VALUE *); ID rb_sym2id_without_pindown(VALUE); #ifdef RUBY_ENCODING_H -ID rb_check_id_cstr_without_pindown(const char *, long, const rb_encoding *); +ID rb_check_id_cstr_without_pindown(const char *, long, rb_encoding *); #endif ID rb_id_attrget(ID id); @@ -867,7 +867,7 @@ VALUE rb_id_quote_unprintable(ID); void rb_str_fill_terminator(VALUE str, const int termlen); VALUE rb_str_locktmp_ensure(VALUE str, VALUE (*func)(VALUE), VALUE arg); #ifdef RUBY_ENCODING_H -VALUE rb_external_str_with_enc(VALUE str, const rb_encoding *eenc); +VALUE rb_external_str_with_enc(VALUE str, rb_encoding *eenc); #endif #define STR_NOEMBED FL_USER1 #define STR_SHARED FL_USER2 /* = ELTS_SHARED */ -- cgit v1.2.3