diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-19 05:41:08 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-05-19 05:41:08 +0000 |
commit | 7c202937fa47f2b65a060f66e83042e151d97aeb (patch) | |
tree | 317cda44160a93678e8b530700ce4a2e17e682ed /time.c | |
parent | b1b809d7211b9b34c4e824f63202419b36096f9f (diff) | |
download | ruby-7c202937fa47f2b65a060f66e83042e151d97aeb.tar.gz ruby-7c202937fa47f2b65a060f66e83042e151d97aeb.tar.xz ruby-7c202937fa47f2b65a060f66e83042e151d97aeb.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@3820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |