зеркало из https://github.com/github/ruby.git
* ext/digest/md5/md5init.c (Init_md5): rb_cvar_declare() is
replaced by rb_cvar_set(). * ext/digest/rmd160/rmd160init.c (Init_rmd160): ditto. * ext/digest/sha1/sha1init.c (Init_sha1): ditto. * ext/digest/sha2/sha2init.c (Init_sha2): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
0d8551b3a9
Коммит
c4449fd4c4
11
ChangeLog
11
ChangeLog
|
@ -1,3 +1,14 @@
|
|||
Sun Feb 17 21:39:24 2002 Tetsuya Watanabe <tetsuya.watanabe@nifty.com>
|
||||
|
||||
* ext/digest/md5/md5init.c (Init_md5): rb_cvar_declare() is
|
||||
replaced by rb_cvar_set().
|
||||
|
||||
* ext/digest/rmd160/rmd160init.c (Init_rmd160): ditto.
|
||||
|
||||
* ext/digest/sha1/sha1init.c (Init_sha1): ditto.
|
||||
|
||||
* ext/digest/sha2/sha2init.c (Init_sha2): ditto.
|
||||
|
||||
Fri Feb 15 14:40:38 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_eval): replace rb_cvar_declare() by rb_cvar_set().
|
||||
|
|
|
@ -29,6 +29,6 @@ Init_md5()
|
|||
|
||||
id_metadata = rb_intern("metadata");
|
||||
|
||||
rb_cvar_declare(cDigest_MD5, id_metadata,
|
||||
Data_Wrap_Struct(rb_cObject, 0, 0, &md5));
|
||||
rb_cvar_set(cDigest_MD5, id_metadata,
|
||||
Data_Wrap_Struct(rb_cObject, 0, 0, &md5), Qtrue);
|
||||
}
|
||||
|
|
|
@ -29,6 +29,6 @@ Init_rmd160()
|
|||
|
||||
id_metadata = rb_intern("metadata");
|
||||
|
||||
rb_cvar_declare(cDigest_RMD160, id_metadata,
|
||||
Data_Wrap_Struct(rb_cObject, 0, 0, &rmd160));
|
||||
rb_cvar_set(cDigest_RMD160, id_metadata,
|
||||
Data_Wrap_Struct(rb_cObject, 0, 0, &rmd160), Qtrue);
|
||||
}
|
||||
|
|
|
@ -29,6 +29,6 @@ Init_sha1()
|
|||
|
||||
id_metadata = rb_intern("metadata");
|
||||
|
||||
rb_cvar_declare(cDigest_SHA1, id_metadata,
|
||||
Data_Wrap_Struct(rb_cObject, 0, 0, &sha1));
|
||||
rb_cvar_set(cDigest_SHA1, id_metadata,
|
||||
Data_Wrap_Struct(rb_cObject, 0, 0, &sha1), Qtrue);
|
||||
}
|
||||
|
|
|
@ -40,8 +40,8 @@ Init_sha2()
|
|||
#define DEFINE_ALGO_CLASS(bitlen) \
|
||||
cDigest_SHA##bitlen = rb_define_class_under(mDigest, "SHA" #bitlen, cDigest_Base); \
|
||||
\
|
||||
rb_cvar_declare(cDigest_SHA##bitlen, id_metadata, \
|
||||
Data_Wrap_Struct(rb_cObject, 0, 0, &sha##bitlen));
|
||||
rb_cvar_set(cDigest_SHA##bitlen, id_metadata, \
|
||||
Data_Wrap_Struct(rb_cObject, 0, 0, &sha##bitlen), Qtrue);
|
||||
|
||||
FOREACH_BITLEN(DEFINE_ALGO_CLASS)
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче