]> Kevux Git Server - fll/commitdiff
Bugfix: fake settings parameter is ignored.
authorKevin Day <thekevinday@gmail.com>
Sat, 5 Sep 2020 01:58:08 +0000 (20:58 -0500)
committerKevin Day <thekevinday@gmail.com>
Sat, 5 Sep 2020 01:58:08 +0000 (20:58 -0500)
The default value is always being used.
Change the behavior to use the loaded settings that was processed based off of the parameter -s/--settings instead.

level_3/fake/c/fake.c
level_3/fake/c/private-fake.c
level_3/fake/data/build/settings-example-bzip2
level_3/fake/data/build/settings-example-bzip2recover

index c33cb61..6263cc0 100644 (file)
@@ -27,7 +27,7 @@ extern "C" {
     fll_program_print_help_option(context, fake_short_define, fake_long_define, f_console_symbol_short_enable, f_console_symbol_long_enable, "  Override defines from settings file with this define.");
     fll_program_print_help_option(context, fake_short_mode, fake_long_mode, f_console_symbol_short_enable, f_console_symbol_long_enable, "    Use this mode when processing the build settings.");
     fll_program_print_help_option(context, fake_short_process, fake_long_process, f_console_symbol_short_enable, f_console_symbol_long_enable, " Process name for storing build states.");
-    fll_program_print_help_option(context, fake_short_settings, fake_long_settings, f_console_symbol_short_enable, f_console_symbol_long_enable, "Use this settings file, from within the source settings directory.");
+    fll_program_print_help_option(context, fake_short_settings, fake_long_settings, f_console_symbol_short_enable, f_console_symbol_long_enable, "Use this settings file, from within the data build directory.");
 
     printf("%c", f_string_eol[0]);
 
index 5e50501..cfe6e3c 100644 (file)
@@ -295,7 +295,7 @@ extern "C" {
         fake_file_defines,
         fake_file_dependencies,
         fake_file_fakefile,
-        fake_file_settings,
+        data->settings.string,
         fake_file_readme,
       };
 
@@ -309,7 +309,7 @@ extern "C" {
         fake_file_defines_length,
         fake_file_dependencies_length,
         fake_file_fakefile_length,
-        fake_file_settings_length,
+        data->settings.used,
         fake_file_readme_length,
       };
 
index a1beb2a..92ff391 100644 (file)
@@ -5,7 +5,6 @@
 # 2) need to provide a way to designate path prefixes (instead of just hardcoded sources/c/, etc...
 # 3) need to be able to build shared program without library (add a 'build_library' setting).
 # 4) need to remove the auto-appending of the -D in the defines.
-# 5) the -s/--settings does not appear to be working correctly, confirm this.
 
 project_name bzip2
 
index 5ac911d..97914c0 100644 (file)
@@ -5,7 +5,6 @@
 # 2) need to provide a way to designate path prefixes (instead of just hardcoded sources/c/, etc...
 # 3) need to be able to build shared program without library (add a 'build_library' setting).
 # 4) need to remove the auto-appending of the -D in the defines.
-# 5) the -s/--settings does not appear to be working correctly, confirm this.
 
 project_name bzip2recover