summaryrefslogtreecommitdiff
path: root/struct.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-19 05:41:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-19 05:41:08 +0000
commit6e52d10fe63fa99b6bfb12e5abb232c1165c804f (patch)
tree317cda44160a93678e8b530700ce4a2e17e682ed /struct.c
parent81882bac13c17769128552d983ba05bb0926d0fc (diff)
downloadruby-6e52d10fe63fa99b6bfb12e5abb232c1165c804f.tar.gz
* object.c (init_copy): rename copy_object as initialize_copy,
since it works as copy constructor. * eval.c (rb_add_method): initialize_copy should always be private, like initialize. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'struct.c')
-rw-r--r--struct.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/struct.c b/struct.c
index 128ac27ab2..0ffae5ebfe 100644
--- a/struct.c
+++ b/struct.c
@@ -422,7 +422,7 @@ rb_struct_to_a(s)
}
static VALUE
-rb_struct_copy_object(copy, s)
+rb_struct_init_copy(copy, s)
VALUE copy, s;
{
if (copy == s) return copy;
@@ -642,7 +642,7 @@ Init_Struct()
rb_define_singleton_method(rb_cStruct, "new", rb_struct_s_def, -1);
rb_define_method(rb_cStruct, "initialize", rb_struct_initialize, -2);
- rb_define_method(rb_cStruct, "copy_object", rb_struct_copy_object, 1);
+ rb_define_method(rb_cStruct, "initialize_copy", rb_struct_init_copy, 1);
rb_define_method(rb_cStruct, "==", rb_struct_equal, 1);
rb_define_method(rb_cStruct, "eql?", rb_struct_eql, 1);