Changes in uspace/lib/c/generic/io/table.c [b7fd2a0:d5c1051] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/io/table.c
rb7fd2a0 rd5c1051 51 51 * @return EOK on success, ENOMEM if out of memory 52 52 */ 53 static errno_t table_add_row(table_t *table, table_row_t **rrow)53 static int table_add_row(table_t *table, table_row_t **rrow) 54 54 { 55 55 table_row_t *row; … … 74 74 * @return EOK on success, ENOMEM if out of memory 75 75 */ 76 static errno_t table_row_add_cell(table_row_t *row, table_cell_t **rcell)76 static int table_row_add_cell(table_row_t *row, table_cell_t **rcell) 77 77 { 78 78 table_cell_t *cell; … … 99 99 * @return EOK on success, ENOMEM if out of memory 100 100 */ 101 static errno_t table_add_column(table_t *table, table_column_t **rcolumn)101 static int table_add_column(table_t *table, table_column_t **rcolumn) 102 102 { 103 103 table_column_t *column; … … 121 121 * @return EOK on success, ENOMEM if out of memory 122 122 */ 123 static errno_t table_write_next_cell(table_t *table)124 { 125 errno_t rc;123 static int table_write_next_cell(table_t *table) 124 { 125 int rc; 126 126 127 127 rc = table_row_add_cell(table->wrow, &table->wcell); … … 155 155 * @return EOK on success, ENOMEM if out of memory 156 156 */ 157 static errno_t table_write_next_row(table_t *table)158 { 159 errno_t rc;157 static int table_write_next_row(table_t *table) 158 { 159 int rc; 160 160 161 161 rc = table_add_row(table, &table->wrow); … … 272 272 * @return EOK on success, ENOMEM if out of memory 273 273 */ 274 static errno_t table_cell_extend(table_cell_t *cell, const char *str, size_t len)274 static int table_cell_extend(table_cell_t *cell, const char *str, size_t len) 275 275 { 276 276 char *cstr; … … 298 298 * @return EOK on success, ENOMEM if out of memory 299 299 */ 300 errno_t table_create(table_t **rtable)300 int table_create(table_t **rtable) 301 301 { 302 302 table_t *table; 303 errno_t rc;303 int rc; 304 304 305 305 table = calloc(1, sizeof(table_t)); … … 377 377 * @return EOK on success, EIO on I/O error 378 378 */ 379 errno_t table_print_out(table_t *table, FILE *f)379 int table_print_out(table_t *table, FILE *f) 380 380 { 381 381 table_row_t *row; … … 474 474 * @return EOK on success, ENOMEM if out of memory 475 475 */ 476 errno_t table_printf(table_t *table, const char *fmt, ...)476 int table_printf(table_t *table, const char *fmt, ...) 477 477 { 478 478 va_list args; 479 errno_t rc;479 int rc; 480 480 int ret; 481 481 char *str; … … 548 548 * @return EOK if no error indicated, non-zero error code otherwise 549 549 */ 550 errno_t table_get_error(table_t *table)550 int table_get_error(table_t *table) 551 551 { 552 552 return table->error;
Note:
See TracChangeset
for help on using the changeset viewer.