From 612a36ec3f5096deb9b5bd624f94d09645cca382 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Thu, 26 Jan 2023 23:35:07 -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/extended_list.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 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; } -- 1.8.3.1