}
{
- const int result = fake_make_operate_section(main, data_make.main, &data_make, §ion_stack, &status);
+ const int result = fake_make_operate_section(main, &data_make, data_make.main, §ion_stack, &status);
if (status == F_child) {
main->child = result;
if (F_status_is_error(*status)) break;
if (unmatched) {
- *status = fake_make_operate_expand_build(main, quotes.array[i], iki_content.array[j], data_make, arguments);
+ *status = fake_make_operate_expand_build(main, data_make, quotes.array[i], iki_content.array[j], arguments);
if (F_status_is_error(*status)) {
fll_error_print(data_make->error, F_status_set_fine(*status), "fake_make_operate_expand_build", F_true);
#endif // _di_fake_make_operate_expand_
#ifndef _di_fake_make_operate_expand_build_
- f_status_t fake_make_operate_expand_build(fake_main_t * const main, const f_fss_quote_t quoted, const f_string_range_t range_name, fake_make_data_t *data_make, f_string_dynamics_t *arguments) {
+ f_status_t fake_make_operate_expand_build(fake_main_t * const main, fake_make_data_t * const data_make, const f_fss_quote_t quoted, const f_string_range_t range_name, f_string_dynamics_t *arguments) {
f_status_t status = F_none;
f_string_dynamic_t value = f_string_dynamic_t_initialize;
#endif // _di_fake_make_operate_expand_environment_
#ifndef _di_fake_make_operate_section_
- int fake_make_operate_section(fake_main_t * const main, const f_array_length_t id_section, fake_make_data_t *data_make, f_array_lengths_t *section_stack, f_status_t *status) {
+ int fake_make_operate_section(fake_main_t * const main, fake_make_data_t * const data_make, const f_array_length_t id_section, f_array_lengths_t *section_stack, f_status_t *status) {
if (F_status_is_error(*status) || *status == F_child) return main->child;
operation_if = fake_make_operation_if_type_false_always;
}
- fake_make_operate_validate(main, section->name, operation, arguments, &operation_if, data_make, section_stack, status);
+ fake_make_operate_validate(main, data_make, section->name, operation, arguments, &operation_if, section_stack, status);
if (F_status_is_error_not(*status)) {
if (operation_if == fake_make_operation_if_type_false) {
continue;
}
- const int result = fake_make_operate_process(main, section->name, operation, arguments, success, &operation_if, data_make, section_stack, status);
+ const int result = fake_make_operate_process(main, data_make, section->name, operation, arguments, success, &operation_if, section_stack, status);
if (*status == F_child) {
f_string_dynamics_resize(0, &arguments);
#endif // _di_fake_make_operate_section_
#ifndef _di_fake_make_operate_process_
- int fake_make_operate_process(fake_main_t * const main, const f_string_range_t section_name, const uint8_t operation, const f_string_dynamics_t arguments, const bool success, uint8_t *operation_if, fake_make_data_t *data_make, f_array_lengths_t *section_stack, f_status_t *status) {
+ int fake_make_operate_process(fake_main_t * const main, fake_make_data_t * const data_make, const f_string_range_t section_name, const uint8_t operation, const f_string_dynamics_t arguments, const bool success, uint8_t *operation_if, f_array_lengths_t *section_stack, f_status_t *status) {
if (*status == F_child) return main->child;
return result;
}
- fake_make_operate_process_return(main, result, data_make, status);
+ fake_make_operate_process_return(main, data_make, result, status);
return 0;
}
}
if (F_status_is_error(*status)) {
- fake_make_operate_process_return(main, 1, data_make, status);
+ fake_make_operate_process_return(main, data_make, 1, status);
}
else {
- fake_make_operate_process_return(main, 0, data_make, status);
+ fake_make_operate_process_return(main, data_make, 0, status);
}
return 0;
}
if (F_status_is_error(*status)) {
- fake_make_operate_process_return(main, 1, data_make, status);
+ fake_make_operate_process_return(main, data_make, 1, status);
}
else {
- fake_make_operate_process_return(main, 0, data_make, status);
+ fake_make_operate_process_return(main, data_make, 0, status);
}
return 0;
return result;
}
- fake_make_operate_process_return(main, result, data_make, status);
+ fake_make_operate_process_return(main, data_make, result, status);
return 0;
}
for (f_array_length_t i = 1; i < arguments.used; ++i) {
- status_file = fake_make_assure_inside_project(main, arguments.array[i], data_make);
+ status_file = fake_make_assure_inside_project(main, data_make, arguments.array[i]);
if (F_status_is_error(status_file)) {
*status = status_file;
for (f_array_length_t i = 1; i < arguments.used; ++i) {
- status_file = fake_make_assure_inside_project(main, arguments.array[i], data_make);
+ status_file = fake_make_assure_inside_project(main, data_make, arguments.array[i]);
if (F_status_is_error(status_file)) {
*status = status_file;
return 0;
}
- const int result = fake_make_operate_section(main, id_section, data_make, section_stack, status);
+ const int result = fake_make_operate_section(main, data_make, id_section, section_stack, status);
// Ensure that a break only happens within its active operation stack.
if (*status == F_signal_abort) {
for (f_array_length_t i = 1; i < arguments.used; ++i) {
- status_file = fake_make_assure_inside_project(main, arguments.array[i], data_make);
+ status_file = fake_make_assure_inside_project(main, data_make, arguments.array[i]);
if (F_status_is_error(status_file)) {
*status = status_file;
for (f_array_length_t i = 1; i < arguments.used; ++i) {
- status_file = fake_make_assure_inside_project(main, arguments.array[i], data_make);
+ status_file = fake_make_assure_inside_project(main, data_make, arguments.array[i]);
if (F_status_is_error(status_file)) {
*status = status_file;
}
if (main->error.verbosity == f_console_verbosity_verbose) {
- *status = fake_make_path_relative(main, data_make->path.stack.array[data_make->path.stack.used - 1], data_make);
+ *status = fake_make_path_relative(main, data_make, data_make->path.stack.array[data_make->path.stack.used - 1]);
if (F_status_is_error(*status)) {
fll_error_print(data_make->error, F_status_set_fine(*status), "fake_make_path_relative", F_true);
}
if (operation == fake_make_operation_type_run) {
- *status = fake_make_operate_process_run(main, arguments, F_false, data_make);
+ *status = fake_make_operate_process_run(main, data_make, arguments, F_false);
return 0;
}
if (operation == fake_make_operation_type_shell) {
- *status = fake_make_operate_process_run(main, arguments, F_true, data_make);
+ *status = fake_make_operate_process_run(main, data_make, arguments, F_true);
return 0;
}
}
if (F_status_is_error(*status)) {
- fake_make_operate_process_return(main, 1, data_make, status);
+ fake_make_operate_process_return(main, data_make, 1, status);
}
else {
- fake_make_operate_process_return(main, 0, data_make, status);
+ fake_make_operate_process_return(main, data_make, 0, status);
}
return 0;
}
if (operation == fake_make_operation_type_to) {
- *status = fake_make_assure_inside_project(main, arguments.array[0], data_make);
+ *status = fake_make_assure_inside_project(main, data_make, arguments.array[0]);
if (F_status_is_error(*status)) {
fake_print_message_section_operation_path_outside(main, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[0].string);
}
if (main->error.verbosity == f_console_verbosity_verbose) {
- *status = fake_make_path_relative(main, data_make->path.stack.array[data_make->path.stack.used], data_make);
+ *status = fake_make_path_relative(main, data_make, data_make->path.stack.array[data_make->path.stack.used]);
if (F_status_is_error(*status)) {
#endif // _di_fake_make_operate_process_
#ifndef _di_fake_make_operate_process_execute_
- f_status_t fake_make_operate_process_execute(fake_main_t * const main, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) {
+ f_status_t fake_make_operate_process_execute(fake_main_t * const main, fake_make_data_t * const data_make, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell) {
if (fake_signal_received(main)) {
return F_status_set_error(F_interrupt);
}
}
- fake_make_operate_process_return(main, return_code, data_make, &status);
+ fake_make_operate_process_return(main, data_make, return_code, &status);
return status;
}
#endif // fake_make_operate_process_type_if_defined
#ifndef _di_fake_make_operate_process_return_
- void fake_make_operate_process_return(fake_main_t * const main, const int return_code, fake_make_data_t *data_make, f_status_t *status) {
+ void fake_make_operate_process_return(fake_main_t * const main, fake_make_data_t * const data_make, const int return_code, f_status_t *status) {
f_status_t status2 = F_none;
#endif // _di_fake_make_operate_process_return_
#ifndef _di_fake_make_operate_process_run_
- f_status_t fake_make_operate_process_run(fake_main_t * const main, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) {
+ f_status_t fake_make_operate_process_run(fake_main_t * const main, fake_make_data_t * const data_make, const f_string_statics_t arguments, const bool as_shell) {
const f_string_static_t *program = &arguments.array[0];
} // for
}
- status = fake_make_operate_process_execute(main, *program, args, as_shell, data_make);
+ status = fake_make_operate_process_execute(main, data_make, *program, args, as_shell);
f_string_dynamics_resize(0, &args);
#endif // _di_fake_make_operate_process_run_
#ifndef _di_fake_make_operate_validate_
- void fake_make_operate_validate(fake_main_t * const main, const f_string_range_t section_name, const f_array_length_t operation, const f_string_dynamics_t arguments, uint8_t *operation_if, fake_make_data_t *data_make, f_array_lengths_t *section_stack, f_status_t *status) {
+ void fake_make_operate_validate(fake_main_t * const main, fake_make_data_t * const data_make, const f_string_range_t section_name, const f_array_length_t operation, const f_string_dynamics_t arguments, uint8_t *operation_if, f_array_lengths_t *section_stack, f_status_t *status) {
if (F_status_is_error(*status)) return;
if (arguments.used > 1) {
for (f_array_length_t i = 0; i < arguments.used; ++i) {
- *status = fake_make_assure_inside_project(main, arguments.array[i], data_make);
+ *status = fake_make_assure_inside_project(main, data_make, arguments.array[i]);
if (F_status_is_error(*status)) {
fake_print_message_section_operation_path_outside(main, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
if (arguments.used > 1) {
for (f_array_length_t i = 0; i < arguments.used; ++i) {
- *status = fake_make_assure_inside_project(main, arguments.array[i], data_make);
+ *status = fake_make_assure_inside_project(main, data_make, arguments.array[i]);
if (F_status_is_error(*status)) {
fake_print_message_section_operation_path_outside(main, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
if (arguments.used) {
for (f_array_length_t i = 0; i < arguments.used; ++i) {
- *status = fake_make_assure_inside_project(main, arguments.array[i], data_make);
+ *status = fake_make_assure_inside_project(main, data_make, arguments.array[i]);
if (F_status_is_error(*status)) {
fake_print_message_section_operation_path_outside(main, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
if (i < arguments.used) {
for (f_status_t status_file = F_none; i < arguments.used; ++i) {
- status_file = fake_make_assure_inside_project(main, arguments.array[i], data_make);
+ status_file = fake_make_assure_inside_project(main, data_make, arguments.array[i]);
if (F_status_is_error(status_file)) {
fake_print_message_section_operation_path_outside(main, data_make->error, F_status_set_fine(status_file), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
*status = F_status_set_error(F_failure);
}
else if (arguments.used == 2) {
- *status = fake_make_assure_inside_project(main, arguments.array[0], data_make);
+ *status = fake_make_assure_inside_project(main, data_make, arguments.array[0]);
if (F_status_is_error(*status)) {
fake_print_message_section_operation_path_outside(main, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[0].string);
}
}
- *status = fake_make_assure_inside_project(main, arguments.array[1], data_make);
+ *status = fake_make_assure_inside_project(main, data_make, arguments.array[1]);
if (F_status_is_error(*status)) {
fake_print_message_section_operation_path_outside(main, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[1].string);
if (arguments.used > 1) {
for (f_array_length_t i = 0; i < arguments.used; ++i) {
- *status = fake_make_assure_inside_project(main, arguments.array[i], data_make);
+ *status = fake_make_assure_inside_project(main, data_make, arguments.array[i]);
if (F_status_is_error(*status)) {
fake_print_message_section_operation_path_outside(main, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
for (f_array_length_t i = 1; i < arguments.used; ++i) {
- *status = fake_make_assure_inside_project(main, arguments.array[i], data_make);
+ *status = fake_make_assure_inside_project(main, data_make, arguments.array[i]);
if (F_status_is_error(*status)) {
fake_print_message_section_operation_path_outside(main, data_make->error, F_status_set_fine(*status), "fake_make_assure_inside_project", data_make->path_cache.used ? data_make->path_cache.string : arguments.array[i].string);
*
* @param main
* The main program data.
+ * @param data_make
+ * All make related setting data, including data from the fakefile and optionally build settings file.
* @param quoted
* The quoted associated with the content.
* @param range_name
* The range representing the variable content name string within the data_make->buffer.
- * @param main_make
- * All make related setting data, including data from the fakefile and optionally build settings file.
* @param arguments
* The expanded arguments.
*
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_expand_build_
- extern f_status_t fake_make_operate_expand_build(fake_main_t * const main, const f_fss_quote_t quoted, const f_string_range_t range_name, fake_make_data_t *data_make, f_string_dynamics_t *arguments) F_attribute_visibility_internal_d;
+ extern f_status_t fake_make_operate_expand_build(fake_main_t * const main, fake_make_data_t * const data_make, const f_fss_quote_t quoted, const f_string_range_t range_name, f_string_dynamics_t *arguments) F_attribute_visibility_internal_d;
#endif // _di_fake_make_operate_expand_build_
/**
*
* @param main
* The main program data.
+ * @param data_make
+ * All make related setting data, including data from the fakefile and optionally build settings file.
* @param id_section
* The array location id within the fakefile of the section to operate on.
- * @param main_make
- * All make related setting data, including data from the fakefile and optionally build settings file.
* @param section_stack
* The current operation stack.
* @param status
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_make_operate_section_
- int fake_make_operate_section(fake_main_t * const main, const f_array_length_t id_section, fake_make_data_t *data_make, f_array_lengths_t *section_stack, f_status_t *status) F_attribute_visibility_internal_d;
+ int fake_make_operate_section(fake_main_t * const main, fake_make_data_t * const data_make, const f_array_length_t id_section, f_array_lengths_t *section_stack, f_status_t *status) F_attribute_visibility_internal_d;
#endif // _di_fake_make_operate_section_
/**
*
* @param main
* The main program data.
+ * @param data_make
+ * All make related setting data, including data from the fakefile and optionally build settings file.
* @param section_name
* The section name.
* @param operation
* Whether or not a previous section operation succeeded or failed.
* @param operation_if
* The if-condition status for the current operation.
- * @param main_make
- * All make related setting data, including data from the fakefile and optionally build settings file.
* @param section_stack
* The current operation stack.
* @param status
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_make_operate_process_
- extern int fake_make_operate_process(fake_main_t * const main, const f_string_range_t section_name, const uint8_t operation, const f_string_dynamics_t arguments, const bool success, uint8_t *operation_if, fake_make_data_t *data_make, f_array_lengths_t *section_stack, f_status_t *status) F_attribute_visibility_internal_d;
+ extern int fake_make_operate_process(fake_main_t * const main, fake_make_data_t * const data_make, const f_string_range_t section_name, const uint8_t operation, const f_string_dynamics_t arguments, const bool success, uint8_t *operation_if, f_array_lengths_t *section_stack, f_status_t *status) F_attribute_visibility_internal_d;
#endif // _di_fake_make_operate_process_
/**
*
* @param main
* The main program data.
+ * @param data_make
+ * All make related setting data, including data from the fakefile and optionally build settings file.
* @param program
* The program to be executed.
* @param arguments
* @param as_shell
* When TRUE, this is a shell operation.
* When FALSE, this is a run operation.
- * @param main_make
- * All make related setting data, including data from the fakefile and optionally build settings file.
*
* @return
* F_none on success.
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_process_execute_
- extern f_status_t fake_make_operate_process_execute(fake_main_t * const main, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) F_attribute_visibility_internal_d;
+ extern f_status_t fake_make_operate_process_execute(fake_main_t * const main, fake_make_data_t * const data_make, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell) F_attribute_visibility_internal_d;
#endif // _di_fake_make_operate_process_execute_
/**
*
* @param main
* The main program data.
+ * @param data_make
+ * All make related setting data, including data from the fakefile and optionally build settings file.
* @param return_code
* The return code to process.
- * @param main_make
- * All make related setting data, including data from the fakefile and optionally build settings file.
* @param status
* The return status.
*
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_process_return_
- extern void fake_make_operate_process_return(fake_main_t * const main, const int return_code, fake_make_data_t *data_make, f_status_t *status) F_attribute_visibility_internal_d;
+ extern void fake_make_operate_process_return(fake_main_t * const main, fake_make_data_t * const data_make, const int return_code, f_status_t *status) F_attribute_visibility_internal_d;
#endif // _di_fake_make_operate_process_return_
/**
*
* @param main
* The main program data.
+ * @param data_make
+ * All make related setting data, including data from the fakefile and optionally build settings file.
* @param arguments
* The arguments for the run or shell operation.
* @param as_shell
* When TRUE, this is a shell operation.
* When FALSE, this is a run operation.
- * @param main_make
- * All make related setting data, including data from the fakefile and optionally build settings file.
*
* @return
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_process_run_
- extern f_status_t fake_make_operate_process_run(fake_main_t * const main, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) F_attribute_visibility_internal_d;
+ extern f_status_t fake_make_operate_process_run(fake_main_t * const main, fake_make_data_t * const data_make, const f_string_statics_t arguments, const bool as_shell) F_attribute_visibility_internal_d;
#endif // _di_fake_make_operate_process_run_
/**
*
* @param main
* The main program data.
+ * @param data_make
+ * All make related setting data, including data from the fakefile and optionally build settings file.
* @param section_name
* The section name.
* @param operation
* The expanded arguments.
* @param operation_if
* The if-condition status for the current operation.
- * @param main_make
- * All make related setting data, including data from the fakefile and optionally build settings file.
* @param section_stack
* The current operation stack.
* @param status
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_validate_
- extern void fake_make_operate_validate(fake_main_t * const main, const f_string_range_t section_name, const f_array_length_t operation, const f_string_dynamics_t arguments, uint8_t *operation_if, fake_make_data_t *data_make, f_array_lengths_t *section_stack, f_status_t *status) F_attribute_visibility_internal_d;
+ extern void fake_make_operate_validate(fake_main_t * const main, fake_make_data_t * const data_make, const f_string_range_t section_name, const f_array_length_t operation, const f_string_dynamics_t arguments, uint8_t *operation_if, f_array_lengths_t *section_stack, f_status_t *status) F_attribute_visibility_internal_d;
#endif // _di_fake_make_operate_validate_
/**