ruby-changes:51567
From: nobu <ko1@a...>
Date: Fri, 29 Jun 2018 07:28:24 +0900 (JST)
Subject: [ruby-changes:51567] nobu:r63778 (trunk): fix feature name and removed a duplicate condition
nobu 2018-06-28 18:59:35 +0900 (Thu, 28 Jun 2018) New Revision: 63778 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63778 Log: fix feature name and removed a duplicate condition Modified files: trunk/spec/ruby/optional/capi/ext/encoding_spec.c Index: spec/ruby/optional/capi/ext/encoding_spec.c =================================================================== --- spec/ruby/optional/capi/ext/encoding_spec.c (revision 63777) +++ spec/ruby/optional/capi/ext/encoding_spec.c (revision 63778) @@ -173,9 +173,7 @@ static VALUE encoding_spec_rb_enc_get_in https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/encoding_spec.c#L173 } #endif -#if defined(HAVE_RB_ENC_SET_INDEX) \ - && defined(HAVE_RB_ENC_FIND_INDEX) \ - && defined(HAVE_RB_ENC_FIND_INDEX) +#if defined(HAVE_RB_ENC_SET_INDEX) && defined(HAVE_RB_ENC_FROM_INDEX) static VALUE encoding_spec_rb_enc_set_index(VALUE self, VALUE obj, VALUE index) { int i = NUM2INT(index); @@ -376,9 +374,7 @@ void Init_encoding_spec(void) { https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/encoding_spec.c#L374 rb_define_method(cls, "rb_enc_get_index", encoding_spec_rb_enc_get_index, 1); #endif -#if defined(HAVE_RB_ENC_SET_INDEX) \ - && defined(HAVE_RB_ENC_FIND_INDEX) \ - && defined(HAVE_RB_ENC_FIND_INDEX) +#if defined(HAVE_RB_ENC_SET_INDEX) && defined(HAVE_RB_ENC_FROM_INDEX) rb_define_method(cls, "rb_enc_set_index", encoding_spec_rb_enc_set_index, 2); #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/