From 50b135b867572c6b1145b7629ede953749deb2a6 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 9 Jul 2020 22:36:08 -0500 Subject: [PATCH] Cleanup: remove stale test code This code was used in trying to identify what ended up being an issue with macros. Remove the commented out test code and fix the tabbing of the pointer assignments. --- level_2/fll_fss/c/fss.c | 29 +++-------------------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/level_2/fll_fss/c/fss.c b/level_2/fll_fss/c/fss.c index fa1501b..d5bb4f8 100644 --- a/level_2/fll_fss/c/fss.c +++ b/level_2/fll_fss/c/fss.c @@ -120,39 +120,16 @@ extern "C" { if (F_status_is_error(status)) return status; if (status == F_equal_to_not) continue; -value = values[j]; -content = &contents.array[i]; + value = values[j]; + content = &contents.array[i]; + if (values[j]->used + contents.array[i].used > values[j]->size) { if (values[j]->used + contents.array[i].used > f_array_length_size) { return F_status_set_error(F_buffer_too_large); } - //f_macro_string_dynamics_resize(status, (*values[j]), (values[j]->used + contents.array[i].used)); - //f_macro_string_dynamics_resize(status, (*value), (value->used + content->used)); f_macro_string_dynamics_resize(status, (*value), (values[j]->used + content->used)); -/* - status = F_none; - if ((values[j]->used + contents.array[i].used) < values[j]->size) { - f_array_length xxx = values[j]->size - (values[j]->used + contents.array[i].used); - for (; xxx < values[j]->size; xxx++) { - f_macro_string_dynamic_delete(status, values[j]->array[i]); - if (status != F_none) break; - } - } - if (status == F_none) status = f_memory_resize((void **) & values[j]->array, sizeof(f_string_dynamic), values[j]->size, (values[j]->used + contents.array[i].used)); - if (status == F_none) { - if ((values[j]->used + contents.array[i].used) > values[j]->size) { - f_array_length xxx = values[j]->size; - for (; xxx < (values[j]->used + contents.array[i].used); xxx++) { - memset(&values[j]->array[i], 0, sizeof(f_string_dynamic)); - } - } - values[j]->size = (values[j]->used + contents.array[i].used); - if (values[j]->used > values[j]->size) values[j]->used = (values[j]->used + contents.array[i].used); - } -*/ - if (F_status_is_error(status)) return status; } -- 1.8.3.1