diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-16 08:39:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-16 08:39:48 +0000 |
commit | c8094ff154065f243292a09dce5d4c8d90f8309a (patch) | |
tree | 28ccfd4e07acf80942775e6db9811d41a9595ff0 /ext/digest | |
parent | 24dfe5e749eaa34bc6c1cba15811efbcc0a578f4 (diff) | |
download | ruby-c8094ff154065f243292a09dce5d4c8d90f8309a.tar.gz |
no ID cache in Init functions
Init functions are called only once, cache is useless.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/digest')
-rw-r--r-- | ext/digest/bubblebabble/bubblebabble.c | 1 | ||||
-rw-r--r-- | ext/digest/digest.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/digest/bubblebabble/bubblebabble.c b/ext/digest/bubblebabble/bubblebabble.c index 8f436908d3..6557e43c9d 100644 --- a/ext/digest/bubblebabble/bubblebabble.c +++ b/ext/digest/bubblebabble/bubblebabble.c @@ -124,6 +124,7 @@ rb_digest_instance_bubblebabble(VALUE self) void Init_bubblebabble(void) { +#undef rb_intern VALUE rb_mDigest, rb_mDigest_Instance, rb_cDigest_Class; rb_require("digest"); diff --git a/ext/digest/digest.c b/ext/digest/digest.c index 9838ed33de..7d285cfe74 100644 --- a/ext/digest/digest.c +++ b/ext/digest/digest.c @@ -728,6 +728,7 @@ rb_digest_base_block_length(VALUE self) void Init_digest(void) { +#undef rb_intern id_reset = rb_intern("reset"); id_update = rb_intern("update"); id_finish = rb_intern("finish"); |