mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
9be47132af
commit
1b19c063b8
3 changed files with 11 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue