]> Kevux Git Server - fll/commitdiff
Update: Use resize functions rather than adjust functions forr append and append_all...
authorKevin Day <thekevinday@gmail.com>
Fri, 5 Aug 2022 03:10:59 +0000 (22:10 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 5 Aug 2022 03:10:59 +0000 (22:10 -0500)
The resize functions should be used.
The adjust perform extra tasks which are meaningless for append and append_all.

21 files changed:
level_0/f_limit/c/limit/private-set.c
level_0/f_limit/c/limit/private-value.c
level_0/f_string/c/string/quantity.c
level_0/f_string/c/string/range.c
level_0/f_string/c/string/triple.c
level_0/f_type_array/c/type_array/private-array_length.c
level_0/f_type_array/c/type_array/private-cell.c
level_0/f_type_array/c/type_array/private-fll_id.c
level_0/f_type_array/c/type_array/private-int128.c
level_0/f_type_array/c/type_array/private-int16.c
level_0/f_type_array/c/type_array/private-int32.c
level_0/f_type_array/c/type_array/private-int64.c
level_0/f_type_array/c/type_array/private-int8.c
level_0/f_type_array/c/type_array/private-state.c
level_0/f_type_array/c/type_array/private-status.c
level_0/f_type_array/c/type_array/private-uint128.c
level_0/f_type_array/c/type_array/private-uint16.c
level_0/f_type_array/c/type_array/private-uint32.c
level_0/f_type_array/c/type_array/private-uint64.c
level_0/f_type_array/c/type_array/private-uint8.c
level_0/f_utf/c/utf/triple.c

index ab8640ed8c034e661434f10dbbd6de8e2d3d246e..4f755be941222fd18e264e0cfbc7218b7dc9ca72 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
   extern f_status_t private_f_limit_sets_append(const f_limit_set_t source, f_limit_sets_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_limit_sets_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_limit_sets_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -40,7 +40,7 @@ extern "C" {
   extern f_status_t private_f_limit_sets_append_all(const f_limit_sets_t source, f_limit_sets_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_limit_sets_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_limit_sets_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 1cdb62d3579d6db13ebc94d51ed751896372e8a3..2bb400a3ca293a1288ac88712f16b2096bf73b4c 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
   extern f_status_t private_f_limit_values_append(const f_limit_value_t source, f_limit_values_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_limit_values_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_limit_values_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -40,7 +40,7 @@ extern "C" {
   extern f_status_t private_f_limit_values_append_all(const f_limit_values_t source, f_limit_values_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_limit_values_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_limit_values_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 5f94672ff262a03a71279b295941d243074fe017..1a53234e7a9d8ff3283ad03ec695b8e1b41b2ac0 100644 (file)
@@ -23,7 +23,7 @@ extern "C" {
     #endif // _di_level_0_parameter_checking_
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_string_quantitys_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_string_quantitys_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 688d66bc69e54f8c275b724167b59da36a0b7aa6..fc9fa2876893ce3c4966a548ee19b3d30347e7d1 100644 (file)
@@ -23,7 +23,7 @@ extern "C" {
     #endif // _di_level_0_parameter_checking_
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_string_ranges_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_string_ranges_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -43,7 +43,7 @@ extern "C" {
     if (!source.used) return F_data_not;
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_string_ranges_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_string_ranges_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index fe1d9f93a5180aca0743c0705d5003cfb2376259..68bb6f337f883e13fc92eee7a6f4fb4989479669 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
     f_status_t status = F_none;
 
     if (destination->used + 1 > destination->size) {
-      status = private_f_string_triples_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      status = private_f_string_triples_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -65,7 +65,7 @@ extern "C" {
     f_status_t status = F_none;
 
     if (destination->used + source.used > destination->size) {
-      status = private_f_string_triples_adjust(destination->used + source.used, destination);
+      status = private_f_string_triples_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index a5569eaf67021cfe53ca110275014992f0f636c0..b82aacb51ff344ccd0ecb49a909b223e65b56b15 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_array_lengths_append(const f_array_length_t source, f_array_lengths_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_array_lengths_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_array_lengths_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_array_lengths_append_all(const f_array_lengths_t source, f_array_lengths_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_array_lengths_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_array_lengths_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 77582303e4a487e66b96a2e7a769806fce1f44d1..5943d4b568f2ed51c4751d6326a14138877446b1 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_cells_append(const f_cell_t source, f_cells_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_cells_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_cells_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -40,7 +40,7 @@ extern "C" {
   extern f_status_t private_f_cells_append_all(const f_cells_t source, f_cells_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_cells_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_cells_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index ddf172a19de2a8b5243ef9d6ae11eeb17988209a..ab24b4213806f513eec8c528072098bb8b33339c 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_fll_ids_append(const f_fll_id_t source, f_fll_ids_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_fll_ids_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_fll_ids_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -42,7 +42,7 @@ extern "C" {
   extern f_status_t private_f_fll_ids_append_all(const f_fll_ids_t source, f_fll_ids_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_fll_ids_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_fll_ids_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index d241cd4a598ab081c8dd290a3b179fcc4d2c805e..fb629f9ec8a18a0e97ab094454ba46ab032b6109 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_int128s_append(const int128_t source, f_int128s_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_int128s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_int128s_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_int128s_append_all(const f_int128s_t source, f_int128s_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_int128s_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_int128s_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 2cd16d8a5727ea8eaae8c589ef3d390c61f3abd3..646120611f91cadb576ea117da389006f6ad0cb4 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_int16s_append(const int16_t source, f_int16s_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_int16s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_int16s_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_int16s_append_all(const f_int16s_t source, f_int16s_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_int16s_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_int16s_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 5ced25065c9a70f273c00157112200df76917516..263a548244a4e521f28c301d5789f958066ad5ce 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_int32s_append(const int32_t source, f_int32s_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_int32s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_int32s_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_int32s_append_all(const f_int32s_t source, f_int32s_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_int32s_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_int32s_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 1063d7f8821be847c5c615f5c7205edd64637fb2..98071658a9805310f3f1ba0fdcf524707fac192e 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_int64s_append(const int64_t source, f_int64s_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_int64s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_int64s_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_int64s_append_all(const f_int64s_t source, f_int64s_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_int64s_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_int64s_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 32e98351db327fbdade4bda06d09c4efb7fa1225..1d186942f7d219c227b4db269efa06a3907b8030 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_int8s_append(const int8_t source, f_int8s_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_int8s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_int8s_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_int8s_append_all(const f_int8s_t source, f_int8s_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_int8s_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_int8s_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 0ac6f9213a6ea2208a4ac4523b570153909e2876..1ef660827f2915e37da31d5ab966d48d9d46efcb 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_states_append(const f_state_t source, f_states_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_states_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_states_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -47,7 +47,7 @@ extern "C" {
   extern f_status_t private_f_states_append_all(const f_states_t source, f_states_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_states_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_states_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 8e68dd5651fd5c2cd96e0103b5a8ee4dff69af40..584aee62b6a7d01d3d6f9e99fa0bcc5ae1a3343d 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_statuss_append(const f_status_t source, f_statuss_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_statuss_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_statuss_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_statuss_append_all(const f_statuss_t source, f_statuss_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_statuss_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_statuss_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 7a14d278e0eb69e9ba72000a1f0360e7d30dbf3b..240aef9d3dbf6722601e9571152df1329f5306e0 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_uint128s_append(const uint128_t source, f_uint128s_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_uint128s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_uint128s_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_uint128s_append_all(const f_uint128s_t source, f_uint128s_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_uint128s_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_uint128s_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index bb49cf1c2859a8fd2924b4569f901322aa2c43ba..1a23e309ad01c829e64f86a3d41d3f76a91b9e2d 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_uint16s_append(const uint16_t source, f_uint16s_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_uint16s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_uint16s_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_uint16s_append_all(const f_uint16s_t source, f_uint16s_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_uint16s_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_uint16s_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 5f9105ae74c4d3ae83e2120200f76432e9569d1b..1dbf3da1fd2cf2d963c7f46edb1d413c8fa8422c 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_uint32s_append(const uint32_t source, f_uint32s_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_uint32s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_uint32s_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_uint32s_append_all(const f_uint32s_t source, f_uint32s_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_uint32s_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_uint32s_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index b2d99b391b10103aceef617311cfcda2d04a082c..a7f238d9561eae359d6ee941b1d07bf80b30271d 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_uint64s_append(const uint64_t source, f_uint64s_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_uint64s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_uint64s_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_uint64s_append_all(const f_uint64s_t source, f_uint64s_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_uint64s_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_uint64s_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 3956357f8ce194956ff47a69d79e21c0929d1068..4475b0915fab15482db358f06385ac723a6930d3 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
   extern f_status_t private_f_uint8s_append(const uint8_t source, f_uint8s_t *destination) {
 
     if (destination->used + 1 > destination->size) {
-      const f_status_t status = private_f_uint8s_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      const f_status_t status = private_f_uint8s_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -39,7 +39,7 @@ extern "C" {
   extern f_status_t private_f_uint8s_append_all(const f_uint8s_t source, f_uint8s_t *destination) {
 
     if (destination->used + source.used > destination->size) {
-      const f_status_t status = private_f_uint8s_adjust(destination->used + source.used, destination);
+      const f_status_t status = private_f_uint8s_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }
 
index 0ba195d7c5f876d977c083a73297b826bd375918..bb79331db159e1a07c38d6ed9b30eba72bca3909 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
     f_status_t status = F_none;
 
     if (destination->used + 1 > destination->size) {
-      status = private_f_utf_string_triples_adjust(destination->used + F_memory_default_allocation_small_d, destination);
+      status = private_f_utf_string_triples_resize(destination->used + F_memory_default_allocation_small_d, destination);
       if (F_status_is_error(status)) return status;
     }
 
@@ -66,7 +66,7 @@ extern "C" {
     f_status_t status = F_none;
 
     if (destination->used + source.used > destination->size) {
-      status = private_f_utf_string_triples_adjust(destination->used + source.used, destination);
+      status = private_f_utf_string_triples_resize(destination->used + source.used, destination);
       if (F_status_is_error(status)) return status;
     }