summaryrefslogtreecommitdiff
path: root/ext/json
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-16 08:39:48 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-16 08:39:48 (GMT)
commitc8094ff154065f243292a09dce5d4c8d90f8309a (patch)
tree28ccfd4e07acf80942775e6db9811d41a9595ff0 /ext/json
parent24dfe5e749eaa34bc6c1cba15811efbcc0a578f4 (diff)
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/json')
-rw-r--r--ext/json/generator/generator.c1
-rw-r--r--ext/json/parser/parser.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c
index 2bf8074..f061267 100644
--- a/ext/json/generator/generator.c
+++ b/ext/json/generator/generator.c
@@ -1335,6 +1335,7 @@ static VALUE cState_buffer_initial_length_set(VALUE self, VALUE buffer_initial_l
*/
void Init_generator(void)
{
+#undef rb_intern
rb_require("json/common");
mJSON = rb_define_module("JSON");
diff --git a/ext/json/parser/parser.c b/ext/json/parser/parser.c
index d2e4eb6..b5ed093 100644
--- a/ext/json/parser/parser.c
+++ b/ext/json/parser/parser.c
@@ -2064,6 +2064,7 @@ static VALUE cParser_source(VALUE self)
void Init_parser(void)
{
+#undef rb_intern
rb_require("json/common");
mJSON = rb_define_module("JSON");
mExt = rb_define_module_under(mJSON, "Ext");