[Groonga-commit] groonga/groonga at 79c1187 [master] Extract grn_operator related functions

Back to archive index

Kouhei Sutou null+****@clear*****
Fri May 13 15:37:24 JST 2016


Kouhei Sutou	2016-05-13 15:37:24 +0900 (Fri, 13 May 2016)

  New Revision: 79c1187c296a03d5465f6c509614a29df3bb0a90
  https://github.com/groonga/groonga/commit/79c1187c296a03d5465f6c509614a29df3bb0a90

  Message:
    Extract grn_operator related functions

  Added files:
    include/groonga/operator.h
  Modified files:
    include/groonga.h
    include/groonga/Makefile.am
    include/groonga/groonga.h

  Modified: include/groonga.h (+1 -0)
===================================================================
--- include/groonga.h    2016-05-13 15:29:44 +0900 (1e02c7d)
+++ include/groonga.h    2016-05-13 15:37:24 +0900 (c24eff6)
@@ -32,6 +32,7 @@
 #include "groonga/hash.h"
 #include "groonga/ii.h"
 #include "groonga/obj.h"
+#include "groonga/operator.h"
 #include "groonga/output.h"
 #include "groonga/pat.h"
 #include "groonga/request_canceler.h"

  Modified: include/groonga/Makefile.am (+1 -0)
===================================================================
--- include/groonga/Makefile.am    2016-05-13 15:29:44 +0900 (ddc4fb4)
+++ include/groonga/Makefile.am    2016-05-13 15:37:24 +0900 (f9ac5ff)
@@ -13,6 +13,7 @@ groonga_include_HEADERS =			\
 	groonga.h				\
 	ii.h					\
 	obj.h					\
+	operator.h				\
 	output.h				\
 	pat.h					\
 	plugin.h				\

  Modified: include/groonga/groonga.h (+0 -17)
===================================================================
--- include/groonga/groonga.h    2016-05-13 15:29:44 +0900 (3cce9c2)
+++ include/groonga/groonga.h    2016-05-13 15:37:24 +0900 (4ea4b63)
@@ -613,23 +613,6 @@ typedef enum {
   GRN_OP_FUZZY
 } grn_operator;
 
-GRN_API const char *grn_operator_to_string(grn_operator op);
-GRN_API grn_bool grn_operator_exec_equal(grn_ctx *ctx, grn_obj *x, grn_obj *y);
-GRN_API grn_bool grn_operator_exec_not_equal(grn_ctx *ctx,
-                                             grn_obj *x, grn_obj *y);
-GRN_API grn_bool grn_operator_exec_less(grn_ctx *ctx, grn_obj *x, grn_obj *y);
-GRN_API grn_bool grn_operator_exec_greater(grn_ctx *ctx, grn_obj *x, grn_obj *y);
-GRN_API grn_bool grn_operator_exec_less_equal(grn_ctx *ctx,
-                                              grn_obj *x, grn_obj *y);
-GRN_API grn_bool grn_operator_exec_greater_equal(grn_ctx *ctx,
-                                                 grn_obj *x, grn_obj *y);
-GRN_API grn_bool grn_operator_exec_match(grn_ctx *ctx,
-                                         grn_obj *target, grn_obj *sub_text);
-GRN_API grn_bool grn_operator_exec_prefix(grn_ctx *ctx,
-                                          grn_obj *target, grn_obj *prefix);
-GRN_API grn_bool grn_operator_exec_regexp(grn_ctx *ctx,
-                                          grn_obj *target, grn_obj *pattern);
-
 GRN_API grn_obj *grn_obj_column(grn_ctx *ctx, grn_obj *table,
                                 const char *name, unsigned int name_size);
 

  Added: include/groonga/operator.h (+44 -0) 100644
===================================================================
--- /dev/null
+++ include/groonga/operator.h    2016-05-13 15:37:24 +0900 (4a74b14)
@@ -0,0 +1,44 @@
+/*
+  Copyright(C) 2009-2016 Brazil
+
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of the GNU Lesser General Public
+  License as published by the Free Software Foundation; either
+  version 2.1 of the License, or (at your option) any later version.
+
+  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
+*/
+
+#pragma once
+
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
+GRN_API const char *grn_operator_to_string(grn_operator op);
+GRN_API grn_bool grn_operator_exec_equal(grn_ctx *ctx, grn_obj *x, grn_obj *y);
+GRN_API grn_bool grn_operator_exec_not_equal(grn_ctx *ctx,
+                                             grn_obj *x, grn_obj *y);
+GRN_API grn_bool grn_operator_exec_less(grn_ctx *ctx, grn_obj *x, grn_obj *y);
+GRN_API grn_bool grn_operator_exec_greater(grn_ctx *ctx, grn_obj *x, grn_obj *y);
+GRN_API grn_bool grn_operator_exec_less_equal(grn_ctx *ctx,
+                                              grn_obj *x, grn_obj *y);
+GRN_API grn_bool grn_operator_exec_greater_equal(grn_ctx *ctx,
+                                                 grn_obj *x, grn_obj *y);
+GRN_API grn_bool grn_operator_exec_match(grn_ctx *ctx,
+                                         grn_obj *target, grn_obj *sub_text);
+GRN_API grn_bool grn_operator_exec_prefix(grn_ctx *ctx,
+                                          grn_obj *target, grn_obj *prefix);
+GRN_API grn_bool grn_operator_exec_regexp(grn_ctx *ctx,
+                                          grn_obj *target, grn_obj *pattern);
+
+#ifdef __cplusplus
+}
+#endif
-------------- next part --------------
HTML����������������������������...
Download 



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