ext/groonga/rb-grn-column.c in rroonga-10.0.6 vs ext/groonga/rb-grn-column.c in rroonga-11.0.0

- old
+ new

@@ -1,9 +1,9 @@ /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* vim: set sts=4 sw=4 ts=8 noet: */ /* - Copyright (C) 2009-2015 Kouhei Sutou <kou@clear-code.com> + Copyright (C) 2009-2021 Sutou Kouhei <kou@clear-code.com> Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. @@ -18,11 +18,11 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include "rb-grn.h" -#define SELF(object) ((RbGrnColumn *)DATA_PTR(object)) +#define SELF(object) ((RbGrnColumn *)RTYPEDDATA_DATA(object)) VALUE rb_cGrnColumn; /* * Document-class: Groonga::Column < Groonga::Object @@ -386,11 +386,11 @@ rb_funcall(builder, rb_intern("allow_column="), 1, rb_allow_column); rb_funcall(builder, rb_intern("allow_update="), 1, rb_allow_update); rb_funcall(builder, rb_intern("allow_leading_not="), 1, rb_allow_leading_not); rb_expression = rb_grn_column_expression_builder_build(builder); } - rb_grn_object_deconstruct(RB_GRN_OBJECT(DATA_PTR(rb_expression)), + rb_grn_object_deconstruct(RB_GRN_OBJECT(RTYPEDDATA_DATA(rb_expression)), &expression, NULL, NULL, NULL, NULL, NULL); grn_table_select(context, table, expression, result, operator); rb_grn_context_check(context, self); @@ -829,10 +829,10 @@ name_size = RSTRING_LEN(rb_name); rc = grn_column_rename(context, column, name, name_size); rb_grn_context_check(context, self); rb_grn_rc_check(rc, self); - rb_grn_named_object_set_name(RB_GRN_NAMED_OBJECT(DATA_PTR(self)), + rb_grn_named_object_set_name(RB_GRN_NAMED_OBJECT(RTYPEDDATA_DATA(self)), name, name_size); return self; } void