naoa
null+****@clear*****
Sun Feb 21 18:19:24 JST 2016
naoa 2016-02-21 18:19:24 +0900 (Sun, 21 Feb 2016) New Revision: 435ea6ef3866f604cb5dcf516357f6cb7293861d https://github.com/groonga/groonga/commit/435ea6ef3866f604cb5dcf516357f6cb7293861d Merged a369942: Merge pull request #488 from naoa/fuzzy-search-fix Message: Fold long lines Modified files: lib/proc/proc_fuzzy_search.c Modified: lib/proc/proc_fuzzy_search.c (+6 -2) =================================================================== --- lib/proc/proc_fuzzy_search.c 2016-02-21 18:16:00 +0900 (084fe55) +++ lib/proc/proc_fuzzy_search.c 2016-02-21 18:19:24 +0900 (2d57454) @@ -325,12 +325,16 @@ selector_fuzzy_search(grn_ctx *ctx, grn_obj *table, grn_obj *index, hash = GRN_PTR_VALUE(hash_args_ptr); if (hash->header.type != GRN_TABLE_HASH_KEY) { GRN_PLUGIN_ERROR(ctx, GRN_INVALID_ARGUMENT, - "fuzzy_search(): 3rd argument must be object literal: <%.*s>", + "fuzzy_search(): " + "3rd argument must be object literal: <%.*s>", (int)GRN_TEXT_LEN(args[3]), GRN_TEXT_VALUE(args[3])); goto exit; } - if (!(cursor = grn_hash_cursor_open(ctx, (grn_hash *)hash, NULL, 0, NULL, 0, 0, -1, 0))) { + cursor = grn_hash_cursor_open(ctx, (grn_hash *)hash, + NULL, 0, NULL, 0, + 0, -1, 0); + if (!cursor) { GRN_PLUGIN_ERROR(ctx, GRN_NO_MEMORY_AVAILABLE, "fuzzy_search(): couldn't open cursor"); goto exit; -------------- next part -------------- HTML����������������������������... Download