]> Kevux Git Server - fll/commitdiff
Bugfix: build directory should be created if needed and not pre-required in all cases
authorKevin Day <thekevinday@gmail.com>
Sun, 7 Jun 2020 22:04:09 +0000 (17:04 -0500)
committerKevin Day <thekevinday@gmail.com>
Sun, 7 Jun 2020 22:04:09 +0000 (17:04 -0500)
Don't optionally required the build directory.
Always create it when needed, so do not require it.

level_3/fake/c/fake.c
level_3/fake/c/private-fake.c
level_3/fake/c/private-fake.h

index 2ac0804cceb935c708da480624fb94525c5d7ddf..1134c781627007b80f7e224a1cbd9a4742f8aadd 100644 (file)
@@ -278,7 +278,7 @@ extern "C" {
 
         if (operations[i] == fake_operation_build) {
           if (validate_parameter_directories) {
-            status = fake_validate_parameter_directories(arguments, *data, F_true);
+            status = fake_validate_parameter_directories(arguments, *data);
             validate_parameter_directories = F_false;
           }
 
@@ -288,7 +288,7 @@ extern "C" {
         }
         else if (operations[i] == fake_operation_clean) {
           if (validate_parameter_directories) {
-            status = fake_validate_parameter_directories(arguments, *data, F_false);
+            status = fake_validate_parameter_directories(arguments, *data);
             validate_parameter_directories = F_false;
           }
 
@@ -298,7 +298,7 @@ extern "C" {
         }
         else if (operations[i] == fake_operation_make) {
           if (validate_parameter_directories) {
-            status = fake_validate_parameter_directories(arguments, *data, F_true);
+            status = fake_validate_parameter_directories(arguments, *data);
             validate_parameter_directories = F_false;
           }
 
index 43447fe311163f8a78c5cff85af29056cd39e591..f2c3567bfc3185696f9acc39b7590ffa4e0f232c 100644 (file)
@@ -778,7 +778,7 @@ extern "C" {
 #endif // _di_fake_process_console_parameters_
 
 #ifndef _di_fake_validate_directories_
-  f_return_status fake_validate_parameter_directories(const f_console_arguments arguments, const fake_data data, const bool build_required) {
+  f_return_status fake_validate_parameter_directories(const f_console_arguments arguments, const fake_data data) {
     const f_string parameters_name[] = {
       fake_long_path_build,
       fake_long_path_data,
@@ -808,7 +808,7 @@ extern "C" {
     };
 
     const bool parameters_required[] = {
-      build_required,
+      F_false,
       F_true,
       F_true,
       F_false,
index fad576034b87ca0319e213dcb3f076ef37f75073..77419b6bc16969bc44cf1abfcec3b2f7fa27923c 100644 (file)
@@ -99,16 +99,13 @@ extern "C" {
  *   The parameters passed to the process.
  * @param data
  *   The program data.
- * @param build_required
- *   Set to TRUE to require the build directory.
- *   Set to FALSE to not require the build directory.
  *
  * @return
  *   F_none on success.
  *   Status codes (with error bit) are returned on any problem.
  */
 #ifndef _di_fake_validate_parameter_directories_
-  extern f_return_status fake_validate_parameter_directories(const f_console_arguments arguments, const fake_data data, const bool build_required) f_gcc_attribute_visibility_internal;
+  extern f_return_status fake_validate_parameter_directories(const f_console_arguments arguments, const fake_data data) f_gcc_attribute_visibility_internal;
 #endif // _di_fake_validate_parameter_directories_
 
 #ifdef __cplusplus