string.c: enable rdoc

* string.c (rb_str_casecmp_p): [DOC] move forward declaration of
  rb_str_downcase to enable rdoc.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-11-28 09:37:19 +00:00
parent ad619e02c4
commit 196e8b4480

View File

@ -174,6 +174,7 @@ static VALUE str_new_frozen(VALUE klass, VALUE orig);
static VALUE str_new_static(VALUE klass, const char *ptr, long len, int encindex); static VALUE str_new_static(VALUE klass, const char *ptr, long len, int encindex);
static void str_make_independent_expand(VALUE str, long len, long expand, const int termlen); static void str_make_independent_expand(VALUE str, long len, long expand, const int termlen);
static inline void str_modifiable(VALUE str); static inline void str_modifiable(VALUE str);
static VALUE rb_str_downcase(int argc, VALUE *argv, VALUE str);
static inline void static inline void
str_make_independent(VALUE str) str_make_independent(VALUE str)
@ -3207,8 +3208,6 @@ rb_str_casecmp(VALUE str1, VALUE str2)
* "abcdef".casecmp("ABCDEF") #=> true * "abcdef".casecmp("ABCDEF") #=> true
*/ */
static VALUE rb_str_downcase(int argc, VALUE *argv, VALUE str); /* forward declaration */
static VALUE static VALUE
rb_str_casecmp_p(VALUE str1, VALUE str2) rb_str_casecmp_p(VALUE str1, VALUE str2)
{ {