]> Kevux Git Server - fll/commitdiff
Cleanup: Simplify lines used in incrementing.
authorKevin Day <kevin@kevux.org>
Fri, 27 Jan 2023 05:35:07 +0000 (23:35 -0600)
committerKevin Day <kevin@kevux.org>
Fri, 27 Jan 2023 05:35:07 +0000 (23:35 -0600)
level_2/fll_fss/c/fss/basic.c
level_2/fll_fss/c/fss/basic_list.c
level_2/fll_fss/c/fss/extended.c
level_2/fll_fss/c/fss/extended_list.c

index 6c19c678b9ed7b4ec08642f71f5339644679daed..b88ab126bbeb7f0ffb770ac05ae19870c6eaf1ca 100644 (file)
@@ -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;
index f899d498e5b59244f19106a9b7c03933524ac2f7..75ca4ea998ddd25ba8b1d7ff3e30682609302d09 100644 (file)
@@ -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;
       }
index d73d6bbf29c7983af8e03376ab2ca354beafdc0d..2fa38286eb5b8c4263653f735cea087d90c77bac 100644 (file)
@@ -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;
index 74aaabb277dab5e928e4c62e988cc3648f33c185..af3428918c8faaa0a45ca0cff873f8f616fed331 100644 (file)
@@ -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;
       }