Skip to content

Commit

Permalink
Unindent
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 19, 2013
1 parent 0ac4d5c commit c549454
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -550,20 +550,20 @@ grn_table_columns_inspect(grn_ctx *ctx, grn_obj *buf, grn_obj *obj)
static grn_rc
grn_table_ids_inspect(grn_ctx *ctx, grn_obj *buf, grn_obj *obj)
{
grn_table_cursor *tc;
GRN_TEXT_PUTS(ctx, buf, "ids:[");
tc = grn_table_cursor_open(ctx, obj, NULL, 0, NULL, 0,
0, -1, GRN_CURSOR_ASCENDING);
if (tc) {
int i = 0;
grn_id id;
while ((id = grn_table_cursor_next(ctx, tc))) {
if (i++ > 0) { GRN_TEXT_PUTS(ctx, buf, ", "); }
grn_text_lltoa(ctx, buf, id);
}
grn_table_cursor_close(ctx, tc);
grn_table_cursor *tc;
GRN_TEXT_PUTS(ctx, buf, "ids:[");
tc = grn_table_cursor_open(ctx, obj, NULL, 0, NULL, 0,
0, -1, GRN_CURSOR_ASCENDING);
if (tc) {
int i = 0;
grn_id id;
while ((id = grn_table_cursor_next(ctx, tc))) {
if (i++ > 0) { GRN_TEXT_PUTS(ctx, buf, ", "); }
grn_text_lltoa(ctx, buf, id);
}
GRN_TEXT_PUTS(ctx, buf, "]");
grn_table_cursor_close(ctx, tc);
}
GRN_TEXT_PUTS(ctx, buf, "]");

return GRN_SUCCESS;
}
Expand Down

0 comments on commit c549454

Please sign in to comment.