]> mj.ucw.cz Git - libucw.git/commitdiff
tableprinter: code cleanup
authorRobert Kessl <kesslr@centrum.cz>
Tue, 29 Jul 2014 11:45:48 +0000 (13:45 +0200)
committerRobert Kessl <kesslr@centrum.cz>
Tue, 29 Jul 2014 11:45:48 +0000 (13:45 +0200)
ucw/table.c
ucw/table.h

index 30c7e64a6bd417bfdcf0112d708bf9f97776cb0d..1e2cabb8435e9f389f3d9f4c53312e24acf751d0 100644 (file)
@@ -471,7 +471,7 @@ const char *table_set_option(struct table *tbl, const char *opt)
 
 const char *table_set_gary_options(struct table *tbl, char **gary_table_opts)
 {
-  for (uint i = 0; i < GARY_SIZE(gary_table_opts); i++) {
+  for(uint i = 0; i < GARY_SIZE(gary_table_opts); i++) {
     const char *rv = table_set_option(tbl, gary_table_opts[i]);
     if(rv != NULL) {
       return rv;
index 7899d1a1df0505f901b448537a89db06e1c0bb76..cc8ba985c392e5c9ca9f1b7825c5836258054169 100644 (file)
@@ -242,8 +242,7 @@ TABLE_COL_PROTO(uintmax, uintmax_t)
 TABLE_COL_PROTO(s64, s64)
 TABLE_COL_PROTO(u64, u64)
 TABLE_COL_PROTO(bool, bool)
-
-void table_col_str(struct table *tbl, int col, const char * val);
+TABLE_COL_PROTO(str, const char *)
 
 /** TABLE_COL_BODY macro enables easy definitions of bodies of table_col_<something> functions **/
 #define TABLE_COL_BODY(_name, _type) void table_col_##_name(struct table *tbl, int col, _type val) {\