]> Kevux Git Server - fll/commitdiff
Update: Use f_color_mode_not_e rather than f_color_mode_color_not_e.
authorKevin Day <thekevinday@gmail.com>
Sat, 24 Dec 2022 00:38:20 +0000 (18:38 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 24 Dec 2022 00:38:20 +0000 (18:38 -0600)
The second 'color' in f_color_mode_color_not_e is redundant and inconsistent with the other parameters.
Remove it.

37 files changed:
level_0/f_color/c/color.c
level_0/f_color/c/color.h
level_0/f_color/c/color/common.h
level_0/f_color/tests/unit/c/test-color-load_context.c
level_2/fll_program/c/program.c
level_3/byte_dump/c/byte_dump.c
level_3/byte_dump/c/common.c
level_3/control/c/common.c
level_3/control/c/control.c
level_3/controller/c/common.c
level_3/controller/c/controller.c
level_3/fake/c/common.c
level_3/fake/c/fake.c
level_3/fake/c/private-build.c
level_3/fake/c/private-make-load_parameters.c
level_3/firewall/c/common.c
level_3/firewall/c/firewall.c
level_3/fss_basic_list_read/c/common.c
level_3/fss_basic_list_read/c/fss_basic_list_read.c
level_3/fss_basic_read/c/common.c
level_3/fss_basic_read/c/fss_basic_read.c
level_3/fss_embedded_list_read/c/common.c
level_3/fss_embedded_list_read/c/fss_embedded_list_read.c
level_3/fss_extended_list_read/c/common.c
level_3/fss_extended_list_read/c/fss_extended_list_read.c
level_3/fss_extended_read/c/common.c
level_3/fss_extended_read/c/fss_extended_read.c
level_3/fss_identify/c/common.c
level_3/fss_identify/c/fss_identify.c
level_3/fss_payload_read/c/common.c
level_3/fss_payload_read/c/fss_payload_read.c
level_3/fss_write/c/main/common.c
level_3/fss_write/c/main/print.c
level_3/iki_read/c/main/common.c
level_3/iki_write/c/main/common.c
level_3/status_code/c/main/common.c
level_3/utf8/c/main/common.c

index 11279f9..080ecb4 100644 (file)
@@ -13,7 +13,7 @@ extern "C" {
 
     context->mode = mode;
 
-    if (mode == f_color_mode_color_not_e) {
+    if (mode == f_color_mode_not_e) {
       macro_f_color_t_set_none(context->list);
 
       context->format.begin = f_string_empty_s;
index 29a5606..14cdc08 100644 (file)
@@ -39,7 +39,7 @@ extern "C" {
  * If you wish to use non-standard colors either redefine this function or don't use it.
  *
  * This only supports the following color modes:
- *   - f_color_mode_color_not_e
+ *   - f_color_mode_not_e
  *   - f_color_mode_dark_e
  *   - f_color_mode_light_e
  *
index eb360a5..1082136 100644 (file)
@@ -398,7 +398,7 @@ extern "C" {
 #ifndef _di_f_color_mode_e_
   enum {
     f_color_mode_none_e = 0,
-    f_color_mode_color_not_e,
+    f_color_mode_not_e,
     f_color_mode_dark_e,
     f_color_mode_light_e,
   }; // enum
index 6ca7684..7a6f555 100644 (file)
@@ -27,7 +27,7 @@ void test__f_color_load_context__works(void **state) {
 
   uint8_t modes[4] = {
     f_color_mode_none_e,
-    f_color_mode_color_not_e,
+    f_color_mode_not_e,
     f_color_mode_dark_e,
     f_color_mode_light_e,
   };
@@ -58,7 +58,7 @@ void test__f_color_load_context__works(void **state) {
 
       assert_int_equal(status, statuss[j]);
 
-      if (modes[j] == f_color_mode_color_not_e) {
+      if (modes[j] == f_color_mode_not_e) {
         assert_ptr_equal(context.set.reset.before, &f_string_empty_s);
         assert_ptr_equal(context.set.reset.after, &f_string_empty_s);
 
index 37ff9d1..0342de4 100644 (file)
@@ -35,7 +35,7 @@ extern "C" {
         }
       }
       else {
-        main->context.mode = f_color_mode_color_not_e;
+        main->context.mode = f_color_mode_not_e;
       }
     }
 
index 45eac35..4f6ee42 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 1d14f56..223df58 100644 (file)
@@ -104,7 +104,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 8c5ae9e..9cbbbb5 100644 (file)
@@ -207,7 +207,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 41e66ac..387e5b3 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index dd09a31..29d61fe 100644 (file)
@@ -639,7 +639,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index bf1a193..00dc115 100644 (file)
@@ -31,7 +31,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 84b220b..3647245 100644 (file)
@@ -149,7 +149,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 341b550..fee309a 100644 (file)
@@ -32,7 +32,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index a1eefb4..2f44772 100644 (file)
@@ -576,7 +576,7 @@ extern "C" {
       else if (data->main->context.mode == f_color_mode_light_e) {
         memcpy(argument_string + f_console_symbol_short_inverse_s.used, f_console_standard_short_light_s.string, sizeof(f_char_t) * f_console_standard_short_light_s.used);
       }
-      else if (data->main->context.mode == f_color_mode_color_not_e) {
+      else if (data->main->context.mode == f_color_mode_not_e) {
         memcpy(argument_string + f_console_symbol_short_inverse_s.used, f_console_standard_short_no_color_s.string, sizeof(f_char_t) * f_console_standard_short_no_color_s.used);
       }
 
index 689e94d..25d5b7a 100644 (file)
@@ -24,7 +24,7 @@ extern "C" {
         return;
       }
 
-      if (data_make->main->context.mode == f_color_mode_color_not_e) {
+      if (data_make->main->context.mode == f_color_mode_not_e) {
         if (data_make->main->parameters.array[fake_parameter_no_color_e].flag & f_console_flag_normal_e) {
           *status = f_string_dynamic_append(f_console_symbol_short_normal_s, &data_make->parameter.color.array[data_make->parameter.color.used]);
         }
index cbfc3df..22c3b9b 100644 (file)
@@ -140,7 +140,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 340cfa5..4cdc0d6 100644 (file)
@@ -33,7 +33,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index aaedcf4..a0b6675 100644 (file)
@@ -98,7 +98,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 073ca6c..4e67ee5 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index dcefd29..62e529c 100644 (file)
@@ -97,7 +97,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 6ffd56f..27d0b8c 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 75db20d..3a22cea 100644 (file)
@@ -96,7 +96,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 5dbbd7b..9858565 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index a58d3f7..fe6aa5e 100644 (file)
@@ -104,7 +104,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index d7100c6..474eb19 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 66048fe..13a0d14 100644 (file)
@@ -97,7 +97,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index ddcc0d3..0eac24c 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 89a5c5b..1a305cb 100644 (file)
@@ -64,7 +64,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 34f830c..395d36b 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index c5d93b6..6178370 100644 (file)
@@ -98,7 +98,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 105460a..f20813f 100644 (file)
@@ -26,7 +26,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 4879438..a110f3c 100644 (file)
@@ -97,7 +97,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 1c98134..eeceb28 100644 (file)
@@ -160,7 +160,6 @@ extern "C" {
     fl_print_format("  For the pipe, an Object is terminated by either a Backspace character '%[\\b%]' (%[U+0008%])", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable);
     fl_print_format(" or a Form Feed character '%[\\f%]' (%[U+000C%]).%r", print.to, print.set->notable, print.set->notable, print.set->notable, print.set->notable, f_string_eol_s);
     fl_print_format("  The end of the pipe represents the end of any Object or Content.%r", print.to, f_string_eol_s);
-
   }
 #endif // _di_fss_write_print_help_pipe_
 
index 2903f9e..205efeb 100644 (file)
@@ -100,7 +100,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index 8a9d1f6..af83905 100644 (file)
@@ -76,7 +76,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index a7a7529..8e05fe6 100644 (file)
@@ -72,7 +72,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);
 
index b763aa0..6f5653b 100644 (file)
@@ -113,7 +113,7 @@ extern "C" {
         choices.array = choices_array;
         choices.used = 3;
 
-        const uint8_t modes[3] = { f_color_mode_color_not_e, f_color_mode_light_e, f_color_mode_dark_e };
+        const uint8_t modes[3] = { f_color_mode_not_e, f_color_mode_light_e, f_color_mode_dark_e };
 
         setting->status = fll_program_parameter_process_context(choices, modes, F_true, main);