]> mj.ucw.cz Git - libucw.git/commitdiff
tableprinter: table_clean_row renamed to table_reset_row
authorRobert Kessl <kesslr@centrum.cz>
Wed, 25 Jun 2014 12:11:01 +0000 (14:11 +0200)
committerRobert Kessl <kesslr@centrum.cz>
Wed, 25 Jun 2014 12:11:01 +0000 (14:11 +0200)
ucw/table.c
ucw/table.h

index 4666395f94b24e2abae5ffdab7b8037a8b899c3e..0906ec75a883dfb63d82ffd9ce6d870e7ebac386 100644 (file)
@@ -311,7 +311,7 @@ void table_append_printf(struct table *tbl, const char *fmt, ...)
   va_end(args);
 }
 
-void table_clean_row(struct table *tbl)
+void table_reset_row(struct table *tbl)
 {
   memset(tbl->col_str_ptrs, 0, sizeof(char *) * tbl->column_count);
   mp_restore(tbl->pool, &tbl->pool_state);
@@ -324,7 +324,7 @@ void table_end_row(struct table *tbl)
   ASSERT(tbl->formatter->row_output);
   if(tbl->row_printing_started == 0) return;
   tbl->formatter->row_output(tbl);
-  table_clean_row(tbl);
+  table_reset_row(tbl);
 }
 
 /* Construction of a cell using a fastbuf */
index cd030b7ff3411c3d62917c458bb5ef1349a57317..3fd4e34345b261eefc711617375f975ae068204e 100644 (file)
@@ -295,9 +295,9 @@ void table_col_fbend(struct table *tbl);
 void table_end_row(struct table *tbl);
 
 /**
- * Cleans current row, When called.
+ * Resets data in current row.
  **/
-void table_clean_row(struct table *tbl);
+void table_reset_row(struct table *tbl);
 
 /***
  * Configuration functions