Skip to content

Commit

Permalink
Use capital case for array name and map name
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 26, 2014
1 parent 6f97052 commit bd27971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/proc.c
Expand Up @@ -3126,15 +3126,15 @@ 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];
unsigned int value_size;

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,
Expand Down

0 comments on commit bd27971

Please sign in to comment.