Kouhei Sutou
null+****@clear*****
Tue Oct 8 22:26:50 JST 2013
Kouhei Sutou 2013-10-08 22:26:50 +0900 (Tue, 08 Oct 2013) New Revision: 0f6cc0cf1398996830da338048a7689da0694e0c https://github.com/groonga/groonga/commit/0f6cc0cf1398996830da338048a7689da0694e0c Message: Fix variable name grn_mrb_load() receives script path (it may be relative path) not script name. Modified files: lib/mrb.c lib/mrb.h Modified: lib/mrb.c (+2 -2) =================================================================== --- lib/mrb.c 2013-10-08 22:15:52 +0900 (f6806df) +++ lib/mrb.c 2013-10-08 22:26:50 +0900 (3d4f9f8) @@ -97,7 +97,7 @@ grn_mrb_open_script(grn_ctx *ctx, const char *name) } mrb_value -grn_mrb_load(grn_ctx *ctx, const char *name) +grn_mrb_load(grn_ctx *ctx, const char *path) { mrb_state *mrb = ctx->impl->mrb.state; int n; @@ -108,7 +108,7 @@ grn_mrb_load(grn_ctx *ctx, const char *name) if (!mrb) { return mrb_nil_value(); } - if (!(fp = grn_mrb_open_script(ctx, name))) { + if (!(fp = grn_mrb_open_script(ctx, path))) { return mrb_nil_value(); } Modified: lib/mrb.h (+1 -1) =================================================================== --- lib/mrb.h 2013-10-08 22:15:52 +0900 (fa1440e) +++ lib/mrb.h 2013-10-08 22:26:50 +0900 (4cff30e) @@ -32,7 +32,7 @@ extern "C" { #ifdef GRN_WITH_MRUBY mrb_value grn_mrb_eval(grn_ctx *ctx, const char *script, int script_length); -mrb_value grn_mrb_load(grn_ctx *ctx, const char *name); +mrb_value grn_mrb_load(grn_ctx *ctx, const char *path); grn_rc grn_mrb_to_grn(grn_ctx *ctx, mrb_value mrb_object, grn_obj *grn_object); #endif -------------- next part -------------- HTML����������������������������...Download