[前][次][番号順一覧][スレッド一覧]

ruby-changes:36169

From: nobu <ko1@a...>
Date: Mon, 3 Nov 2014 14:36:35 +0900 (JST)
Subject: [ruby-changes:36169] nobu:r48250 (trunk): tkutil.c: inherit Data

nobu	2014-11-03 14:36:29 +0900 (Mon, 03 Nov 2014)

  New Revision: 48250

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48250

  Log:
    tkutil.c: inherit Data
    
    * ext/tk/tkutil/tkutil.c: use Data as super class, not to inherit
      useless methods.

  Modified files:
    trunk/ext/tk/tkutil/tkutil.c
Index: ext/tk/tkutil/tkutil.c
===================================================================
--- ext/tk/tkutil/tkutil.c	(revision 48249)
+++ ext/tk/tkutil/tkutil.c	(revision 48250)
@@ -1754,10 +1754,10 @@ Init_tkutil(void) https://github.com/ruby/ruby/blob/trunk/ext/tk/tkutil/tkutil.c#L1754
     ID_call = rb_intern("call");
 
     /* --------------------- */
-    cCB_SUBST = rb_define_class_under(mTK, "CallbackSubst", rb_cObject);
+    cCB_SUBST = rb_define_class_under(mTK, "CallbackSubst", rb_cData);
     rb_define_singleton_method(cCB_SUBST, "inspect", cbsubst_inspect, 0);
 
-    cSUBST_INFO = rb_define_class_under(cCB_SUBST, "Info", rb_cObject);
+    cSUBST_INFO = rb_define_class_under(cCB_SUBST, "Info", rb_cData);
     rb_define_singleton_method(cSUBST_INFO, "inspect", substinfo_inspect, 0);
 
     ID_SUBST_INFO = rb_intern("SUBST_INFO");

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]