From: Robert Kessl Date: Mon, 28 Jul 2014 12:31:08 +0000 (+0200) Subject: tableprinter: table_update_ll is now called only in table_start X-Git-Tag: v6.1~3^2~31 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b92730495aa41053e84833d17515ff64b84d7fa8;p=libucw.git tableprinter: table_update_ll is now called only in table_start --- diff --git a/ucw/table.c b/ucw/table.c index c406452d..6a541d3b 100644 --- a/ucw/table.c +++ b/ucw/table.c @@ -102,10 +102,8 @@ void table_start(struct table *tbl, struct fastbuf *out) ASSERT_MSG(tbl->out, "Output fastbuf not specified."); if(tbl->column_order == NULL) table_make_default_column_order(tbl); - else { - // update linked lists - table_update_ll(tbl); - } + // update linked lists + table_update_ll(tbl); if(tbl->formatter->table_start != NULL) tbl->formatter->table_start(tbl); mp_save(tbl->pool, &tbl->pool_state); @@ -187,7 +185,6 @@ void table_set_col_order(struct table *tbl, const struct table_col_instance *col tbl->column_order[i].next_column = -1; // tbl->column_order[i].fmt should be untouched (copied from col_order) } - table_update_ll(tbl); } bool table_col_is_printed(struct table *tbl, uint col_def_idx) @@ -289,8 +286,6 @@ const char * table_set_col_order_by_name(struct table *tbl, const char *col_orde curr_col_inst_idx++; } - table_update_ll(tbl); - return NULL; }