table_update_ll(tbl);
}
-bool table_col_is_printed(struct table *tbl, uint col_idx)
+bool table_col_is_printed(struct table *tbl, uint col_def_idx)
{
- if(tbl->ll_headers[col_idx] == -1) return 0;
+ if(tbl->ll_headers[col_def_idx] == -1) return 0;
return 1;
}
uint cols_to_output; // [*] Number of columns that are printed
const char *col_delimiter; // [*] Delimiter that is placed between columns
// Back-end used for table formatting and its private data
- const struct table_formatter *formatter; // FIXME: should be const?
+ const struct table_formatter *formatter;
};
/**
* FIXME: Naming of arguments is confusing. @col_idx sometimes indexes
* columns, but sometimes their instances.
**/
-bool table_col_is_printed(struct table *tbl, uint col_idx);
+bool table_col_is_printed(struct table *tbl, uint col_def_idx);
/**
* Sets the order in which the columns are printed. The specification is a string with comma-separated column