[Groonga-commit] groonga/groonga at bd27971 [master] Use capital case for array name and map name

Back to archive index

Kouhei Sutou null+****@clear*****
Mon May 26 11:40:16 JST 2014


Kouhei Sutou	2014-05-26 11:40:16 +0900 (Mon, 26 May 2014)

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

  Message:
    Use capital case for array name and map name

  Modified files:
    lib/proc.c

  Modified: lib/proc.c (+2 -2)
===================================================================
--- lib/proc.c    2014-05-26 11:23:54 +0900 (2a48b76)
+++ lib/proc.c    2014-05-26 11:40:16 +0900 (25d2566)
@@ -3126,7 +3126,7 @@ output_tokens(grn_ctx *ctx, grn_obj *tokens, grn_hash *lexicon)
     n_tokens = GRN_BULK_VSIZE(tokens) / sizeof(tokenize_token);
   }
 
-  GRN_OUTPUT_ARRAY_OPEN("tokens", n_tokens);
+  GRN_OUTPUT_ARRAY_OPEN("TOKENS", n_tokens);
   for (i = 0; i < n_tokens; i++) {
     tokenize_token *token;
     char value[GRN_TABLE_MAX_KEY_SIZE];
@@ -3134,7 +3134,7 @@ output_tokens(grn_ctx *ctx, grn_obj *tokens, grn_hash *lexicon)
 
     token = ((tokenize_token *)(GRN_BULK_HEAD(tokens))) + i;
 
-    GRN_OUTPUT_MAP_OPEN("token", 2);
+    GRN_OUTPUT_MAP_OPEN("TOKEN", 2);
 
     GRN_OUTPUT_CSTR("value");
     value_size = grn_hash_get_key(ctx, lexicon, token->id,
-------------- next part --------------
HTML����������������������������...
Download 



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