From: Kevin Day Date: Fri, 27 Jan 2023 05:35:07 +0000 (-0600) Subject: Cleanup: Simplify lines used in incrementing. X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=612a36ec3f5096deb9b5bd624f94d09645cca382;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 6c19c67..b88ab12 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 d73d6bb..2fa3828 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/extended_list.c b/level_2/fll_fss/c/fss/extended_list.c index 74aaabb..af34289 100644 --- a/level_2/fll_fss/c/fss/extended_list.c +++ b/level_2/fll_fss/c/fss/extended_list.c @@ -77,9 +77,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; }