Kouhei Sutou
null+****@clear*****
Mon May 20 17:35:24 JST 2013
Kouhei Sutou 2013-05-20 17:35:24 +0900 (Mon, 20 May 2013) New Revision: 8e9863c06e82b843cdc5dad2bbff0cce7e345f16 https://github.com/groonga/groonga-normalizer-mysql/commit/8e9863c06e82b843cdc5dad2bbff0cce7e345f16 Message: Reduce scope Modified files: normalizers/mysql.c Modified: normalizers/mysql.c (+3 -3) =================================================================== --- normalizers/mysql.c 2013-05-20 14:45:34 +0900 (413b7e9) +++ normalizers/mysql.c 2013-05-20 17:35:24 +0900 (1702d47) @@ -141,20 +141,20 @@ normalize(grn_ctx *ctx, grn_obj *string, uint32_t **normalize_table) rest_length = original_length_in_bytes; while (rest_length > 0) { int character_length; - int page; - uint32_t low_code; character_length = grn_plugin_charlen(ctx, rest, rest_length, encoding); if (character_length == 0) { break; } - decompose_character(rest, character_length, &page, &low_code); if (remove_blank_p && character_length == 1 && rest[0] == ' ') { if (current_type > types) { current_type[-1] |= GRN_CHAR_BLANK; } } else { + int page; + uint32_t low_code; + decompose_character(rest, character_length, &page, &low_code); if ((0x00 <= page && page <= 0xff) && normalize_table[page]) { uint32_t normalized_code; unsigned int n_bytes; -------------- next part -------------- HTML����������������������������... 다운로드