Kouhei Sutou
null+****@clear*****
Tue Jan 22 15:45:27 JST 2013
Kouhei Sutou 2013-01-22 15:45:27 +0900 (Tue, 22 Jan 2013) New Revision: 9da63f62654a68d876ba2cf454970ab48f81676c https://github.com/groonga/groonga/commit/9da63f62654a68d876ba2cf454970ab48f81676c Log: Use grn_bool for boolean value Modified files: lib/geo.c Modified: lib/geo.c (+5 -3) =================================================================== --- lib/geo.c 2013-01-22 15:22:31 +0900 (2828c76) +++ lib/geo.c 2013-01-22 15:45:27 +0900 (78571b6) @@ -242,7 +242,8 @@ inspect_cursor_entry_targets(grn_ctx *ctx, grn_geo_cursor_entry *entry, static int grn_geo_table_sort_detect_far_point(grn_ctx *ctx, grn_obj *table, grn_obj *index, grn_pat *pat, geo_entry *entries, - grn_pat_cursor *pc, int n, int accessorp, + grn_pat_cursor *pc, int n, + grn_bool accessorp, grn_geo_point *base_point, double *d_far, int *diff_bit) { @@ -510,7 +511,7 @@ static int grn_geo_table_sort_collect_points(grn_ctx *ctx, grn_obj *table, grn_obj *index, grn_pat *pat, geo_entry *entries, int n_entries, - int n, int accessorp, + int n, grn_bool accessorp, grn_geo_point *base_point, double d_far, int diff_bit) { @@ -599,7 +600,8 @@ grn_geo_table_sort(grn_ctx *ctx, grn_obj *table, int offset, int limit, grn_obj *result, grn_table_sort_key *keys, int n_keys) { grn_obj *index; - int i = 0, e = offset + limit, accessorp = GRN_ACCESSORP(keys->key); + int i = 0, e = offset + limit; + grn_bool accessorp = GRN_ACCESSORP(keys->key); if (n_keys == 2 && (index = find_geo_sort_index(ctx, keys->key))) { grn_id tid; grn_obj *arg = keys[1].key; -------------- next part -------------- HTML����������������������������...Download