From ee56c84d84720aa70bfd3609eb2bcac0a3160db1 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 27 Aug 2023 23:06:43 -0500 Subject: [PATCH] Update: Synchronize with latest FLL API changes to f_string_dynamic_t and related for delete program. --- sources/c/remove/main/common.c | 4 ++-- sources/c/remove/main/common/print.c | 1 - sources/c/remove/main/common/print.h | 1 - sources/c/remove/main/common/type.c | 4 ++-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/sources/c/remove/main/common.c b/sources/c/remove/main/common.c index 2a8f6bf..426c419 100644 --- a/sources/c/remove/main/common.c +++ b/sources/c/remove/main/common.c @@ -851,10 +851,10 @@ extern "C" { // Load all remaining files as static strings (setting size to 0). if (main->program.parameters.remaining.used) { - main->setting.state.status = f_string_dynamics_increase_by(main->program.parameters.remaining.used, &main->setting.files); + main->setting.state.status = f_memory_array_increase_by(main->program.parameters.remaining.used, sizeof(uint32_t), (void **) &main->setting.files.array, &main->setting.files.used, &main->setting.files.size); if (F_status_is_error(main->setting.state.status)) { - kt_remove_print_error(&main->program.error, macro_kt_remove_f(f_string_dynamics_increase_by)); + kt_remove_print_error(&main->program.error, macro_kt_remove_f(f_memory_array_increase_by)); return; } diff --git a/sources/c/remove/main/common/print.c b/sources/c/remove/main/common/print.c index c68df24..1803800 100644 --- a/sources/c/remove/main/common/print.c +++ b/sources/c/remove/main/common/print.c @@ -13,7 +13,6 @@ extern "C" { "f_file_remove", "f_memory_array_increase_by", "f_memory_array_resize", - "f_string_dynamics_increase_by", "f_thread_create", "f_utf_is_digit", "f_utf_is_whitespace", diff --git a/sources/c/remove/main/common/print.h b/sources/c/remove/main/common/print.h index 4137c96..40cf000 100644 --- a/sources/c/remove/main/common/print.h +++ b/sources/c/remove/main/common/print.h @@ -46,7 +46,6 @@ extern "C" { kt_remove_f_f_file_remove_e, kt_remove_f_f_memory_array_increase_by_e, kt_remove_f_f_memory_array_resize_e, - kt_remove_f_f_string_dynamics_increase_by_e, kt_remove_f_f_thread_create_e, kt_remove_f_f_utf_is_digit_e, kt_remove_f_f_utf_is_whitespace_e, diff --git a/sources/c/remove/main/common/type.c b/sources/c/remove/main/common/type.c index 89b5217..0f7e09d 100644 --- a/sources/c/remove/main/common/type.c +++ b/sources/c/remove/main/common/type.c @@ -19,8 +19,8 @@ extern "C" { if (!setting) return F_status_set_error(F_parameter); - f_string_dynamic_resize(0, &setting->buffer); - f_string_dynamics_resize(0, &setting->files); + f_memory_array_resize(0, sizeof(f_char_t), (void **) &setting->buffer.string, &setting->buffer.used, &setting->buffer.size); + f_memory_arrays_resize(0, sizeof(f_string_dynamic_t), (void **) &setting->files.array, &setting->files.used, &setting->files.size, &f_string_dynamics_delete_callback); kt_remove_dates_resize(0, &setting->accessed); kt_remove_dates_resize(0, &setting->changed); -- 1.8.3.1