]> Kevux Git Server - fll/commitdiff
Cleanup: Use 'choice' instead of 'decision'.
authorKevin Day <thekevinday@gmail.com>
Sat, 24 Dec 2022 22:06:20 +0000 (16:06 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 24 Dec 2022 22:06:20 +0000 (16:06 -0600)
This became inconsistent at some point in time.
Use 'choice' simply because it is shorter.

level_2/fll_program/c/program.c

index 0342de4804878830a59733ef8668b1e80ec11cd1..856e5cba97e6c1005e9cd7def08736154955a6f7 100644 (file)
@@ -11,13 +11,13 @@ extern "C" {
     {
       if (choices.used) {
         f_status_t status = F_none;
-        f_array_length_t decision = 0;
+        f_array_length_t choice = 0;
 
         if (right) {
-          status = f_console_parameter_prioritize_right(main->parameters, choices, &decision);
+          status = f_console_parameter_prioritize_right(main->parameters, choices, &choice);
         }
         else {
-          status = f_console_parameter_prioritize_left(main->parameters, choices, &decision);
+          status = f_console_parameter_prioritize_left(main->parameters, choices, &choice);
         }
 
         if (F_status_is_error(status)) return status;
@@ -26,7 +26,7 @@ extern "C" {
           main->context.mode = modes[choices.used - 1];
         }
         else {
-          main->context.mode = modes[decision];
+          main->context.mode = modes[choice];
         }
 
         if (main->context.mode == f_color_mode_dark_e || main->context.mode == f_color_mode_light_e) {