[Groonga-commit] groonga/groonga at 43e783e [master] Use common code

Zurück zum Archiv-Index

Kouhei Sutou null+****@clear*****
Sun Apr 3 11:29:06 JST 2016


Kouhei Sutou	2016-04-03 11:29:06 +0900 (Sun, 03 Apr 2016)

  New Revision: 43e783e3af2d0d3017707bf78b797f4b6e6dd42f
  https://github.com/groonga/groonga/commit/43e783e3af2d0d3017707bf78b797f4b6e6dd42f

  Message:
    Use common code

  Modified files:
    lib/proc/proc_tokenize.c

  Modified: lib/proc/proc_tokenize.c (+2 -3)
===================================================================
--- lib/proc/proc_tokenize.c    2016-04-03 11:27:39 +0900 (f311a02)
+++ lib/proc/proc_tokenize.c    2016-04-03 11:29:06 +0900 (6595721)
@@ -75,11 +75,10 @@ output_tokens(grn_ctx *ctx, grn_obj *tokens, grn_obj *lexicon, grn_obj *index_co
   grn_obj estimate_size;
 
   n_tokens = GRN_BULK_VSIZE(tokens) / sizeof(tokenize_token);
+  n_elements = 3;
   if (index_column) {
-    n_elements = 4;
+    n_elements++;
     GRN_UINT32_INIT(&estimate_size, 0);
-  } else {
-    n_elements = 3;
   }
 
   grn_ctx_output_array_open(ctx, "TOKENS", n_tokens);
-------------- next part --------------
HTML����������������������������...
Download 



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