[前][次][番号順一覧][スレッド一覧]

ruby-changes:44840

From: nobu <ko1@a...>
Date: Mon, 28 Nov 2016 18:37:24 +0900 (JST)
Subject: [ruby-changes:44840] nobu:r56913 (trunk): string.c: enable rdoc

nobu	2016-11-28 18:37:19 +0900 (Mon, 28 Nov 2016)

  New Revision: 56913

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56913

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

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 56912)
+++ string.c	(revision 56913)
@@ -174,6 +174,7 @@ static VALUE str_new_frozen(VALUE klass, https://github.com/ruby/ruby/blob/trunk/string.c#L174
 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 inline void str_modifiable(VALUE str);
+static VALUE rb_str_downcase(int argc, VALUE *argv, VALUE str);
 
 static inline void
 str_make_independent(VALUE str)
@@ -3207,8 +3208,6 @@ rb_str_casecmp(VALUE str1, VALUE str2) https://github.com/ruby/ruby/blob/trunk/string.c#L3208
  *     "abcdef".casecmp("ABCDEF")    #=> true
  */
 
-
-static VALUE rb_str_downcase(int argc, VALUE *argv, VALUE str);  /* forward declaration */
 static VALUE
 rb_str_casecmp_p(VALUE str1, VALUE str2)
 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]