[Groonga-commit] ranguba/rroonga at 16ba8fe [master] Use Data as parent of binding object

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Feb 7 17:37:07 JST 2017


Kouhei Sutou	2017-02-07 17:37:07 +0900 (Tue, 07 Feb 2017)

  New Revision: 16ba8fedea6f02c0e21c51d643b9e0e069f6df5b
  https://github.com/ranguba/rroonga/commit/16ba8fedea6f02c0e21c51d643b9e0e069f6df5b

  Message:
    Use Data as parent of binding object

  Modified files:
    ext/groonga/rb-grn-context.c
    ext/groonga/rb-grn-object.c
    ext/groonga/rb-grn-plugin.c
    ext/groonga/rb-grn-table-cursor.c

  Modified: ext/groonga/rb-grn-context.c (+1 -1)
===================================================================
--- ext/groonga/rb-grn-context.c    2017-01-12 23:15:00 +0900 (18b374b)
+++ ext/groonga/rb-grn-context.c    2017-02-07 17:37:07 +0900 (a0ea86b)
@@ -991,7 +991,7 @@ rb_grn_context_object_created (VALUE rb_context, VALUE rb_object)
 void
 rb_grn_init_context (VALUE mGrn)
 {
-    cGrnContext = rb_define_class_under(mGrn, "Context", rb_cObject);
+    cGrnContext = rb_define_class_under(mGrn, "Context", rb_cData);
     rb_define_alloc_func(cGrnContext, rb_grn_context_alloc);
 
     rb_cv_set(cGrnContext, "@@default", Qnil);

  Modified: ext/groonga/rb-grn-object.c (+1 -1)
===================================================================
--- ext/groonga/rb-grn-object.c    2017-01-12 23:15:00 +0900 (6c52848)
+++ ext/groonga/rb-grn-object.c    2017-02-07 17:37:07 +0900 (ee160f1)
@@ -1973,7 +1973,7 @@ rb_grn_object_dirty_p (VALUE self)
 void
 rb_grn_init_object (VALUE mGrn)
 {
-    rb_cGrnObject = rb_define_class_under(mGrn, "Object", rb_cObject);
+    rb_cGrnObject = rb_define_class_under(mGrn, "Object", rb_cData);
     rb_define_alloc_func(rb_cGrnObject, rb_grn_object_alloc);
 
     rb_define_attr(rb_cGrnObject, "context", GRN_TRUE, GRN_FALSE);

  Modified: ext/groonga/rb-grn-plugin.c (+1 -1)
===================================================================
--- ext/groonga/rb-grn-plugin.c    2017-01-12 23:15:00 +0900 (c39fbda)
+++ ext/groonga/rb-grn-plugin.c    2017-02-07 17:37:07 +0900 (399b000)
@@ -245,7 +245,7 @@ rb_grn_plugin_s_names (int argc, VALUE *argv, VALUE klass)
 void
 rb_grn_init_plugin (VALUE mGrn)
 {
-    cGrnPlugin = rb_define_class_under(mGrn, "Plugin", rb_cObject);
+    cGrnPlugin = rb_define_class_under(mGrn, "Plugin", rb_cData);
     rb_define_alloc_func(cGrnPlugin, rb_grn_plugin_alloc);
 
     rb_define_singleton_method(cGrnPlugin, "register",

  Modified: ext/groonga/rb-grn-table-cursor.c (+1 -1)
===================================================================
--- ext/groonga/rb-grn-table-cursor.c    2017-01-12 23:15:00 +0900 (30f421c)
+++ ext/groonga/rb-grn-table-cursor.c    2017-02-07 17:37:07 +0900 (f4cb937)
@@ -277,7 +277,7 @@ rb_grn_table_cursor_each (VALUE self)
 void
 rb_grn_init_table_cursor (VALUE mGrn)
 {
-    rb_cGrnTableCursor = rb_define_class_under(mGrn, "TableCursor", rb_cObject);
+    rb_cGrnTableCursor = rb_define_class_under(mGrn, "TableCursor", rb_cData);
     rb_define_alloc_func(rb_cGrnTableCursor, rb_grn_object_alloc);
 
     rb_include_module(rb_cGrnTableCursor, rb_mEnumerable);
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index