Kouhei Sutou 2018-12-25 15:47:30 +0900 (Tue, 25 Dec 2018) Revision: 662d65373ab611796c384ca1a4f1a5c4ef54f5bf https://github.com/groonga/groonga/commit/662d65373ab611796c384ca1a4f1a5c4ef54f5bf Message: mrb: use class_method Modified files: lib/mrb/mrb_bulk.c Modified: lib/mrb/mrb_bulk.c (+3 -2) =================================================================== --- lib/mrb/mrb_bulk.c 2018-12-25 12:39:33 +0900 (cebd4528c) +++ lib/mrb/mrb_bulk.c 2018-12-25 15:47:30 +0900 (c20847ce8) @@ -1,6 +1,7 @@ /* -*- c-basic-offset: 2 -*- */ /* Copyright(C) 2014-2018 Brazil + Copyright(C) 2018 Kouhei Sutou <kou****@clear*****> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -366,8 +367,8 @@ grn_mrb_bulk_init(grn_ctx *ctx) klass = mrb_define_class_under(mrb, module, "Bulk", mrb->object_class); MRB_SET_INSTANCE_TT(klass, MRB_TT_DATA); - mrb_define_singleton_method(mrb, (struct RObject *)klass, "true?", - mrb_grn_bulk_s_is_true, MRB_ARGS_REQ(1)); + mrb_define_class_method(mrb, (struct RObject *)klass, "true?", + mrb_grn_bulk_s_is_true, MRB_ARGS_REQ(1)); mrb_define_method(mrb, klass, "initialize", mrb_grn_bulk_initialize, MRB_ARGS_REQ(1)); -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181225/1a7f3da0/attachment-0001.html>