]> Kevux Git Server - kevux-tools/commitdiff
Update: Synchronize with latest FLL API changes to f_string_dynamic_t and related...
authorKevin Day <thekevinday@gmail.com>
Mon, 28 Aug 2023 04:06:43 +0000 (23:06 -0500)
committerKevin Day <thekevinday@gmail.com>
Mon, 28 Aug 2023 04:07:02 +0000 (23:07 -0500)
sources/c/remove/main/common.c
sources/c/remove/main/common/print.c
sources/c/remove/main/common/print.h
sources/c/remove/main/common/type.c

index 2a8f6bf7864c82c5e2e0900d8e9aa34d19dbed08..426c419642ecd73a5906c1bf68b88fc2d2a0d3d9 100644 (file)
@@ -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;
       }
index c68df2471d106ba7b8b6ab5906186a2b42c6c6a0..18038001e319b3df5239adfadbf1e9720daf0db7 100644 (file)
@@ -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",
index 4137c967434572fad333a2ebbb44f7f09456d966..40cf000d7e6b4bfcc113b9bf31ac2a1d58a0f3d8 100644 (file)
@@ -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,
index 89b5217f5d4544849cd2fe6087142751c77a499f..0f7e09dddd6590336b138c29e86203b35748bb35 100644 (file)
@@ -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);