From 9be12832f92fcfeaaa32c6e3b4b808e87bb394ef Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 26 Jan 2023 23:35:01 -0600 Subject: [PATCH] Cleanup: Simplify lines used in incrementing. --- level_2/fll_fss/c/fss/basic.c | 3 +-- level_2/fll_fss/c/fss/basic_list.c | 3 +-- level_2/fll_fss/c/fss/extended.c | 3 +-- level_2/fll_fss/c/fss/payload.c | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) 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); -- 1.8.3.1