summaryrefslogtreecommitdiff
path: root/time.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 /time.c
parent81882bac13c17769128552d983ba05bb0926d0fc (diff)
* 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 'time.c')
-rw-r--r--time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/time.c b/time.c
index 4b402d1..cb5d508 100644
--- a/time.c
+++ b/time.c
@@ -783,7 +783,7 @@ time_modify(time)
}
static VALUE
-time_copy_object(copy, time)
+time_init_copy(copy, time)
VALUE copy, time;
{
struct time_object *tobj, *tcopy;
@@ -805,7 +805,7 @@ time_dup(time)
VALUE time;
{
VALUE dup = time_s_alloc(rb_cTime);
- time_copy_object(dup, time);
+ time_init_copy(dup, time);
return dup;
}
@@ -1415,7 +1415,7 @@ Init_Time()
rb_define_method(rb_cTime, "<=>", time_cmp, 1);
rb_define_method(rb_cTime, "eql?", time_eql, 1);
rb_define_method(rb_cTime, "hash", time_hash, 0);
- rb_define_method(rb_cTime, "copy_object", time_copy_object, 1);
+ rb_define_method(rb_cTime, "initialize_copy", time_init_copy, 1);
rb_define_method(rb_cTime, "localtime", time_localtime, 0);
rb_define_method(rb_cTime, "gmtime", time_gmtime, 0);