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

ruby-changes:34907

From: nobu <ko1@a...>
Date: Mon, 28 Jul 2014 20:29:02 +0900 (JST)
Subject: [ruby-changes:34907] nobu:r46990 (trunk): add some documents [ci skip]

nobu	2014-07-28 20:28:55 +0900 (Mon, 28 Jul 2014)

  New Revision: 46990

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

  Log:
    add some documents  [ci skip]
    
    * bignum.c (Init_Bignum): [DOC] Bignum::GMP_VERSION.
    
    * complex.c (Init_Complex): [DOC] ignore an internal class.
    
    * dir.c (Init_Dir): [DOC] File::FNM_SYSCASE.
    
    * file.c (rb_file_exists_p): [DOC] File.exists? is deprecated.
    
    * object.c (rb_mod_initialize_clone): [DOC] ignore implementation
      detail.

  Modified files:
    trunk/bignum.c
    trunk/complex.c
    trunk/dir.c
    trunk/file.c
    trunk/object.c
Index: complex.c
===================================================================
--- complex.c	(revision 46989)
+++ complex.c	(revision 46990)
@@ -2167,7 +2167,7 @@ Init_Complex(void) https://github.com/ruby/ruby/blob/trunk/complex.c#L2167
     rb_define_method(rb_cComplex, "inspect", nucomp_inspect, 0);
 
     rb_define_private_method(rb_cComplex, "marshal_dump", nucomp_marshal_dump, 0);
-    compat = rb_define_class_under(rb_cComplex, "compatible", rb_cObject);
+    compat = rb_define_class_under(rb_cComplex, "compatible", rb_cObject); /* :nodoc: */
     rb_define_private_method(compat, "marshal_load", nucomp_marshal_load, 1);
     rb_marshal_define_compat(rb_cComplex, compat, nucomp_dumper, nucomp_loader);
 
Index: object.c
===================================================================
--- object.c	(revision 46989)
+++ object.c	(revision 46990)
@@ -1707,6 +1707,7 @@ rb_mod_initialize(VALUE module) https://github.com/ruby/ruby/blob/trunk/object.c#L1707
     return Qnil;
 }
 
+/* :nodoc: */
 static VALUE
 rb_mod_initialize_clone(VALUE clone, VALUE orig)
 {
Index: dir.c
===================================================================
--- dir.c	(revision 46989)
+++ dir.c	(revision 46990)
@@ -2316,5 +2316,11 @@ Init_Dir(void) https://github.com/ruby/ruby/blob/trunk/dir.c#L2316
      *  Allows file globbing through "{a,b}" in File.fnmatch patterns.
      */
     rb_file_const("FNM_EXTGLOB", INT2FIX(FNM_EXTGLOB));
+
+    /*  Document-const: File::Constants::FNM_SYSCASE
+     *
+     *  System default case insensitiveness, equals to FNM_CASEFOLD or
+     *  0.
+     */
     rb_file_const("FNM_SYSCASE", INT2FIX(FNM_SYSCASE));
 }
Index: bignum.c
===================================================================
--- bignum.c	(revision 46989)
+++ bignum.c	(revision 46990)
@@ -7037,6 +7037,7 @@ Init_Bignum(void) https://github.com/ruby/ruby/blob/trunk/bignum.c#L7037
     rb_define_method(rb_cBignum, "even?", rb_big_even_p, 0);
 
 #ifdef USE_GMP
+    /* The version of loaded GMP. */
     rb_define_const(rb_cBignum, "GMP_VERSION", rb_sprintf("GMP %s", gmp_version));
 #endif
 
Index: file.c
===================================================================
--- file.c	(revision 46989)
+++ file.c	(revision 46990)
@@ -1429,7 +1429,6 @@ rb_file_chardev_p(VALUE obj, VALUE fname https://github.com/ruby/ruby/blob/trunk/file.c#L1429
 /*
  * call-seq:
  *    File.exist?(file_name)    ->  true or false
- *    File.exists?(file_name)   ->  true or false
  *
  * Return <code>true</code> if the named file exists.
  *
@@ -1447,6 +1446,12 @@ rb_file_exist_p(VALUE obj, VALUE fname) https://github.com/ruby/ruby/blob/trunk/file.c#L1446
     return Qtrue;
 }
 
+/*
+ * call-seq:
+ *    File.exists?(file_name)   ->  true or false
+ *
+ * Deprecated method. Don't use.
+ */
 static VALUE
 rb_file_exists_p(VALUE obj, VALUE fname)
 {

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

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