1
0
Fork 0
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:
Nobuyoshi Nakada 2019-08-21 16:20:31 +09:00
parent 4419b5dbc2
commit 3df9f3cc13
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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);