Kouhei Sutou
null+****@clear*****
Thu Oct 10 21:58:23 JST 2013
Kouhei Sutou 2013-10-10 21:58:23 +0900 (Thu, 10 Oct 2013) New Revision: 31a1d0a81bd37b9ebbcad3977aefd56cd77db898 https://github.com/groonga/groonga/commit/31a1d0a81bd37b9ebbcad3977aefd56cd77db898 Message: mrb: use meaningful name instead of general "ptr" Modified files: lib/mrb/mrb_expr.c Modified: lib/mrb/mrb_expr.c (+4 -4) =================================================================== --- lib/mrb/mrb_expr.c 2013-10-10 21:57:59 +0900 (c5ba4b9) +++ lib/mrb/mrb_expr.c 2013-10-10 21:58:23 +0900 (2aaf334) @@ -47,17 +47,17 @@ mrb_grn_scan_info_new(mrb_state *mrb, scan_info *scan_info) } static mrb_value -mrb_grn_expr_code_new(mrb_state *mrb, grn_expr_code *ptr) +mrb_grn_expr_code_new(mrb_state *mrb, grn_expr_code *code) { grn_ctx *ctx = (grn_ctx *)mrb->ud; struct RClass *module = ctx->impl->mrb.module; struct RClass *klass; - mrb_value mrb_ptr; + mrb_value mrb_code; - mrb_ptr = mrb_cptr_value(mrb, ptr); + mrb_code = mrb_cptr_value(mrb, code); klass = mrb_class_ptr(mrb_const_get(mrb, mrb_obj_value(module), mrb_intern(mrb, "ExpressionCode"))); - return mrb_obj_new(mrb, klass, 1, &mrb_ptr); + return mrb_obj_new(mrb, klass, 1, &mrb_code); } static scan_info ** -------------- next part -------------- HTML����������������������������... Download