Skip to content

Commit

Permalink
Fold long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Feb 5, 2016
1 parent d45842a commit 6f5a0c8
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions lib/ii.c
Original file line number Diff line number Diff line change
Expand Up @@ -5791,7 +5791,8 @@ token_info_build_fuzzy(grn_ctx *ctx, grn_obj *lexicon, grn_ii *ii,
case GRN_TOKEN_CURSOR_DOING :
case GRN_TOKEN_CURSOR_DONE :
ti = token_info_open(ctx, lexicon, ii, (const char *)token_cursor->curr,
token_cursor->curr_size, token_cursor->pos, EX_FUZZY, args);
token_cursor->curr_size, token_cursor->pos, EX_FUZZY,
args);
break;
default :
break;
Expand All @@ -5808,7 +5809,8 @@ token_info_build_fuzzy(grn_ctx *ctx, grn_obj *lexicon, grn_ii *ii,
case GRN_TOKEN_CURSOR_DOING :
case GRN_TOKEN_CURSOR_DONE :
ti = token_info_open(ctx, lexicon, ii, (const char *)token_cursor->curr,
token_cursor->curr_size, token_cursor->pos, EX_FUZZY, args);
token_cursor->curr_size, token_cursor->pos, EX_FUZZY,
args);
break;
default :
break;
Expand Down Expand Up @@ -6572,9 +6574,18 @@ grn_ii_select(grn_ctx *ctx, grn_ii *ii,
return GRN_NO_MEMORY_AVAILABLE;
}
if (mode == GRN_OP_FUZZY) {
if (token_info_build_fuzzy(ctx, lexicon, ii, string, string_len, tis, &n, &only_skip_token, mode, &(optarg->fuzzy)) || !n) { goto exit; }
if (token_info_build_fuzzy(ctx, lexicon, ii, string, string_len,
tis, &n, &only_skip_token, mode,
&(optarg->fuzzy)) ||
!n) {
goto exit;
}
} else {
if (token_info_build(ctx, lexicon, ii, string, string_len, tis, &n, &only_skip_token, mode) || !n) { goto exit; }
if (token_info_build(ctx, lexicon, ii, string, string_len,
tis, &n, &only_skip_token, mode) ||
!n) {
goto exit;
}
}
switch (mode) {
case GRN_OP_NEAR2 :
Expand Down

0 comments on commit 6f5a0c8

Please sign in to comment.