]> Kevux Git Server - fll/commitdiff
Cleanup: Replace 'decision' with 'choice' for consistency reasons.
authorKevin Day <thekevinday@gmail.com>
Mon, 26 Dec 2022 14:03:22 +0000 (08:03 -0600)
committerKevin Day <thekevinday@gmail.com>
Mon, 26 Dec 2022 14:03:22 +0000 (08:03 -0600)
level_2/fll_program/c/program.c

index 386bd66cb67246781e7f4c68c853562ba16a7445..2453c8dc1ed48307db9ae0c28b3cbe63b656e8b8 100644 (file)
@@ -81,19 +81,19 @@ extern "C" {
     status = f_console_parameter_process(arguments, parameters);
     if (F_status_is_error(status)) return status;
 
-    f_console_parameter_id_t decision = choices.id[2];
+    f_console_parameter_id_t choice = choices.id[2];
 
     if (right) {
-      status = f_console_parameter_prioritize_right(*parameters, choices, &decision);
+      status = f_console_parameter_prioritize_right(*parameters, choices, &choice);
     }
     else {
-      status = f_console_parameter_prioritize_left(*parameters, choices, &decision);
+      status = f_console_parameter_prioritize_left(*parameters, choices, &choice);
     }
 
     if (F_status_is_error(status)) return status;
 
     // Load colors unless told not to.
-    if (decision == choices.id[0]) {
+    if (choice == choices.id[0]) {
       context->mode = F_color_mode_no_color_d;
     }
     else {
@@ -102,7 +102,7 @@ extern "C" {
       macro_f_color_context_t_new(allocation_status, (*context));
       if (F_status_is_error(status)) return status;
 
-      status = f_color_load_context(decision == choices.id[1], context);
+      status = f_color_load_context(choice == choices.id[1], context);
     }
 
     return status;