From: Kevin Day Date: Fri, 10 Jul 2020 03:36:08 +0000 (-0500) Subject: Cleanup: remove stale test code X-Git-Tag: 0.5.0~97 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=50b135b867572c6b1145b7629ede953749deb2a6;p=fll 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. --- 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; }