[Groonga-commit] groonga/groonga at 06ea498 [master] Add a missing file

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 8 14:54:10 JST 2018


Kouhei Sutou	2018-05-08 14:54:10 +0900 (Tue, 08 May 2018)

  New Revision: 06ea49897f19ee05f53e181bb199fde459dd4188
  https://github.com/groonga/groonga/commit/06ea49897f19ee05f53e181bb199fde459dd4188

  Message:
    Add a missing file

  Added files:
    lib/grn_tokenizer.h
  Modified files:
    lib/c_sources.am

  Modified: lib/c_sources.am (+1 -0)
===================================================================
--- lib/c_sources.am    2018-05-08 13:41:52 +0900 (3272940f3)
+++ lib/c_sources.am    2018-05-08 14:54:10 +0900 (66bac0c33)
@@ -104,6 +104,7 @@ libgroonga_c_sources =				\
 	token_cursor.c				\
 	grn_token_cursor.h			\
 	tokenizer.c				\
+	grn_tokenizer.h				\
 	tokenizers.c				\
 	grn_tokenizers.h			\
 	token_filter.c				\

  Added: lib/grn_tokenizer.h (+50 -0) 100644
===================================================================
--- /dev/null
+++ lib/grn_tokenizer.h    2018-05-08 14:54:10 +0900 (87c696758)
@@ -0,0 +1,50 @@
+/* -*- c-basic-offset: 2 -*- */
+/*
+  Copyright(C) 2018 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
+*/
+
+#pragma once
+
+#include "grn_ctx.h"
+
+#define grn_tokenizer_query grn_tokenizer_query_deprecated
+#include <groonga/tokenizer_query_deprecated.h>
+#undef grn_tokenizer_query
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct _grn_tokenizer_query {
+  /* Start _grn_tokenizer_query_deprecated compatible layout. */
+  grn_obj *normalized_query;
+  char *query_buf;
+  const char *ptr;
+  unsigned int length;
+  grn_encoding encoding;
+  unsigned int flags;
+  grn_bool have_tokenized_delimiter;
+  /* Deprecated since 4.0.8. Use tokenize_mode instead. */
+  grn_token_mode token_mode;
+  grn_tokenize_mode tokenize_mode;
+  /* End _grn_tokenizer_query_deprecated compatible layout. */
+} grn_tokenizer_query;
+
+#ifdef __cplusplus
+}
+#endif
+
+#include <groonga/tokenizer.h>
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180508/a34caef8/attachment-0001.htm 



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