summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--class.c2
-rw-r--r--file.c1
-rw-r--r--numeric.c1
-rw-r--r--object.c5
-rw-r--r--re.c2
-rw-r--r--time.c1
7 files changed, 16 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 7d2d8bbf97..bf7afe26d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,14 @@
-Wed Sep 28 23:41:34 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Sep 28 23:42:15 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (apply2files): add prototype.
* file.c (rb_stat_inspect): constified.
+ * class.c (rb_mod_init_copy, rb_class_init_copy), file.c (rb_stat_init_copy),
+ numeric.c (num_init_copy), object.c (rb_obj_init_copy, Init_Object),
+ re.c (match_init_copy, rb_reg_init_copy), time.c (time_init_copy):
+ undocumented.
+
Wed Sep 28 23:09:23 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* lib/delegate.rb: document update from James Edward Gray II
diff --git a/class.c b/class.c
index b7f05dd4e5..798ecebe72 100644
--- a/class.c
+++ b/class.c
@@ -58,6 +58,7 @@ clone_method(mid, body, tbl)
return ST_CONTINUE;
}
+/* :nodoc: */
VALUE
rb_mod_init_copy(clone, orig)
VALUE clone, orig;
@@ -85,6 +86,7 @@ rb_mod_init_copy(clone, orig)
return clone;
}
+/* :nodoc: */
VALUE
rb_class_init_copy(clone, orig)
VALUE clone, orig;
diff --git a/file.c b/file.c
index 1f90fef4a6..4aab1b6674 100644
--- a/file.c
+++ b/file.c
@@ -3304,6 +3304,7 @@ rb_stat_init(obj, fname)
return Qnil;
}
+/* :nodoc: */
static VALUE
rb_stat_init_copy(copy, orig)
VALUE copy, orig;
diff --git a/numeric.c b/numeric.c
index eb528e9322..ca61ebdb41 100644
--- a/numeric.c
+++ b/numeric.c
@@ -198,6 +198,7 @@ num_sadded(x, name)
return Qnil; /* not reached */
}
+/* :nodoc: */
static VALUE
num_init_copy(x, y)
VALUE x, y;
diff --git a/object.c b/object.c
index 611f4d6589..facdb5811f 100644
--- a/object.c
+++ b/object.c
@@ -303,6 +303,7 @@ rb_obj_dup(obj)
return dup;
}
+/* :nodoc: */
VALUE
rb_obj_init_copy(obj, orig)
VALUE obj, orig;
@@ -2701,7 +2702,7 @@ Init_Object()
rb_define_method(rb_cModule, "<=", rb_class_inherited_p, 1);
rb_define_method(rb_cModule, ">", rb_mod_gt, 1);
rb_define_method(rb_cModule, ">=", rb_mod_ge, 1);
- rb_define_method(rb_cModule, "initialize_copy", rb_mod_init_copy, 1);
+ rb_define_method(rb_cModule, "initialize_copy", rb_mod_init_copy, 1); /* in class.c */
rb_define_method(rb_cModule, "to_s", rb_mod_to_s, 0);
rb_define_method(rb_cModule, "included_modules",
rb_mod_included_modules, 0); /* in class.c */
@@ -2743,7 +2744,7 @@ Init_Object()
rb_define_method(rb_cClass, "allocate", rb_obj_alloc, 0);
rb_define_method(rb_cClass, "new", rb_class_new_instance, -1);
rb_define_method(rb_cClass, "initialize", rb_class_initialize, -1);
- rb_define_method(rb_cClass, "initialize_copy", rb_class_init_copy, 1);
+ rb_define_method(rb_cClass, "initialize_copy", rb_class_init_copy, 1); /* in class.c */
rb_define_method(rb_cClass, "superclass", rb_class_superclass, 0);
rb_define_alloc_func(rb_cClass, rb_class_s_alloc);
rb_undef_method(rb_cClass, "extend_object");
diff --git a/re.c b/re.c
index cec9d0fffd..ab60aba1c1 100644
--- a/re.c
+++ b/re.c
@@ -680,6 +680,7 @@ match_alloc(klass)
return (VALUE)match;
}
+/* :nodoc: */
static VALUE
match_init_copy(obj, orig)
VALUE obj, orig;
@@ -1974,6 +1975,7 @@ rb_reg_s_union(argc, argv)
}
}
+/* :nodoc: */
static VALUE
rb_reg_init_copy(copy, re)
VALUE copy, re;
diff --git a/time.c b/time.c
index 81efe260cc..11517497fa 100644
--- a/time.c
+++ b/time.c
@@ -1031,6 +1031,7 @@ time_hash(time)
return LONG2FIX(hash);
}
+/* :nodoc: */
static VALUE
time_init_copy(copy, time)
VALUE copy, time;