[Groonga-commit] groonga/groonga at f338794 [master] mruby: name mruby related data type in grn_ctx_impl

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Nov 20 23:45:27 JST 2013


Kouhei Sutou	2013-11-20 23:45:27 +0900 (Wed, 20 Nov 2013)

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

  Message:
    mruby: name mruby related data type in grn_ctx_impl

  Modified files:
    lib/ctx_impl.h

  Modified: lib/ctx_impl.h (+10 -5)
===================================================================
--- lib/ctx_impl.h    2013-11-19 15:54:07 +0900 (cb0ba0e)
+++ lib/ctx_impl.h    2013-11-20 23:45:27 +0900 (b145cc9)
@@ -1,6 +1,6 @@
 /* -*- c-basic-offset: 2 -*- */
 /*
-  Copyright(C) 2009-2012 Brazil
+  Copyright(C) 2009-2013 Brazil
 
   This library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
@@ -92,6 +92,14 @@ struct _grn_alloc_info
 };
 #endif
 
+#ifdef GRN_WITH_MRUBY
+typedef struct _grn_mrb_data grn_mrb_data;
+struct _grn_mrb_data {
+  mrb_state *state;
+  struct RClass *module;
+};
+#endif
+
 struct _grn_ctx_impl {
   grn_encoding encoding;
 
@@ -176,10 +184,7 @@ struct _grn_ctx_impl {
   msgpack_packer msgpacker;
 #endif
 #ifdef GRN_WITH_MRUBY
-  struct {
-    mrb_state *state;
-    struct RClass *module;
-  } mrb;
+  grn_mrb_data mrb;
 #endif
 };
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index