From: Robert Kessl Date: Thu, 26 Jun 2014 18:02:04 +0000 (+0200) Subject: tableprinter: table_is_printed now returns bool X-Git-Tag: v6.1~15 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=56c2f131c84b0c17461462b148014a693fdc2988;p=libucw.git tableprinter: table_is_printed now returns bool --- diff --git a/ucw/table.c b/ucw/table.c index 01dfd30d..cba1c6da 100644 --- a/ucw/table.c +++ b/ucw/table.c @@ -128,7 +128,7 @@ void table_set_col_order(struct table *tbl, int *col_order, int cols_to_output) } -int table_col_is_printed(struct table *tbl, uint col_idx) +bool table_col_is_printed(struct table *tbl, uint col_idx) { for(uint i = 0; i < tbl->cols_to_output; i++) { if(tbl->column_order[i] == col_idx) return 1; diff --git a/ucw/table.h b/ucw/table.h index 843c039f..06da5481 100644 --- a/ucw/table.h +++ b/ucw/table.h @@ -325,7 +325,7 @@ void table_set_col_order(struct table *tbl, int *col_order, int col_order_size); /** * Returns 1 if col_idx will be printed, 0 otherwise. **/ -int table_col_is_printed(struct table *tbl, uint col_idx); +bool table_col_is_printed(struct table *tbl, uint col_idx); /** * Sets the order in which the columns are printed. The specification is a string with comma-separated column