From 56c2f131c84b0c17461462b148014a693fdc2988 Mon Sep 17 00:00:00 2001 From: Robert Kessl Date: Thu, 26 Jun 2014 20:02:04 +0200 Subject: [PATCH] tableprinter: table_is_printed now returns bool --- ucw/table.c | 2 +- ucw/table.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2