mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Separated initializing IDs
This commit is contained in:
parent
4419b5dbc2
commit
3df9f3cc13
1 changed files with 6 additions and 2 deletions
|
@ -735,7 +735,13 @@ Init_digest(void)
|
|||
id_digest = rb_intern("digest");
|
||||
id_hexdigest = rb_intern("hexdigest");
|
||||
id_digest_length = rb_intern("digest_length");
|
||||
id_metadata = rb_intern("metadata");
|
||||
InitVM(digest);
|
||||
}
|
||||
|
||||
void
|
||||
InitVM_digest(void)
|
||||
{
|
||||
/*
|
||||
* module Digest
|
||||
*/
|
||||
|
@ -782,8 +788,6 @@ Init_digest(void)
|
|||
rb_define_singleton_method(rb_cDigest_Class, "digest", rb_digest_class_s_digest, -1);
|
||||
rb_define_singleton_method(rb_cDigest_Class, "hexdigest", rb_digest_class_s_hexdigest, -1);
|
||||
|
||||
id_metadata = rb_intern("metadata");
|
||||
|
||||
/* class Digest::Base < Digest::Class */
|
||||
rb_cDigest_Base = rb_define_class_under(rb_mDigest, "Base", rb_cDigest_Class);
|
||||
|
||||
|
|
Loading…
Reference in a new issue