[Groonga-commit] groonga/groonga at f2a4de5 [master] Use more meaningful name

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Thu Apr 5 15:42:28 JST 2018


Kouhei Sutou	2018-04-05 15:42:28 +0900 (Thu, 05 Apr 2018)

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

  Message:
    Use more meaningful name

  Modified files:
    include/groonga/table.h
    lib/table.c
    lib/tokenizers.c

  Modified: include/groonga/table.h (+5 -5)
===================================================================
--- include/groonga/table.h    2018-04-05 15:35:44 +0900 (83d69d8a7)
+++ include/groonga/table.h    2018-04-05 15:42:28 +0900 (dfaebdc88)
@@ -247,11 +247,11 @@ typedef void *(*grn_tokenizer_open_options_func)(grn_ctx *ctx,
                                                  void *user_data);
 
 GRN_API void *
-grn_table_get_tokenizer_options(grn_ctx *ctx,
-                                grn_obj *table,
-                                grn_tokenizer_open_options_func open_options_func,
-                                grn_close_func close_options_func,
-                                void *user_data);
+grn_table_cache_tokenizer_options(grn_ctx *ctx,
+                                  grn_obj *table,
+                                  grn_tokenizer_open_options_func open_options_func,
+                                  grn_close_func close_options_func,
+                                  void *user_data);
 
 #ifdef __cplusplus
 }

  Modified: lib/table.c (+5 -5)
===================================================================
--- lib/table.c    2018-04-05 15:35:44 +0900 (2a3267ddf)
+++ lib/table.c    2018-04-05 15:42:28 +0900 (7e7c1813e)
@@ -185,11 +185,11 @@ grn_table_tokenizer_set_options(grn_ctx *ctx,
 }
 
 void *
-grn_table_get_tokenizer_options(grn_ctx *ctx,
-                                grn_obj *table,
-                                grn_tokenizer_open_options_func open_options_func,
-                                grn_close_func close_options_func,
-                                void *user_data)
+grn_table_cache_tokenizer_options(grn_ctx *ctx,
+                                  grn_obj *table,
+                                  grn_tokenizer_open_options_func open_options_func,
+                                  grn_close_func close_options_func,
+                                  void *user_data)
 {
   grn_table_tokenizer *tokenizer;
   grn_option_revision revision;

  Modified: lib/tokenizers.c (+5 -5)
===================================================================
--- lib/tokenizers.c    2018-04-05 15:35:44 +0900 (49fb90f46)
+++ lib/tokenizers.c    2018-04-05 15:42:28 +0900 (555a07cb7)
@@ -413,11 +413,11 @@ ngram_init(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)
   grn_obj *lexicon = args[0];
   ngram_options *options;
 
-  options = grn_table_get_tokenizer_options(ctx,
-                                            lexicon,
-                                            ngram_open_options,
-                                            ngram_close_options,
-                                            NULL);
+  options = grn_table_cache_tokenizer_options(ctx,
+                                              lexicon,
+                                              ngram_open_options,
+                                              ngram_close_options,
+                                              NULL);
   if (ctx->rc != GRN_SUCCESS) {
     return NULL;
   }
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180405/845ad2ed/attachment-0001.htm 



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