]> Kevux Git Server - fll/commitdiff
Cleanup: Fake program has incorrectly named variables.
authorKevin Day <thekevinday@gmail.com>
Sat, 7 Jan 2023 04:53:37 +0000 (22:53 -0600)
committerKevin Day <thekevinday@gmail.com>
Sat, 7 Jan 2023 05:22:54 +0000 (23:22 -0600)
The variables with 'build_sources_settings' should not have an 's' on the end.
The variables with 'build_process_post_s' and 'build_process_pre_s' should not have an '_s' on the end except for when it is a string.

level_3/fake/c/private-build-load.c
level_3/fake/c/private-common.c
level_3/fake/c/private-common.h
level_3/fake/c/private-fake-path_generate.c
level_3/fake/c/private-make-operate.c
level_3/fake/c/private-skeleton.c

index e1b0597a646d8f02a93262bfe619b876a544c59d..ded2b2c9d437864cc9c4a4e8e5767d885fc2b377 100644 (file)
@@ -311,7 +311,7 @@ extern "C" {
       fake_build_setting_name_build_sources_program_shared_s,
       fake_build_setting_name_build_sources_program_static_s,
       fake_build_setting_name_build_sources_script_s,
-      fake_build_setting_name_build_sources_settings_s,
+      fake_build_setting_name_build_sources_setting_s,
       fake_build_setting_name_build_static_s,
       fake_build_setting_name_defines_s,
       fake_build_setting_name_defines_library_s,
index 74b9df12b7467d38b00c5b4a4bfa953279d2a827..ee1e225e2afbdef2e35e0216d60f42d1ce301515 100644 (file)
@@ -41,7 +41,7 @@ extern "C" {
   const f_string_static_t fake_build_setting_name_build_sources_program_shared_s = macro_f_string_static_t_initialize(FAKE_build_setting_name_build_sources_program_shared_s, 0, FAKE_build_setting_name_build_sources_program_shared_s_length);
   const f_string_static_t fake_build_setting_name_build_sources_program_static_s = macro_f_string_static_t_initialize(FAKE_build_setting_name_build_sources_program_static_s, 0, FAKE_build_setting_name_build_sources_program_static_s_length);
   const f_string_static_t fake_build_setting_name_build_sources_script_s = macro_f_string_static_t_initialize(FAKE_build_setting_name_build_sources_script_s, 0, FAKE_build_setting_name_build_sources_script_s_length);
-  const f_string_static_t fake_build_setting_name_build_sources_settings_s = macro_f_string_static_t_initialize(FAKE_build_setting_name_build_sources_settings_s, 0, FAKE_build_setting_name_build_sources_settings_s_length);
+  const f_string_static_t fake_build_setting_name_build_sources_setting_s = macro_f_string_static_t_initialize(FAKE_build_setting_name_build_sources_setting_s, 0, FAKE_build_setting_name_build_sources_setting_s_length);
   const f_string_static_t fake_build_setting_name_build_static_s = macro_f_string_static_t_initialize(FAKE_build_setting_name_build_static_s, 0, FAKE_build_setting_name_build_static_s_length);
   const f_string_static_t fake_build_setting_name_defines_s = macro_f_string_static_t_initialize(FAKE_build_setting_name_defines_s, 0, FAKE_build_setting_name_defines_s_length);
   const f_string_static_t fake_build_setting_name_defines_library_s = macro_f_string_static_t_initialize(FAKE_build_setting_name_defines_library_s, 0, FAKE_build_setting_name_defines_library_s_length);
@@ -369,8 +369,8 @@ extern "C" {
 
     f_string_dynamic_resize(0, &data->file_data_build_defines);
     f_string_dynamic_resize(0, &data->file_data_build_dependencies);
-    f_string_dynamic_resize(0, &data->file_data_build_process_post_s);
-    f_string_dynamic_resize(0, &data->file_data_build_process_pre_s);
+    f_string_dynamic_resize(0, &data->file_data_build_process_post);
+    f_string_dynamic_resize(0, &data->file_data_build_process_pre);
     f_string_dynamic_resize(0, &data->file_data_build_fakefile);
     f_string_dynamic_resize(0, &data->file_data_build_settings);
 
index a7a35ac46586847f6a299e72fecf30e0fb0c3acf..3512f809f726398a3f0c70950e7782d6b55798f4 100644 (file)
@@ -68,8 +68,8 @@ extern "C" {
  * file_data_build_defines:        The defines build file data.
  * file_data_build_dependencies:   The dependencies build file data.
  * file_data_build_fakefile:       The fakefile build file data.
- * file_data_build_process_post_s: The process_post_s build file data.
- * file_data_build_process_pre_s:  The process_pre_s build file data.
+ * file_data_build_process_post:   The process_post_s build file data.
+ * file_data_build_process_pre:    The process_pre_s build file data.
  * file_data_build_settings:       The settings build file data.
  *
  * file_documents_readme: The documents readme file data.
@@ -135,8 +135,8 @@ extern "C" {
     f_string_dynamic_t file_data_build_defines;
     f_string_dynamic_t file_data_build_dependencies;
     f_string_dynamic_t file_data_build_fakefile;
-    f_string_dynamic_t file_data_build_process_post_s;
-    f_string_dynamic_t file_data_build_process_pre_s;
+    f_string_dynamic_t file_data_build_process_post;
+    f_string_dynamic_t file_data_build_process_pre;
     f_string_dynamic_t file_data_build_settings;
 
     f_string_dynamic_t file_documents_readme;
@@ -612,7 +612,7 @@ extern "C" {
   #define FAKE_build_setting_name_build_sources_program_shared_s "build_sources_program_shared"
   #define FAKE_build_setting_name_build_sources_program_static_s "build_sources_program_static"
   #define FAKE_build_setting_name_build_sources_script_s         "build_sources_script"
-  #define FAKE_build_setting_name_build_sources_settings_s       "build_sources_setting"
+  #define FAKE_build_setting_name_build_sources_setting_s        "build_sources_setting"
   #define FAKE_build_setting_name_build_static_s                 "build_static"
   #define FAKE_build_setting_name_defines_s                      "defines"
   #define FAKE_build_setting_name_defines_library_s              "defines_library"
@@ -707,7 +707,7 @@ extern "C" {
   #define FAKE_build_setting_name_build_sources_program_shared_s_length 28
   #define FAKE_build_setting_name_build_sources_program_static_s_length 28
   #define FAKE_build_setting_name_build_sources_script_s_length         20
-  #define FAKE_build_setting_name_build_sources_settings_s_length       22
+  #define FAKE_build_setting_name_build_sources_setting_s_length        21
   #define FAKE_build_setting_name_build_static_s_length                 12
   #define FAKE_build_setting_name_environment_s_length                  11
   #define FAKE_build_setting_name_defines_s_length                      7
@@ -802,7 +802,7 @@ extern "C" {
   extern const f_string_static_t fake_build_setting_name_build_sources_program_shared_s;
   extern const f_string_static_t fake_build_setting_name_build_sources_program_static_s;
   extern const f_string_static_t fake_build_setting_name_build_sources_script_s;
-  extern const f_string_static_t fake_build_setting_name_build_sources_settings_s;
+  extern const f_string_static_t fake_build_setting_name_build_sources_setting_s;
   extern const f_string_static_t fake_build_setting_name_build_static_s;
   extern const f_string_static_t fake_build_setting_name_defines_s;
   extern const f_string_static_t fake_build_setting_name_defines_library_s;
index 18cc70fc425e2530352d2798369bb5d2fd32e52b..486556e3f4011b6d16d5ac4e74da45f4e746fb63 100644 (file)
@@ -13,6 +13,8 @@ extern "C" {
     uint8_t i = 0;
 
     {
+      uint8_t j = 0;
+
       const f_string_dynamic_t *parameters_source[] = {
         &data->path_build,
         &data->path_data,
@@ -46,7 +48,7 @@ extern "C" {
       for (i = 0; i < 2; ++i) {
 
         // Initialize all string lengths to 0.
-        for (uint8_t j = 0; j < parameters_size[i]; ++j) {
+        for (j = 0; j < parameters_size[i]; ++j) {
           parameters_value[i][j]->used = 0;
         } // for
 
@@ -140,8 +142,8 @@ extern "C" {
         &data->file_data_build_defines,
         &data->file_data_build_dependencies,
         &data->file_data_build_fakefile,
-        &data->file_data_build_process_post_s,
-        &data->file_data_build_process_pre_s,
+        &data->file_data_build_process_post,
+        &data->file_data_build_process_pre,
         &data->file_data_build_settings,
       };
 
@@ -209,8 +211,8 @@ extern "C" {
         &data->path_build_programs_static,
         &data->file_data_build_defines,
         &data->file_data_build_dependencies,
-        &data->file_data_build_process_post_s,
-        &data->file_data_build_process_pre_s,
+        &data->file_data_build_process_post,
+        &data->file_data_build_process_pre,
         &data->file_data_build_fakefile,
         &data->file_data_build_settings,
         &data->file_documents_readme,
index f80e96b1d377aa293b314da7ce6161c8c37f0166..479366a3c48bea64a638957b604d3c3e054f1bae 100644 (file)
@@ -960,7 +960,7 @@ extern "C" {
         fake_build_setting_name_build_sources_program_s,
         fake_build_setting_name_build_sources_program_shared_s,
         fake_build_setting_name_build_sources_program_static_s,
-        fake_build_setting_name_build_sources_settings_s,
+        fake_build_setting_name_build_sources_setting_s,
         fake_build_setting_name_build_sources_script_s,
         fake_build_setting_name_defines_s,
         fake_build_setting_name_defines_library_s,
index c99a9b27c525c78622d352dc08a41b70ee704782..a68b6a8ac0412065b08d99908152a066fc569a0a 100644 (file)
@@ -101,11 +101,11 @@ extern "C" {
     }
 
     if (F_status_is_error_not(status)) {
-      status = fake_skeleton_operate_file_create(data, data->file_data_build_process_post_s, F_true, fake_make_skeleton_content_process_post_s);
+      status = fake_skeleton_operate_file_create(data, data->file_data_build_process_post, F_true, fake_make_skeleton_content_process_post_s);
     }
 
     if (F_status_is_error_not(status)) {
-      status = fake_skeleton_operate_file_create(data, data->file_data_build_process_pre_s, F_true, fake_make_skeleton_content_process_pre_s);
+      status = fake_skeleton_operate_file_create(data, data->file_data_build_process_pre, F_true, fake_make_skeleton_content_process_pre_s);
     }
 
     if (F_status_is_error_not(status)) {