From: Kevin Day Date: Fri, 27 Jan 2023 05:35:01 +0000 (-0600) Subject: Cleanup: Simplify lines used in incrementing. X-Git-Tag: 0.6.4~75 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=9be12832f92fcfeaaa32c6e3b4b808e87bb394ef;p=fll Cleanup: Simplify lines used in incrementing. --- diff --git a/level_2/fll_fss/c/fss/basic.c b/level_2/fll_fss/c/fss/basic.c index 8b9b495..072c074 100644 --- a/level_2/fll_fss/c/fss/basic.c +++ b/level_2/fll_fss/c/fss/basic.c @@ -92,9 +92,8 @@ extern "C" { } while (status == F_fss_found_object_not); if (status == F_none_eos || status == F_none_stop) { - ++contents->array[contents->used].used; + ++contents->array[contents->used++].used; ++objects->used; - ++contents->used; if (objects_quoted) { ++objects_quoted->used; diff --git a/level_2/fll_fss/c/fss/basic_list.c b/level_2/fll_fss/c/fss/basic_list.c index f899d49..75ca4ea 100644 --- a/level_2/fll_fss/c/fss/basic_list.c +++ b/level_2/fll_fss/c/fss/basic_list.c @@ -78,9 +78,8 @@ extern "C" { } while (status == F_fss_found_object_not); if (status == F_none_eos || status == F_none_stop) { - ++contents->array[contents->used].used; + ++contents->array[contents->used++].used; ++objects->used; - ++contents->used; return status; } diff --git a/level_2/fll_fss/c/fss/extended.c b/level_2/fll_fss/c/fss/extended.c index 309f614..0f86f7e 100644 --- a/level_2/fll_fss/c/fss/extended.c +++ b/level_2/fll_fss/c/fss/extended.c @@ -113,9 +113,8 @@ extern "C" { } while (status == F_fss_found_object_not); if (status == F_none_eos || status == F_none_stop) { - contents->array[contents->used].used++; + ++contents->array[contents->used++].used; ++objects->used; - ++contents->used; if (objects_quoted) { ++objects_quoted->used; diff --git a/level_2/fll_fss/c/fss/payload.c b/level_2/fll_fss/c/fss/payload.c index 868bfc7..4664b46 100644 --- a/level_2/fll_fss/c/fss/payload.c +++ b/level_2/fll_fss/c/fss/payload.c @@ -123,9 +123,8 @@ extern "C" { } while (status == F_fss_found_object_not); if (status == F_none_eos || status == F_none_stop) { - ++contents->array[contents->used].used; + ++contents->array[contents->used++].used; ++objects->used; - ++contents->used; // Returning without a "payload" is an error. return F_status_set_error(status);