summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-11 02:31:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-12-11 02:31:59 +0000
commit1b19c063b8517a4b1c9c31029c49023fa74fb3bd (patch)
tree2fd220237aec2e4775cb26d7a31c64feb57cac55
parent9be47132afd80a4b0f54c178f7237bd197fadf46 (diff)
* ext/digest/digest.c (rb_digest_base_copy): renamed "become".
* ext/stringio/stringio.c (strio_copy): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog6
-rw-r--r--ext/digest/digest.c4
-rw-r--r--ext/stringio/stringio.c6
3 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index e3f3789..f33a384 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Wed Dec 11 11:30:28 2002 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * ext/digest/digest.c (rb_digest_base_copy): renamed "become".
+
+ * ext/stringio/stringio.c (strio_copy): ditto.
+
Tue Dec 10 17:30:35 2002 Tanaka Akira <akr@m17n.org>
* pack.c (utf8_limits): fix the limit of 4 bytes UTF-8 sequence.
diff --git a/ext/digest/digest.c b/ext/digest/digest.c
index 7b4ea0f..63a3b92 100644
--- a/ext/digest/digest.c
+++ b/ext/digest/digest.c
@@ -139,7 +139,7 @@ rb_digest_base_s_hexdigest(klass, str)
}
static VALUE
-rb_digest_base_become(copy, obj)
+rb_digest_base_copy(copy, obj)
VALUE copy, obj;
{
algo_t *algo;
@@ -302,7 +302,7 @@ Init_digest()
rb_define_singleton_method(cDigest_Base, "hexdigest", rb_digest_base_s_hexdigest, 1);
rb_define_method(cDigest_Base, "initialize", rb_digest_base_init, -1);
- rb_define_method(cDigest_Base, "become", rb_digest_base_become, 1);
+ rb_define_method(cDigest_Base, "copy_object", rb_digest_base_copy, 1);
rb_define_method(cDigest_Base, "update", rb_digest_base_update, 1);
rb_define_method(cDigest_Base, "<<", rb_digest_base_update, 1);
rb_define_method(cDigest_Base, "digest", rb_digest_base_digest, 0);
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 7314864..f0c4af5 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -405,7 +405,7 @@ strio_eof(self)
}
static VALUE
-strio_become(copy, orig)
+strio_copy(copy, orig)
VALUE copy, orig;
{
struct StringIO *ptr;
@@ -452,7 +452,7 @@ strio_reopen(argc, argv, self)
{
rb_secure(4);
if (argc == 1 && TYPE(*argv) != T_STRING) {
- return strio_become(self, *argv);
+ return strio_copy(self, *argv);
}
return strio_initialize(argc, argv, self);
}
@@ -900,7 +900,7 @@ Init_stringio()
rb_define_singleton_method(StringIO, "open", strio_s_open, -1);
rb_define_method(StringIO, "initialize", strio_initialize, -1);
rb_enable_super(StringIO, "initialize");
- rb_define_method(StringIO, "become", strio_become, 1);
+ rb_define_method(StringIO, "copy_object", strio_copy, 1);
rb_define_method(StringIO, "reopen", strio_reopen, -1);
rb_define_method(StringIO, "string", strio_get_string, 0);