]> 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 04:53:37 +0000 (22:53 -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 4e7fedeb3af19c656317af804a0835474d7cd28f..bebdf352f7faa846c5e55b37767b67a58e28ace6 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 4f751f1c69b1cfdd87b581b01641a2b9d8bd3caa..1fdef6a8b6c9de58c010dcb178e138e27ca6dce9 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 f5aab14167163d98393e3b629e104e8ab2e7a75f..a5e6bac834ba971ff6e01120f7325a58a1be74a8 100644 (file)
@@ -959,7 +959,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 9b2844a1771e6bf2c7bc87077ddf7e6684f6342a..501867f5ae25a79f7f7b576d6c1cb6425796b911 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)) {