Kouhei Sutou
null+****@clear*****
Fri Apr 3 15:01:44 JST 2015
Kouhei Sutou 2015-04-03 15:01:44 +0900 (Fri, 03 Apr 2015) New Revision: 94834e59a31e5e1aab8021778d2feeac101b2a80 https://github.com/groonga/groonga/commit/94834e59a31e5e1aab8021778d2feeac101b2a80 Message: dump: use existing macro Modified files: lib/proc.c Modified: lib/proc.c (+1 -7) =================================================================== --- lib/proc.c 2015-04-03 15:00:48 +0900 (7b65370) +++ lib/proc.c 2015-04-03 15:01:44 +0900 (28a3169) @@ -2876,12 +2876,6 @@ reference_column_p(grn_ctx *ctx, grn_obj *column) } } -static int -index_column_p(grn_ctx *ctx, grn_obj *column) -{ - return column->header.type == GRN_COLUMN_INDEX; -} - static void dump_columns(grn_ctx *ctx, grn_obj *outbuf, grn_obj *table, grn_obj *pending_reference_columns, @@ -2903,7 +2897,7 @@ dump_columns(grn_ctx *ctx, grn_obj *outbuf, grn_obj *table, if ((column = grn_ctx_at(ctx, *key))) { if (reference_column_p(ctx, column)) { GRN_PTR_PUT(ctx, pending_reference_columns, column); - } else if (index_column_p(ctx, column)) { + } else if (GRN_OBJ_INDEX_COLUMNP(column)) { GRN_PTR_PUT(ctx, pending_index_columns, column); } else { dump_column(ctx, outbuf, table, column); -------------- next part -------------- HTML����������������������������...Download