[Groonga-commit] groonga/groonga at 5d097c7 [master] Add mrb_expr.c as place holder

Back to archive index

wanabe null+****@clear*****
Sat Oct 5 09:03:23 JST 2013


wanabe	2013-10-05 09:03:23 +0900 (Sat, 05 Oct 2013)

  New Revision: 5d097c7c51302fd424b369057529bfa4b7e34ef5
  https://github.com/groonga/groonga/commit/5d097c7c51302fd424b369057529bfa4b7e34ef5

  Merged d127d05: Merge pull request #110 from wanabe/scaninfo-with-mruby

  Message:
    Add mrb_expr.c as place holder

  Added files:
    lib/mrb/mrb_expr.c
    lib/mrb/mrb_expr.h
  Modified files:
    lib/ctx_impl_mrb.c
    lib/mrb/sources.am

  Modified: lib/ctx_impl_mrb.c (+2 -0)
===================================================================
--- lib/ctx_impl_mrb.c    2013-10-04 13:18:15 +0900 (55261af)
+++ lib/ctx_impl_mrb.c    2013-10-05 09:03:23 +0900 (424d037)
@@ -20,6 +20,7 @@
 #include "ctx_impl.h"
 
 #include "mrb/mrb_obj.h"
+#include "mrb/mrb_expr.h"
 
 #ifdef GRN_WITH_MRUBY
 static void
@@ -30,6 +31,7 @@ grn_ctx_impl_mrb_init_bindings(grn_ctx *ctx)
   ctx->impl->mrb.module = mrb_define_module(mrb, "Groonga");
 
   grn_mrb_obj_init(ctx);
+  grn_mrb_expr_init(ctx);
 }
 
 void

  Added: lib/mrb/mrb_expr.c (+33 -0) 100644
===================================================================
--- /dev/null
+++ lib/mrb/mrb_expr.c    2013-10-05 09:03:23 +0900 (23af9b9)
@@ -0,0 +1,33 @@
+/* -*- c-basic-offset: 2 -*- */
+/*
+  Copyright(C) 2013 Brazil
+
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of the GNU Lesser General Public
+  License version 2.1 as published by the Free Software Foundation.
+
+  This library is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+*/
+
+#include "../ctx_impl.h"
+
+#ifdef GRN_WITH_MRUBY
+#include <mruby.h>
+#include <mruby/class.h>
+
+#include "mrb_expr.h"
+
+void
+grn_mrb_expr_init(grn_ctx *ctx)
+{
+  mrb_state *mrb = ctx->impl->mrb.state;
+  struct RClass *module = ctx->impl->mrb.module;
+}
+#endif

  Added: lib/mrb/mrb_expr.h (+34 -0) 100644
===================================================================
--- /dev/null
+++ lib/mrb/mrb_expr.h    2013-10-05 09:03:23 +0900 (ad99863)
@@ -0,0 +1,34 @@
+/* -*- c-basic-offset: 2 -*- */
+/*
+  Copyright(C) 2013 Brazil
+
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of the GNU Lesser General Public
+  License version 2.1 as published by the Free Software Foundation.
+
+  This library is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+*/
+
+#ifndef GRN_MRB_EXPR_H
+#define GRN_MRB_EXPR_H
+
+#include "../ctx.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void grn_mrb_expr_init(grn_ctx *ctx);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* GRN_MRB_EXPR_H */

  Modified: lib/mrb/sources.am (+2 -0)
===================================================================
--- lib/mrb/sources.am    2013-10-04 13:18:15 +0900 (7a713b6)
+++ lib/mrb/sources.am    2013-10-05 09:03:23 +0900 (daeeefb)
@@ -1,3 +1,5 @@
 libgrnmrb_la_SOURCES =				\
+	mrb_expr.c				\
+	mrb_expr.h				\
 	mrb_obj.c				\
 	mrb_obj.h
-------------- next part --------------
HTML����������������������������...
Download 



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