Lines Matching refs:n_cells
133 size_t n_cells; member
215 assert(t->n_columns == t->n_cells); in table_new_internal()
238 for (size_t i = 0; i < t->n_cells; i++) in table_unref()
438 if (t->n_cells >= t->n_columns) in table_add_cell_full()
439 assert_se(p = t->data[t->n_cells - t->n_columns]); in table_add_cell_full()
470 if (!GREEDY_REALLOC(t->data, MAX(t->n_cells + 1, t->n_columns))) in table_add_cell_full()
474 *ret_cell = TABLE_INDEX_TO_CELL(t->n_cells); in table_add_cell_full()
476 t->data[t->n_cells++] = TAKE_PTR(d); in table_add_cell_full()
511 } while ((t->n_cells % t->n_columns) != until_column); in table_fill_empty()
524 if (i >= t->n_cells) in table_dup_cell()
527 if (!GREEDY_REALLOC(t->data, MAX(t->n_cells + 1, t->n_columns))) in table_dup_cell()
530 t->data[t->n_cells++] = table_data_ref(t->data[i]); in table_dup_cell()
545 if (i >= t->n_cells) in table_dedup_cell()
593 if (i >= t->n_cells) in table_get_data()
766 if (i >= t->n_cells) in table_update()
1996 assert(t->n_cells % t->n_columns == 0); in table_print()
1998 n_rows = t->n_cells / t->n_columns; in table_print()
2408 return t->n_cells / t->n_columns; in table_get_rows()
2445 if (i >= t->n_cells) in table_get_cell()
2632 assert(t->n_cells % t->n_columns == 0); in table_to_json()
2634 n_rows = t->n_cells / t->n_columns; in table_to_json()