]> mj.ucw.cz Git - libucw.git/commitdiff
tableprinter: table_is_printed now returns bool
authorRobert Kessl <kesslr@centrum.cz>
Thu, 26 Jun 2014 18:02:04 +0000 (20:02 +0200)
committerRobert Kessl <kesslr@centrum.cz>
Thu, 26 Jun 2014 18:02:04 +0000 (20:02 +0200)
ucw/table.c
ucw/table.h

index 01dfd30dcf2b4d3ba5a355d8c87997bd7a2ac560..cba1c6da22203deaefdc5b0cbe2d6641c077049e 100644 (file)
@@ -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;
index 843c039f348ddab1157cb9116eb82663502cf990..06da548106b8f585a55e43483699dd8d0a05679d 100644 (file)
@@ -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