[Groonga-commit] groonga/groonga at e4c14fb [master] mrb: add post initialize hook

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Thu Dec 25 23:25:48 JST 2014


Kouhei Sutou	2014-12-25 23:25:48 +0900 (Thu, 25 Dec 2014)

  New Revision: e4c14fb8ef747e8bfc5cecd38f667dc22ec722ca
  https://github.com/groonga/groonga/commit/e4c14fb8ef747e8bfc5cecd38f667dc22ec722ca

  Message:
    mrb: add post initialize hook

  Added files:
    lib/mrb/scripts/initialize/post.rb
  Modified files:
    lib/ctx_impl_mrb.c
  Renamed files:
    lib/mrb/scripts/initialize/pre.rb
      (from lib/mrb/scripts/init.rb)

  Modified: lib/ctx_impl_mrb.c (+3 -1)
===================================================================
--- lib/ctx_impl_mrb.c    2014-12-25 23:19:13 +0900 (e3b84ba)
+++ lib/ctx_impl_mrb.c    2014-12-25 23:25:48 +0900 (de40b49)
@@ -87,7 +87,7 @@ grn_ctx_impl_mrb_init_bindings(grn_ctx *ctx)
   }
 
   grn_mrb_load(ctx, "require.rb");
-  grn_mrb_load(ctx, "init.rb");
+  grn_mrb_load(ctx, "initialize/pre.rb");
 
   grn_mrb_error_init(ctx);
   grn_mrb_id_init(ctx);
@@ -105,6 +105,8 @@ grn_ctx_impl_mrb_init_bindings(grn_ctx *ctx)
   grn_mrb_expr_init(ctx);
   grn_mrb_accessor_init(ctx);
   grn_mrb_procedure_init(ctx);
+
+  grn_mrb_load(ctx, "initialize/post.rb");
 }
 
 void

  Added: lib/mrb/scripts/initialize/post.rb (+1 -0) 100644
===================================================================
--- /dev/null
+++ lib/mrb/scripts/initialize/post.rb    2014-12-25 23:25:48 +0900 (924aff8)
@@ -0,0 +1 @@
+require "eval_context"

  Renamed: lib/mrb/scripts/initialize/pre.rb (+0 -1) 53%
===================================================================
--- lib/mrb/scripts/init.rb    2014-12-25 23:19:13 +0900 (d9d2c21)
+++ lib/mrb/scripts/initialize/pre.rb    2014-12-25 23:25:48 +0900 (c9a74a8)
@@ -1,2 +1 @@
 require "backtrace_entry"
-require "eval_context"
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Zurück zum Archiv-Index