From c35aa93590ff9737ffe14acf2218fc2085798426 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 17 Apr 2015 05:07:58 +0000 Subject: tkutil.c: revert r48250 * ext/tk/tkutil/tkutil.c (Init_tkutil): TkUtil::CallbackSubst and TkUtil::CallbackSubst::Info need the default allocator. [ruby-list:50115] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/tkutil/tkutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext') diff --git a/ext/tk/tkutil/tkutil.c b/ext/tk/tkutil/tkutil.c index be8d7b2364..c1c4e3fa78 100644 --- a/ext/tk/tkutil/tkutil.c +++ b/ext/tk/tkutil/tkutil.c @@ -1778,10 +1778,10 @@ Init_tkutil(void) ID_call = rb_intern("call"); /* --------------------- */ - cCB_SUBST = rb_define_class_under(mTK, "CallbackSubst", rb_cData); + cCB_SUBST = rb_define_class_under(mTK, "CallbackSubst", rb_cObject); rb_define_singleton_method(cCB_SUBST, "inspect", cbsubst_inspect, 0); - cSUBST_INFO = rb_define_class_under(cCB_SUBST, "Info", rb_cData); + cSUBST_INFO = rb_define_class_under(cCB_SUBST, "Info", rb_cObject); rb_define_singleton_method(cSUBST_INFO, "inspect", substinfo_inspect, 0); ID_SUBST_INFO = rb_intern("SUBST_INFO"); -- cgit v1.2.3