]> Kevux Git Server - fll/commitdiff
Refactor: fll_program_process_parameters to fll_program_parameter_process
authorKevin Day <thekevinday@gmail.com>
Wed, 29 Apr 2020 03:22:54 +0000 (22:22 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 29 Apr 2020 03:22:54 +0000 (22:22 -0500)
Pave the way for additional fll_program_parameter_* functions.

14 files changed:
level_2/fll_program/c/program.c
level_2/fll_program/c/program.h
level_3/byte_dump/c/byte_dump.c
level_3/firewall/c/firewall.c
level_3/fss_basic_list_read/c/fss_basic_list_read.c
level_3/fss_basic_list_write/c/fss_basic_list_write.c
level_3/fss_basic_read/c/fss_basic_read.c
level_3/fss_basic_write/c/fss_basic_write.c
level_3/fss_extended_list_read/c/fss_extended_list_read.c
level_3/fss_extended_read/c/fss_extended_read.c
level_3/fss_extended_write/c/fss_extended_write.c
level_3/fss_status_code/c/fss_status_code.c
level_3/init/c/init.c
level_3/status_code/c/status_code.c

index d65ece3663eab1bf411799159d3a3a8239401165..3472228cb9dd450e569f7c2e18bd372ddf86c43a 100644 (file)
@@ -89,8 +89,8 @@ extern "C" {
   }
 #endif // _di_fll_program_print_version_
 
-#ifndef _di_fll_program_process_parameters_
-  f_return_status fll_program_process_parameters(const f_console_arguments arguments, f_console_parameters parameters, const f_console_parameter_ids choices, f_string_lengths *remaining, fl_color_context *context) {
+#ifndef _di_fll_program_parameter_process_
+  f_return_status fll_program_parameter_process(const f_console_arguments arguments, f_console_parameters parameters, const f_console_parameter_ids choices, f_string_lengths *remaining, fl_color_context *context) {
     f_status status = f_none;
 
     status = f_console_parameter_process(arguments, parameters, remaining);
@@ -148,7 +148,7 @@ extern "C" {
 
     return status;
   }
-#endif // _di_fll_program_process_parameters_
+#endif // _di_fll_program_parameter_process_
 
 #ifdef __cplusplus
 } // extern "C"
index e445d43824b80884220d302c811e8a3290942f18..7d8b436c3dd184c8f23656b28f008184d70f6c7c 100644 (file)
@@ -154,9 +154,9 @@ extern "C" {
  *   f_invalid_parameter (with error bit) if a parameter is invalid.
  *   f_error_reallocation (with error bit) on memory reallocation error.
  */
-#ifndef _di_fll_program_process_parameters_
-  extern f_return_status fll_program_process_parameters(const f_console_arguments arguments, f_console_parameters parameters, const f_console_parameter_ids choices, f_string_lengths *remaining, fl_color_context *context);
-#endif // _di_fll_program_process_parameters_
+#ifndef _di_fll_program_parameter_process_
+  extern f_return_status fll_program_parameter_process(const f_console_arguments arguments, f_console_parameters parameters, const f_console_parameter_ids choices, f_string_lengths *remaining, fl_color_context *context);
+#endif // _di_fll_program_parameter_process_
 
 #ifdef __cplusplus
 } // extern "C"
index 07af55cc79f27f35703e668635e00840857e9a6a..952780a36bb59592856a4c191475a6214a59a1c2 100644 (file)
@@ -82,7 +82,7 @@ extern "C" {
         choices.id = ids;
         choices.used = 3;
 
-        status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+        status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
 
         if (f_status_is_error(status)) {
           byte_dump_delete_data(data);
index d426b174cb3b1ba373ee9b86589b5ad6c261c9d4..552ba4f3604aaa2865f77315578f23f9466e3aa3 100644 (file)
@@ -63,7 +63,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { firewall_parameter_no_color, firewall_parameter_light, firewall_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-      status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+      status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
     }
 
     if (f_status_is_error(status)) {
index 5fdc89d57446ab8dafd7c7b39ad26c94093c41d7..cf0e6d6314763d7398c1370634e048dda76d961d 100644 (file)
@@ -130,7 +130,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { fss_basic_list_read_parameter_no_color, fss_basic_list_read_parameter_light, fss_basic_list_read_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-      status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+      status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
 
       if (f_status_is_error(status)) {
         fss_basic_list_read_delete_data(data);
index fcb3f219381c17deef307b5a84b0df2468f8541a..c81311c8d190f746b8bb0dbfc5dddc1ed5d6cb9c 100644 (file)
@@ -35,7 +35,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { fss_basic_list_write_parameter_no_color, fss_basic_list_write_parameter_light, fss_basic_list_write_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-      status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+      status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
     }
 
     if (f_status_is_error(status)) {
index 4863db5b0568300ccf570cb825483758a4ef273a..cce0c527d840c5f7a3fad0b389154a433070eb79 100644 (file)
@@ -130,7 +130,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { fss_basic_read_parameter_no_color, fss_basic_read_parameter_light, fss_basic_read_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-      status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+      status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
 
       if (f_status_is_error(status)) {
         fss_basic_read_delete_data(data);
index 1266f28bea3ef37416ea1ef674bb47e15821851f..743bbfa3add6914e816adc4fe7c0bcb14c10262c 100644 (file)
@@ -35,7 +35,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { fss_basic_write_parameter_no_color, fss_basic_write_parameter_light, fss_basic_write_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-       status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+       status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
     }
 
     if (f_status_is_error(status)) {
index 5eea8d6883424cc4fb316675d11fd906612ef8fd..a49d3173c77b104aba2085b2977227717182f614 100644 (file)
@@ -130,7 +130,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { fss_extended_list_read_parameter_no_color, fss_extended_list_read_parameter_light, fss_extended_list_read_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-      status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+      status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
 
       if (f_status_is_error(status)) {
         fss_extended_list_read_delete_data(data);
index d12c398fc9f55b868cf84e72a0f4e5b413dd264c..1e9785c1d35d0fc1f8999b273c0734cb53193334 100644 (file)
@@ -130,7 +130,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { fss_extended_read_parameter_no_color, fss_extended_read_parameter_light, fss_extended_read_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-      status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+      status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
 
       if (f_status_is_error(status)) {
         fss_extended_read_delete_data(data);
index 7456261779a459c093badd7c1a79982eb6696a56..812d41a45d0e8e7520ffdefab94a7dca4bfffa31 100644 (file)
@@ -36,7 +36,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { fss_extended_write_parameter_no_color, fss_extended_write_parameter_light, fss_extended_write_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-      status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+      status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
     }
 
     if (f_status_is_error(status)) {
index 93c6a680d5d282af3ecbc4bdbc16aa97309300fd..e1373ba8fe6769470b42cc57ef311c04654c413a 100644 (file)
@@ -37,7 +37,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { fss_status_code_parameter_no_color, fss_status_code_parameter_light, fss_status_code_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-      status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+      status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
     }
 
     if (f_status_is_error(status)) {
index e1f80cf8d9f79cd32acff777758d9454c0e8d044..04d87c1e5d743129669c44bc0152194360e8cf99 100644 (file)
@@ -57,7 +57,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { init_parameter_no_color, init_parameter_light, init_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-      status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+      status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
     }
 
     if (f_status_is_error(status)) {
index 64008a2e7a1cae487546bd48cf0e226ac7669ac3..99c60c58737aa16b4600a6d57cd473487249b808 100644 (file)
@@ -37,7 +37,7 @@ extern "C" {
       f_console_parameter_id ids[3] = { status_code_parameter_no_color, status_code_parameter_light, status_code_parameter_dark };
       f_console_parameter_ids choices = { ids, 3 };
 
-      status = fll_program_process_parameters(arguments, parameters, choices, &data->remaining, &data->context);
+      status = fll_program_parameter_process(arguments, parameters, choices, &data->remaining, &data->context);
     }
 
     if (f_status_is_error(status)) {