[C] Rename ft_delete_range
to ft_erase_range
This commit is contained in:
@@ -233,9 +233,9 @@ size_t ft_row_count(const ft_table_t *table)
|
||||
return vector_size(table->rows);
|
||||
}
|
||||
|
||||
int ft_delete_range(ft_table_t *table,
|
||||
size_t top_left_row, size_t top_left_col,
|
||||
size_t bottom_right_row, size_t bottom_right_col)
|
||||
int ft_erase_range(ft_table_t *table,
|
||||
size_t top_left_row, size_t top_left_col,
|
||||
size_t bottom_right_row, size_t bottom_right_col)
|
||||
{
|
||||
assert(table && table->rows);
|
||||
int status = FT_SUCCESS;
|
||||
@@ -259,7 +259,7 @@ int ft_delete_range(ft_table_t *table,
|
||||
size_t i = top_left_row;
|
||||
while (i < rows_n && i <= bottom_right_row) {
|
||||
row = VECTOR_AT(table->rows, i, f_row_t *);
|
||||
status = ft_row_delete_range(row, top_left_col, bottom_right_col);
|
||||
status = ft_row_erase_range(row, top_left_col, bottom_right_col);
|
||||
if (FT_IS_ERROR(status))
|
||||
return status;
|
||||
++i;
|
||||
|
Reference in New Issue
Block a user