]> Kevux Git Server - fll/commitdiff
Cleanup: Simplify lines used in incrementing.
authorKevin Day <kevin@kevux.org>
Fri, 27 Jan 2023 05:35:01 +0000 (23:35 -0600)
committerKevin Day <kevin@kevux.org>
Fri, 27 Jan 2023 05:35:01 +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/payload.c

index 8b9b495d811255eb36b02b1a17a2bb6c39016ad5..072c074096a71909fed37bc69f0b3c6c3e3271cc 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 309f6149006100abecdabdb1d5035ca3d4179ead..0f86f7e2b6a2cbcf2670881a2906c86aec8fb0c5 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 868bfc7c4eae9de74b11279767a19d9c6e31aa90..4664b4696aaff4d4e958eaaffd1a53b1da1713bc 100644 (file)
@@ -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);