Kouhei Sutou
null+****@clear*****
Wed Apr 6 18:16:53 JST 2016
Kouhei Sutou 2016-04-06 18:16:53 +0900 (Wed, 06 Apr 2016) New Revision: 84a3917548b33f7151946bc37be847ffaf6e0a1f https://github.com/groonga/groonga/commit/84a3917548b33f7151946bc37be847ffaf6e0a1f Message: mrb: add Groonga::ExpressionCode#modify Modified files: lib/mrb/mrb_expr.c Modified: lib/mrb/mrb_expr.c (+11 -0) =================================================================== --- lib/mrb/mrb_expr.c 2016-04-06 16:16:23 +0900 (f8fe1b6) +++ lib/mrb/mrb_expr.c 2016-04-06 18:16:53 +0900 (76e8df2) @@ -455,6 +455,15 @@ mrb_grn_expr_code_get_flags(mrb_state *mrb, mrb_value self) } static mrb_value +mrb_grn_expr_code_get_modify(mrb_state *mrb, mrb_value self) +{ + grn_expr_code *expr_code; + + expr_code = DATA_PTR(self); + return mrb_fixnum_value(expr_code->modify); +} + +static mrb_value mrb_grn_expression_class_create(mrb_state *mrb, mrb_value klass) { grn_ctx *ctx = (grn_ctx *)mrb->ud; @@ -833,6 +842,8 @@ grn_mrb_expr_init(grn_ctx *ctx) mrb_grn_expr_code_get_op, MRB_ARGS_NONE()); mrb_define_method(mrb, klass, "flags", mrb_grn_expr_code_get_flags, MRB_ARGS_NONE()); + mrb_define_method(mrb, klass, "modify", + mrb_grn_expr_code_get_modify, MRB_ARGS_NONE()); { struct RClass *expression_code_class = klass; -------------- next part -------------- HTML����������������������������...다운로드