I'm seeing a lot of places where I can perform optimizations.
I am ignoring these cases for now.
0, \
0, \
0, \
- 0, \
}
#define macro_f_directory_recurse_t_initialize_1(max_depth, size_block, flag, depth, mode, state, listing, source, source_top, destination, destination_top, verbose) { \
0, \
0, \
0, \
- 0, \
verbose, \
}
#endif // _di_f_directory_recurse_t_
#ifndef _di_f_execute_status_from_status_
uint8_t f_execute_status_from_status(f_status_t status) {
- if (F_status_set_fine(status) == F_none) {
- return F_execute_none;
- }
-
- if (F_status_set_fine(status) == F_access) {
- return F_execute_access;
- }
-
- if (F_status_set_fine(status) == F_buffer) {
- return F_execute_buffer;
- }
-
- if (F_status_set_fine(status) == F_busy) {
- return F_execute_busy;
- }
-
- if (F_status_set_fine(status) == F_capability) {
- return F_execute_capability;
- }
-
- if (F_status_set_fine(status) == F_control_group) {
- return F_execute_control_group;
- }
-
- if (F_status_set_fine(status) == F_child) {
- return F_execute_child;
- }
-
- if (F_status_set_fine(status) == F_directory_not) {
- return F_execute_directory_not;
- }
-
- if (F_status_set_fine(status) == F_execute_not) {
- return F_execute_bad;
- }
-
- if (F_status_set_fine(status) == F_failure) {
- return F_execute_failure;
- }
-
- if (F_status_set_fine(status) == F_file_found_not) {
- return F_execute_file_found_not;
- }
-
- if (F_status_set_fine(status) == F_file_type_directory) {
- return F_execute_file_type_directory;
- }
-
- if (F_status_set_fine(status) == F_fork_not) {
- return F_execute_fork_not;
- }
-
- if (F_status_set_fine(status) == F_format_not) {
- return F_execute_format_not;
- }
-
- if (F_status_set_fine(status) == F_group) {
- return F_execute_group;
- }
-
- if (F_status_set_fine(status) == F_input_output) {
- return F_execute_input_output;
- }
-
- if (F_status_set_fine(status) == F_limit) {
- return F_execute_limit;
- }
-
- if (F_status_set_fine(status) == F_loop) {
- return F_execute_loop;
- }
-
- if (F_status_set_fine(status) == F_memory_not) {
- return F_execute_memory_not;
- }
-
- if (F_status_set_fine(status) == F_name_not) {
- return F_execute_name_not;
- }
-
- if (F_status_set_fine(status) == F_nice) {
- return F_execute_nice;
- }
-
- if (F_status_set_fine(status) == F_parameter) {
- return F_execute_parameter;
- }
-
- if (F_status_set_fine(status) == F_pipe) {
- return F_execute_pipe;
- }
-
- if (F_status_set_fine(status) == F_processor) {
- return F_execute_processor;
- }
-
- if (F_status_set_fine(status) == F_prohibited) {
- return F_execute_prohibited;
- }
-
- if (F_status_set_fine(status) == F_resource_not) {
- return F_execute_resource_not;
- }
-
- if (F_status_set_fine(status) == F_schedule) {
- return F_execute_schedule;
- }
-
- if (F_status_set_fine(status) == F_terminal) {
- return F_execute_terminal;
- }
-
- if (F_status_set_fine(status) == F_terminal_known_not) {
- return F_execute_terminal_known_not;
- }
-
- if (F_status_set_fine(status) == F_terminal_not) {
- return F_execute_terminal_not;
- }
-
- if (F_status_set_fine(status) == F_terminal_prohibited) {
- return F_execute_terminal_prohibited;
- }
-
- if (F_status_set_fine(status) == F_terminal_valid_not) {
- return F_execute_terminal_valid_not;
- }
-
- if (F_status_set_fine(status) == F_too_large) {
- return F_execute_too_large;
- }
-
- if (F_status_set_fine(status) == F_user) {
- return F_execute_user;
- }
-
- if (F_status_set_fine(status) == F_valid_not) {
- return F_execute_valid_not;
- }
-
- if (F_status_set_fine(status) == F_call_not) {
- return F_execute_invoke_not;
- }
-
- if (F_status_set_fine(status) == F_found_not) {
- return F_execute_found_not;
- }
-
- if (F_status_set_fine(status) == F_exit) {
- return F_execute_exit_parameter;
- }
-
- if (F_status_set_fine(status) == F_signal_hangup) {
- return F_execute_signal_hangup;
- }
-
- if (F_status_set_fine(status) == F_signal_interrupt) {
- return F_execute_signal_interrupt;
- }
-
- if (F_status_set_fine(status) == F_signal_quit) {
- return F_execute_signal_quit;
- }
-
- if (F_status_set_fine(status) == F_signal_illegal) {
- return F_execute_signal_illegal;
- }
-
- if (F_status_set_fine(status) == F_signal_trap) {
- return F_execute_signal_trap;
- }
-
- if (F_status_set_fine(status) == F_signal_abort) {
- return F_execute_signal_abort;
- }
-
- if (F_status_set_fine(status) == F_signal_bus_error) {
- return F_execute_signal_bus_error;
- }
-
- if (F_status_set_fine(status) == F_signal_floating_point_error) {
- return F_execute_signal_floating_point_error;
- }
-
- if (F_status_set_fine(status) == F_signal_kill) {
- return F_execute_signal_kill;
- }
-
- if (F_status_set_fine(status) == F_signal_user_1) {
- return F_execute_signal_user_1;
- }
-
- if (F_status_set_fine(status) == F_signal_segmentation_fault) {
- return F_execute_signal_segmentation_fault;
- }
-
- if (F_status_set_fine(status) == F_signal_user_2) {
- return F_execute_signal_user_2;
- }
-
- if (F_status_set_fine(status) == F_signal_broken_pipe) {
- return F_execute_signal_broken_pipe;
- }
-
- if (F_status_set_fine(status) == F_signal_alarm_clock) {
- return F_execute_signal_alarm_clock;
- }
-
- if (F_status_set_fine(status) == F_signal_termination) {
- return F_execute_signal_termination;
- }
-
- if (F_status_set_fine(status) == F_signal_stack_fault) {
- return F_execute_signal_stack_fault;
- }
-
- if (F_status_set_fine(status) == F_signal_child) {
- return F_execute_signal_child;
- }
-
- if (F_status_set_fine(status) == F_signal_continue) {
- return F_execute_signal_continue;
- }
-
- if (F_status_set_fine(status) == F_signal_stop) {
- return F_execute_signal_stop;
- }
-
- if (F_status_set_fine(status) == F_signal_keyboard_stop) {
- return F_execute_signal_keyboard_stop;
- }
-
- if (F_status_set_fine(status) == F_signal_tty_in) {
- return F_execute_signal_tty_in;
- }
-
- if (F_status_set_fine(status) == F_signal_tty_out) {
- return F_execute_signal_tty_out;
- }
-
- if (F_status_set_fine(status) == F_signal_urgent) {
- return F_execute_signal_urgent;
- }
-
- if (F_status_set_fine(status) == F_signal_cpu_limit) {
- return F_execute_signal_cpu_limit;
- }
-
- if (F_status_set_fine(status) == F_signal_file_size_limit) {
- return F_execute_signal_file_size_limit;
- }
-
- if (F_status_set_fine(status) == F_signal_virtual_alarm_clock) {
- return F_execute_signal_virtual_alarm_clock;
- }
-
- if (F_status_set_fine(status) == F_signal_profile_alarm_clock) {
- return F_execute_signal_profile_alarm_clock;
- }
-
- if (F_status_set_fine(status) == F_signal_window_size_change) {
- return F_execute_signal_window_size_change;
- }
-
- if (F_status_set_fine(status) == F_signal_pollable_event) {
- return F_execute_signal_pollable_event;
- }
-
- if (F_status_set_fine(status) == F_signal_power_failure) {
- return F_execute_signal_power_failure;
- }
-
- if (F_status_set_fine(status) == F_signal_bad_system_call) {
- return F_execute_signal_bad_system_call;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_32) {
- return F_execute_signal_reserved_32;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_33) {
- return F_execute_signal_reserved_33;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_34) {
- return F_execute_signal_reserved_34;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_35) {
- return F_execute_signal_reserved_35;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_36) {
- return F_execute_signal_reserved_36;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_37) {
- return F_execute_signal_reserved_37;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_38) {
- return F_execute_signal_reserved_38;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_39) {
- return F_execute_signal_reserved_39;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_40) {
- return F_execute_signal_reserved_40;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_41) {
- return F_execute_signal_reserved_41;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_42) {
- return F_execute_signal_reserved_42;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_43) {
- return F_execute_signal_reserved_43;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_44) {
- return F_execute_signal_reserved_44;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_45) {
- return F_execute_signal_reserved_45;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_46) {
- return F_execute_signal_reserved_46;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_47) {
- return F_execute_signal_reserved_47;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_48) {
- return F_execute_signal_reserved_48;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_49) {
- return F_execute_signal_reserved_49;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_50) {
- return F_execute_signal_reserved_50;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_51) {
- return F_execute_signal_reserved_51;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_52) {
- return F_execute_signal_reserved_52;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_53) {
- return F_execute_signal_reserved_53;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_54) {
- return F_execute_signal_reserved_54;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_55) {
- return F_execute_signal_reserved_55;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_56) {
- return F_execute_signal_reserved_56;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_57) {
- return F_execute_signal_reserved_57;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_58) {
- return F_execute_signal_reserved_58;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_59) {
- return F_execute_signal_reserved_59;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_60) {
- return F_execute_signal_reserved_60;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_61) {
- return F_execute_signal_reserved_61;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_62) {
- return F_execute_signal_reserved_62;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_63) {
- return F_execute_signal_reserved_63;
- }
-
- if (F_status_set_fine(status) == F_signal_reserved_64) {
- return F_execute_signal_reserved_64;
- }
+ if (F_status_set_fine(status) == F_none) return F_execute_none;
+ if (F_status_set_fine(status) == F_access) return F_execute_access;
+ if (F_status_set_fine(status) == F_buffer) return F_execute_buffer;
+ if (F_status_set_fine(status) == F_busy) return F_execute_busy;
+ if (F_status_set_fine(status) == F_capability) return F_execute_capability;
+ if (F_status_set_fine(status) == F_control_group) return F_execute_control_group;
+ if (F_status_set_fine(status) == F_child) return F_execute_child;
+ if (F_status_set_fine(status) == F_directory_not) return F_execute_directory_not;
+ if (F_status_set_fine(status) == F_execute_not) return F_execute_bad;
+ if (F_status_set_fine(status) == F_failure) return F_execute_failure;
+ if (F_status_set_fine(status) == F_file_found_not) return F_execute_file_found_not;
+ if (F_status_set_fine(status) == F_file_type_directory) return F_execute_file_type_directory;
+ if (F_status_set_fine(status) == F_fork_not) return F_execute_fork_not;
+ if (F_status_set_fine(status) == F_format_not) return F_execute_format_not;
+ if (F_status_set_fine(status) == F_group) return F_execute_group;
+ if (F_status_set_fine(status) == F_input_output) return F_execute_input_output;
+ if (F_status_set_fine(status) == F_limit) return F_execute_limit;
+ if (F_status_set_fine(status) == F_loop) return F_execute_loop;
+ if (F_status_set_fine(status) == F_memory_not) return F_execute_memory_not;
+ if (F_status_set_fine(status) == F_name_not) return F_execute_name_not;
+ if (F_status_set_fine(status) == F_nice) return F_execute_nice;
+ if (F_status_set_fine(status) == F_parameter) return F_execute_parameter;
+ if (F_status_set_fine(status) == F_pipe) return F_execute_pipe;
+ if (F_status_set_fine(status) == F_processor) return F_execute_processor;
+ if (F_status_set_fine(status) == F_prohibited) return F_execute_prohibited;
+ if (F_status_set_fine(status) == F_resource_not) return F_execute_resource_not;
+ if (F_status_set_fine(status) == F_schedule) return F_execute_schedule;
+ if (F_status_set_fine(status) == F_terminal) return F_execute_terminal;
+ if (F_status_set_fine(status) == F_terminal_known_not) return F_execute_terminal_known_not;
+ if (F_status_set_fine(status) == F_terminal_not) return F_execute_terminal_not;
+ if (F_status_set_fine(status) == F_terminal_prohibited) return F_execute_terminal_prohibited;
+ if (F_status_set_fine(status) == F_terminal_valid_not) return F_execute_terminal_valid_not;
+ if (F_status_set_fine(status) == F_too_large) return F_execute_too_large;
+ if (F_status_set_fine(status) == F_user) return F_execute_user;
+ if (F_status_set_fine(status) == F_valid_not) return F_execute_valid_not;
+ if (F_status_set_fine(status) == F_call_not) return F_execute_invoke_not;
+ if (F_status_set_fine(status) == F_found_not) return F_execute_found_not;
+ if (F_status_set_fine(status) == F_exit) return F_execute_exit_parameter;
+ if (F_status_set_fine(status) == F_signal_hangup) return F_execute_signal_hangup;
+ if (F_status_set_fine(status) == F_signal_interrupt) return F_execute_signal_interrupt;
+ if (F_status_set_fine(status) == F_signal_quit) return F_execute_signal_quit;
+ if (F_status_set_fine(status) == F_signal_illegal) return F_execute_signal_illegal;
+ if (F_status_set_fine(status) == F_signal_trap) return F_execute_signal_trap;
+ if (F_status_set_fine(status) == F_signal_abort) return F_execute_signal_abort;
+ if (F_status_set_fine(status) == F_signal_bus_error) return F_execute_signal_bus_error;
+ if (F_status_set_fine(status) == F_signal_floating_point_error) return F_execute_signal_floating_point_error;
+ if (F_status_set_fine(status) == F_signal_kill) return F_execute_signal_kill;
+ if (F_status_set_fine(status) == F_signal_user_1) return F_execute_signal_user_1;
+ if (F_status_set_fine(status) == F_signal_segmentation_fault) return F_execute_signal_segmentation_fault;
+ if (F_status_set_fine(status) == F_signal_user_2) return F_execute_signal_user_2;
+ if (F_status_set_fine(status) == F_signal_broken_pipe) return F_execute_signal_broken_pipe;
+ if (F_status_set_fine(status) == F_signal_alarm_clock) return F_execute_signal_alarm_clock;
+ if (F_status_set_fine(status) == F_signal_termination) return F_execute_signal_termination;
+ if (F_status_set_fine(status) == F_signal_stack_fault) return F_execute_signal_stack_fault;
+ if (F_status_set_fine(status) == F_signal_child) return F_execute_signal_child;
+ if (F_status_set_fine(status) == F_signal_continue) return F_execute_signal_continue;
+ if (F_status_set_fine(status) == F_signal_stop) return F_execute_signal_stop;
+ if (F_status_set_fine(status) == F_signal_keyboard_stop) return F_execute_signal_keyboard_stop;
+ if (F_status_set_fine(status) == F_signal_tty_in) return F_execute_signal_tty_in;
+ if (F_status_set_fine(status) == F_signal_tty_out) return F_execute_signal_tty_out;
+ if (F_status_set_fine(status) == F_signal_urgent) return F_execute_signal_urgent;
+ if (F_status_set_fine(status) == F_signal_cpu_limit) return F_execute_signal_cpu_limit;
+ if (F_status_set_fine(status) == F_signal_file_size_limit) return F_execute_signal_file_size_limit;
+ if (F_status_set_fine(status) == F_signal_virtual_alarm_clock) return F_execute_signal_virtual_alarm_clock;
+ if (F_status_set_fine(status) == F_signal_profile_alarm_clock) return F_execute_signal_profile_alarm_clock;
+ if (F_status_set_fine(status) == F_signal_window_size_change) return F_execute_signal_window_size_change;
+ if (F_status_set_fine(status) == F_signal_pollable_event) return F_execute_signal_pollable_event;
+ if (F_status_set_fine(status) == F_signal_power_failure) return F_execute_signal_power_failure;
+ if (F_status_set_fine(status) == F_signal_bad_system_call) return F_execute_signal_bad_system_call;
+ if (F_status_set_fine(status) == F_signal_reserved_32) return F_execute_signal_reserved_32;
+ if (F_status_set_fine(status) == F_signal_reserved_33) return F_execute_signal_reserved_33;
+ if (F_status_set_fine(status) == F_signal_reserved_34) return F_execute_signal_reserved_34;
+ if (F_status_set_fine(status) == F_signal_reserved_35) return F_execute_signal_reserved_35;
+ if (F_status_set_fine(status) == F_signal_reserved_36) return F_execute_signal_reserved_36;
+ if (F_status_set_fine(status) == F_signal_reserved_37) return F_execute_signal_reserved_37;
+ if (F_status_set_fine(status) == F_signal_reserved_38) return F_execute_signal_reserved_38;
+ if (F_status_set_fine(status) == F_signal_reserved_39) return F_execute_signal_reserved_39;
+ if (F_status_set_fine(status) == F_signal_reserved_40) return F_execute_signal_reserved_40;
+ if (F_status_set_fine(status) == F_signal_reserved_41) return F_execute_signal_reserved_41;
+ if (F_status_set_fine(status) == F_signal_reserved_42) return F_execute_signal_reserved_42;
+ if (F_status_set_fine(status) == F_signal_reserved_43) return F_execute_signal_reserved_43;
+ if (F_status_set_fine(status) == F_signal_reserved_44) return F_execute_signal_reserved_44;
+ if (F_status_set_fine(status) == F_signal_reserved_45) return F_execute_signal_reserved_45;
+ if (F_status_set_fine(status) == F_signal_reserved_46) return F_execute_signal_reserved_46;
+ if (F_status_set_fine(status) == F_signal_reserved_47) return F_execute_signal_reserved_47;
+ if (F_status_set_fine(status) == F_signal_reserved_48) return F_execute_signal_reserved_48;
+ if (F_status_set_fine(status) == F_signal_reserved_49) return F_execute_signal_reserved_49;
+ if (F_status_set_fine(status) == F_signal_reserved_50) return F_execute_signal_reserved_50;
+ if (F_status_set_fine(status) == F_signal_reserved_51) return F_execute_signal_reserved_51;
+ if (F_status_set_fine(status) == F_signal_reserved_52) return F_execute_signal_reserved_52;
+ if (F_status_set_fine(status) == F_signal_reserved_53) return F_execute_signal_reserved_53;
+ if (F_status_set_fine(status) == F_signal_reserved_54) return F_execute_signal_reserved_54;
+ if (F_status_set_fine(status) == F_signal_reserved_55) return F_execute_signal_reserved_55;
+ if (F_status_set_fine(status) == F_signal_reserved_56) return F_execute_signal_reserved_56;
+ if (F_status_set_fine(status) == F_signal_reserved_57) return F_execute_signal_reserved_57;
+ if (F_status_set_fine(status) == F_signal_reserved_58) return F_execute_signal_reserved_58;
+ if (F_status_set_fine(status) == F_signal_reserved_59) return F_execute_signal_reserved_59;
+ if (F_status_set_fine(status) == F_signal_reserved_60) return F_execute_signal_reserved_60;
+ if (F_status_set_fine(status) == F_signal_reserved_61) return F_execute_signal_reserved_61;
+ if (F_status_set_fine(status) == F_signal_reserved_62) return F_execute_signal_reserved_62;
+ if (F_status_set_fine(status) == F_signal_reserved_63) return F_execute_signal_reserved_63;
+ if (F_status_set_fine(status) == F_signal_reserved_64) return F_execute_signal_reserved_64;
return F_execute_code_last;
}
#ifndef _di_f_execute_status_to_status_
f_status_t f_execute_status_to_status(uint8_t status) {
- if (status == F_execute_none) {
- return F_none;
- }
-
- if (status == F_execute_access) {
- return F_access;
- }
-
- if (status == F_execute_bad) {
- return F_execute_not;
- }
-
- if (status == F_execute_buffer) {
- return F_buffer;
- }
-
- if (status == F_execute_busy) {
- return F_busy;
- }
-
- if (status == F_execute_capability) {
- return F_capability;
- }
-
- if (status == F_execute_control_group) {
- return F_control_group;
- }
-
- if (status == F_execute_child) {
- return F_child;
- }
-
- if (status == F_execute_directory_not) {
- return F_directory_not;
- }
-
- if (status == F_execute_failure) {
- return F_failure;
- }
-
- if (status == F_execute_file_found_not) {
- return F_file_found_not;
- }
-
- if (status == F_execute_file_type_directory) {
- return F_file_type_directory;
- }
-
- if (status == F_execute_fork_not) {
- return F_fork_not;
- }
-
- if (status == F_execute_format_not) {
- return F_format_not;
- }
-
- if (status == F_execute_group) {
- return F_group;
- }
-
- if (status == F_execute_input_output) {
- return F_input_output;
- }
-
- if (status == F_execute_limit) {
- return F_limit;
- }
-
- if (status == F_execute_loop) {
- return F_loop;
- }
-
- if (status == F_execute_memory_not) {
- return F_memory_not;
- }
-
- if (status == F_execute_name_not) {
- return F_name_not;
- }
-
- if (status == F_execute_nice) {
- return F_nice;
- }
-
- if (status == F_execute_parameter) {
- return F_parameter;
- }
-
- if (status == F_execute_pipe) {
- return F_pipe;
- }
-
- if (status == F_execute_processor) {
- return F_processor;
- }
-
- if (status == F_execute_prohibited) {
- return F_prohibited;
- }
-
- if (status == F_execute_resource_not) {
- return F_resource_not;
- }
-
- if (status == F_execute_schedule) {
- return F_schedule;
- }
-
- if (status == F_execute_terminal) {
- return F_terminal;
- }
-
- if (status == F_execute_terminal_known_not) {
- return F_terminal_known_not;
- }
-
- if (status == F_execute_terminal_not) {
- return F_terminal_not;
- }
-
- if (status == F_execute_terminal_prohibited) {
- return F_terminal_prohibited;
- }
-
- if (status == F_execute_terminal_valid_not) {
- return F_terminal_valid_not;
- }
-
- if (status == F_execute_too_large) {
- return F_too_large;
- }
-
- if (status == F_execute_user) {
- return F_user;
- }
-
- if (status == F_execute_valid_not) {
- return F_valid_not;
- }
-
- if (status == F_execute_invoke_not) {
- return F_call_not;
- }
-
- if (status == F_execute_found_not) {
- return F_found_not;
- }
-
- if (status == F_execute_exit_parameter) {
- return F_exit;
- }
-
- if (status == F_execute_signal_hangup) {
- return F_signal_hangup;
- }
-
- if (status == F_execute_signal_interrupt) {
- return F_signal_interrupt;
- }
-
- if (status == F_execute_signal_quit) {
- return F_signal_quit;
- }
-
- if (status == F_execute_signal_illegal) {
- return F_signal_illegal;
- }
-
- if (status == F_execute_signal_trap) {
- return F_signal_trap;
- }
-
- if (status == F_execute_signal_abort) {
- return F_signal_abort;
- }
-
- if (status == F_execute_signal_bus_error) {
- return F_signal_bus_error;
- }
-
- if (status == F_execute_signal_floating_point_error) {
- return F_signal_floating_point_error;
- }
-
- if (status == F_execute_signal_kill) {
- return F_signal_kill;
- }
-
- if (status == F_execute_signal_user_1) {
- return F_signal_user_1;
- }
-
- if (status == F_execute_signal_segmentation_fault) {
- return F_signal_segmentation_fault;
- }
-
- if (status == F_execute_signal_user_2) {
- return F_signal_user_2;
- }
-
- if (status == F_execute_signal_broken_pipe) {
- return F_signal_broken_pipe;
- }
-
- if (status == F_execute_signal_alarm_clock) {
- return F_signal_alarm_clock;
- }
-
- if (status == F_execute_signal_termination) {
- return F_signal_termination;
- }
-
- if (status == F_execute_signal_stack_fault) {
- return F_signal_stack_fault;
- }
-
- if (status == F_execute_signal_child) {
- return F_signal_child;
- }
-
- if (status == F_execute_signal_continue) {
- return F_signal_continue;
- }
-
- if (status == F_execute_signal_stop) {
- return F_signal_stop;
- }
-
- if (status == F_execute_signal_keyboard_stop) {
- return F_signal_keyboard_stop;
- }
-
- if (status == F_execute_signal_tty_in) {
- return F_signal_tty_in;
- }
-
- if (status == F_execute_signal_tty_out) {
- return F_signal_tty_out;
- }
-
- if (status == F_execute_signal_urgent) {
- return F_signal_urgent;
- }
-
- if (status == F_execute_signal_cpu_limit) {
- return F_signal_cpu_limit;
- }
-
- if (status == F_execute_signal_file_size_limit) {
- return F_signal_file_size_limit;
- }
-
- if (status == F_execute_signal_virtual_alarm_clock) {
- return F_signal_virtual_alarm_clock;
- }
-
- if (status == F_execute_signal_profile_alarm_clock) {
- return F_signal_profile_alarm_clock;
- }
-
- if (status == F_execute_signal_window_size_change) {
- return F_signal_window_size_change;
- }
-
- if (status == F_execute_signal_pollable_event) {
- return F_signal_pollable_event;
- }
-
- if (status == F_execute_signal_power_failure) {
- return F_signal_power_failure;
- }
-
- if (status == F_execute_signal_bad_system_call) {
- return F_signal_bad_system_call;
- }
-
- if (status == F_execute_signal_reserved_32) {
- return F_signal_reserved_32;
- }
-
- if (status == F_execute_signal_reserved_33) {
- return F_signal_reserved_33;
- }
-
- if (status == F_execute_signal_reserved_34) {
- return F_signal_reserved_34;
- }
-
- if (status == F_execute_signal_reserved_35) {
- return F_signal_reserved_35;
- }
-
- if (status == F_execute_signal_reserved_36) {
- return F_signal_reserved_36;
- }
-
- if (status == F_execute_signal_reserved_37) {
- return F_signal_reserved_37;
- }
-
- if (status == F_execute_signal_reserved_38) {
- return F_signal_reserved_38;
- }
-
- if (status == F_execute_signal_reserved_39) {
- return F_signal_reserved_39;
- }
-
- if (status == F_execute_signal_reserved_40) {
- return F_signal_reserved_40;
- }
-
- if (status == F_execute_signal_reserved_41) {
- return F_signal_reserved_41;
- }
-
- if (status == F_execute_signal_reserved_42) {
- return F_signal_reserved_42;
- }
-
- if (status == F_execute_signal_reserved_43) {
- return F_signal_reserved_43;
- }
-
- if (status == F_execute_signal_reserved_44) {
- return F_signal_reserved_44;
- }
-
- if (status == F_execute_signal_reserved_45) {
- return F_signal_reserved_45;
- }
-
- if (status == F_execute_signal_reserved_46) {
- return F_signal_reserved_46;
- }
-
- if (status == F_execute_signal_reserved_47) {
- return F_signal_reserved_47;
- }
-
- if (status == F_execute_signal_reserved_48) {
- return F_signal_reserved_48;
- }
-
- if (status == F_execute_signal_reserved_49) {
- return F_signal_reserved_49;
- }
-
- if (status == F_execute_signal_reserved_50) {
- return F_signal_reserved_50;
- }
-
- if (status == F_execute_signal_reserved_51) {
- return F_signal_reserved_51;
- }
-
- if (status == F_execute_signal_reserved_52) {
- return F_signal_reserved_52;
- }
-
- if (status == F_execute_signal_reserved_53) {
- return F_signal_reserved_53;
- }
-
- if (status == F_execute_signal_reserved_54) {
- return F_signal_reserved_54;
- }
-
- if (status == F_execute_signal_reserved_55) {
- return F_signal_reserved_55;
- }
-
- if (status == F_execute_signal_reserved_56) {
- return F_signal_reserved_56;
- }
-
- if (status == F_execute_signal_reserved_57) {
- return F_signal_reserved_57;
- }
-
- if (status == F_execute_signal_reserved_58) {
- return F_signal_reserved_58;
- }
-
- if (status == F_execute_signal_reserved_59) {
- return F_signal_reserved_59;
- }
-
- if (status == F_execute_signal_reserved_60) {
- return F_signal_reserved_60;
- }
-
- if (status == F_execute_signal_reserved_61) {
- return F_signal_reserved_61;
- }
-
- if (status == F_execute_signal_reserved_62) {
- return F_signal_reserved_62;
- }
-
- if (status == F_execute_signal_reserved_63) {
- return F_signal_reserved_63;
- }
-
- if (status == F_execute_signal_reserved_64) {
- return F_signal_reserved_64;
- }
+ if (status == F_execute_none) return F_none;
+ if (status == F_execute_access) return F_access;
+ if (status == F_execute_bad) return F_execute_not;
+ if (status == F_execute_buffer) return F_buffer;
+ if (status == F_execute_busy) return F_busy;
+ if (status == F_execute_capability) return F_capability;
+ if (status == F_execute_control_group) return F_control_group;
+ if (status == F_execute_child) return F_child;
+ if (status == F_execute_directory_not) return F_directory_not;
+ if (status == F_execute_failure) return F_failure;
+ if (status == F_execute_file_found_not) return F_file_found_not;
+ if (status == F_execute_file_type_directory) return F_file_type_directory;
+ if (status == F_execute_fork_not) return F_fork_not;
+ if (status == F_execute_format_not) return F_format_not;
+ if (status == F_execute_group) return F_group;
+ if (status == F_execute_input_output) return F_input_output;
+ if (status == F_execute_limit) return F_limit;
+ if (status == F_execute_loop) return F_loop;
+ if (status == F_execute_memory_not) return F_memory_not;
+ if (status == F_execute_name_not) return F_name_not;
+ if (status == F_execute_nice) return F_nice;
+ if (status == F_execute_parameter) return F_parameter;
+ if (status == F_execute_pipe) return F_pipe;
+ if (status == F_execute_processor) return F_processor;
+ if (status == F_execute_prohibited) return F_prohibited;
+ if (status == F_execute_resource_not) return F_resource_not;
+ if (status == F_execute_schedule) return F_schedule;
+ if (status == F_execute_terminal) return F_terminal;
+ if (status == F_execute_terminal_known_not) return F_terminal_known_not;
+ if (status == F_execute_terminal_not) return F_terminal_not;
+ if (status == F_execute_terminal_prohibited) return F_terminal_prohibited;
+ if (status == F_execute_terminal_valid_not) return F_terminal_valid_not;
+ if (status == F_execute_too_large) return F_too_large;
+ if (status == F_execute_user) return F_user;
+ if (status == F_execute_valid_not) return F_valid_not;
+ if (status == F_execute_invoke_not) return F_call_not;
+ if (status == F_execute_found_not) return F_found_not;
+ if (status == F_execute_exit_parameter) return F_exit;
+ if (status == F_execute_signal_hangup) return F_signal_hangup;
+ if (status == F_execute_signal_interrupt) return F_signal_interrupt;
+ if (status == F_execute_signal_quit) return F_signal_quit;
+ if (status == F_execute_signal_illegal) return F_signal_illegal;
+ if (status == F_execute_signal_trap) return F_signal_trap;
+ if (status == F_execute_signal_abort) return F_signal_abort;
+ if (status == F_execute_signal_bus_error) return F_signal_bus_error;
+ if (status == F_execute_signal_floating_point_error) return F_signal_floating_point_error;
+ if (status == F_execute_signal_kill) return F_signal_kill;
+ if (status == F_execute_signal_user_1) return F_signal_user_1;
+ if (status == F_execute_signal_segmentation_fault) return F_signal_segmentation_fault;
+ if (status == F_execute_signal_user_2) return F_signal_user_2;
+ if (status == F_execute_signal_broken_pipe) return F_signal_broken_pipe;
+ if (status == F_execute_signal_alarm_clock) return F_signal_alarm_clock;
+ if (status == F_execute_signal_termination) return F_signal_termination;
+ if (status == F_execute_signal_stack_fault) return F_signal_stack_fault;
+ if (status == F_execute_signal_child) return F_signal_child;
+ if (status == F_execute_signal_continue) return F_signal_continue;
+ if (status == F_execute_signal_stop) return F_signal_stop;
+ if (status == F_execute_signal_keyboard_stop) return F_signal_keyboard_stop;
+ if (status == F_execute_signal_tty_in) return F_signal_tty_in;
+ if (status == F_execute_signal_tty_out) return F_signal_tty_out;
+ if (status == F_execute_signal_urgent) return F_signal_urgent;
+ if (status == F_execute_signal_cpu_limit) return F_signal_cpu_limit;
+ if (status == F_execute_signal_file_size_limit) return F_signal_file_size_limit;
+ if (status == F_execute_signal_virtual_alarm_clock) return F_signal_virtual_alarm_clock;
+ if (status == F_execute_signal_profile_alarm_clock) return F_signal_profile_alarm_clock;
+ if (status == F_execute_signal_window_size_change) return F_signal_window_size_change;
+ if (status == F_execute_signal_pollable_event) return F_signal_pollable_event;
+ if (status == F_execute_signal_power_failure) return F_signal_power_failure;
+ if (status == F_execute_signal_bad_system_call) return F_signal_bad_system_call;
+ if (status == F_execute_signal_reserved_32) return F_signal_reserved_32;
+ if (status == F_execute_signal_reserved_33) return F_signal_reserved_33;
+ if (status == F_execute_signal_reserved_34) return F_signal_reserved_34;
+ if (status == F_execute_signal_reserved_35) return F_signal_reserved_35;
+ if (status == F_execute_signal_reserved_36) return F_signal_reserved_36;
+ if (status == F_execute_signal_reserved_37) return F_signal_reserved_37;
+ if (status == F_execute_signal_reserved_38) return F_signal_reserved_38;
+ if (status == F_execute_signal_reserved_39) return F_signal_reserved_39;
+ if (status == F_execute_signal_reserved_40) return F_signal_reserved_40;
+ if (status == F_execute_signal_reserved_41) return F_signal_reserved_41;
+ if (status == F_execute_signal_reserved_42) return F_signal_reserved_42;
+ if (status == F_execute_signal_reserved_43) return F_signal_reserved_43;
+ if (status == F_execute_signal_reserved_44) return F_signal_reserved_44;
+ if (status == F_execute_signal_reserved_45) return F_signal_reserved_45;
+ if (status == F_execute_signal_reserved_46) return F_signal_reserved_46;
+ if (status == F_execute_signal_reserved_47) return F_signal_reserved_47;
+ if (status == F_execute_signal_reserved_48) return F_signal_reserved_48;
+ if (status == F_execute_signal_reserved_49) return F_signal_reserved_49;
+ if (status == F_execute_signal_reserved_50) return F_signal_reserved_50;
+ if (status == F_execute_signal_reserved_51) return F_signal_reserved_51;
+ if (status == F_execute_signal_reserved_52) return F_signal_reserved_52;
+ if (status == F_execute_signal_reserved_53) return F_signal_reserved_53;
+ if (status == F_execute_signal_reserved_54) return F_signal_reserved_54;
+ if (status == F_execute_signal_reserved_55) return F_signal_reserved_55;
+ if (status == F_execute_signal_reserved_56) return F_signal_reserved_56;
+ if (status == F_execute_signal_reserved_57) return F_signal_reserved_57;
+ if (status == F_execute_signal_reserved_58) return F_signal_reserved_58;
+ if (status == F_execute_signal_reserved_59) return F_signal_reserved_59;
+ if (status == F_execute_signal_reserved_60) return F_signal_reserved_60;
+ if (status == F_execute_signal_reserved_61) return F_signal_reserved_61;
+ if (status == F_execute_signal_reserved_62) return F_signal_reserved_62;
+ if (status == F_execute_signal_reserved_63) return F_signal_reserved_63;
+ if (status == F_execute_signal_reserved_64) return F_signal_reserved_64;
return F_status_set_error(F_known_not);
}
* F_array_too_large (with error bit) if a buffer would exceed max length.
* F_failure (with error bit) for any other failure, failures might be populated with individual status codes.
*
- * @see fl_directory_clone()
+ * @see fl_directory_copy()
*/
#if !defined(_di_fl_directory_copy_)
extern void private_fl_directory_copy_recurse_file(const f_string_static_t file, f_directory_recurse_t * const recurse) F_attribute_visibility_internal_d;
data->setting->state.status = f_string_dynamic_resize(source.used, &path_source);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_string_dynamic_resize));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_resize));
f_string_dynamic_resize(0, &path_source);
memcpy(path_source.string, source.string, sizeof(f_char_t) * source.used);
f_directory_recurse_t recurse = f_directory_recurse_t_initialize;
-
- if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
- recurse.output = data->main->message.to;
- recurse.verbose = fake_print_verbose_copy;
- }
-
- recurse.failures = &failures;
+ recurse.verbose = &fake_print_verbose_copy;
+ //recurse.failures = &failures; // @fixme this now needs to be handled by a callback in recurse (recurse.state.handle)., maybe make this a callback on f_directory_recurse_t?
+ recurse.mode = mode;
for (f_array_length_t i = 0; i < files.used; ++i) {
data->setting->state.status = f_string_dynamic_append_nulless(files.array[i], &path_source);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
data->setting->state.status = f_string_dynamic_append_nulless(destination, &destination_directory);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
data->setting->state.status = f_file_name_base(path_source, &destination_directory);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_file_name_base));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_file_name_base));
break;
}
- data->setting->state.status = fl_directory_copy(path_source, destination_directory, mode, recurse);
+ fl_directory_copy(path_source, destination_directory, &recurse);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
if (data->main->error.verbosity >= f_console_verbosity_verbose_e) {
+ /* // @fixme
for (f_array_length_t j = 0; j < failures.used; ++j) {
fake_print_error_build_operation_file(data->setting, data->main->error, macro_fake_f(fl_directory_copy), fake_common_file_directory_copy_s, f_file_operation_to_s, path_source, destination_directory, F_true);
} // for
+ */
if (F_status_set_fine(data->setting->state.status) != F_failure) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(fl_directory_copy));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fl_directory_copy));
}
}
else if (data->main->error.verbosity > f_console_verbosity_quiet_e) {
data->setting->state.status = f_string_dynamic_append_nulless(destination, &destination_file);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
if (perserve_offset && perserve_offset < path_source.used) {
data->setting->state.status = f_string_dynamic_append_nulless(destination, &destination_directory);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
data->setting->state.status = f_file_name_directory(buffer, &destination_directory);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_file_name_directory));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_file_name_directory));
break;
}
data->setting->state.status = fl_directory_create(destination_directory, F_file_mode_all_rwx_d);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error_file(data->setting, data->main->error, data->setting->state.status, macro_fake_f(fl_directory_create), destination_directory, f_file_operation_create_s, fll_error_file_type_directory_e);
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error_file(data->setting, data->main->error, macro_fake_f(fl_directory_create), destination_directory, f_file_operation_create_s, fll_error_file_type_directory_e);
break;
}
data->setting->state.status = f_string_append(path_source.string + perserve_offset, path_source.used - perserve_offset, &destination_file);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_string_append));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_append));
break;
}
else {
data->setting->state.status = f_file_name_base(path_source, &destination_file);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_file_name_base));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_file_name_base));
break;
}
data->setting->state.status = f_file_copy(path_source, destination_file, mode, F_file_default_read_size_d, f_file_stat_flag_reference_e);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error_build_operation_file(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_file_copy), f_file_operation_copy_s, f_file_operation_to_s, path_source, destination_file, F_true);
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error_build_operation_file(data->setting, data->main->error, macro_fake_f(f_file_copy), f_file_operation_copy_s, f_file_operation_to_s, path_source, destination_file, F_true);
break;
}
fll_print_format("Copied file '%Q' to '%Q'.%r", data->main->message.to, path_source, destination_file, f_string_eol_s);
}
}
- else if (F_status_is_error(setting->state.status)) {
- fake_print_error_file(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_directory_is), path_source, f_file_operation_create_s, fll_error_file_type_file_e);
+ else if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_directory_is), path_source, f_file_operation_create_s, fll_error_file_type_file_e);
break;
}
data->setting->state.status = F_none;
} // for
- macro_f_directory_statuss_t_delete_simple(failures);
-
f_directory_recurse_delete(&recurse);
f_string_dynamic_resize(0, &path_source);
#ifndef _di_fake_build_execute_process_script_
int fake_build_execute_process_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_string_static_t process_script, const f_string_static_t file_stage) {
- if (!data) return;
+ if (!data) return 0;
if (F_status_is_error(data->setting->state.status) || f_file_exists(file_stage, F_true) == F_true || data->setting->state.status == F_child) return data->main->child;
if (!process_script.used) return 0;
data->setting->state.status = fll_execute_arguments_add(argument, &arguments);
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(fll_execute_arguments_add));
f_string_dynamics_resize(0, &arguments);
if (F_status_is_error(data->setting->state.status)) break;
} // for
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_mash));
f_string_dynamic_resize(0, &defines);
f_string_dynamic_resize(0, &defines);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(fll_execute_arguments_add_parameter_set));
f_string_dynamics_resize(0, &arguments);
data->setting->state.status = f_string_dynamic_append_nulless(process_script, &path);
}
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
f_string_dynamic_resize(0, &path);
f_string_dynamics_resize(0, &arguments);
data->setting->state.status = F_status_set_error(F_interrupt);
}
else if (data->setting->state.status != F_child) {
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
if (F_status_set_fine(data->setting->state.status) == F_failure) {
fake_print_error_failure_script(data->setting, data->main->error, path);
}
data->setting->state.status = f_file_name_base(path, name);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(f_file_name_base));
return;
data->setting->state.status = f_file_touch(file, mode.regular, F_false);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_touch), file, f_file_operation_touch_s, fll_error_file_type_file_e);
}
else {
* @see fll_execute_arguments_add()
*/
#ifndef _di_fake_build_objects_add_
- extern f_status_t fake_build_objects_add(fake_data_t * const data, fake_build_data_t * const data_build, const f_string_static_t *path, const f_string_statics_t *generic, const f_string_statics_t *specific, f_string_dynamics_t *arguments);
+ extern void fake_build_objects_add(fake_data_t * const data, fake_build_data_t * const data_build, const f_string_static_t *path, const f_string_statics_t *generic, const f_string_statics_t *specific, f_string_dynamics_t *arguments);
#endif // _di_fake_build_objects_add_
/**
#endif
#ifndef _di_fake_build_library_script_
- int fake_build_library_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
+ int fake_build_library_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage) {
- if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
+ if (!data) return 0;
- fake_build_touch(data, file_stage, status);
+ if (F_status_is_error(data->setting->state.status) || f_file_exists(file_stage, F_true) == F_true || data->setting->state.status == F_child) return data->main->child;
+
+ fake_build_touch(data, file_stage);
return 0;
}
#endif // _di_fake_build_library_script_
#ifndef _di_fake_build_library_shared_
- int fake_build_library_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
+ int fake_build_library_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage) {
+
+ if (!data || !data_build) return 0;
- if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
+ if (F_status_is_error(data->setting->state.status) || f_file_exists(file_stage, F_true) == F_true || data->setting->state.status == F_child) return data->main->child;
if (!data_build->setting.build_sources_library.used && !data_build->setting.build_sources_library_shared.used) return 0;
fake_build_print_compile_library_shared(data->setting, data->main->message);
f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
- *status = fake_build_objects_add(data, data_build, &data->path_build_objects_shared, &data_build->setting.build_objects_library, &data_build->setting.build_objects_library_shared, &arguments);
+ data->setting->state.status = fake_build_objects_add(data, data_build, &data->path_build_objects_shared, &data_build->setting.build_objects_library, &data_build->setting.build_objects_library_shared, &arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_objects_add));
+ if (F_status_is_error(*data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_objects_add));
f_string_dynamics_resize(0, &arguments);
return 0;
}
- *status = fake_build_sources_add(data, data_build, &data_build->setting.build_sources_library, &data_build->setting.build_sources_library_shared, &arguments);
+ data->setting->state.status = fake_build_sources_add(data, data_build, &data_build->setting.build_sources_library, &data_build->setting.build_sources_library_shared, &arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_sources_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_sources_add));
f_string_dynamics_resize(0, &arguments);
if (!values[i].used) continue;
- *status = fll_execute_arguments_add(values[i], &arguments);
- if (F_status_is_error(*status)) break;
+ data->setting->state.status = fll_execute_arguments_add(values[i], &arguments);
+ if (F_status_is_error(data->setting->state.status)) break;
} // for
- fake_build_arguments_standard_add(data, data_build, F_true, fake_build_type_library_e, &arguments, status);
+ fake_build_arguments_standard_add(data, data_build, F_true, fake_build_type_library_e, &arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fll_execute_arguments_add));
f_string_dynamics_resize(0, &arguments);
}
{
- const int result = fake_execute(data, data_build->environment, data_build->setting.build_compiler, arguments, status);
+ const int result = fake_execute(data, data_build->environment, data_build->setting.build_compiler, arguments);
f_string_dynamics_resize(0, &arguments);
- if (F_status_is_error(*status)) return 0;
- if (*status == F_child) return result;
+ if (F_status_is_error(data->setting->state.status)) return 0;
+ if (data->setting->state.status == F_child) return result;
}
if (parameter_file_name_major.used) {
memcpy(parameter_file_path_string, data->path_build_libraries_shared.string, sizeof(f_char_t) * data->path_build_libraries_shared.used);
memcpy(parameter_file_path_string + data->path_build_libraries_shared.used, parameter_file_name.string, sizeof(f_char_t) * parameter_file_name.used);
- *status = f_file_link(parameter_file_name_major, parameter_file_path);
+ data->setting->state.status = f_file_link(parameter_file_name_major, parameter_file_path);
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
fake_build_print_linked_file(data->setting, data->main->message, parameter_file_path, parameter_file_name_major);
}
else {
- if (F_status_set_fine(*status) == F_file_found) {
- fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e);
+ if (F_status_set_fine(data->setting->state.status) == F_file_found) {
+ fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e);
return 0;
}
- fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_name_major, f_file_operation_link_s, fll_error_file_type_file_e);
+ fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_link), parameter_file_name_major, f_file_operation_link_s, fll_error_file_type_file_e);
return 0;
}
memcpy(parameter_file_path_string, data->path_build_libraries_shared.string, sizeof(f_char_t) * data->path_build_libraries_shared.used);
memcpy(parameter_file_path_string + data->path_build_libraries_shared.used, parameter_file_name_major.string, sizeof(f_char_t) * parameter_file_name_major.used);
- *status = f_file_link(parameter_file_name_minor, parameter_file_path);
+ data->setting->state.status = f_file_link(parameter_file_name_minor, parameter_file_path);
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
fake_build_print_linked_file(data->setting, data->main->message, parameter_file_path, parameter_file_name_minor);
}
else {
- fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), F_status_set_fine(*status) == F_file_found ? parameter_file_path : parameter_file_name_minor, f_file_operation_link_s, fll_error_file_type_file_e);
+ fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_link), F_status_set_fine(data->setting->state.status) == F_file_found ? parameter_file_path : parameter_file_name_minor, f_file_operation_link_s, fll_error_file_type_file_e);
return 0;
}
memcpy(parameter_file_path_string, data->path_build_libraries_shared.string, sizeof(f_char_t) * data->path_build_libraries_shared.used);
memcpy(parameter_file_path_string + data->path_build_libraries_shared.used, parameter_file_name_minor.string, sizeof(f_char_t) * parameter_file_name_minor.used);
- *status = f_file_link(parameter_file_name_micro, parameter_file_path);
+ data->setting->state.status = f_file_link(parameter_file_name_micro, parameter_file_path);
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
fake_build_print_linked_file(data->setting, data->main->message, parameter_file_path, parameter_file_name_micro);
}
else {
- if (F_status_set_fine(*status) == F_file_found) {
- fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e);
+ if (F_status_set_fine(data->setting->state.status) == F_file_found) {
+ fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e);
return 0;
}
- fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_name_micro, f_file_operation_link_s, fll_error_file_type_file_e);
+ fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_link), parameter_file_name_micro, f_file_operation_link_s, fll_error_file_type_file_e);
return 0;
}
memcpy(parameter_file_path_string, data->path_build_libraries_shared.string, sizeof(f_char_t) * data->path_build_libraries_shared.used);
memcpy(parameter_file_path_string + data->path_build_libraries_shared.used, parameter_file_name_micro.string, sizeof(f_char_t) * parameter_file_name_micro.used);
- *status = f_file_link(parameter_file_name_nano, parameter_file_path);
+ data->setting->state.status = f_file_link(parameter_file_name_nano, parameter_file_path);
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
fake_build_print_linked_file(data->setting, data->main->message, parameter_file_path, parameter_file_name_nano);
}
else {
- if (F_status_set_fine(*status) == F_file_found) {
- fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e);
+ if (F_status_set_fine(data->setting->state.status) == F_file_found) {
+ fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_link), parameter_file_path, f_file_operation_link_s, fll_error_file_type_file_e);
return 0;
}
- fake_print_error_file(data->setting, data->main->error, *status, macro_fake_f(f_file_link), parameter_file_name_nano, f_file_operation_link_s, fll_error_file_type_file_e);
+ fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_link), parameter_file_name_nano, f_file_operation_link_s, fll_error_file_type_file_e);
return 0;
}
}
}
- fake_build_touch(data, file_stage, status);
+ fake_build_touch(data, file_stage);
return 0;
}
#endif // _di_fake_build_library_shared_
#ifndef _di_fake_build_library_static_
- int fake_build_library_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
+ int fake_build_library_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage) {
+
+ if (!data || !data_build) return 0;
- if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
+ if (F_status_is_error(data->setting->state.status) || f_file_exists(file_stage, F_true) == F_true || data->setting->state.status == F_child) return data->main->child;
if (!data_build->setting.build_sources_library.used && !data_build->setting.build_sources_library_static.used) return 0;
fake_build_print_compile_library_static(data->setting, data->main->message);
if (!data_build->setting.build_indexer_arguments.array[i].used) continue;
- *status = fll_execute_arguments_add(data_build->setting.build_indexer_arguments.array[i], &arguments);
- if (F_status_is_error(*status)) break;
+ data->setting->state.status = fll_execute_arguments_add(data_build->setting.build_indexer_arguments.array[i], &arguments);
+ if (F_status_is_error(data->setting->state.status)) break;
} // for
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
f_string_static_t destination = f_string_static_t_initialize;
destination.used = data->path_build_libraries_static.used + fake_build_parameter_library_name_prefix_s.used;
destination.used += data_build->setting.build_name.used + fake_build_parameter_library_name_suffix_static_s.used;
memcpy(destination_string + destination.used, fake_build_parameter_library_name_suffix_static_s.string, sizeof(f_char_t) * fake_build_parameter_library_name_suffix_static_s.used);
destination.used += fake_build_parameter_library_name_suffix_static_s.used;
- *status = fll_execute_arguments_add(destination, &arguments);
+ data->setting->state.status = fll_execute_arguments_add(destination, &arguments);
}
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
f_string_static_t source = f_string_static_t_initialize;
f_array_length_t j = 0;
source_path.used = 0;
- *status = fake_build_get_file_name_without_extension(data, sources[i]->array[j], &file_name);
+ data->setting->state.status = fake_build_get_file_name_without_extension(data, sources[i]->array[j], &file_name);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_get_file_name_without_extension));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_get_file_name_without_extension));
break;
}
- *status = f_file_name_directory(sources[i]->array[j], &source_path);
+ data->setting->state.status = f_file_name_directory(sources[i]->array[j], &source_path);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_file_name_directory));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_file_name_directory));
break;
}
if (source_path.used) {
- *status = f_string_dynamic_prepend(data->path_build_objects, &source_path);
+ data->setting->state.status = f_string_dynamic_prepend(data->path_build_objects, &source_path);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_prepend));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_prepend));
break;
}
- *status = f_string_dynamic_append_assure(f_path_separator_s, &source_path);
+ data->setting->state.status = f_string_dynamic_append_assure(f_path_separator_s, &source_path);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_assure));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_assure));
break;
}
memcpy(source_string + data->path_build_objects.used + file_name.used, fake_build_parameter_object_name_suffix_s.string, sizeof(f_char_t) * fake_build_parameter_object_name_suffix_s.used);
}
- *status = fll_execute_arguments_add(source, &arguments);
+ data->setting->state.status = fll_execute_arguments_add(source, &arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fll_execute_arguments_add));
break;
}
int result = data->main->child;
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
result = fake_execute(data, data_build->environment, data_build->setting.build_indexer, arguments, status);
}
f_string_dynamic_resize(0, &source_path);
f_string_dynamics_resize(0, &arguments);
- if (F_status_is_error_not(*status) && *status != F_child) {
- fake_build_touch(data, file_stage, status);
+ if (F_status_is_error_not(data->setting->state.status) && data->setting->state.status != F_child) {
+ fake_build_touch(data, file_stage);
}
return result;
*
* @param data
* The program data.
+ *
+ * This alters data.setting.state.status:
+ * F_none on success.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param data_build
* The build data.
* @param mode
* The file mode.
* @param file_stage
* The specific stage file path.
- * @param status
- * F_none on success.
- *
- * Status codes (with error bit) are returned on any problem.
*
* @return
* The return code of the execution process.
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_build_library_script_
- extern int fake_build_library_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status);
+ extern int fake_build_library_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage);
#endif // _di_fake_build_library_script_
/**
*
* @param data
* The program data.
+ *
+ * This alters data.setting.state.status:
+ * F_none on success.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param data_build
* The build data.
* @param mode
* The file mode.
* @param file_stage
* The specific stage file path.
- * @param status
- * F_none on success.
- *
- * Status codes (with error bit) are returned on any problem.
*
* @return
* The return code of the execution process.
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_build_library_shared_
- extern int fake_build_library_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status);
+ extern int fake_build_library_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage);
#endif // _di_fake_build_library_shared_
/**
*
* @param data
* The program data.
+ *
+ * This alters data.setting.state.status:
+ * F_none on success.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param data_build
* The build data.
* @param mode
* The file mode.
* @param file_stage
* The specific stage file path.
- * @param status
- * F_none on success.
*
* Status codes (with error bit) are returned on any problem.
*
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_build_library_static_
- extern int fake_build_library_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status);
+ extern int fake_build_library_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage);
#endif // _di_fake_build_library_static_
#ifdef __cplusplus
data->setting->state.status = fl_environment_load_name(variables[i], environment);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(fl_environment_load_name));
return;
data->setting->state.status = fl_environment_load_names(data_build->setting.environment, environment);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(fl_environment_load_names));
}
else {
if (process_pipe) {
fake_pipe_buffer(data, &buffer);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
buffer.used = 0;
}
else {
data->setting->state.status = fll_fss_extended_read(buffer, &range, &objects, &contents, 0, 0, &delimits, 0, &data->setting.state);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error_fss(data->setting, data->main->error, macro_fake_f(fll_fss_extended_read), data->file_data_build_settings, range, F_true);
}
else {
data->setting->state.status = f_fss_apply_delimit(state, delimits, &buffer);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(f_fss_apply_delimit));
}
else {
fake_build_print_error_setting_too_long(data->setting, data->main->warning, path_file);
}
else if (!error_printed) {
- fake_print_error(data->setting, data->main->error, *status, function);
+ fake_print_error(data->setting, data->main->error, function);
}
}
else {
*status = f_string_dynamic_append(settings_single_string_default[i], settings_single_destination[i]);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append));
break;
}
*status = f_path_directory_cleanup(settings_single_source[i]->array[settings_single_source[i]->used - 1], settings_single_destination[i]);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_path_directory_cleanup));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_path_directory_cleanup));
break;
}
*status = f_string_dynamic_increase_by(settings_single_source[i]->array[settings_single_source[i]->used - 1].used + 1, settings_single_destination[i]);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_increase_by));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_increase_by));
break;
}
*status = f_string_dynamic_append_nulless(settings_single_source[i]->array[settings_single_source[i]->used - 1], settings_single_destination[i]);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
*status = f_string_dynamic_append_assure(f_path_separator_s, &setting->path_sources);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_assure));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_assure));
return;
}
data->setting->state.status = f_file_name_base(data->file_data_build_settings, &settings_file_base);
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(f_file_name_base));
return;
data->setting->state.status = f_string_dynamic_append_nulless(fake_build_stage_built_s, values[i]);
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
#endif
#ifndef _di_fake_build_object_script_
- int fake_build_object_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
+ int fake_build_object_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage) {
- if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
+ if (!data || !data_build) return 0;
+ if (F_status_is_error(data->setting->state.status) || f_file_exists(file_stage, F_true) == F_true || data->setting->state.status == F_child) return data->main->child;
- fake_build_touch(data, file_stage, status);
+ fake_build_touch(data, file_stage);
return 0;
}
#endif // _di_fake_build_object_script_
#ifndef _di_fake_build_object_shared_
- int fake_build_object_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
+ int fake_build_object_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage) {
- if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
+ if (!data || !data_build) return 0;
+ if (F_status_is_error(data->setting->state.status) || f_file_exists(file_stage, F_true) == F_true || data->setting->state.status == F_child) return data->main->child;
if (!data_build->setting.build_sources_object.used && !data_build->setting.build_sources_object_shared.used) return 0;
fake_build_print_compile_object_shared(data->setting, data->main->message);
f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
- *status = fake_build_sources_object_add(data, data_build, &data_build->setting.build_sources_object, &data_build->setting.build_sources_object_shared, &arguments);
+ data->setting->state.status = fake_build_sources_object_add(data, data_build, &data_build->setting.build_sources_object, &data_build->setting.build_sources_object_shared, &arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_sources_object_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_sources_object_add));
f_string_dynamics_resize(0, &arguments);
if (!values[i].used) continue;
- *status = fll_execute_arguments_add(values[i], &arguments);
- if (F_status_is_error(*status)) break;
+ data->setting->state.status = fll_execute_arguments_add(values[i], &arguments);
+ if (F_status_is_error(data->setting->state.status)) break;
} // for
}
fake_build_arguments_standard_add(data, data_build, F_true, fake_build_type_object_e, &arguments, status);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_arguments_standard_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_arguments_standard_add));
macro_f_string_dynamics_t_delete_simple(arguments);
macro_f_string_dynamics_t_delete_simple(arguments);
- if (F_status_is_error_not(*status) && *status != F_child) {
- fake_build_touch(data, file_stage, status);
+ if (F_status_is_error_not(data->setting->state.status) && data->setting->state.status != F_child) {
+ fake_build_touch(data, file_stage);
}
return result;
#endif // _di_fake_build_object_shared_
#ifndef _di_fake_build_object_static_
- int fake_build_object_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
+ int fake_build_object_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage) {
- if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
+ if (!data || !data_build) return 0;
+ if (F_status_is_error(data->setting->state.status) || f_file_exists(file_stage, F_true) == F_true || data->setting->state.status == F_child) return data->main->child;
if (!data_build->setting.build_sources_object.used && !data_build->setting.build_sources_object_static.used) return 0;
fake_build_print_compile_object_static(data->setting, data->main->message);
f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
- *status = fake_build_sources_object_add(data, data_build, &data_build->setting.build_sources_object, &data_build->setting.build_sources_object_static, &arguments);
+ data->setting->state.status = fake_build_sources_object_add(data, data_build, &data_build->setting.build_sources_object, &data_build->setting.build_sources_object_static, &arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_sources_object_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_sources_object_add));
f_string_dynamics_resize(0, &arguments);
if (!values[i].used) continue;
- *status = fll_execute_arguments_add(values[i], &arguments);
- if (F_status_is_error(*status)) break;
+ data->setting->state.status = fll_execute_arguments_add(values[i], &arguments);
+ if (F_status_is_error(data->setting->state.status)) break;
} // for
}
fake_build_arguments_standard_add(data, data_build, F_false, fake_build_type_object_e, &arguments, status);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_arguments_standard_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_arguments_standard_add));
macro_f_string_dynamics_t_delete_simple(arguments);
macro_f_string_dynamics_t_delete_simple(arguments);
- if (F_status_is_error_not(*status) && *status != F_child) {
- fake_build_touch(data, file_stage, status);
+ if (F_status_is_error_not(data->setting->state.status) && data->setting->state.status != F_child) {
+ fake_build_touch(data, file_stage);
}
return result;
*
* @param data
* The program data.
+ *
+ * This alters data.setting.state.status:
+ * F_none on success.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param data_build
* The build data.
* @param mode
* The file mode.
* @param file_stage
* The specific stage file path.
- * @param status
- * F_none on success.
- *
- * Status codes (with error bit) are returned on any problem.
*
* @return
* The return code of the execution process.
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_build_object_script_
- extern int fake_build_object_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status);
+ extern int fake_build_object_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage);
#endif // _di_fake_build_object_script_
/**
*
* @param data
* The program data.
+ *
+ * This alters data.setting.state.status:
+ * F_none on success.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param data_build
* The build data.
* @param mode
* The file mode.
* @param file_stage
* The specific stage file path.
- * @param status
- * F_none on success.
- *
- * Status codes (with error bit) are returned on any problem.
*
* @return
* The return code of the execution process.
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_build_object_shared_
- extern int fake_build_object_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status);
+ extern int fake_build_object_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage);
#endif // _di_fake_build_object_shared_
/**
*
* @param data
* The program data.
+ *
+ * This alters data.setting.state.status:
+ * F_none on success.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param data_build
* The build data.
* @param mode
* The file mode.
* @param file_stage
* The specific stage file path.
- * @param status
- * F_none on success.
- *
- * Status codes (with error bit) are returned on any problem.
*
* @return
* The return code of the execution process.
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_build_object_static_
- extern int fake_build_object_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status);
+ extern int fake_build_object_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage);
#endif // _di_fake_build_object_static_
#ifdef __cplusplus
*status = fake_build_objects_add(data, data_build, &data->path_build_objects_static, &data_build->setting.build_objects_library, &data_build->setting.build_objects_library_static, &arguments);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_objects_add));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_objects_add));
f_string_dynamics_resize(0, &arguments);
*status = fake_build_get_file_name_without_extension(data, sources[i]->array[j], &file_name);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_get_file_name_without_extension));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_get_file_name_without_extension));
break;
}
*status = f_file_name_directory(sources[i]->array[j], &destination_path);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_file_name_directory));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_file_name_directory));
break;
}
*status = f_string_dynamic_prepend(data->path_build_objects, &destination_path);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_prepend));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_prepend));
break;
}
*status = f_string_dynamic_append_assure(f_path_separator_s, &destination_path);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(f_string_dynamic_append_assure));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_assure));
break;
}
fake_build_arguments_standard_add(data, data_build, F_false, fake_build_type_library_e, &arguments, status);
if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fll_execute_arguments_add));
break;
}
f_string_dynamics_resize(0, &arguments);
if (F_status_is_error_not(*status) && *status != F_child) {
- fake_build_touch(data, file_stage, status);
+ fake_build_touch(data, file_stage);
}
return result;
#endif
#ifndef _di_fake_build_program_script_
- int fake_build_program_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
+ int fake_build_program_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage) {
- if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
+ if (F_status_is_error(data->setting->state.status) || f_file_exists(file_stage, F_true) == F_true || data->setting->state.status == F_child) return data->main->child;
- fake_build_touch(data, file_stage, status);
+ fake_build_touch(data, file_stage);
return 0;
}
#endif // _di_fake_build_program_script_
#ifndef _di_fake_build_program_shared_
- int fake_build_program_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
+ int fake_build_program_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage) {
- if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
+ if (F_status_is_error(data->setting->state.status) || f_file_exists(file_stage, F_true) == F_true || data->setting->state.status == F_child) return data->main->child;
if (!data_build->setting.build_sources_program.used && !data_build->setting.build_sources_program_shared.used) return 0;
fake_build_print_compile_program_shared(data->setting, data->main->message);
f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
- *status = fake_build_objects_add(data, data_build, &data->path_build_objects_shared, &data_build->setting.build_objects_program, &data_build->setting.build_objects_program_shared, &arguments);
+ data->setting->state.status = fake_build_objects_add(data, data_build, &data->path_build_objects_shared, &data_build->setting.build_objects_program, &data_build->setting.build_objects_program_shared, &arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_objects_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_objects_add));
f_string_dynamics_resize(0, &arguments);
return 0;
}
- *status = fake_build_sources_add(data, data_build, &data_build->setting.build_sources_program, &data_build->setting.build_sources_program_shared, &arguments);
+ data->setting->state.status = fake_build_sources_add(data, data_build, &data_build->setting.build_sources_program, &data_build->setting.build_sources_program_shared, &arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_sources_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_sources_add));
f_string_dynamics_resize(0, &arguments);
return 0;
}
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
f_string_static_t parameter_file_name_path = f_string_static_t_initialize;
parameter_file_name_path.used = data->path_build_programs_shared.used + data_build->setting.build_name.used;
if (!values[i].used) continue;
- *status = fll_execute_arguments_add(values[i], &arguments);
- if (F_status_is_error(*status)) break;
+ data->setting->state.status = fll_execute_arguments_add(values[i], &arguments);
+ if (F_status_is_error(data->setting->state.status)) break;
} // for
}
// If project-specific library sources exist, then the -lbuild_name needs to be added to the arguments.
- if (F_status_is_error_not(*status) && data_build->setting.build_sources_library.used) {
+ if (F_status_is_error_not(data->setting->state.status) && data_build->setting.build_sources_library.used) {
f_string_static_t link_project_library = f_string_static_t_initialize;
link_project_library.used = fake_build_parameter_library_link_file_s.used + data_build->setting.build_name.used;
memcpy(link_project_library_string, fake_build_parameter_library_link_file_s.string, sizeof(f_char_t) * fake_build_parameter_library_link_file_s.used);
memcpy(link_project_library_string + fake_build_parameter_library_link_file_s.used, data_build->setting.build_name.string, sizeof(f_char_t) * data_build->setting.build_name.used);
- *status = fll_execute_arguments_add(link_project_library, &arguments);
+ data->setting->state.status = fll_execute_arguments_add(link_project_library, &arguments);
}
fake_build_arguments_standard_add(data, data_build, F_true, fake_build_type_program_e, &arguments, status);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fll_execute_arguments_add));
macro_f_string_dynamics_t_delete_simple(arguments);
macro_f_string_dynamics_t_delete_simple(arguments);
- if (F_status_is_error_not(*status) && *status != F_child) {
- fake_build_touch(data, file_stage, status);
+ if (F_status_is_error_not(data->setting->state.status) && data->setting->state.status != F_child) {
+ fake_build_touch(data, file_stage);
}
return result;
#endif // _di_fake_build_program_shared_
#ifndef _di_fake_build_program_static_
- int fake_build_program_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status) {
+ int fake_build_program_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage) {
- if (F_status_is_error(*status) || f_file_exists(file_stage, F_true) == F_true || *status == F_child) return data->main->child;
+ if (F_status_is_error(data->setting->state.status) || f_file_exists(file_stage, F_true) == F_true || data->setting->state.status == F_child) return data->main->child;
if (!data_build->setting.build_sources_program.used && !data_build->setting.build_sources_program_static.used) return 0;
fake_build_print_compile_program_static(data->setting, data->main->message);
f_string_dynamics_t arguments = f_string_dynamics_t_initialize;
- *status = fake_build_objects_add(data, data_build, &data->path_build_objects_static, &data_build->setting.build_objects_program, &data_build->setting.build_objects_program_static, &arguments);
+ data->setting->state.status = fake_build_objects_add(data, data_build, &data->path_build_objects_static, &data_build->setting.build_objects_program, &data_build->setting.build_objects_program_static, &arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_objects_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_objects_add));
f_string_dynamics_resize(0, &arguments);
return 0;
}
- *status = fake_build_sources_add(data, data_build, &data_build->setting.build_sources_program, &data_build->setting.build_sources_program_static, &arguments);
+ data->setting->state.status = fake_build_sources_add(data, data_build, &data_build->setting.build_sources_program, &data_build->setting.build_sources_program_static, &arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fake_build_sources_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_build_sources_add));
f_string_dynamics_resize(0, &arguments);
return 0;
}
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
f_string_static_t source_library = f_string_static_t_initialize;
source_library.used = data->path_build_libraries_static.used + fake_build_parameter_library_name_prefix_s.used + data_build->setting.build_name.used + fake_build_parameter_library_name_suffix_static_s.used;
if (!values[i].used) continue;
- *status = fll_execute_arguments_add(values[i], &arguments);
- if (F_status_is_error(*status)) break;
+ data->setting->state.status = fll_execute_arguments_add(values[i], &arguments);
+ if (F_status_is_error(data->setting->state.status)) break;
} // for
}
fake_build_arguments_standard_add(data, data_build, F_false, fake_build_type_program_e, &arguments, status);
- if (F_status_is_error(*status)) {
- fake_print_error(data->setting, data->main->error, *status, macro_fake_f(fll_execute_arguments_add));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fll_execute_arguments_add));
macro_f_string_dynamics_t_delete_simple(arguments);
macro_f_string_dynamics_t_delete_simple(arguments);
- if (F_status_is_error_not(*status) && *status != F_child) {
- fake_build_touch(data, file_stage, status);
+ if (F_status_is_error_not(data->setting->state.status) && data->setting->state.status != F_child) {
+ fake_build_touch(data, file_stage);
}
return result;
*
* @param data
* The program data.
+ *
+ * This alters data.setting.state.status:
+ * F_none on success.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param data_build
* The build data.
* @param mode
* The file mode.
* @param file_stage
* The specific stage file path.
- * @param status
- * F_none on success.
- *
- * Status codes (with error bit) are returned on any problem.
*
* @return
* The return code of the execution process.
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_build_program_script_
- extern int fake_build_program_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status);
+ extern int fake_build_program_script(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage);
#endif // _di_fake_build_program_script_
/**
*
* @param data
* The program data.
+ *
+ * This alters data.setting.state.status:
+ * F_none on success.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param data_build
* The build data.
* @param mode
* The file mode.
* @param file_stage
* The specific stage file path.
- * @param status
- * F_none on success.
- *
- * Status codes (with error bit) are returned on any problem.
*
* @return
* The return code of the execution process.
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_build_program_shared_
- extern int fake_build_program_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status);
+ extern int fake_build_program_shared(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage);
#endif // _di_fake_build_program_shared_
/**
*
* @param data
* The program data.
+ *
+ * This alters data.setting.state.status:
+ * F_none on success.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param data_build
* The build data.
* @param mode
* The file mode.
* @param file_stage
* The specific stage file path.
- * @param status
- * F_none on success.
- *
- * Status codes (with error bit) are returned on any problem.
*
* @return
* The return code of the execution process.
* This generally is only needed when F_child is returned, where this holds the return status of the child process.
*/
#ifndef _di_fake_build_program_static_
- extern int fake_build_program_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage, f_status_t * const status);
+ extern int fake_build_program_static(fake_data_t * const data, fake_build_data_t * const data_build, const f_mode_t mode, const f_string_static_t file_stage);
#endif // _di_fake_build_program_static_
#ifdef __cplusplus
}
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
if (F_status_set_fine(data->setting->state.status) == F_file_found) {
data->setting->state.status = F_none;
data->setting->state.status = F_none;
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_directory_remove), data->setting->build, f_file_operation_delete_s, fll_error_file_type_directory_e);
}
else {
main->output.to.flag = F_file_flag_create_d | F_file_flag_write_only_d | F_file_flag_append_d;
{
+ const uint16_t step_original = setting->state.step_small;
fake_data_t data = fake_data_t_initialize;
data.main = main;
data.setting = setting;
+ setting->state.step_small = 4;
+
f_console_parameter_process(arguments, &main->parameters, &setting->state.status, (void *) &data);
+
+ setting->state.step_small = step_original;
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(main->setting->state.status)) {
fake_print_line_first(setting, main->message);
fake_print_error(setting, main->error, setting->state.status, macro_fake_f(f_console_parameter_process));
setting->state.status = fll_program_parameter_process_context(choices, modes, F_true, main);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(main->setting->state.status)) {
fake_print_line_first(setting, main->message);
fake_print_error(setting, main->error, setting->state.status, macro_fake_f(fll_program_parameter_process_context));
setting->state.status = fll_program_parameter_process_verbosity(choices, verbosity, F_true, main);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(main->setting->state.status)) {
fake_print_line_first(setting, main->message);
fake_print_error(setting, main->error, setting->state.status, macro_fake_f(fll_program_parameter_process_verbosity));
// @todo fix this to print an error about the actual invalid character so that it can be investigated.
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(main->setting->state.status)) {
fake_print_line_first(setting, main->message);
if (fake_print_error_fallback(setting, main->error, setting->state.status, macro_fake_f(f_utf_is_word_dash_plus)) == F_false) {
if (cleanups[i]) {
setting->state.status = f_path_directory_cleanup(main->parameters.arguments.array[index], variable[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(main->setting->state.status)) {
fake_print_line_first(setting, main->message);
if (main->error.verbosity > f_console_verbosity_quiet_e) {
if (variable[i]->size) {
setting->state.status = f_string_dynamic_resize(0, variable[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(main->setting->state.status)) {
fake_print_line_first(setting, main->message);
fake_print_error(setting, main->error, setting->state.status, macro_fake_f(f_string_dynamic_resize));
if (variable[i]->size) {
setting->state.status = f_string_dynamic_resize(0, variable[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(main->setting->state.status)) {
fake_print_line_first(setting, main->message);
fake_print_error(setting, main->error, setting->state.status, macro_fake_f(f_string_dynamic_resize));
if (main->parameters.array[parameters[i]].result & f_console_result_value_e) {
setting->state.status = fll_program_parameter_additional_rip(main->parameters.arguments.array, main->parameters.array[parameters[i]].values, variable[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(main->setting->state.status)) {
if (main->error.verbosity > f_console_verbosity_quiet_e) {
fake_print_line_first(setting, main->message);
setting->state.status = f_utf_is_word_dash_plus(main->parameters.arguments.array[i].string + j, width_max, F_false);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(main->setting->state.status)) {
fake_print_line_first(setting, main->message);
// @todo fix this to print an error about the actual invalid character so that it can be investigated.
setting->state.status = f_uint8s_increase_by(1, &setting->operations);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(main->setting->state.status)) {
fake_print_line_first(setting, main->message);
fake_print_error(setting, main->error, setting->state.status, macro_fake_f(f_uint8s_increase_by));
f_console_parameters_t * const parameters = (f_console_parameters_t * const) void_parameters;
fake_data_t * const data = (fake_data_t * const) void_data;
- state->state->status = f_uint8s_increase(fake_default_allocation_small_d, &data->setting->operations);
+ state->state->status = f_uint8s_increase(fake_allocation_small_d, &data->setting->operations);
if (F_status_is_error(state->state->status)) {
fake_print_line_first(setting, main->message);
"f_uint8s_increase_by",
"f_utf_is_word_dash_plus",
"fl_conversion_dynamic_to_unsigned_detect",
- "fl_directory_clone",
"fl_directory_copy",
"fl_directory_create",
"fl_environment_load_name",
fake_f_f_uint8s_increase_by_e,
fake_f_f_utf_is_word_dash_plus_e,
fake_f_fl_conversion_dynamic_to_unsigned_detect_e,
- fake_f_fl_directory_clone_e,
fake_f_fl_directory_copy_e,
fake_f_fl_directory_create_e,
fake_f_fl_environment_load_name_e,
if (!main || !setting) return;
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_line_last(setting, main->message);
return;
fake_path_generate(&data);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_data_delete(&data);
return;
setting->state.status = f_string_dynamic_append(f_string_ascii_minus_s, &setting->fakefile);
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(setting, main->error, setting->state.status, macro_fake_f(f_string_dynamic_append));
}
}
setting->state.status = F_status_set_error(F_file_not);
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error_file(
setting,
main->error,
main->signal_check = 0;
}
- if (F_status_is_error(setting->state.status)) break;
+ if (F_status_is_error(data->setting->state.status)) break;
} // for
}
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
if (F_status_set_fine(setting->state.status) == F_interrupt) {
fake_print_operation_cancelled(setting, main->message, data.operation);
}
if (return_code != 0) {
data->setting->state.status = F_status_set_error(F_failure);
}
- else if (F_status_is_error(setting->state.status)) {
+ else if (F_status_is_error(data->setting->state.status)) {
return_code = 1;
if (F_status_set_fine(data->setting->state.status) == F_file_found_not) {
data->setting->state.status = f_file_exists(path_file, F_true);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_exists), path_file, f_file_operation_find_s, fll_error_file_type_file_e);
return;
data->setting->state.status = f_file_size(path_file, F_true, &size_file);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error_file(data->setting, data->main->error, , macro_fake_f(f_file_size), path_file, f_file_operation_read_s, fll_error_file_type_file_e);
return;
data->setting->state.status = f_string_dynamic_increase_by(size_file, buffer);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
const f_string_static_t message = macro_f_string_static_t_initialize("allocate buffer size for", 0, 24);
fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_string_dynamic_increase_by), path_file, message, fll_error_file_type_file_e);
data->setting->state.status = f_file_stream_open(path_file, f_string_empty_s, &file);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_stream_open), path_file, f_file_operation_open_s, fll_error_file_type_file_e);
return;
f_file_stream_flush(file);
f_file_stream_close(&file);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_read), path_file, f_file_operation_read_s, fll_error_file_type_file_e);
}
else {
file.id = F_type_descriptor_input_d;
file.stream = F_type_input_d;
- file.size_read = fake_default_allocation_pipe_d;
+ file.size_read = fake_allocation_pipe_d;
data->setting->state.status = f_string_dynamic_increase_by(fake_max_initial_buffer_d, buffer);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
const f_string_static_t message = macro_f_string_static_t_initialize("allocate buffer size for", 0, 24);
fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_string_dynamic_increase_by), f_string_ascii_minus_s, message, fll_error_file_type_file_e);
} while (F_status_is_fine(data->setting->state.status) && data->setting->state.status != F_interrupt && data->setting->state.status != F_none_eof);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_stream_read_block), f_string_ascii_minus_s, f_file_operation_read_s, fll_error_file_type_file_e);
}
else {
data->setting->state.status = F_status_set_error(F_directory_found_not);
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
if (F_status_set_fine(data->setting->state.status) != F_directory_found_not || requireds[i]) {
fake_print_error_file(data->setting, data->main->error, macro_fake_f(f_file_stat), values[i], f_file_operation_access_s, fll_error_file_type_directory_e);
* @see fll_program_standard_signal_received()
*/
#ifndef _di_fake_execute_
- extern int fake_execute(fake_data_t * const data, const f_string_maps_t environment, const f_string_static_t program, const f_string_statics_t arguments, f_status_t * const status);
+ extern int fake_execute(fake_data_t * const data, const f_string_maps_t environment, const f_string_static_t program, const f_string_statics_t arguments);
#endif // _di_fake_execute_
/**
fake_path_generate_string_dynamic(data, sources[i], values[i], parameters_size[i]);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(fake_path_generate_string_dynamic));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_path_generate_string_dynamic));
return;
}
data->setting->state.status = f_string_dynamic_append_nulless(sources[i], values[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
return;
fake_path_generate_string_dynamic(data, sources[i], values[i], parameters_size[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(fake_path_generate_string_dynamic));
return;
data->setting->state.status = f_string_dynamic_append_nulless(sources[i], values[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
return;
data->setting->state.status = f_string_dynamic_append_nulless(data->setting->work, values[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
return;
data->setting->state.status = f_string_dynamic_append_nulless(sources[i], values[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
return;
data->setting->state.status = fake_path_generate_string_dynamic(data, sources[i], values[i], parameters_size[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data->setting, data->main->error, macro_fake_f(fake_path_generate_string_dynamic));
return;
data->setting->state.status = f_string_dynamic_append_nulless(sources[i], values[i]);
- if (F_status_is_error(setting->state.status)) {
- fake_print_error(data->setting, data->main->error, data->setting->state.status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_append_nulless));
return;
}
setting.flag |= fake_main_flag_enable_documents_e;
setting.flag |= fake_main_flag_enable_shared_e;
setting.flag |= fake_main_flag_enable_static_e;
+ setting.state.step_large = fake_allocation_large_d;
+ setting.state.step_small = fake_allocation_small_d;
+ setting.state.custom = (void *) &data;
f_console_parameter_t parameters[] = fake_console_parameter_t_initialize;
data.parameters.array = parameters;
if (!buffer.used) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_get_id));
- data.setting.state.status = F_status_set_error(F_parameter);
+ data_make->setting->state.status = F_status_set_error(F_parameter);
return;
}
f_number_unsigned_t number = 0;
- data.setting.state.status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, buffer, &number);
+ data_make->setting->state.status = fl_conversion_dynamic_to_unsigned_detect(fl_conversion_data_base_10_c, buffer, &number);
- if (F_status_is_error(data.setting.state.status)) {
- if (F_status_set_fine(data.setting.state.status) == F_number) {
+ if (F_status_is_error(data_make->setting->state.status)) {
+ if (F_status_set_fine(data_make->setting->state.status) == F_number) {
- data.setting.state.status = is_owner
+ data_make->setting->state.status = is_owner
? f_account_id_by_name(buffer, (uid_t *) id)
: f_account_group_id_by_name(buffer, (gid_t *) id);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(
data_make->setting,
data_make->main->error,
);
}
else {
- if (data.setting.state.status == F_exist_not) {
+ if (data_make->setting->state.status == F_exist_not) {
fake_print_error_group_not_found(data_make->setting, data_make->main->error, buffer);
- data.setting.state.status = F_status_set_error(F_exist_not);
+ data_make->setting->state.status = F_status_set_error(F_exist_not);
}
else {
- data.setting.state.status = F_none;
+ data_make->setting->state.status = F_none;
}
}
}
return;
}
- data.setting.state.status = f_file_mode_from_string(buffer, data->main->umask, mode, replace);
+ data_make->setting->state.status = f_file_mode_from_string(buffer, data->main->umask, mode, replace);
- if (F_status_is_error(data.setting.state.status)) {
- if (F_status_set_fine(data.setting.state.status) == F_syntax) {
+ if (F_status_is_error(data_make->setting->state.status)) {
+ if (F_status_set_fine(data_make->setting->state.status) == F_syntax) {
fake_print_error_mode_invalid(data_make->setting, data_make->main->error, buffer);
}
else {
#endif
#ifndef _di_fake_make_load_fakefile_
- void fake_make_load_fakefile(fake_make_data_t * const data_make, const bool process_pipe, f_status_t * const status) {
+ void fake_make_load_fakefile(fake_make_data_t * const data_make, const bool process_pipe) {
- if (F_status_is_error(*status)) return;
+ if (!data_make) return;
+ if (F_status_is_error(data->setting->state.status)) return;
if (fll_program_standard_signal_received(data_make->main)) {
fll_program_print_signal_received(data_make->main->warning, data_make->data->setting->line_first, data_make->main->signal_received);
- *status = F_status_set_error(F_interrupt);
+ data->setting->state.status = F_status_set_error(F_interrupt);
return;
}
data_make->fakefile.used = 0;
if (process_pipe) {
- *status = fake_pipe_buffer(data_make->data, &data_make->buffer);
+ fake_pipe_buffer(data_make->data, &data_make->buffer);
- if (F_status_is_error(*status)) {
+ if (F_status_is_error(data->setting->state.status)) {
data_make->buffer.used = 0;
}
else {
- *status = f_string_dynamic_append_assure(f_string_eol_s, &data_make->buffer);
+ data->setting->state.status = f_string_dynamic_append_assure(f_string_eol_s, &data_make->buffer);
}
}
- if (F_status_is_error_not(*status)) {
- *status = fake_file_buffer(data_make->data, data_make->data->file_data_build_fakefile, process_pipe ? F_false : F_true, &data_make->buffer);
+ if (F_status_is_error_not(data->setting->state.status)) {
+ fake_file_buffer(data_make->data, data_make->data->file_data_build_fakefile, process_pipe ? F_false : F_true, &data_make->buffer);
}
- if (F_status_is_error(*status)) return;
+ if (F_status_is_error(data->setting->state.status)) return;
if (!data_make->buffer.used) {
fake_make_print_warning_fakefile_empty(data_make->setting, data_make->main->warning, data_make->data->file_data_build_fakefile);
{
f_string_range_t range = macro_f_string_range_t_initialize2(data_make->buffer.used);
f_fss_comments_t comments = f_fss_comments_t_initialize;
- f_state_t state = macro_f_state_t_initialize_1(fake_allocation_large_d, fake_allocation_small_d, F_none, 0, 0, &fll_program_standard_signal_handle, 0, (void *) data_make->main, 0);
- *status = fll_fss_basic_list_read(data_make->buffer, state, &range, &list_objects, &list_contents, &delimits, 0, &comments);
+ fll_fss_basic_list_read(data_make->buffer, data->setting->state, &range, &list_objects, &list_contents, &delimits, 0, &comments);
- if (F_status_is_error(*status)) {
- fake_print_error_fss(data_make->setting, data_make->main->error, *status, macro_fake_f(fll_fss_basic_list_read), data_make->data->file_data_build_fakefile, range, F_true);
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error_fss(data_make->setting, data_make->main->error, macro_fake_f(fll_fss_basic_list_read), data_make->data->file_data_build_fakefile, range, F_true);
}
else {
- *status = f_fss_apply_delimit(state, delimits, &data_make->buffer);
+ data->setting->state.status = f_fss_apply_delimit(state, delimits, &data_make->buffer);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_fss_apply_delimit));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_fss_apply_delimit));
}
delimits.used = 0;
macro_f_fss_comments_t_delete_simple(comments);
- if (F_status_is_error(*status)) {
+ if (F_status_is_error(data->setting->state.status)) {
macro_f_fss_objects_t_delete_simple(list_objects);
macro_f_fss_contents_t_delete_simple(list_contents);
macro_f_fss_delimits_t_delete_simple(delimits);
bool missing_settings = F_true;
f_fss_set_t settings = f_fss_set_t_initialize;
- f_state_t state = macro_f_state_t_initialize_1(fake_allocation_large_d, fake_allocation_small_d, F_none, 0, 0, &fll_program_standard_signal_handle, 0, (void *) data_make->main, 0);
if (list_objects.used > data_make->fakefile.size) {
- macro_f_fss_nameds_t_resize((*status), data_make->fakefile, list_objects.used);
+ macro_f_fss_nameds_t_resize((data->setting->state.status), data_make->fakefile, list_objects.used);
}
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(macro_f_fss_nameds_t_resize));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(macro_f_fss_nameds_t_resize));
macro_f_fss_set_t_delete_simple(settings);
macro_f_fss_objects_t_delete_simple(list_objects);
if (fll_program_standard_signal_received(data_make->main)) {
fll_program_print_signal_received(data_make->main->warning, data_make->data->setting->line_first, data_make->main->signal_received);
- *status = F_status_set_error(F_interrupt);
+ data->setting->state.status = F_status_set_error(F_interrupt);
break;
}
delimits.used = 0;
content_range = list_contents.array[i].array[0];
- *status = fll_fss_extended_read(data_make->buffer, state, &content_range, &settings.objects, &settings.contents, 0, 0, &delimits, 0);
+ data->setting->state.status = fll_fss_extended_read(data_make->buffer, &content_range, &settings.objects, &settings.contents, 0, 0, &delimits, 0, &data->setting->state);
- if (F_status_is_error(*status)) {
- fake_print_error_fss(data_make->setting, data_make->main->error, *status, macro_fake_f(fll_fss_extended_read), data_make->data->file_data_build_fakefile, content_range, F_true);
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error_fss(data_make->setting, data_make->main->error, macro_fake_f(fll_fss_extended_read), data_make->data->file_data_build_fakefile, content_range, F_true);
break;
}
- *status = f_fss_apply_delimit(state, delimits, &data_make->buffer);
+ data->setting->state.status = f_fss_apply_delimit(state, delimits, &data_make->buffer);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_fss_apply_delimit));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_fss_apply_delimit));
break;
}
if (list_contents.array[i].used) {
content_range = list_contents.array[i].array[0];
- *status = fll_fss_extended_read(data_make->buffer, state, &content_range, &data_make->fakefile.array[data_make->fakefile.used].objects, &data_make->fakefile.array[data_make->fakefile.used].contents, 0, &data_make->fakefile.array[data_make->fakefile.used].quotess, &delimits, 0);
+ fll_fss_extended_read(data_make->buffer, &content_range, &data_make->fakefile.array[data_make->fakefile.used].objects, &data_make->fakefile.array[data_make->fakefile.used].contents, 0, &data_make->fakefile.array[data_make->fakefile.used].quotess, &delimits, 0, &data->setting->state);
- if (F_status_is_error(*status)) {
- fake_print_error_fss(data_make->setting, data_make->main->error, *status, macro_fake_f(fll_fss_extended_read), data_make->data->file_data_build_fakefile, content_range, F_true);
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error_fss(data_make->setting, data_make->main->error, macro_fake_f(fll_fss_extended_read), data_make->data->file_data_build_fakefile, content_range, F_true);
break;
}
- *status = f_fss_apply_delimit(state, delimits, &data_make->buffer);
+ data->setting->state.status = f_fss_apply_delimit(state, delimits, &data_make->buffer);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_fss_apply_delimit));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_fss_apply_delimit));
break;
}
macro_f_fss_contents_t_delete_simple(list_contents);
macro_f_fss_delimits_t_delete_simple(delimits);
- if (F_status_is_error(*status)) {
+ if (F_status_is_error(data->setting->state.status)) {
macro_f_fss_set_t_delete_simple(settings);
return;
if (missing_main) {
fake_make_print_error_fakefile_section_missing(data_make->setting, data_make->main->warning, data_make->data->file_data_build_fakefile, fake_make_item_main_s);
- *status = F_status_set_error(F_failure);
+ data->setting->state.status = F_status_set_error(F_failure);
macro_f_fss_set_t_delete_simple(settings);
{
f_string_t function_name = macro_fake_f(macro_f_string_map_multis_t_resize);
- macro_f_string_map_multis_t_resize(*status, data_make->setting_make.parameter, fake_default_allocation_small_d);
+ data->setting->state.status = f_string_map_multis_resize(data->setting->state.step_small, &data_make->setting_make.parameter);
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
data_make->setting_make.parameter.used = 1;
function_name = macro_fake_f(f_string_dynamic_append);
- *status = f_string_dynamic_append(fake_make_setting_return_s, &data_make->setting_make.parameter.array[0].name);
+ data->setting->state.status = f_string_dynamic_append(fake_make_setting_return_s, &data_make->setting_make.parameter.array[0].name);
}
- if (F_status_is_error_not(*status)) {
+ if (F_status_is_error_not(data->setting->state.status)) {
function_name = macro_fake_f(f_string_dynamics_resize);
- *status = f_string_dynamics_resize(1, &data_make->setting_make.parameter.array[0].value);
+ data->setting->state.status = f_string_dynamics_resize(1, &data_make->setting_make.parameter.array[0].value);
}
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, function_name);
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, function_name);
macro_f_fss_set_t_delete_simple(settings);
fake_make_load_fakefile_setting_compiler(data_make, &settings.objects.array[i], &settings.contents.array[i], &range_compiler);
}
else if (fl_string_dynamic_partial_compare_string(fake_make_setting_environment_s.string, data_make->buffer, fake_make_setting_environment_s.used, settings.objects.array[i]) == F_equal_to) {
- *status = fake_make_load_fakefile_setting_environment(data_make, &settings.contents.array[i]);
- if (F_status_is_error(*status)) break;
+ data->setting->state.status = fake_make_load_fakefile_setting_environment(data_make, &settings.contents.array[i]);
+ if (F_status_is_error(data->setting->state.status)) break;
}
else if (fl_string_dynamic_partial_compare_string(fake_make_setting_fail_s.string, data_make->buffer, fake_make_setting_fail_s.used, settings.objects.array[i]) == F_equal_to) {
fake_make_load_fakefile_setting_fail(data_make, &settings.objects.array[i], &settings.contents.array[i]);
fake_make_load_fakefile_setting_indexer(data_make, &settings.objects.array[i], &settings.contents.array[i], &range_indexer);
}
else if (fl_string_dynamic_partial_compare_string(fake_make_setting_parameter_s.string, data_make->buffer, fake_make_setting_parameter_s.used, settings.objects.array[i]) == F_equal_to) {
- *status = fake_make_load_fakefile_setting_parameter(data_make, &settings.objects.array[i], &settings.contents.array[i]);
- if (F_status_is_error(*status)) break;
+ data->setting->state.status = fake_make_load_fakefile_setting_parameter(data_make, &settings.objects.array[i], &settings.contents.array[i]);
+ if (F_status_is_error(data->setting->state.status)) break;
}
} // for
- if (F_status_is_error(*status)) {
+ if (F_status_is_error(data->setting->state.status)) {
macro_f_fss_set_t_delete_simple(settings);
return;
}
}
- if (F_status_is_error_not(*status) && data_make->setting_make.load_build) {
- fake_build_load_setting(data_make->data, 0, F_false, &data_make->setting_build, status);
+ if (F_status_is_error_not(data->setting->state.status) && data_make->setting_make.load_build) {
+ fake_build_load_setting(data_make->data, 0, F_false, &data_make->setting_build);
- if (F_status_is_error(*status) && *status != F_status_set_error(F_interrupt)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fake_build_load_setting));
+ if (F_status_is_error(data->setting->state.status) && data->setting->state.status != F_status_set_error(F_interrupt)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_build_load_setting));
}
}
- if (F_status_is_error(*status)) {
+ if (F_status_is_error(data->setting->state.status)) {
macro_f_fss_set_t_delete_simple(settings);
return;
if (range_compiler) {
data_make->setting_build.build_compiler.used = 0;
- *status = f_string_dynamic_partial_append(data_make->buffer, *range_compiler, &data_make->setting_build.build_compiler);
+ data->setting->state.status = f_string_dynamic_partial_append(data_make->buffer, *range_compiler, &data_make->setting_build.build_compiler);
}
- if (F_status_is_error_not(*status) && range_indexer) {
+ if (F_status_is_error_not(data->setting->state.status) && range_indexer) {
data_make->setting_build.build_indexer.used = 0;
- *status = f_string_dynamic_partial_append(data_make->buffer, *range_indexer, &data_make->setting_build.build_indexer);
+ data->setting->state.status = f_string_dynamic_partial_append(data_make->buffer, *range_indexer, &data_make->setting_build.build_indexer);
}
- if (F_status_is_error(*status)) {
- if (F_status_set_fine(*status) != F_interrupt) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_partial_append));
+ if (F_status_is_error(data->setting->state.status)) {
+ if (F_status_set_fine(data->setting->state.status) != F_interrupt) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append));
}
macro_f_fss_set_t_delete_simple(settings);
return;
}
- *status = fake_make_load_fakefile_setting_define_and_parameter(data_make->data, data_make, &settings);
+ data->setting->state.status = fake_make_load_fakefile_setting_define_and_parameter(data_make->data, data_make, &settings);
macro_f_fss_set_t_delete_simple(settings);
}
+
+ data->setting->state.status = F_none;
}
#endif // _di_fake_make_load_fakefile_
#ifndef _di_fake_make_load_fakefile_setting_build_
void fake_make_load_fakefile_setting_build(fake_make_data_t * const data_make, f_fss_object_t * const object, f_fss_content_t * const content) {
+ if (!data_make || !object || !content) return;
+
if (content->used) {
if (fl_string_dynamic_partial_compare_string(fake_common_setting_bool_yes_s.string, data_make->buffer, fake_common_setting_bool_yes_s.used, content->array[0]) == F_equal_to) {
data_make->setting_make.load_build = F_true;
#ifndef _di_fake_make_load_fakefile_setting_compiler_
void fake_make_load_fakefile_setting_compiler(fake_make_data_t * const data_make, f_fss_object_t * const object, f_fss_content_t * const content, f_string_range_t **range_compiler) {
+ if (!data_make || !object || !content || !range_compiler) return;
+
if (content->used) {
*range_compiler = &content->array[content->used - 1];
#endif // _di_fake_make_load_fakefile_setting_compiler_
#ifndef _di_fake_make_load_fakefile_setting_define_and_parameter_
- f_status_t fake_make_load_fakefile_setting_define_and_parameter(fake_data_t * const data, fake_make_data_t * const data_make, f_fss_set_t * const settings) {
+ void fake_make_load_fakefile_setting_define_and_parameter(fake_data_t * const data, fake_make_data_t * const data_make, f_fss_set_t * const settings) {
- f_status_t status = F_none;
+ if (!data || !data_make || !settings) return;
+;
f_string_map_multis_t define = f_string_map_multis_t_initialize;
// Load the fakefile "settings" as if they are build "settings".
- fake_build_load_setting_process(data, F_false, data->file_data_build_fakefile, 0, data_make->buffer, settings->objects, settings->contents, &data_make->setting_build, &status);
+ fake_build_load_setting_process(data, F_false, data->file_data_build_fakefile, 0, data_make->buffer, settings->objects, settings->contents, &data_make->setting_build);
- if (F_status_is_error_not(status) && settings->objects.used) {
+ if (F_status_is_error_not(data->setting->state.status) && settings->objects.used) {
const f_string_static_t settings_name[] = {
fake_make_setting_define_s,
fake_make_setting_parameter_s,
&data_make->setting_make.parameter,
};
- status = fll_fss_snatch_map_apart(data_make->buffer, settings->objects, settings->contents, settings_name, 2, settings_value, 0, 0);
+ data->setting->state.status = fll_fss_snatch_map_apart(data_make->buffer, settings->objects, settings->contents, settings_name, 2, settings_value, 0, 0);
- if (F_status_is_error(status)) {
- fake_print_error(data->setting, data->main->error, status, macro_fake_f(fll_fss_snatch_map_apart));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fll_fss_snatch_map_apart));
- macro_f_string_map_multis_t_delete_simple(define);
+ f_string_map_multis_resize(0, &define);
- return status;
+ return;
}
}
if (define.used) {
- f_status_t status_validate = F_none;
f_string_dynamic_t combined = f_string_dynamic_t_initialize;
f_array_length_t i = 0;
for (; i < define.used; ++i) {
- status_validate = fake_make_operate_validate_define_name(define.array[i].name);
+ fake_make_operate_validate_define_name(define.array[i].name);
- if (status_validate) {
+ if (data->setting->state.status) {
combined.used = 0;
for (j = 0; j < define.array[i].value.used; ++j) {
- status = f_string_dynamic_mash(f_string_space_s, define.array[i].value.array[j], &combined);
+ data->setting->state.status = f_string_dynamic_mash(f_string_space_s, define.array[i].value.array[j], &combined);
- if (F_status_is_error(status)) {
- fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_string_dynamic_mash));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_string_dynamic_mash));
break;
}
} // for
- if (F_status_is_error(status)) break;
+ if (F_status_is_error(data->setting->state.status)) break;
- status = f_environment_set(define.array[i].name, combined, F_true);
+ data->setting->state.status = f_environment_set(define.array[i].name, combined, F_true);
- if (F_status_is_error(status)) {
- fake_print_error(data->setting, data->main->error, status, macro_fake_f(f_environment_set));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data->setting, data->main->error, macro_fake_f(f_environment_set));
break;
}
else {
fake_make_print_error_define_invalid_character(data_make->setting, data_make->main->error, define.array[i].name);
- status = F_status_set_error(F_failure);
+ data->setting->state.status = F_status_set_error(F_failure);
break;
}
f_string_map_multis_resize(0, &define);
- if (F_status_is_error(status)) return status;
+ if (F_status_is_error(data->setting->state.status)) return;
- return F_none;
+ data->setting->state.status = F_none;
}
#endif // _di_fake_make_load_fakefile_setting_define_and_parameter_
#ifndef _di_fake_make_load_fakefile_setting_environment_
- f_status_t fake_make_load_fakefile_setting_environment(fake_make_data_t * const data_make, f_fss_content_t * const content) {
-
- f_status_t status = F_none;
+ void fake_make_load_fakefile_setting_environment(fake_make_data_t * const data_make, f_fss_content_t * const content) {
f_string_dynamic_t name_define = f_string_dynamic_t_initialize;
for (; i < content->used; ++i) {
- status = f_string_dynamic_partial_append_nulless(data_make->buffer, content->array[i], &name_define);
+ data->setting->state.status = f_string_dynamic_partial_append_nulless(data_make->buffer, content->array[i], &name_define);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_partial_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless));
break;
}
} // for
if (j == data_make->setting_build.environment.used) {
- status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->setting_build.environment);
+ data->setting->state.status = f_string_dynamics_increase(fake_allocation_small_d, &data_make->setting_build.environment);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamics_increase));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase));
break;
}
data_make->setting_build.environment.array[j].used = 0;
- status = f_string_dynamic_increase_by(name_define.used + 1, &data_make->setting_build.environment.array[j]);
+ data->setting->state.status = f_string_dynamic_increase_by(name_define.used + 1, &data_make->setting_build.environment.array[j]);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_increase_by));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_increase_by));
break;
}
- status = f_string_dynamic_append_nulless(name_define, &data_make->setting_build.environment.array[j]);
+ data->setting->state.status = f_string_dynamic_append_nulless(name_define, &data_make->setting_build.environment.array[j]);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
data_make->setting_build.environment.array[j].used = 0;
- status = f_string_dynamic_append_nulless(name_define, &data_make->setting_build.environment.array[j]);
+ data->setting->state.status = f_string_dynamic_append_nulless(name_define, &data_make->setting_build.environment.array[j]);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
f_string_dynamic_resize(0, &name_define);
- if (F_status_is_error(status)) return status;
+ if (F_status_is_error(data->setting->state.status)) return;
- return F_none;
+ data->setting->state.status = F_none;
}
#endif // _di_fake_make_load_fakefile_setting_environment_
#endif // _di_fake_make_load_fakefile_setting_indexer_
#ifndef _di_fake_make_load_fakefile_setting_parameter_
- f_status_t fake_make_load_fakefile_setting_parameter(fake_make_data_t * const data_make, f_fss_object_t * const object, f_fss_content_t * const content) {
+ void fake_make_load_fakefile_setting_parameter(fake_make_data_t * const data_make, f_fss_object_t * const object, f_fss_content_t * const content) {
if (content->used) {
- f_status_t status = F_none;
-
if (fl_string_dynamic_partial_compare_string(fake_make_setting_return_s.string, data_make->buffer, fake_make_setting_return_s.used, content->array[0]) == F_equal_to) {
if (content->used > 1) {
for (f_array_length_t i = 1; i < content->used; ++i) {
- status = f_string_dynamic_partial_append_nulless(data_make->buffer, content->array[i], &data_make->setting_make.parameter.array[0].value.array[0]);
+ data->setting->state.status = f_string_dynamic_partial_append_nulless(data_make->buffer, content->array[i], &data_make->setting_make.parameter.array[0].value.array[0]);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_partial_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless));
break;
}
- status = f_string_dynamic_append_assure(f_string_space_s, &data_make->setting_make.parameter.array[0].value.array[0]);
+ data->setting->state.status = f_string_dynamic_append_assure(f_string_space_s, &data_make->setting_make.parameter.array[0].value.array[0]);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_assure));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_assure));
break;
}
} // for
- if (F_status_is_error(status)) return status;
+ if (F_status_is_error(data->setting->state.status)) return;
}
}
}
fake_make_print_warning_setting_content_empty(data_make->setting, data_make->main->warning, data_make->data->file_data_build_fakefile, data_make->buffer, *object, fake_make_setting_return_s);
}
- return F_none;
+ data->setting->state.status = F_none;
}
#endif // _di_fake_make_load_fakefile_setting_parameter_
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
- * @param process_pipe
- * If TRUE, then use the program input pipe.
- * If FALSE, then ignore the program input pipe.
- * @param status
- * The return status.
*
- * F_none on success.
+ * This alters data_make.settings.state.status:
+ * F_none on success.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
+ * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*
- * Status codes (with error bit) are returned on any problem.
+ * Errors (with error bit) from: fake_build_load_setting().
+ * @param process_pipe
+ * If TRUE, then use the program input pipe.
+ * If FALSE, then ignore the program input pipe.
*
* @see fake_build_load_setting()
*/
#ifndef _di_fake_make_load_fakefile_
- extern void fake_make_load_fakefile(fake_make_data_t * const data_make, const bool process_pipe, f_status_t * const status);
+ extern void fake_make_load_fakefile(fake_make_data_t * const data_make, const bool process_pipe);
#endif // _di_fake_make_load_fakefile_
/**
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This does not alter data_make.setting.state.status.
* @param object
* The setting object.
* @param content
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This does not alter data_make.setting.state.status.
* @param object
* The setting object.
* @param content
*
* @param data
* The program data.
+ *
+ * This alters data_make.setting.state.status:
+ * F_none on success.
+ *
+ * Errors (with error bit) from: f_environment_set().
+ * Errors (with error bit) from: f_string_dynamic_mash_nulless().
+ * Errors (with error bit) from: fll_fss_snatch_map_apart().
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
* @param settings
* The settings data.
*
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_environment_set().
- * Errors (with error bit) from: f_string_dynamic_mash_nulless().
- * Errors (with error bit) from: fll_fss_snatch_map_apart().
- *
* @see f_environment_set()
* @see f_string_dynamic_mash_nulless()
* @see fll_fss_snatch_map_apart()
*/
#ifndef _di_fake_make_load_fakefile_setting_define_and_parameter_
- extern f_status_t fake_make_load_fakefile_setting_define_and_parameter(fake_data_t * const data, fake_make_data_t * const data_make, f_fss_set_t * const settings);
+ extern void fake_make_load_fakefile_setting_define_and_parameter(fake_data_t * const data, fake_make_data_t * const data_make, f_fss_set_t * const settings);
#endif // _di_fake_make_load_fakefile_setting_define_and_parameter_
/**
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
- * @param content
- * The setting content.
*
- * @return
- * F_none on success.
+ * This alters data_make.setting.state.status:
+ * F_none on success.
*
- * Errors (with error bit) from: f_string_dynamic_append().
- * Errors (with error bit) from: f_string_dynamic_partial_append_nulless().
- * Errors (with error bit) from: f_string_dynamics_increase().
+ * Errors (with error bit) from: f_string_dynamic_append().
+ * Errors (with error bit) from: f_string_dynamic_partial_append_nulless().
+ * Errors (with error bit) from: f_string_dynamics_increase().
+ * @param content
+ * The setting content.
*
* @see f_string_dynamic_append()
* @see f_string_dynamic_partial_append_nulless()
* @see f_string_dynamics_increase()
*/
#ifndef _di_fake_make_load_fakefile_setting_environment_
- extern f_status_t fake_make_load_fakefile_setting_environment(fake_make_data_t * const data_make, f_fss_content_t * const content);
+ extern void fake_make_load_fakefile_setting_environment(fake_make_data_t * const data_make, f_fss_content_t * const content);
#endif // _di_fake_make_load_fakefile_setting_environment_
/**
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This does not alter data_make.setting.state.status.
* @param object
* The setting object.
* @param content
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This does not alter data_make.setting.state.status.
* @param object
* The setting object.
* @param content
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This alters data_make.setting.state.status:
+ * F_none on success.
+ *
+ * Errors (with error bit) from: f_string_append_assure().
+ * Errors (with error bit) from: f_string_dynamic_partial_append_nulless().
+ * Errors (with error bit) from: fake_make_load_fakefile_setting_define_and_parameter().
* @param object
* The setting object.
* @param content
* The setting content.
*
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_string_append_assure().
- * Errors (with error bit) from: f_string_dynamic_partial_append_nulless().
- *
* @see f_string_append_assure()
* @see f_string_dynamic_partial_append_nulless()
*
* @see fake_make_load_fakefile_setting_define_and_parameter()
*/
#ifndef _di_fake_make_load_fakefile_setting_parameter_
- extern f_status_t fake_make_load_fakefile_setting_parameter(fake_make_data_t * const data_make, f_fss_object_t * const object, f_fss_content_t * const content);
+ extern void fake_make_load_fakefile_setting_parameter(fake_make_data_t * const data_make, f_fss_object_t * const object, f_fss_content_t * const content);
#endif // _di_fake_make_load_fakefile_setting_parameter_
#ifdef __cplusplus
if (F_status_is_error(*status)) return;
if (data_make->main->context.mode != f_color_mode_none_e) {
- *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, &data_make->parameter.color);
+ *status = f_string_dynamics_increase_by(fake_allocation_small_d, &data_make->parameter.color);
if (F_status_is_error_not(*status)) {
- *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, &data_make->parameter_option.color);
+ *status = f_string_dynamics_increase_by(fake_allocation_small_d, &data_make->parameter_option.color);
}
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by));
return;
}
}
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append));
return;
}
}
if (data_make->main->error.verbosity != f_console_verbosity_normal_e) {
- *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, &data_make->parameter.verbosity);
+ *status = f_string_dynamics_increase_by(fake_allocation_small_d, &data_make->parameter.verbosity);
if (F_status_is_error_not(*status)) {
- *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, &data_make->parameter_option.verbosity);
+ *status = f_string_dynamics_increase_by(fake_allocation_small_d, &data_make->parameter_option.verbosity);
}
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by));
return;
}
}
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append));
return;
}
for (j = 0; j < source[i].used; ++j) {
if (destination[i]->used + 2 > destination[i]->size) {
- *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, destination[i]);
+ *status = f_string_dynamics_increase_by(fake_allocation_small_d, destination[i]);
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by));
return;
}
}
- *status = f_string_dynamics_increase(fake_default_allocation_small_d, destination_option[i]);
+ *status = f_string_dynamics_increase(fake_allocation_small_d, destination_option[i]);
if (F_status_is_error_not(*status)) {
- *status = f_string_dynamics_increase(fake_default_allocation_small_d, destination_value[i]);
+ *status = f_string_dynamics_increase(fake_allocation_small_d, destination_value[i]);
}
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase));
return;
}
}
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
return;
}
++destination[i]->used;
++destination_option[i]->used;
- *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, destination[i]);
+ *status = f_string_dynamics_increase_by(fake_allocation_small_d, destination[i]);
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by));
return;
}
}
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
return;
}
if (!(console[i]->result & f_console_result_found_e)) continue;
if (destination[i]->used + 2 > destination[i]->size) {
- *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, destination[i]);
+ *status = f_string_dynamics_increase_by(fake_allocation_small_d, destination[i]);
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by));
return;
}
}
- *status = f_string_dynamics_increase(fake_default_allocation_small_d, destination_option[i]);
+ *status = f_string_dynamics_increase(fake_allocation_small_d, destination_option[i]);
if (F_status_is_error_not(*status)) {
- *status = f_string_dynamics_increase(fake_default_allocation_small_d, destination_value[i]);
+ *status = f_string_dynamics_increase(fake_allocation_small_d, destination_value[i]);
}
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase));
return;
}
}
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
return;
}
++destination[i]->used;
++destination_option[i]->used;
- *status = f_string_dynamics_increase_by(fake_default_allocation_small_d, destination[i]);
+ *status = f_string_dynamics_increase_by(fake_allocation_small_d, destination[i]);
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by));
return;
}
}
if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless));
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
return;
}
#endif
#ifndef _di_fake_make_operate_
- f_status_t fake_make_operate(fake_data_t * const data) {
+ void fake_make_operate(fake_data_t * const data) {
+
+ if (!data) return;
if (!((++data->main->signal_check) % fake_signal_check_d)) {
if (fll_program_standard_signal_received(data->main)) {
fll_program_print_signal_received(data->main->warning, data->setting->line_first, data->main->signal_received);
- return F_status_set_error(F_interrupt);
+ data->setting->state.status = F_status_set_error(F_interrupt);
+
+ return;
}
}
fake_make_print_now_making(data->setting, data->main->message, data->setting->fakefile);
- f_status_t status = F_none;
-
f_array_lengths_t section_stack = f_array_lengths_t_initialize;
fake_make_data_t data_make = fake_make_data_t_initialize;
data_make.main = data->main;
data_make.setting = data->setting;
- status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make.path.stack);
+ data->setting->state.status = f_string_dynamics_increase(data_make->setting->state.step_small, &data_make.path.stack);
- if (F_status_is_error(status)) {
- fake_print_error(data_make.setting, data_make.main->error, status, macro_fake_f(f_string_dynamics_increase));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make.setting, data_make.main->error, macro_fake_f(f_string_dynamics_increase));
- return status;
+ return;
}
- status = f_path_current(F_true, &data_make.path.stack.array[0]);
+ data->setting->state.status = f_path_current(F_true, &data_make.path.stack.array[0]);
- if (F_status_is_error(status)) {
- fake_print_error(data_make.setting, data_make.main->error, status, macro_fake_f(f_path_current));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make.setting, data_make.main->error, macro_fake_f(f_path_current));
fake_make_data_delete(&data_make);
- return status;
+ return;
}
- status = f_directory_open(data_make.path.stack.array[0], F_false, &data_make.path.top.id);
+ data->setting->state.status = f_directory_open(data_make.path.stack.array[0], F_false, &data_make.path.top.id);
- if (F_status_is_error(status)) {
- fake_print_error(data_make.setting, data_make.main->error, status, macro_fake_f(f_directory_open));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make.setting, data_make.main->error, macro_fake_f(f_directory_open));
fake_make_data_delete(&data_make);
- return status;
+ return;
}
data_make.path.stack.used = 1;
- fake_make_load_parameters(&data_make, &status);
+ fake_make_load_parameters(&data_make);
- fake_make_load_fakefile(&data_make, data->main->pipe & fll_program_data_pipe_input_e, &status);
+ fake_make_load_fakefile(&data_make, data->main->pipe & fll_program_data_pipe_input_e);
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_make_data_delete(&data_make);
- return status;
+ return;
}
if (!data_make.buffer.used) {
fake_make_data_delete(&data_make);
- return F_data_not;
+ data->setting->state.status = F_data_not;
+
+ return;
}
if (data_make.setting_make.fail == fake_make_operation_fail_exit_e) {
f_string_range_t range = f_string_range_t_initialize;
f_array_length_t index = 0;
- status = F_none;
+ data->setting->state.status = F_none;
// Validate the remaining parameters.
for (i = 0; i < data->main->parameters.remaining.used; ++i) {
index = data->main->parameters.remaining.array[i];
if (!data->main->parameters.arguments.array[index].used) {
- status = F_status_set_error(F_parameter);
+ data->setting->state.status = F_status_set_error(F_parameter);
break;
}
} // for
if (j == data_make.fakefile.used) {
- status = F_status_set_error(F_parameter);
+ data->setting->state.status = F_status_set_error(F_parameter);
break;
}
} // for
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_make_print_error_argument_invalid_section(data->setting, data->main->error, data->main->parameters.arguments.array[data->main->parameters.remaining.array[i]]);
}
else {
if (fl_string_dynamic_partial_compare(data->main->parameters.arguments.array[index], data_make.buffer, range, data_make.fakefile.array[j].name) == F_equal_to) {
{
- int result = fake_make_operate_section(&data_make, j, §ion_stack, &status);
+ int result = fake_make_operate_section(&data_make, j, §ion_stack,);
- if (status == F_child) {
+ if (data->setting->state.status == F_child) {
data->main->child = result;
break;
}
}
- const f_status_t status_path = f_path_change_at(data_make.path.top.id);
+ const f_status_t status = data->setting->state.status;
+
+ data->setting->state.status = f_path_change_at(data_make.path.top.id);
- if (F_status_is_error(status_path)) {
- fake_make_print_warning_cannot_change_back(data->setting, data->main->warning, data_make.path.stack.array[0], status_path);
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_make_print_warning_cannot_change_back(data->setting, data->main->warning, data_make.path.stack.array[0]);
}
+ data->setting->state.status = status;
+
break;
}
- if (F_status_is_error(status)) break;
+ if (F_status_is_error(data->setting->state.status)) break;
} // for
- if (status == F_child || F_status_is_error(status)) break;
+ if (data->setting->state.status == F_child || F_status_is_error(data->setting->state.status)) break;
} // for
}
}
else {
{
- const int result = fake_make_operate_section(&data_make, data_make.id_main, §ion_stack, &status);
+ const int result = fake_make_operate_section(&data_make, data_make.id_main, §ion_stack);
- if (status == F_child) {
+ if (data->setting->state.status == F_child) {
data->main->child = result;
}
}
- if (status != F_child) {
- const f_status_t status_path = f_path_change_at(data_make.path.top.id);
+ if (data->setting->state.status != F_child) {
+ const f_status_t status = data->setting->state.status;
+
+ data->setting->state.status = f_path_change_at(data_make.path.top.id);
- if (F_status_is_error(status_path)) {
- fake_make_print_warning_cannot_change_back(data->setting, data->main->warning, data_make.path.stack.array[0], status_path);
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_make_print_warning_cannot_change_back(data->setting, data->main->warning, data_make.path.stack.array[0]);
}
+
+ data->setting->state.status = status;
}
}
f_array_lengths_resize(0, §ion_stack);
fake_make_data_delete(&data_make);
- return status;
+ if (F_status_is_error_not(data->setting->state.status)) {
+ data->setting->state.status = F_none;
+ }
}
#endif // _di_fake_make_operate_
#ifndef _di_fake_make_operate_expand_
- void fake_make_operate_expand(fake_make_data_t * const data_make, const f_string_range_t section_name, const f_fss_content_t content, const f_uint8s_t quotes, f_status_t * const status) {
+ void fake_make_operate_expand(fake_make_data_t * const data_make, const f_string_range_t section_name, const f_fss_content_t content, const f_uint8s_t quotes) {
- if (F_status_is_error(*status)) return;
+ if (!data_make) return;
+ if (F_status_is_error(data->setting->state.status)) return;
if (!content.used) return;
// Pre-allocate the known arguments size.
- *status = f_string_dynamics_increase_by(content.used, &data_make->cache_arguments);
+ data->setting->state.status = f_string_dynamics_increase_by(content.used, &data_make->cache_arguments);
- if (F_status_is_error(*status) || *status == F_string_too_large) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase_by));
+ if (F_status_is_error(data->setting->state.status) || data->setting->state.status == F_string_too_large) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by));
return;
}
f_iki_data_t *iki_data = &data_make->cache_iki;
- f_state_t state = macro_f_state_t_initialize_1(fake_allocation_large_d, fake_allocation_small_d, F_none, 0, 0, &fll_program_standard_signal_handle, 0, (void *) data_make->main, 0);
-
f_string_range_t range = f_string_range_t_initialize;
f_string_map_multis_t *parameter = &data_make->setting_make.parameter;
&data_make->parameter_value.work,
};
- *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments);
+ data->setting->state.flag = 0;
+ data->setting->state.handle = 0;
+ data->setting->state.data = 0;
+
+ data->setting->state.status = f_string_dynamics_increase(data_make->setting->state.step_small, &data_make->cache_arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase));
return;
}
if (quotes.array[i]) {
++data_make->cache_arguments.used;
- *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments);
+ data->setting->state.status = f_string_dynamics_increase(data_make->setting->state.step_small, &data_make->cache_arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase));
break;
}
range = content.array[i];
- *status = fl_iki_read(&data_make->buffer, &range, iki_data, state);
+ data->setting->state.status = fl_iki_read(&data_make->buffer, &range, iki_data, state);
- if (F_status_is_error(*status)) {
- if (F_status_set_fine(*status) != F_interrupt) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fl_iki_read));
+ if (F_status_is_error(data->setting->state.status)) {
+ if (F_status_set_fine(data->setting->state.status) != F_interrupt) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fl_iki_read));
}
break;
range.start = content.array[i].start;
range.stop = iki_data->variable.array[0].start - 1;
- *status = f_string_dynamic_partial_append_nulless(data_make->buffer, range, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_partial_append_nulless(data_make->buffer, range, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_partial_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless));
break;
}
is = 0;
- *status = fl_string_dynamic_partial_compare_string(vocabulary_define.string, data_make->buffer, vocabulary_define.used, iki_data->vocabulary.array[j]);
+ data->setting->state.status = fl_string_dynamic_partial_compare_string(vocabulary_define.string, data_make->buffer, vocabulary_define.used, iki_data->vocabulary.array[j]);
- if (*status == F_equal_to) {
+ if (data->setting->state.status == F_equal_to) {
is = 2;
iki_type |= 0x2;
}
- else if (*status == F_equal_to_not) {
- *status = fl_string_dynamic_partial_compare_string(vocabulary_parameter.string, data_make->buffer, vocabulary_parameter.used, iki_data->vocabulary.array[j]);
+ else if (data->setting->state.status == F_equal_to_not) {
+ data->setting->state.status = fl_string_dynamic_partial_compare_string(vocabulary_parameter.string, data_make->buffer, vocabulary_parameter.used, iki_data->vocabulary.array[j]);
- if (*status == F_equal_to) {
+ if (data->setting->state.status == F_equal_to) {
is = 1;
iki_type |= 0x1;
}
- else if (*status == F_equal_to_not) {
- *status = fl_string_dynamic_partial_compare_string(vocabulary_context.string, data_make->buffer, vocabulary_context.used, iki_data->vocabulary.array[j]);
+ else if (data->setting->state.status == F_equal_to_not) {
+ data->setting->state.status = fl_string_dynamic_partial_compare_string(vocabulary_context.string, data_make->buffer, vocabulary_context.used, iki_data->vocabulary.array[j]);
- if (*status == F_equal_to) {
+ if (data->setting->state.status == F_equal_to) {
is = 3;
iki_type |= 0x4;
}
}
}
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fl_string_dynamic_partial_compare));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fl_string_dynamic_partial_compare));
break;
}
if (fl_string_dynamic_partial_compare_string(fake_make_parameter_variable_return_s.string, data_make->buffer, fake_make_parameter_variable_return_s.used, iki_data->content.array[j]) == F_equal_to) {
if (data_make->setting_make.parameter.array[0].value.array[0].used) {
- *status = f_string_dynamic_append_nulless(data_make->setting_make.parameter.array[0].value.array[0], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append_nulless(data_make->setting_make.parameter.array[0].value.array[0], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
}
else {
- *status = f_string_dynamic_append(f_string_ascii_0_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append(f_string_ascii_0_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append));
break;
}
else if (fl_string_dynamic_partial_compare_string(fake_make_parameter_variable_top_s.string, data_make->buffer, fake_make_parameter_variable_top_s.used, iki_data->content.array[j]) == F_equal_to) {
if (data_make->path.stack.used) {
- *status = f_string_dynamic_increase_by(data_make->path.stack.array[0].used + f_path_separator_s.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_increase_by(data_make->path.stack.array[0].used + f_path_separator_s.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_increase_by));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_increase_by));
break;
}
- *status = f_string_dynamic_append(data_make->path.stack.array[0], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append(data_make->path.stack.array[0], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append));
break;
}
// For safe path handling, always append the trailing slash.
- *status = f_string_dynamic_append_assure(f_path_separator_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append_assure(f_path_separator_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_assure));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_assure));
break;
}
else if (fl_string_dynamic_partial_compare_string(fake_make_parameter_variable_current_s.string, data_make->buffer, fake_make_parameter_variable_current_s.used, iki_data->content.array[j]) == F_equal_to) {
if (data_make->path.stack.used) {
- *status = f_string_dynamic_increase_by(data_make->path.stack.array[data_make->path.stack.used - 1].used + f_path_separator_s.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_increase_by(data_make->path.stack.array[data_make->path.stack.used - 1].used + f_path_separator_s.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_increase_by));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_increase_by));
break;
}
- *status = f_string_dynamic_append(data_make->path.stack.array[data_make->path.stack.used - 1], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append(data_make->path.stack.array[data_make->path.stack.used - 1], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append));
break;
}
// For safe path handling, always append the trailing slash.
- *status = f_string_dynamic_append_assure(f_path_separator_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append_assure(f_path_separator_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_assure));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_assure));
break;
}
} // for
} // for
- *status = f_string_dynamic_increase_by(l + f_string_space_s.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_increase_by(l + f_string_space_s.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_increase_by));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_increase_by));
break;
}
if (!reserved_value[k]->array[l].used) continue;
if (separate) {
- *status = f_string_dynamic_append(f_string_space_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append(f_string_space_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append));
break;
}
}
- *status = f_string_dynamic_append_nulless(reserved_value[k]->array[l], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append_nulless(reserved_value[k]->array[l], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
if (separate) {
++data_make->cache_arguments.used;
- *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments);
+ data->setting->state.status = f_string_dynamics_increase(data_make->setting->state.step_small, &data_make->cache_arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase));
break;
}
data_make->cache_arguments.array[data_make->cache_arguments.used].used = 0;
}
- *status = f_string_dynamic_append_nulless(reserved_value[k]->array[l], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append_nulless(reserved_value[k]->array[l], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
break;
} // for
- if (F_status_is_error(*status)) break;
+ if (F_status_is_error(data->setting->state.status)) break;
}
- if (unmatched && F_status_is_error_not(*status)) {
+ if (unmatched && F_status_is_error_not(data->setting->state.status)) {
for (k = 0; k < parameter->used; ++k) {
// Check against IKI variable list.
} // for
} // for
- *status = f_string_dynamic_increase_by(l + f_string_space_s.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_increase_by(l + f_string_space_s.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_increase_by));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_increase_by));
break;
}
if (separate) {
if (quotes.array[i]) {
- *status = f_string_dynamic_append(f_string_space_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append(f_string_space_s, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append));
break;
}
else {
++data_make->cache_arguments.used;
- *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments);
+ data->setting->state.status = f_string_dynamics_increase(data_make->setting->state.step_small, &data_make->cache_arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase));
break;
}
}
}
- *status = f_string_dynamic_append_nulless(parameter->array[k].value.array[l], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_append_nulless(parameter->array[k].value.array[l], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
break;
}
separate = F_true;
} // for
- if (F_status_is_error(*status)) break;
+ if (F_status_is_error(data->setting->state.status)) break;
}
break;
} // for
}
- if (F_status_is_error(*status)) break;
+ if (F_status_is_error(data->setting->state.status)) break;
if (unmatched) {
- *status = fake_make_operate_expand_build(data_make, quotes.array[i], iki_data->content.array[j]);
+ fake_make_operate_expand_build(data_make, quotes.array[i], iki_data->content.array[j]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fake_make_operate_expand_build));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_operate_expand_build));
break;
}
- if (*status == F_true) {
+ if (data->setting->state.status == F_true) {
iki_type |= 0x8;
}
}
}
else if (is == 2) {
- *status = fake_make_operate_expand_environment(data_make, quotes.array[i], iki_data->content.array[j]);
+ fake_make_operate_expand_environment(data_make, quotes.array[i], iki_data->content.array[j]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fake_make_operate_expand_environment));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_operate_expand_environment));
break;
}
- if (*status == F_true) {
+ if (data->setting->state.status == F_true) {
iki_type |= 0x8;
}
}
else if (is == 3) {
- *status = fake_make_operate_expand_context(data_make, quotes.array[i], iki_data->content.array[j]);
+ fake_make_operate_expand_context(data_make, quotes.array[i], iki_data->content.array[j]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(fake_make_operate_expand_context));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_operate_expand_context));
break;
}
range.start = iki_data->variable.array[j].stop + 1;
range.stop = iki_data->variable.array[j + 1].start - 1;
- *status = f_string_dynamic_partial_append_nulless(data_make->buffer, range, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_partial_append_nulless(data_make->buffer, range, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_partial_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless));
break;
}
}
} // for
- if (F_status_is_error(*status)) break;
+ if (F_status_is_error(data->setting->state.status)) break;
// Copy everything after the last IKI variable to the end of the content.
if (iki_data->variable.used && content.array[i].stop > iki_data->variable.array[iki_data->variable.used - 1].stop) {
range.start = iki_data->variable.array[iki_data->variable.used - 1].stop + 1;
range.stop = content.array[i].stop;
- *status = f_string_dynamic_partial_append_nulless(data_make->buffer, range, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_partial_append_nulless(data_make->buffer, range, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_partial_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless));
break;
}
if (!(content.array[i].start == iki_data->variable.array[0].start && content.array[i].stop == iki_data->variable.array[0].stop && !quotes.array[i]) || (iki_type & 0xb) && !quotes.array[i] || i && content.used > 1 && i + 1 == content.used) {
++data_make->cache_arguments.used;
- *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments);
+ data->setting->state.status = f_string_dynamics_increase(data_make->setting->state.step_small, &data_make->cache_arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase));
break;
}
}
}
else {
- *status = f_string_dynamic_partial_append_nulless(data_make->buffer, content.array[i], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data->setting->state.status = f_string_dynamic_partial_append_nulless(data_make->buffer, content.array[i], &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamic_partial_append_nulless));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_partial_append_nulless));
break;
}
++data_make->cache_arguments.used;
- *status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments);
+ data->setting->state.status = f_string_dynamics_increase(data_make->setting->state.step_small, &data_make->cache_arguments);
- if (F_status_is_error(*status)) {
- fake_print_error(data_make->setting, data_make->main->error, *status, macro_fake_f(f_string_dynamics_increase));
+ if (F_status_is_error(data->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase));
break;
}
#endif // _di_fake_make_operate_expand_
#ifndef _di_fake_make_operate_expand_build_
- f_status_t fake_make_operate_expand_build(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name) {
+ void fake_make_operate_expand_build(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name) {
- f_status_t status = F_none;
bool unmatched = F_true;
uint8_t i = 0;
for (; i < 3; ++i) {
- status = fl_string_dynamic_partial_compare_string(uint8_name[i].string, data_make->buffer, uint8_name[i].used, range_name);
+ data_make->setting->state.status = fl_string_dynamic_partial_compare_string(uint8_name[i].string, data_make->buffer, uint8_name[i].used, range_name);
- if (status == F_equal_to) {
+ if (data_make->setting->state.status == F_equal_to) {
unmatched = F_false;
- status = f_conversion_number_unsigned_to_string(uint8_value[i], f_conversion_data_base_10_c, &data_make->cache_1);
+ data_make->setting->state.status = f_conversion_number_unsigned_to_string(uint8_value[i], f_conversion_data_base_10_c, &data_make->cache_1);
break;
}
for (i = 0; i < 7; ++i) {
- status = fl_string_dynamic_partial_compare_string(bool_name[i].string, data_make->buffer, bool_name[i].used, range_name);
+ data_make->setting->state.status = fl_string_dynamic_partial_compare_string(bool_name[i].string, data_make->buffer, bool_name[i].used, range_name);
- if (status == F_equal_to) {
+ if (data_make->setting->state.status == F_equal_to) {
unmatched = F_false;
if (bool_value[i]) {
- status = f_string_dynamic_append(fake_common_setting_bool_yes_s, &data_make->cache_1);
+ data_make->setting->state.status = f_string_dynamic_append(fake_common_setting_bool_yes_s, &data_make->cache_1);
}
else {
- status = f_string_dynamic_append(fake_common_setting_bool_no_s, &data_make->cache_1);
+ data_make->setting->state.status = f_string_dynamic_append(fake_common_setting_bool_no_s, &data_make->cache_1);
}
break;
for (i = 0; i < 17; ++i) {
- status = fl_string_dynamic_partial_compare_string(dynamic_name[i].string, data_make->buffer, dynamic_name[i].used, range_name);
+ data_make->setting->state.status = fl_string_dynamic_partial_compare_string(dynamic_name[i].string, data_make->buffer, dynamic_name[i].used, range_name);
- if (status == F_equal_to) {
+ if (data_make->setting->state.status == F_equal_to) {
unmatched = F_false;
- status = f_string_dynamic_append_nulless(dynamic_value[i], &data_make->cache_1);
+ data_make->setting->state.status = f_string_dynamic_append_nulless(dynamic_value[i], &data_make->cache_1);
break;
}
for (i = 0; i < 36; ++i) {
- status = fl_string_dynamic_partial_compare_string(dynamics_name[i].string, data_make->buffer, dynamics_name[i].used, range_name);
+ data_make->setting->state.status = fl_string_dynamic_partial_compare_string(dynamics_name[i].string, data_make->buffer, dynamics_name[i].used, range_name);
- if (status == F_equal_to) {
+ if (data_make->setting->state.status == F_equal_to) {
unmatched = F_false;
for (j = 0; j < dynamics_value[i].used; ++j) {
- status = f_string_dynamic_mash(f_string_space_s, dynamics_value[i].array[j], &data_make->cache_1);
- if (F_status_is_error(status)) break;
+ data_make->setting->state.status = f_string_dynamic_mash(f_string_space_s, dynamics_value[i].array[j], &data_make->cache_1);
+ if (F_status_is_error(data_make->setting->state.status)) break;
} // for
if (dynamics_flag[i]) {
} // for
}
- if (F_status_is_error(status)) return status;
- if (unmatched) return F_false;
+ if (F_status_is_error(data_make->setting->state.status)) return;
+
+ if (unmatched) {
+ data_make->setting->state.status = F_false;
+
+ return;
+ }
- status = f_string_dynamic_append_nulless(data_make->cache_1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ data_make->setting->state.status = f_string_dynamic_append_nulless(data_make->cache_1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error_not(status) && !quote) {
+ if (F_status_is_error_not(data_make->setting->state.status) && !quote) {
++data_make->cache_arguments.used;
- status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments);
+ data_make->setting->state.status = f_string_dynamics_increase(data_make->setting->state.step_small, &data_make->cache_arguments);
}
- if (F_status_is_error(status)) return status;
- if (data_make->cache_1.used) return F_true;
+ if (F_status_is_error(data->setting->state.status)) return;
+
+ if (data_make->cache_1.used) {
+ data_make->setting->state.status = F_true;
- return F_data_not;
+ return;
+ }
+
+ data_make->setting->state.status = F_data_not;
}
#endif // _di_fake_make_operate_expand_build_
#ifndef _di_fake_make_operate_expand_context_
- f_status_t fake_make_operate_expand_context(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name) {
+ void fake_make_operate_expand_context(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name) {
+
+ if (!data_make) return;
- f_status_t status = F_none;
const f_string_static_t *context = 0;
const f_string_static_t context_name[] = {
} // for
if (context) {
- status = f_string_dynamic_append_nulless(*context, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
- if (F_status_is_error(status)) return status;
+ data->setting->state.status = f_string_dynamic_append_nulless(*context, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
+ if (F_status_is_error(data->setting->state.status)) return;
}
- return F_true;
+ data->setting->state.status = F_true;
}
#endif // _di_fake_make_operate_expand_context_
#ifndef _di_fake_make_operate_expand_environment_
void fake_make_operate_expand_environment(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name) {
+ if (!data_make) return;
+
data->setting->state.status = F_none;
data_make->cache_1.used = 0;
return;
}
- data->setting->state.status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments);
+ data->setting->state.status = f_string_dynamics_increase(data_make->setting->state.step_small, &data_make->cache_arguments);
if (F_status_is_error_not(data->setting->state.status)) {
data->setting->state.status = f_string_dynamic_increase_by(data_make->cache_2.used + 1, &data_make->cache_arguments.array[data_make->cache_arguments.used]);
if (!quote) {
++data_make->cache_arguments.used;
- data->setting->state.status = f_string_dynamics_increase(fake_default_allocation_small_d, &data_make->cache_arguments);
+ data->setting->state.status = f_string_dynamics_increase(data_make->setting->state.step_small, &data_make->cache_arguments);
if (F_status_is_error(data_make->setting->state.status)) return;
}
}
// Add the operation id to the operation stack.
- data->setting->state.status = f_array_lengths_increase(fake_default_allocation_small_d, section_stack);
+ data->setting->state.status = f_array_lengths_increase(data_make->setting->state.step_small, section_stack);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
fake_print_error(data_make->setting, data_make->error, macro_fake_f(f_array_lengths_increase));
return 0;
fake_make_operate_validate(data_make, section->name, &state_process, section_stack);
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
if (state_process.block || state_process.operation == fake_make_operation_type_if_e || state_process.operation == fake_make_operation_type_and_e || state_process.operation == fake_make_operation_type_or_e) {
state_process.success_block = F_false;
if (F_status_set_fine(data->setting->state.status) == F_interrupt) break;
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data->setting->state.status)) {
state_process.success = F_false;
// Break acts identical to fail when at the top of the stack.
* @param data
* The program data.
*
- * @return
- * F_none on success.
- * F_data_not on success but fakefile is empty.
+ * This alters data.setting.state.status:
+ * F_none on success.
+ * F_data_not on success but fakefile is empty.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
+ * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*
- * Status codes (with error bit) are returned on any problem.
+ * Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_
- extern f_status_t fake_make_operate(fake_data_t * const data);
+ extern void fake_make_operate(fake_data_t * const data);
#endif // _di_fake_make_operate_
/**
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This alters data_make.setting.state.status:
+ * F_none on success.
+ * F_data_not on success but fakefile is empty.
+ *
+ * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param section_name
* The section name.
* @param content
* The content array.
* @param quotes
* The array of quotes associated with the content.
- * @param status
- * The return status.
- *
- * Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_expand_
- extern void fake_make_operate_expand(fake_make_data_t * const data_make, const f_string_range_t section_name, const f_fss_content_t content, const f_uint8s_t quotes, f_status_t * const status);
+ extern void fake_make_operate_expand(fake_make_data_t * const data_make, const f_string_range_t section_name, const f_fss_content_t content, const f_uint8s_t quotes);
#endif // _di_fake_make_operate_expand_
/**
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This alters data.setting.state.status:
+ * F_true on success and match expanded.
+ * F_false on no matches to expand.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param quote
* The quote associated with the content.
* @param range_name
* The range representing the variable content name string within the data_make->buffer.
- *
- * @return
- * F_true on success and match expanded.
- * F_false on no matches to expand.
- *
- * Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_expand_context_
- extern f_status_t fake_make_operate_expand_context(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name);
+ extern void fake_make_operate_expand_context(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name);
#endif // _di_fake_make_operate_expand_context_
/**
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This alters data.setting.state.status:
+ * F_data_not on success, but nothing is added (data length to append is 0).
+ * F_true on success and match expanded.
+ * F_false on no matches to expand.
+ *
+ * Errors (with error bit) from: f_string_dynamic_append_nulless().
+ * Errors (with error bit) from: f_string_dynamic_partial_append_nulless().
+ * Errors (with error bit) from: f_string_dynamic_increase_by().
+ * Errors (with error bit) from: f_string_dynamics_increase().
* @param quote
* The quote associated with the content.
* @param range_name
* The range representing the variable content name string within the data_make->buffer.
*
- * @return
- * F_data_not on success, but nothing is added (data length to append is 0).
- * F_true on success and match expanded.
- * F_false on no matches to expand.
- *
- * Errors (with error bit) from: f_string_dynamic_append_nulless().
- * Errors (with error bit) from: f_string_dynamic_partial_append_nulless().
- * Errors (with error bit) from: f_string_dynamic_increase_by().
- * Errors (with error bit) from: f_string_dynamics_increase().
- *
* @see f_string_dynamic_append_nulless()
* @see f_string_dynamic_partial_append_nulless()
* @see f_string_dynamic_increase_by()
* @see f_string_dynamics_increase()
*/
#ifndef _di_fake_make_operate_expand_environment_
- extern f_status_t fake_make_operate_expand_environment(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name);
+ extern void fake_make_operate_expand_environment(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name);
#endif // _di_fake_make_operate_expand_environment_
/**
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This alters data.setting.state.status:
+ * F_data_not on success, but nothing is added (data length to append is 0).
+ * F_true on success and match expanded.
+ * F_false on no matches to expand.
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param quote
* The quote associated with the content.
* @param range_name
* The range representing the variable content name string within the data_make->buffer.
- *
- * @return
- * F_data_not on success, but nothing is added (data length to append is 0).
- * F_true on success and match expanded.
- * F_false on no matches to expand.
- *
- * 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_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name);
+ extern void fake_make_operate_expand_build(fake_make_data_t * const data_make, const uint8_t quote, const f_string_range_t range_name);
#endif // _di_fake_make_operate_expand_build_
/**
#endif // _di_fake_make_operate_process_
#ifndef _di_fake_make_operate_process_buffer_escape_
- f_status_t fake_make_operate_process_buffer_escape(fake_make_data_t * const data_make, const f_string_static_t source, f_string_dynamic_t * const destination) {
+ void fake_make_operate_process_buffer_escape(fake_make_data_t * const data_make, const f_string_static_t source, f_string_dynamic_t * const destination) {
- if (!source.used) return F_data_not;
+ if (!data_make || !destination) return;
- f_status_t status = f_string_dynamic_increase_by(source.used, destination);
- if (F_status_is_error(status)) return status;
+ if (!source.used) {
+ data_make->setting->status = F_data_not;
+
+ return;
+ }
+
+ data_make->setting->status = f_string_dynamic_increase_by(source.used, destination);
+ if (F_status_is_error(data_make->setting->status)) return;
for (f_array_length_t i = 0; i < source.used; ++i) {
// A slash by itself at the end of the string is invalid.
if (++i >= source.used) break;
- status = f_string_dynamic_increase_by(F_memory_default_allocation_small_d, destination);
- if (F_status_is_error(status)) return status;
+ data_make->setting->status = f_string_dynamic_increase_by(F_memory_default_allocation_small_d, destination);
+ if (F_status_is_error(data_make->setting->status)) return;
if (source.string[i] == f_string_ascii_slash_backward_s.string[0]) {
destination->string[destination->used++] = f_string_ascii_slash_backward_s.string[0];
if (buffer.used > 2) {
uint32_t codepoint = 0;
- status = f_utf_unicode_string_to(buffer.string, buffer.used, &codepoint);
-
- if (F_status_is_error(status)) {
- status = F_status_set_fine(status);
-
- if (!(status == F_failure || status == F_utf_not || status == F_complete_not_utf || status == F_utf_fragment || status == F_valid_not)) {
- status = F_status_set_error(status);
+ data_make->setting->status = f_utf_unicode_string_to(buffer.string, buffer.used, &codepoint);
+ if (F_status_is_error(data_make->setting->status)) {
+ if (!(data_make->setting->status == F_failure || data_make->setting->status == F_utf_not || data_make->setting->status == F_complete_not_utf || data_make->setting->status == F_utf_fragment || data_make->setting->status == F_valid_not)) {
break;
}
}
else {
// Reserve 4-bytes (the max size of a Unicode UTF-8 sequence).
- status = f_string_dynamic_increase_by(4, destination);
- if (F_status_is_error(status)) return status;
+ data_make->setting->status = f_string_dynamic_increase_by(4, destination);
+ if (F_status_is_error(data_make->setting->status)) return;
if (!codepoint) {
destination->string[destination->used++] = f_string_null_s.string[0];
{
f_string_t address = destination->string + destination->used;
- status = f_utf_unicode_from(codepoint, 4, &address);
+ data_make->setting->status = f_utf_unicode_from(codepoint, 4, &address);
}
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->status)) {
destination->string[destination->used] = 0;
}
else {
}
}
else {
- status = f_string_dynamic_increase_by(F_memory_default_allocation_small_d, destination);
- if (F_status_is_error(status)) return status;
+ data_make->setting->status = f_string_dynamic_increase_by(F_memory_default_allocation_small_d, destination);
+ if (F_status_is_error(data_make->setting->status)) return;
destination->string[destination->used++] = source.string[i];
}
} // for
- if (F_status_is_error(status)) return status;
+ if (F_status_is_error(data_make->setting->status)) return;
- return F_none;
+ data_make->setting->status = F_none;
}
#endif // _di_fake_make_operate_process_buffer_escape_
#ifndef _di_fake_make_operate_process_execute_
- f_status_t fake_make_operate_process_execute(fake_make_data_t * const data_make, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell) {
+ void fake_make_operate_process_execute(fake_make_data_t * const data_make, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell) {
- if (!program.used && !arguments.used) return F_data_not;
+ if (!data_make) return;
+
+ if (!program.used && !arguments.used) {
+ data_make->setting->status = F_data_not;
+
+ return;
+ }
if (fll_program_standard_signal_received(data_make->main)) {
fll_program_print_signal_received(data_make->main->warning, data_make->data->setting->line_first, data_make->main->signal_received);
- return F_status_set_error(F_interrupt);
- }
+ data_make->setting->status = F_status_set_error(F_interrupt);
- f_status_t status = F_none;
+ return;
+ }
// Reset the environment.
for (f_array_length_t i = 0; i < data_make->environment.used; ++i) {
data_make->environment.used = 0;
if (data_make->setting_build.flag & data_build_setting_flag_has_environment_e) {
- status = fl_environment_load_names(data_make->setting_build.environment, &data_make->environment);
+ data_make->setting->status = fl_environment_load_names(data_make->setting_build.environment, &data_make->environment);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fl_environment_load_names));
+ if (F_status_is_error(data_make->setting->status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fl_environment_load_names));
- return status;
+ return;
}
}
else {
- status = f_environment_get_all(&data_make->environment);
+ data_make->setting->status = f_environment_get_all(&data_make->environment);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_environment_get_all));
+ if (F_status_is_error(data_make->setting->status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_environment_get_all));
- return status;
+ return;
}
}
int return_code = 0;
- status = fll_execute_program(program, arguments, ¶meter, 0, (void *) &return_code);
+ data_make->setting->status = fll_execute_program(program, arguments, ¶meter, 0, (void *) &return_code);
if (fll_program_standard_signal_received(data_make->main)) {
fll_program_print_signal_received(data_make->main->warning, data_make->data->setting->line_first, data_make->main->signal_received);
- return F_status_set_error(F_interrupt);
+ data_make->setting->status = F_status_set_error(F_interrupt);
+
+ return;
}
- if (F_status_is_error(status)) {
- if (F_status_set_fine(status) == F_interrupt) return status;
+ if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_set_fine(data_make->setting->status) == F_interrupt) return;
- if (F_status_set_fine(status) == F_file_found_not) {
+ if (F_status_set_fine(data_make->setting->status) == F_file_found_not) {
fake_make_print_error_program_not_found(data_make->setting, data_make->main->error, program);
}
- else if (F_status_set_fine(status) != F_failure) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(fll_execute_program));
+ else if (F_status_set_fine(data_make->setting->status) != F_failure) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fll_execute_program));
}
}
- return fake_make_operate_process_return(data_make, return_code);
+ fake_make_operate_process_return(data_make, return_code);
+
+ return;
}
#endif // _di_fake_make_operate_process_execute_
result = f_conversion_number_signed_to_string(WEXITSTATUS(return_code), f_conversion_data_base_10_c, &number);
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_conversion_number_signed_to_string));
f_string_dynamic_resize(0, &number);
#endif // _di_fake_make_operate_process_return_
#ifndef _di_fake_make_operate_process_run_
- f_status_t fake_make_operate_process_run(fake_make_data_t * const data_make, const bool as_shell) {
+ void fake_make_operate_process_run(fake_make_data_t * const data_make, const bool as_shell) {
+
+ if (!data_make) return;
+
+ if (!data_make->cache_arguments.used) {
+ data_make->setting->status = F_data_not;
+
+ return;
+ }
f_string_statics_t args = f_string_statics_t_initialize;
args.used = data_make->cache_arguments.used - 1;
args.size = 0;
}
- else if (!data_make->cache_arguments.used) {
- return F_data_not;
- }
- return fake_make_operate_process_execute(data_make, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : f_string_empty_s, args, as_shell);
+ fake_make_operate_process_execute(data_make, data_make->cache_arguments.used ? data_make->cache_arguments.array[0] : f_string_empty_s, args, as_shell);
}
#endif // _di_fake_make_operate_process_run_
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This alters date_make.setting.state.status:
+ * F_none on success.
+ * F_data_not if source.used is 0.
+ *
+ * Errors (with error bit) from: f_string_dynamic_increase_by().
+ * Errors (with error bit) from: f_utf_unicode_from().
+ * Errors (with error bit) from: f_utf_unicode_string_to().
* @param source
* The source string to process and esacpe.
* @param destination
* The processed and escaped string.
* This is appended to.
*
- * @return
- * F_none on success.
- * F_data_not if source.used is 0.
- *
- * Errors (with error bit) from: f_string_dynamic_increase_by().
- * Errors (with error bit) from: f_utf_unicode_from().
- * Errors (with error bit) from: f_utf_unicode_string_to().
- *
* @see f_string_dynamic_increase_by()
* @see f_utf_unicode_from()
* @see f_utf_unicode_string_to()
*/
#ifndef _di_fake_make_operate_process_buffer_escape_
- extern f_status_t fake_make_operate_process_buffer_escape(fake_make_data_t * const data_make, const f_string_static_t source, f_string_dynamic_t * const destination);
+ extern void fake_make_operate_process_buffer_escape(fake_make_data_t * const data_make, const f_string_static_t source, f_string_dynamic_t * const destination);
#endif // _di_fake_make_operate_process_buffer_escape_
/**
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This alters date_make.setting.state.status:
+ * F_none on success.
+ * F_data_not if both program.used is 0 and arguments.used is 0.
+ *
+ * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
+ *
+ * Errors (with error bit) from: f_environment_get_all().
+ * Errors (with error bit) from: fl_environment_load_names().
+ * Errors (with error bit) from: fll_execute_program().
+ *
+ * Status codes (with error bit) are returned on any problem.
* @param program
* The program to be executed.
* @param arguments
* When TRUE, this is a shell operation.
* When FALSE, this is a run operation.
*
- * @return
- * F_none on success.
- * F_data_not if both program.used is 0 and arguments.used is 0.
- *
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Status codes (with error bit) are returned on any problem.
+ * @see f_environment_get_all()
+ * @see fl_environment_load_names()
+ * @see fll_execute_program()
*/
#ifndef _di_fake_make_operate_process_execute_
- extern f_status_t fake_make_operate_process_execute(fake_make_data_t * const data_make, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell);
+ extern void fake_make_operate_process_execute(fake_make_data_t * const data_make, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell);
#endif // _di_fake_make_operate_process_execute_
/**
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
- * @param return_code
- * The return code to process.
*
- * @return
- * F_none on success.
- * F_failure on identifying the return code as an error code and fail mode is not set to fake_make_operation_fail_exit_e.
+ * This alters date_make.setting.state.status:
+ * F_none on success.
+ * F_failure on identifying the return code as an error code and fail mode is not set to fake_make_operation_fail_exit_e.
*
- * F_failure (with error bit) on identifying the return code as an error code and fail mode is set to fake_make_operation_fail_exit_e.
+ * F_failure (with error bit) on identifying the return code as an error code and fail mode is set to fake_make_operation_fail_exit_e.
*
- * Errors (with error bit) from: f_conversion_number_signed_to_string().
- * Errors (with error bit) from: f_string_append().
- * Errors (with error bit) from: f_string_dynamic_append().
+ * Errors (with error bit) from: f_conversion_number_signed_to_string().
+ * Errors (with error bit) from: f_string_append().
+ * Errors (with error bit) from: f_string_dynamic_append().
+ * @param return_code
+ * The return code to process.
*
* @see f_conversion_number_signed_to_string()
* @see f_string_append()
* @see f_string_dynamic_append()
*/
#ifndef _di_fake_make_operate_process_return_
- extern f_status_t fake_make_operate_process_return(fake_make_data_t * const data_make, const int return_code);
+ extern void fake_make_operate_process_return(fake_make_data_t * const data_make, const int return_code);
#endif // _di_fake_make_operate_process_return_
/**
*
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
+ *
+ * This alters date_make.setting.state.status:
+ * F_data_not if arguments.used is 0.
+ *
+ * Success results from: fake_make_operate_process_execute().
+ *
+ * Errors (with error bit) from: fake_make_operate_process_execute().
* @param as_shell
* When TRUE, this is a shell operation.
* When FALSE, this is a run operation.
*
- * @return
- * F_data_not if arguments.used is 0.
- *
- * Success results from: fake_make_operate_process_execute().
- *
- * Errors (with error bit) from: fake_make_operate_process_execute().
+ * @see fake_make_operate_process_execute()
*/
#ifndef _di_fake_make_operate_process_run_
- extern f_status_t fake_make_operate_process_run(fake_make_data_t * const data_make, const bool as_shell);
+ extern void fake_make_operate_process_run(fake_make_data_t * const data_make, const bool as_shell);
#endif // _di_fake_make_operate_process_run_
#ifdef __cplusplus
if (!data_make) return;
- data.setting.state.status = F_none;
+ data_make->setting->state.status = F_none;
if (!data_make->cache_arguments.used || fl_string_dynamic_compare(fake_make_operation_argument_success_s, data_make->cache_arguments.array[0]) == F_equal_to) {
- data.setting.state.status = F_signal_abort;
+ data_make->setting->state.status = F_signal_abort;
}
else if (fl_string_dynamic_compare(fake_make_operation_argument_failure_s, data_make->cache_arguments.array[0]) == F_equal_to) {
- data.setting.state.status = F_status_set_error(F_signal_abort);
+ data_make->setting->state.status = F_status_set_error(F_signal_abort);
}
else {
- data.setting.state.status = F_none;
+ data_make->setting->state.status = F_none;
return;
}
if (!data_make) return;
fake_build_operate(data_make->data, data_make->cache_arguments.used ? &data_make->cache_arguments : 0, F_false);
- if (F_status_set_fine(data->setting->state.status) == F_interrupt) return;
+ if (F_status_set_fine(data_make->setting->state.status) == F_interrupt) return;
- data->setting->state.status = fake_make_operate_process_return(data_make, F_status_is_error(data->setting->state.status) ? 1 : 0);
+ data_make->setting->state.status = fake_make_operate_process_return(data_make, F_status_is_error(data_make->setting->state.status) ? 1 : 0);
}
#endif // _di_fake_make_operate_process_type_build_
if (!data_make) return;
- data->setting->state.status = fake_clean_operate(data_make->data);
- if (F_status_set_fine(data->setting->state.status) == F_interrupt) return;
+ data_make->setting->state.status = fake_clean_operate(data_make->data);
+ if (F_status_set_fine(data_make->setting->state.status) == F_interrupt) return;
- data->setting->state.status = fake_make_operate_process_return(data_make, F_status_is_error(data->setting->state.status) ? 1 : 0);
+ data_make->setting->state.status = fake_make_operate_process_return(data_make, F_status_is_error(data_make->setting->state.status) ? 1 : 0);
}
#endif // _di_fake_make_operate_process_type_clean_
const int result = fake_execute(data_make->data, data_make->environment, data_make->setting_build.build_compiler, data_make->cache_arguments);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_execute));
}
- else if (data->setting->state.status == F_child) {
+ else if (data_make->setting->state.status == F_child) {
return;
}
- data->setting->state.status = fake_make_operate_process_return(data_make, result);
+ fake_make_operate_process_return(data_make, result);
return 0;
}
if (!data_make) return;
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
if (state_process->condition == fake_make_operation_if_type_if_define_e) {
fake_make_operate_process_type_if_define(data_make, F_false, state_process);
if (!data_make) return;
- f_status_t status = F_none;
-
const f_array_length_t total = data_make->cache_arguments.used - 1;
f_string_static_t destination = f_string_static_t_initialize;
f_directory_recurse_t recurse = f_directory_recurse_t_initialize;
- f_mode_t mode = f_mode_t_initialize;
-
- data->setting->state.status = F_none;
if (clone) {
- if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- recurse.output = data_make->main->message.to;
- recurse.verbose = fake_print_verbose_clone;
- }
-
+ recurse.verbose = fake_print_verbose_clone;
recurse.flag = f_file_stat_flag_group_e | f_file_stat_flag_owner_e;
}
else {
- macro_f_mode_t_set_default_umask(mode, data_make->main->umask);
-
- if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- recurse.output = data_make->main->message.to;
- recurse.verbose = fake_print_verbose_copy;
- }
+ recurse.verbose = fake_print_verbose_copy;
+ macro_f_mode_t_set_default_umask(recurse.state.mode, data_make->main->umask);
}
bool existing = F_true;
// In this case, the destination could be a file, so confirm this.
if (data_make->cache_arguments.used == 2 + i) {
- data->setting->state.status = f_directory_is(data_make->cache_arguments.array[1]);
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[1]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[1], f_file_operation_identify_s, fll_error_file_type_path_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
- if (data->setting->state.status == F_false || data->setting->state.status == F_file_found_not || data->setting->state.status == F_data_not) {
+ if (data_make->setting->state.status == F_false || data_make->setting->state.status == F_file_found_not || data_make->setting->state.status == F_data_not) {
existing = F_false;
}
}
if (existing) {
data_make->cache_path.used = 0;
- data->setting->state.status = f_file_name_base(data_make->cache_arguments.array[i], &data_make->cache_path);
+ data_make->setting->state.status = f_file_name_base(data_make->cache_arguments.array[i], &data_make->cache_path);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_name_base), data_make->cache_arguments.array[i], f_file_operation_process_s, fll_error_file_type_path_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
}
}
- status = f_directory_is(data_make->cache_arguments.array[i]);
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[i]);
- if (status == F_true) {
+ if (data_make->setting->state.status == F_true) {
if (clone) {
- status = fl_directory_clone(data_make->cache_arguments.array[i], destination, recurse);
+ recurse.flag |= f_directory_recurse_flag_clone_e;
}
else {
- status = fl_directory_copy(data_make->cache_arguments.array[i], destination, mode, recurse);
+ recurse.flag -= recurse.flag & f_directory_recurse_flag_clone_e;
}
- if (F_status_is_error(status)) {
- fake_print_error_file(data_make->setting, data_make->main->error, clone ? macro_fake_f(fl_directory_clone) : macro_fake_f(fl_directory_copy), data_make->cache_arguments.array[i], clone ? f_file_operation_clone_s : f_file_operation_copy_s, fll_error_file_type_directory_e);
+ fl_directory_copy(data_make->cache_arguments.array[i], destination, mode, &recurse);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(fl_directory_copy), data_make->cache_arguments.array[i], clone ? f_file_operation_clone_s : f_file_operation_copy_s, fll_error_file_type_directory_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
- else if (status == F_false) {
+ else if (data_make->setting->state.status == F_false) {
if (clone) {
- status = f_file_clone(data_make->cache_arguments.array[i], destination, recurse.size_block, recurse.flag);
+ data_make->setting->state.status = f_file_clone(data_make->cache_arguments.array[i], destination, recurse.size_block, recurse.flag);
}
else {
- status = f_file_copy(data_make->cache_arguments.array[i], destination, mode, recurse.size_block, recurse.flag);
+ data_make->setting->state.status = f_file_copy(data_make->cache_arguments.array[i], destination, mode, recurse.size_block, recurse.flag);
}
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, clone ? macro_fake_f(f_file_clone) : macro_fake_f(f_file_copy), data_make->cache_arguments.array[i], clone ? f_file_operation_clone_s : f_file_operation_copy_s, fll_error_file_type_file_e);
f_directory_recurse_delete(&recurse);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
fake_make_print_verbose_operate_copy(data_make->setting, data_make->main->message, clone, data_make->cache_arguments.array[i], destination);
}
- else if (F_status_is_error(status)) {
+ else if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[i], f_file_operation_identify_s, fll_error_file_type_directory_e);
f_directory_recurse_delete(&recurse);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
f_directory_recurse_delete(&recurse);
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_copy_
if (!data_make) return;
- data->setting->state.status = F_none;
-
if (data_make->cache_arguments.used > 1) {
- data->setting->state.status = f_environment_set(data_make->cache_arguments.array[0], data_make->cache_arguments.array[1], F_true);
+ data_make->setting->state.status = f_environment_set(data_make->cache_arguments.array[0], data_make->cache_arguments.array[1], F_true);
}
else {
- data->setting->state.status = f_environment_set(data_make->cache_arguments.array[0], f_string_empty_s, F_true);
+ data_make->setting->state.status = f_environment_set(data_make->cache_arguments.array[0], f_string_empty_s, F_true);
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_environment_set));
}
else {
fake_make_print_verbose_operate_define(data_make->setting, data_make->main->message, data_make->cache_arguments.array[0]);
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
}
#endif // _di_fake_make_operate_process_type_define_
const int recursion_max = all ? F_directory_max_descriptors_d : 0;
struct stat file_stat;
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
for (f_array_length_t i = 0; i < data_make->cache_arguments.used; ++i) {
memset(&file_stat, 0, sizeof(struct stat));
- data->setting->state.status = f_file_stat(data_make->cache_arguments.array[i], F_false, &file_stat);
+ data_make->setting->state.status = f_file_stat(data_make->cache_arguments.array[i], F_false, &file_stat);
- if (F_status_is_error(setting->state.status)) {
- if (F_status_set_fine(data->setting->state.status) == F_file_found_not) {
+ if (F_status_is_error(data_make->setting->state.status)) {
+ if (F_status_set_fine(data_make->setting->state.status) == F_file_found_not) {
fake_make_print_warning_file_not_found(data_make->setting, data_make->main->warning, data_make->cache_arguments.array[i]);
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
else {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_stat), data_make->cache_arguments.array[i], f_file_operation_delete_s, fll_error_file_type_file_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
}
else if (macro_f_file_type_is_directory(file_stat.st_mode)) {
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- data->setting->state.status = f_directory_remove_custom(data_make->cache_arguments.array[i], recursion_max, F_false, fake_clean_remove_recursively_verbosely);
+ data_make->setting->state.status = f_directory_remove_custom(data_make->cache_arguments.array[i], recursion_max, F_false, fake_clean_remove_recursively_verbosely);
}
else {
- data->setting->state.status = f_directory_remove(data_make->cache_arguments.array[i], recursion_max, F_false);
+ data_make->setting->state.status = f_directory_remove(data_make->cache_arguments.array[i], recursion_max, F_false);
}
- if (F_status_set_fine(data->setting->state.status) == F_file_found_not) {
+ if (F_status_set_fine(data_make->setting->state.status) == F_file_found_not) {
fake_make_print_verbose_operate_file_not_found(data_make->setting, data_make->main->message, F_true, data_make->cache_arguments.array[i]);
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_directory_remove), data_make->cache_arguments.array[i], f_file_operation_delete_s, fll_error_file_type_directory_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
}
else {
- data->setting->state.status = f_file_remove(data_make->cache_arguments.array[i]);
+ data_make->setting->state.status = f_file_remove(data_make->cache_arguments.array[i]);
- if (F_status_set_fine(data->setting->state.status) == F_file_found_not) {
+ if (F_status_set_fine(data_make->setting->state.status) == F_file_found_not) {
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
fake_make_print_verbose_operate_file_not_found(data_make->setting, data_make->main->message, F_false, data_make->cache_arguments.array[i]);
}
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_remove), data_make->cache_arguments.array[i], f_file_operation_delete_s, fll_error_file_type_file_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
fake_make_print_verbose_operate_delete(data_make->setting, data_make->main->message, data_make->cache_arguments.array[i]);
} // for
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_deletes_
if (!data_make) return;
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
if (!data_make->cache_arguments.used || fl_string_dynamic_compare(fake_make_operation_argument_success_s, data_make->cache_arguments.array[0]) == F_equal_to) {
- data->setting->state.status = F_signal_quit;
+ data_make->setting->state.status = F_signal_quit;
}
else if (fl_string_dynamic_compare(fake_make_operation_argument_failure_s, data_make->cache_arguments.array[0]) == F_equal_to) {
- data->setting->state.status = F_status_set_error(F_signal_quit);
+ data_make->setting->state.status = F_status_set_error(F_signal_quit);
// Forcing exit forces fail mode.
data_make->setting_make.fail = fake_make_operation_fail_exit_e;
data_make->error.set = &data_make->main->context.set;
}
else {
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
return;
}
bool dereference = F_true;
f_array_length_t i = 0;
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
if (fl_string_dynamic_compare(fake_make_operation_argument_no_dereference_s, data_make->cache_arguments.array[i]) == F_equal_to) {
++i;
dereference = F_false;
}
- data->setting->state.status = fake_make_get_id(data_make, data_make->cache_arguments.array[i++], (void *) &id);
+ fake_make_get_id(data_make, F_false, data_make->cache_arguments.array[i++], (void *) &id);
- if (F_status_is_error(setting->state.status)) {
- data->setting->state.status = F_status_set_error(F_failure);
+ if (F_status_is_error(data_make->setting->state.status)) {
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
for (; i < data_make->cache_arguments.used; ++i) {
- data->setting->state.status = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
+ fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]);
continue;
}
if (all) {
- data->setting->state.status = fll_file_role_change_all(data_make->cache_arguments.array[i], -1, id, dereference, fake_max_recursion_depth_d);
+ data_make->setting->state.status = fll_file_role_change_all(data_make->cache_arguments.array[i], -1, id, dereference, fake_max_recursion_depth_d);
}
else {
- data->setting->state.status = f_file_role_change(data_make->cache_arguments.array[i], -1, id, dereference);
+ data_make->setting->state.status = f_file_role_change(data_make->cache_arguments.array[i], -1, id, dereference);
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, all ? macro_fake_f(fll_file_role_change_all) : macro_fake_f(f_file_role_change), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
fake_make_print_verbose_operate_set_role(data_make->setting, data_make->main->message, all ? 0x1 : 0x0, data_make->cache_arguments.array[i], (f_number_unsigned_t) id);
} // for
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_groups_
f_array_length_t i = if_not ? 2 : 1;
bool dereference = F_true;
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
if (i == data_make->cache_arguments.used) {
if (if_not) {
state_process->condition_result = fake_condition_result_false_e;
}
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
return;
}
for (; i < data_make->cache_arguments.used; ++i) {
- data->setting->state.status = f_file_exists(data_make->cache_arguments.array[i], dereference);
+ data_make->setting->state.status = f_file_exists(data_make->cache_arguments.array[i], dereference);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
state_process->condition_result = fake_condition_result_error_e;
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_exists), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_file_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (if_not) {
- if (data->setting->state.status == F_true) {
+ if (data_make->setting->state.status == F_true) {
state_process->condition_result = fake_condition_result_false_e;
break;
}
}
else {
- if (data->setting->state.status != F_true) {
+ if (data_make->setting->state.status != F_true) {
state_process->condition_result = fake_condition_result_false_e;
break;
}
} // for
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_if_exist_
f_array_length_t i = if_not ? 2 : 1;
bool dereference = F_true;
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
if (fl_string_dynamic_compare(fake_make_operation_argument_no_dereference_s, data_make->cache_arguments.array[i]) == F_equal_to) {
++i;
state_process->condition_result = fake_condition_result_false_e;
}
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
return;
}
for (; i < data_make->cache_arguments.used; ++i, mode_file = 0) {
- data->setting->state.status = f_file_mode_read(data_make->cache_arguments.array[i], dereference, &mode_file);
+ data_make->setting->state.status = f_file_mode_read(data_make->cache_arguments.array[i], dereference, &mode_file);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
state_process->condition_result = fake_condition_result_error_e;
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_mode_read), data_make->cache_arguments.array[i], f_file_operation_get_type_s, fll_error_file_type_file_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
}
} // for
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_if_is_
f_array_length_t i = 1;
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
state_process->condition_result = fake_condition_result_true_e;
range.start = 0;
}
if (range.start > range.stop) {
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else {
- data->setting->state.status = fl_conversion_dynamic_partial_to_unsigned_detect(fl_conversion_data_base_10_c, data_make->cache_arguments.array[i], range, &number_left);
+ data_make->setting->state.status = fl_conversion_dynamic_partial_to_unsigned_detect(fl_conversion_data_base_10_c, data_make->cache_arguments.array[i], range, &number_left);
}
- if (F_status_is_error_not(data->setting->state.status)) {
- for (i = 2; i < data_make->cache_arguments.used; ++i, data->setting->state.status = F_none, number_left = number_right, is_negative_left = is_negative_right) {
+ if (F_status_is_error_not(data_make->setting->state.status)) {
+ for (i = 2; i < data_make->cache_arguments.used; ++i, data_make->setting->state.status = F_none, number_left = number_right, is_negative_left = is_negative_right) {
if (data_make->cache_arguments.array[i].used) {
range.start = 0;
}
if (range.start > range.stop) {
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else {
- data->setting->state.status = fl_conversion_dynamic_partial_to_unsigned_detect(fl_conversion_data_base_10_c, data_make->cache_arguments.array[i], range, &number_right);
+ data_make->setting->state.status = fl_conversion_dynamic_partial_to_unsigned_detect(fl_conversion_data_base_10_c, data_make->cache_arguments.array[i], range, &number_right);
}
}
else {
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
- if (F_status_is_error(data->setting->state.status)) break;
+ if (F_status_is_error(data_make->setting->state.status)) break;
if (state_process->condition == fake_make_operation_if_type_if_greater_e) {
} // for
}
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
state_process->condition_result = fake_condition_result_error_e;
if ((i == 1 && number_left > F_number_t_size_unsigned_d) || (i > 1 && number_right > F_number_t_size_unsigned_d)) {
fake_make_print_error_unsupported_number(data_make->setting, data_make->main->error, data_make->cache_arguments.array[i]);
}
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else {
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
}
#endif // _di_fake_make_operate_process_type_if_greater_if_lesser_
f_array_length_t i = if_not ? 2 : 1;
bool dereference = F_true;
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
if (fl_string_dynamic_compare(fake_make_operation_argument_no_dereference_s, data_make->cache_arguments.array[i]) == F_equal_to) {
++i;
dereference = F_false;
}
- data->setting->state.status = fake_make_get_id(data_make, data_make->cache_arguments.array[i++], (void *) &id);
+ fake_make_get_id(data_make, F_true, data_make->cache_arguments.array[i++], (void *) &id);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
state_process->condition_result = fake_condition_result_error_e;
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_get_id));
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
for (uid_t id_file = 0; i < data_make->cache_arguments.used; ++i, id_file = 0) {
- data->setting->state.status = f_file_group_read(data_make->cache_arguments.array[i], dereference, &id_file);
+ data_make->setting->state.status = f_file_group_read(data_make->cache_arguments.array[i], dereference, &id_file);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
state_process->condition_result = fake_condition_result_error_e;
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_group_read), data_make->cache_arguments.array[i], f_file_operation_get_group_s, fll_error_file_type_file_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
}
} // for
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_if_group_
{
uint8_t mode_replace = 0;
- data.setting.state.status = fake_make_get_id_mode(data_make->data, data_make->error, data_make->cache_arguments.array[if_not ? 3 : 2], &mode_rule, &mode_replace);
+ fake_make_get_id_mode(data_make, data_make->cache_arguments.array[if_not ? 3 : 2], &mode_rule, &mode_replace);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
state_process->condition_result = fake_condition_result_error_e;
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_get_id_mode));
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
- data.setting.state.status = f_file_mode_to_mode(mode_rule, &mode_match);
+ data_make->setting->state.status = f_file_mode_to_mode(mode_rule, &mode_match);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
state_process->condition_result = fake_condition_result_error_e;
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_file_mode_to_mode));
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
for (f_array_length_t i = if_not ? 4 : 3; i < data_make->cache_arguments.used; ++i, mode_file = 0) {
- data.setting.state.status = f_file_mode_read(data_make->cache_arguments.array[i], F_true, &mode_file);
+ data_make->setting->state.status = f_file_mode_read(data_make->cache_arguments.array[i], F_true, &mode_file);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
state_process->condition_result = fake_condition_result_error_e;
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_mode_read), data_make->cache_arguments.array[i], f_file_operation_get_mode_s, fll_error_file_type_file_e);
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
}
} // for
- data.setting.state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_if_mode_
f_array_length_t i = if_not ? 2 : 1;
bool dereference = F_true;
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
if (fl_string_dynamic_compare(fake_make_operation_argument_no_dereference_s, data_make->cache_arguments.array[i]) == F_equal_to) {
++i;
dereference = F_false;
}
- data->setting->state.status = fake_make_get_id(data_make->data, data_make->error, data_make->cache_arguments.array[i++], (void *) &id);
+ fake_make_get_id(data_make, F_true, data_make->cache_arguments.array[i++], (void *) &id);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
state_process->condition_result = fake_condition_result_error_e;
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_get_id));
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
for (uid_t id_file = 0; i < data_make->cache_arguments.used; ++i, id_file = 0) {
- data->setting->state.status = f_file_owner_read(data_make->cache_arguments.array[i], dereference, &id_file);
+ data_make->setting->state.status = f_file_owner_read(data_make->cache_arguments.array[i], dereference, &id_file);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
state_process->condition_result = fake_condition_result_error_e;
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_owner_read), data_make->cache_arguments.array[i], f_file_operation_get_owner_s, fll_error_file_type_file_e);
- data->setting->state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
}
} // for
- data->setting->state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_if_owner_
};
const bool reserved_parameter[] = {
- data_make->data->setting->build.used,
+ data_make->setting->build.used,
F_true,
- data_make->data->setting->data.used,
- data_make->data->setting->defines.used,
- data_make->data->setting->fakefile.used,
- data_make->data->setting->modes.used,
- data_make->data->setting->process.used,
- data_make->data->setting->settings.used,
- data_make->data->setting->sources.used,
+ data_make->setting->data.used,
+ data_make->setting->defines.used,
+ data_make->setting->fakefile.used,
+ data_make->setting->modes.used,
+ data_make->setting->process.used,
+ data_make->setting->settings.used,
+ data_make->setting->sources.used,
F_true,
- data_make->data->setting->work.used,
+ data_make->setting->work.used,
data_make->main->parameters.array[fake_parameter_build_e].result & f_console_result_value_e,
(data_make->main->parameters.array[fake_parameter_light_e].result & f_console_result_found_e) || (data_make->main->parameters.array[fake_parameter_dark_e].result & f_console_result_found_e) || (data_make->main->parameters.array[fake_parameter_no_color_e].result & f_console_result_found_e),
data_make->main->parameters.array[fake_parameter_data_e].result & f_console_result_value_e,
const int result = fake_execute(data_make->data, data_make->environment, data_make->setting_build.build_indexer, data_make->cache_arguments);
- if (F_status_is_error(setting->state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_execute));
}
- if (data->setting->state.status == F_child) return result;
+ if (data_make->setting->state.status == F_child) return result;
- data->setting->state.status = fake_make_operate_process_return(data_make, result);
+ fake_make_operate_process_return(data_make, result);
return 0;
}
if (!data_make) return;
- f_status_t status = F_none;
-
// 0x1 = force, 0x2 = strict.
uint8_t flag = 0;
if ((flag & 0x1) && f_file_exists(data_make->cache_arguments.array[data_make->cache_arguments.used - 1], F_false) == F_true) {
if (f_directory_is(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]) == F_true) {
- status = f_directory_remove(data_make->cache_arguments.array[data_make->cache_arguments.used - 1], F_directory_max_descriptors_d, F_false);
+ data_make->setting->state.status = f_directory_remove(data_make->cache_arguments.array[data_make->cache_arguments.used - 1], F_directory_max_descriptors_d, F_false);
- if (F_status_is_error(status)) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_remove), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_delete_s, fll_error_file_type_directory_e);
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_directory_remove), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_delete_s, fll_error_file_type_directory_e);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
}
else {
- status = f_file_remove(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
+ data_make->setting->state.status = f_file_remove(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_remove), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_delete_s, fll_error_file_type_file_e);
- if (F_status_is_error(status)) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_remove), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_delete_s, fll_error_file_type_file_e);
+ data_make->setting->state.status = F_status_set_error(F_failure);
- return F_status_set_error(F_failure);
+ return;
}
}
}
- status = f_file_link(data_make->cache_arguments.array[0], data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
+ data_make->setting->state.status = f_file_link(data_make->cache_arguments.array[0], data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_link), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_link_s, fll_error_file_type_file_e);
- if (F_status_is_error(status)) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_link), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_link_s, fll_error_file_type_file_e);
+ data_make->setting->state.status = F_status_set_error(F_failure);
- return F_status_set_error(F_failure);
+ return;
}
fake_make_print_verbose_operate_symbolic_link(data_make->setting, data_make->main->message, data_make->cache_arguments.array[data_make->cache_arguments.used - 1], data_make->cache_arguments.array[0]);
- return F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_link_
if (!data_make) return;
- data.setting.state.status = F_none;
+ data_make->setting->state.status = F_none;
f_file_mode_t mode_rule = 0;
uint8_t replace = 0;
- data.setting.state.status = fake_make_get_id_mode(data_make->data, data_make->error, data_make->cache_arguments.array[0], &mode_rule, &replace);
+ fake_make_get_id_mode(data_make, data_make->cache_arguments.array[0], &mode_rule, &replace);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_get_id_mode));
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
for (f_array_length_t i = 1; i < data_make->cache_arguments.used; ++i, mode = 0) {
- data.setting.state.status = f_file_mode_read(data_make->cache_arguments.array[i], F_true, &mode_file);
+ data_make->setting->state.status = f_file_mode_read(data_make->cache_arguments.array[i], F_true, &mode_file);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_mode_read), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e);
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
- data.setting.state.status = f_file_mode_determine(mode_file, mode_rule, replace, macro_f_file_type_is_directory(mode_file), &mode);
+ data_make->setting->state.status = f_file_mode_determine(mode_file, mode_rule, replace, macro_f_file_type_is_directory(mode_file), &mode);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_mode_determine), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e);
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (all) {
- data.setting.state.status = fll_file_mode_set_all(data_make->cache_arguments.array[i], F_true, mode, fake_max_recursion_depth_d);
+ data_make->setting->state.status = fll_file_mode_set_all(data_make->cache_arguments.array[i], F_true, mode, fake_max_recursion_depth_d);
}
else {
- data.setting.state.status = f_file_mode_set(data_make->cache_arguments.array[i], mode);
+ data_make->setting->state.status = f_file_mode_set(data_make->cache_arguments.array[i], mode);
}
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, all ? macro_fake_f(fll_file_mode_set_all) : macro_fake_f(f_file_mode_set), data_make->cache_arguments.array[i], f_file_operation_change_group_s, fll_error_file_type_file_e);
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
fake_make_print_verbose_operate_set_mode(data_make->setting, data_make->main->message, data_make->cache_arguments.array[i], mode);
} // for
- data.setting.state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_modes_
if (!data_make) return;
- f_status_t status = F_none;
-
const f_array_length_t total = data_make->cache_arguments.used -1;
f_directory_recurse_t recurse = f_directory_recurse_t_initialize;
-
f_string_static_t destination = f_string_static_t_initialize;
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- recurse.output = data_make->main->message.to;
recurse.verbose = fake_print_verbose_move;
}
// In this case, the destination could be a file, so confirm this.
if (data_make->cache_arguments.used == 2) {
- status = f_directory_is(data_make->cache_arguments.array[1]);
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[1]);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[1], f_file_operation_identify_s, fll_error_file_type_directory_e);
- if (F_status_is_error(status)) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_is), data_make->cache_arguments.array[1], f_file_operation_identify_s, fll_error_file_type_directory_e);
+ data_make->setting->state.status = F_status_set_error(F_failure);
- return F_status_set_error(F_failure);
+ return;
}
- if (status == F_false || status == F_file_found_not) {
+ if (data_make->setting->state.status == F_false || data_make->setting->state.status == F_file_found_not) {
existing = F_false;
}
}
if (existing) {
data_make->cache_path.used = 0;
- status = f_file_name_base(data_make->cache_arguments.array[i], &data_make->cache_path);
+ data_make->setting->state.status = f_file_name_base(data_make->cache_arguments.array[i], &data_make->cache_path);
- if (F_status_is_error(status)) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_name_base), data_make->cache_arguments.array[i], f_file_operation_process_s, fll_error_file_type_path_e);
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_name_base), data_make->cache_arguments.array[i], f_file_operation_process_s, fll_error_file_type_path_e);
+
+ data_make->setting->state.status = F_status_set_error(F_failure);
- return F_status_set_error(F_failure);
+ return;
}
destination.used += data_make->cache_path.used + 1;
}
}
- status = fll_file_move(data_make->cache_arguments.array[i], destination, recurse);
+ fll_file_move(data_make->cache_arguments.array[i], destination, &recurse);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(fll_file_move), data_make->cache_arguments.array[i], f_file_operation_move_s, fll_error_file_type_directory_e);
- if (F_status_is_error(status)) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(fll_file_move), data_make->cache_arguments.array[i], f_file_operation_move_s, fll_error_file_type_directory_e);
+ data_make->setting->state.status = F_status_set_error(F_failure);
- return F_status_set_error(F_failure);
+ return;
}
} // for
- return F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_move_
#ifndef _di_fake_make_operate_process_type_operate_
- int fake_make_operate_process_type_operate(fake_make_data_t * const data_make, f_array_lengths_t * const section_stack, f_status_t * const status) {
+ int fake_make_operate_process_type_operate(fake_make_data_t * const data_make, f_array_lengths_t * const section_stack) {
- if (!data_make) return;
+ if (!data_make) return 0;
f_array_length_t id_section = 0;
if (id_section == data_make->fakefile.used) return 0;
- const int result = fake_make_operate_section(data_make, id_section, section_stack, status);
+ const int result = fake_make_operate_section(data_make, id_section, section_stack);
// Ensure that a break only happens within its active state_process->operation stack.
- if (*status == F_signal_abort) {
- *status = F_none;
+ if (data_make->setting->state.status == F_signal_abort) {
+ data_make->setting->state.status = F_none;
}
- else if (F_status_set_fine(*status) == F_signal_abort) {
- *status = F_status_set_error(F_failure);
+ else if (F_status_set_fine(data_make->setting->state.status) == F_signal_abort) {
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
return result;
#endif // _di_fake_make_operate_process_type_operate_
#ifndef _di_fake_make_operate_process_type_owners_
- f_status_t fake_make_operate_process_type_owners(fake_make_data_t * const data_make, const bool all) {
+ void fake_make_operate_process_type_owners(fake_make_data_t * const data_make, const bool all) {
if (!data_make) return;
dereference = F_false;
}
- f_status_t status = fake_make_get_id(data_make->data, data_make->error, data_make->cache_arguments.array[i++], (void *) &id);
+ fake_make_get_id(data_make, F_true, data_make->cache_arguments.array[i++], (void *) &id);
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_get_id));
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
for (; i < data_make->cache_arguments.used; ++i) {
- status = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
+ fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]);
continue;
}
if (all) {
- status = fll_file_role_change_all(data_make->cache_arguments.array[i], id, -1, dereference, fake_max_recursion_depth_d);
+ data_make->setting->state.status = fll_file_role_change_all(data_make->cache_arguments.array[i], id, -1, dereference, fake_max_recursion_depth_d);
}
else {
- status = f_file_role_change(data_make->cache_arguments.array[i], id, -1, dereference);
+ data_make->setting->state.status = f_file_role_change(data_make->cache_arguments.array[i], id, -1, dereference);
}
- if (F_status_is_error(status)) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, all ? macro_fake_f(fll_file_role_change_all) : macro_fake_f(f_file_role_change), data_make->cache_arguments.array[i], f_file_operation_change_owner_s, fll_error_file_type_file_e);
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file(data_make->setting, data_make->main->error, all ? macro_fake_f(fll_file_role_change_all) : macro_fake_f(f_file_role_change), data_make->cache_arguments.array[i], f_file_operation_change_owner_s, fll_error_file_type_file_e);
+
+ data_make->setting->state.status = F_status_set_error(F_failure);
- return F_status_set_error(F_failure);
+ return;
}
fake_make_print_verbose_operate_set_role(data_make->setting, data_make->main->message, all ? 0x3 : 0x2, data_make->cache_arguments.array[i], (f_number_unsigned_t) id);
} // for
- return F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_owners_
#ifndef _di_fake_make_operate_process_type_parameter_
- f_status_t fake_make_operate_process_type_parameter(fake_make_data_t * const data_make) {
+ void fake_make_operate_process_type_parameter(fake_make_data_t * const data_make) {
if (!data_make) return;
- f_status_t status = F_none;
-
bool found = F_false;
f_array_length_t i = 0;
if (found) {
for (f_array_length_t j = 0; j < data_make->setting_make.parameter.array[i].value.size; ++j) {
- status = f_string_dynamic_resize(0, &data_make->setting_make.parameter.array[i].value.array[j]);
+ data_make->setting->state.status = f_string_dynamic_resize(0, &data_make->setting_make.parameter.array[i].value.array[j]);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_resize));
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_resize));
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
} // for
if (data_make->setting_make.parameter.array[i].value.size) {
- status = f_string_dynamics_resize(0, &data_make->setting_make.parameter.array[i].value);
+ data_make->setting->state.status = f_string_dynamics_resize(0, &data_make->setting_make.parameter.array[i].value);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamics_resize));
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_resize));
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
}
else {
- status = f_string_map_multis_resize(fake_default_allocation_small_d, &data_make->setting_make.parameter);
+ data_make->setting->state.status = f_string_map_multis_resize(fake_allocation_small_d, &data_make->setting_make.parameter);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_map_multis_resize));
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_map_multis_resize));
+ data_make->setting->state.status = F_status_set_error(F_failure);
- return F_status_set_error(F_failure);
+ return;
}
- status = f_string_dynamic_append_nulless(data_make->cache_arguments.array[0], &data_make->setting_make.parameter.array[data_make->setting_make.parameter.used].name);
+ data_make->setting->state.status = f_string_dynamic_append_nulless(data_make->cache_arguments.array[0], &data_make->setting_make.parameter.array[data_make->setting_make.parameter.used].name);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_nulless));
+ data_make->setting->state.status = F_status_set_error(F_failure);
- return F_status_set_error(F_failure);
+ return;
}
i = data_make->setting_make.parameter.used++;
data_make->setting_make.parameter.array[i].value.used = 0;
if (data_make->cache_arguments.used > 1) {
- status = f_string_dynamics_resize(data_make->cache_arguments.used - 1, &data_make->setting_make.parameter.array[i].value);
+ data_make->setting->state.status = f_string_dynamics_resize(data_make->cache_arguments.used - 1, &data_make->setting_make.parameter.array[i].value);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamics_resize));
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_resize));
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
for (f_array_length_t j = 0; j < data_make->setting_make.parameter.array[i].value.size; ++j) {
- status = f_string_dynamic_append_nulless(data_make->cache_arguments.array[j + 1], &data_make->setting_make.parameter.array[i].value.array[j]);
+ data_make->setting->state.status = f_string_dynamic_append_nulless(data_make->cache_arguments.array[j + 1], &data_make->setting_make.parameter.array[i].value.array[j]);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append_nulless));
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
++data_make->setting_make.parameter.array[i].value.used;
} // for
}
- return F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_parameter_
#ifndef _di_fake_make_operate_process_type_pop_
- f_status_t fake_make_operate_process_type_pop(fake_make_data_t * const data_make) {
+ void fake_make_operate_process_type_pop(fake_make_data_t * const data_make) {
if (!data_make) return;
--data_make->path.stack.used;
- data.setting.state.status = f_path_change(*argument);
+ data_make->setting->state.status = f_path_change(*argument);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_stack_max(data_make->setting, data_make->error, macro_fake_f(f_path_change), *argument);
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
fake_make_path_relative(data_make, *argument);
// The created relative path is for verbosity purposes and as such its failure to be processed should not be treated as a failure of the function.
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_path_relative));
fake_make_print_verbose_operate_set_path(data_make->setting, data_make->main->message, *argument);
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
fake_make_print_verbose_operate_set_path(data_make->setting, data_make->main->message, data_make->cache_path);
}
- data.setting.state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_pop_
#ifndef _di_fake_make_operate_process_type_print_
- f_status_t fake_make_operate_process_type_print(fake_make_data_t * const data_make) {
+ void fake_make_operate_process_type_print(fake_make_data_t * const data_make) {
if (!data_make) return;
- f_status_t status = F_none;
-
data_make->cache_1.used = 0;
{
total += data_make->cache_arguments.array[i].used;
} // for
- status = f_string_dynamic_increase_by(total, &data_make->cache_1);
+ data_make->setting->state.status = f_string_dynamic_increase_by(total, &data_make->cache_1);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open));
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_file_stream_open));
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
}
for (i = 0; i < data_make->cache_arguments.used; ++i) {
if (i) {
- status = f_string_dynamic_append(f_string_space_s, &data_make->cache_1);
+ data_make->setting->state.status = f_string_dynamic_append(f_string_space_s, &data_make->cache_1);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_string_dynamic_append));
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append));
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
}
- status = fake_make_operate_process_buffer_escape(data_make, data_make->cache_arguments.array[i], &data_make->cache_1);
+ fake_make_operate_process_buffer_escape(data_make, data_make->cache_arguments.array[i], &data_make->cache_1);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_file_stream_open));
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open));
+ data_make->setting->state.status = F_status_set_error(F_failure);
- return F_status_set_error(F_failure);
+ return;
}
} // for
}
f_file_stream_unlock(data_make->main->message.to);
- return F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_print_
#ifndef _di_fake_make_operate_process_type_skeleton_
- f_status_t fake_make_operate_process_type_skeleton(fake_make_data_t * const data_make) {
+ void fake_make_operate_process_type_skeleton(fake_make_data_t * const data_make) {
if (!data_make) return;
- const f_status_t status = fake_skeleton_operate(data_make->data);
- if (F_status_set_fine(status) == F_interrupt) return status;
+ fake_skeleton_operate(data_make->data);
+ if (F_status_set_fine(data_make->setting->state.status) == F_interrupt) return;
- data->setting->state.status = fake_make_operate_process_return(data_make, F_status_is_error(status) ? 1 : 0);
+ fake_make_operate_process_return(data_make, F_status_is_error(data_make->setting->state.status) ? 1 : 0);
}
#endif // _di_fake_make_operate_process_type_skeleton_
if (!data_make) return;
- data.setting.state.status = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[0]);
+ fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[0]);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[0]);
- if (F_status_set_fine(data.setting.state.status) == F_false) {
- data.setting.state.status = F_status_set_error(F_failure);
+ if (F_status_set_fine(data_make->setting->state.status) == F_false) {
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
- data.setting.state.status = f_path_change(data_make->cache_arguments.array[0]);
+ data_make->setting->state.status = f_path_change(data_make->cache_arguments.array[0]);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_stack_max(data_make->setting, data_make->error, macro_fake_f(f_path_change), data_make->cache_arguments.array[0]);
}
else {
- data.setting.state.status = f_string_dynamics_increase_by(fake_default_allocation_small_d, &data_make->path.stack);
+ data_make->setting->state.status = f_string_dynamics_increase_by(fake_allocation_small_d, &data_make->path.stack);
- if (F_status_is_error(data.setting.state.status)) {
- if (F_status_set_fine(data.setting.state.status) == F_array_too_large) {
- fake_print_error_operation_path_stack_max(data_make->setting, data_make->error, F_array_too_large, macro_fake_f(f_string_dynamics_increase_by), fake_common_file_path_stack_s);
+ if (F_status_is_error(data_make->setting->state.status)) {
+ if (F_status_set_fine(data_make->setting->state.status) == F_array_too_large) {
+ fake_print_error_operation_path_stack_max(data_make->setting, data_make->error, macro_fake_f(f_string_dynamics_increase_by), fake_common_file_path_stack_s);
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamics_increase_by));
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
// Copy the entire real path, including the trailing NULL.
++data_make->cache_path.used;
- data.setting.state.status = f_string_dynamic_append_nulless(data_make->cache_path, &data_make->path.stack.array[data_make->path.stack.used]);
+ data_make->setting->state.status = f_string_dynamic_append_nulless(data_make->cache_path, &data_make->path.stack.array[data_make->path.stack.used]);
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_nulless));
- data.setting.state.status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (data_make->main->error.verbosity >= f_console_verbosity_verbose_e) {
- data.setting.state.status = fake_make_path_relative(data_make, data_make->path.stack.array[data_make->path.stack.used]);
+ fake_make_path_relative(data_make, data_make->path.stack.array[data_make->path.stack.used]);
// The created relative path is for verbosity purposes and as such its failure to be processed should not be treated as a failure of the function.
- if (F_status_is_error(data.setting.state.status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(fake_make_path_relative));
fake_make_print_verbose_operate_set_path(data_make->setting, data_make->main->message, data_make->path.stack.array[data_make->path.stack.used]);
++data_make->path.stack.used;
}
- data.setting.state.status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_to_
#ifndef _di_fake_make_operate_process_type_top_
- f_status_t fake_make_operate_process_type_top(fake_make_data_t * const data_make) {
+ void fake_make_operate_process_type_top(fake_make_data_t * const data_make) {
if (!data_make) return;
{
- f_status_t status = f_path_change_at(data_make->path.top.id);
+ data_make->setting->state.status = f_path_change_at(data_make->path.top.id);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_operation_path_stack_max(data_make->setting, data_make->error, macro_fake_f(f_path_change), data_make->cache_arguments.array[0]);
- if (F_status_is_error(status)) {
- fake_print_error_operation_path_stack_max(data_make->setting, data_make->error, F_status_set_fine(status), macro_fake_f(f_path_change), data_make->cache_arguments.array[0]);
+ data_make->setting->state.status = F_status_set_error(F_failure);
- return F_status_set_error(F_failure);
+ return;
}
}
data_make->path.stack.used = 1;
- return F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_top_
#ifndef _di_fake_make_operate_process_type_touch_
- f_status_t fake_make_operate_process_type_touch(fake_make_data_t * const data_make) {
+ void fake_make_operate_process_type_touch(fake_make_data_t * const data_make) {
if (!data_make) return;
- f_status_t status = F_none;
f_mode_t mode = f_mode_t_initialize;
macro_f_mode_t_set_default_umask(mode, data_make->main->umask);
for (f_array_length_t i = 1; i < data_make->cache_arguments.used; ++i) {
if (fl_string_dynamic_compare(fake_make_operation_argument_file_s, data_make->cache_arguments.array[0]) == F_equal_to) {
- status = f_file_touch(data_make->cache_arguments.array[i], mode.regular, F_false);
+ data_make->setting->state.status = f_file_touch(data_make->cache_arguments.array[i], mode.regular, F_false);
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[i], &data_make->cache_path))) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_touch), data_make->cache_path, f_file_operation_touch_s, fll_error_file_type_file_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_touch), data_make->cache_path, f_file_operation_touch_s, fll_error_file_type_file_e);
}
else {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_touch), data_make->cache_arguments.array[i], f_file_operation_touch_s, fll_error_file_type_file_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_touch), data_make->cache_arguments.array[i], f_file_operation_touch_s, fll_error_file_type_file_e);
}
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
}
else if (fl_string_dynamic_compare(fake_make_operation_argument_directory_s, data_make->cache_arguments.array[0]) == F_equal_to) {
- status = f_directory_touch(data_make->cache_arguments.array[i], mode.directory);
+ data_make->setting->state.status = f_directory_touch(data_make->cache_arguments.array[i], mode.directory);
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[i], &data_make->cache_path))) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_touch), data_make->cache_path, f_file_operation_touch_s, fll_error_file_type_directory_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_directory_touch), data_make->cache_path, f_file_operation_touch_s, fll_error_file_type_directory_e);
}
else {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_directory_touch), data_make->cache_arguments.array[i], f_file_operation_touch_s, fll_error_file_type_directory_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_directory_touch), data_make->cache_arguments.array[i], f_file_operation_touch_s, fll_error_file_type_directory_e);
}
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
}
fake_make_print_verbose_operate_touch(data_make->setting, data_make->main->message, data_make->cache_arguments.array[i]);
} // for
- return F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_process_type_touch_
#ifndef _di_fake_make_operate_process_type_write_
- f_status_t fake_make_operate_process_type_write(fake_make_data_t * const data_make) {
+ void fake_make_operate_process_type_write(fake_make_data_t * const data_make) {
if (!data_make) return;
f_file_t file = f_file_t_initialize;
- f_status_t status = f_file_exists(data_make->cache_arguments.array[0], F_true);
+ data_make->setting->state.status = f_file_exists(data_make->cache_arguments.array[0], F_true);
- if (data_make->cache_arguments.used == 1 || status == F_false) {
- status = f_file_stream_open(data_make->cache_arguments.array[0], f_file_open_mode_truncate_s, &file);
+ if (data_make->cache_arguments.used == 1 || data_make->setting->state.status == F_false) {
+ data_make->setting->state.status = f_file_stream_open(data_make->cache_arguments.array[0], f_file_open_mode_truncate_s, &file);
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[0], &data_make->cache_path))) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open), data_make->cache_path, f_file_operation_open_s, fll_error_file_type_file_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_stream_open), data_make->cache_path, f_file_operation_open_s, fll_error_file_type_file_e);
}
else {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open), data_make->cache_arguments.array[0], f_file_operation_open_s, fll_error_file_type_file_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_stream_open), data_make->cache_arguments.array[0], f_file_operation_open_s, fll_error_file_type_file_e);
}
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
// Keep the stream open if there is a string to write to it.
if (data_make->cache_arguments.used > 1) {
- status = F_false;
+ data_make->setting->state.status = F_false;
}
else {
- status = F_none;
+ data_make->setting->state.status = F_none;
f_file_stream_flush(file);
f_file_stream_close(&file);
}
}
- if (F_status_is_error_not(status) && data_make->cache_arguments.used > 1) {
- if (status != F_false) {
- status = f_file_stream_open(data_make->cache_arguments.array[0], f_file_open_mode_append_s, &file);
+ if (F_status_is_error_not(data_make->setting->state.status) && data_make->cache_arguments.used > 1) {
+ if (data_make->setting->state.status != F_false) {
+ data_make->setting->state.status = f_file_stream_open(data_make->cache_arguments.array[0], f_file_open_mode_append_s, &file);
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[0], &data_make->cache_path))) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open), data_make->cache_path, f_file_operation_open_s, fll_error_file_type_file_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_stream_open), data_make->cache_path, f_file_operation_open_s, fll_error_file_type_file_e);
}
else {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_open), data_make->cache_arguments.array[0], f_file_operation_open_s, fll_error_file_type_file_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_stream_open), data_make->cache_arguments.array[0], f_file_operation_open_s, fll_error_file_type_file_e);
}
}
}
- if (F_status_is_error_not(status)) {
+ if (F_status_is_error_not(data_make->setting->state.status)) {
for (f_array_length_t i = 1; i < data_make->cache_arguments.used; ++i) {
data_make->cache_1.used = 0;
- status = fake_make_operate_process_buffer_escape(data_make, data_make->cache_arguments.array[i], &data_make->cache_1);
+ fake_make_operate_process_buffer_escape(data_make, data_make->cache_arguments.array[i], &data_make->cache_1);
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[0], &data_make->cache_path))) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_operate_process_buffer_escape), data_make->cache_path, f_file_operation_write_s, fll_error_file_type_file_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(fake_make_operate_process_buffer_escape), data_make->cache_path, f_file_operation_write_s, fll_error_file_type_file_e);
}
else {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(fake_make_operate_process_buffer_escape), data_make->cache_arguments.array[0], f_file_operation_write_s, fll_error_file_type_file_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(fake_make_operate_process_buffer_escape), data_make->cache_arguments.array[0], f_file_operation_write_s, fll_error_file_type_file_e);
}
break;
}
- status = f_file_stream_write(file, data_make->cache_1, 0);
+ data_make->setting->state.status = f_file_stream_write(file, data_make->cache_1, 0);
- if (F_status_is_error(status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
if (F_status_is_error_not(fll_path_canonical(data_make->cache_arguments.array[0], &data_make->cache_path))) {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_write), data_make->cache_path, f_file_operation_write_s, fll_error_file_type_file_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_stream_write), data_make->cache_path, f_file_operation_write_s, fll_error_file_type_file_e);
}
else {
- fake_print_error_file(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_write), data_make->cache_arguments.array[0], f_file_operation_write_s, fll_error_file_type_file_e);
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_stream_write), data_make->cache_arguments.array[0], f_file_operation_write_s, fll_error_file_type_file_e);
}
break;
}
if (i + 1 < data_make->cache_arguments.used) {
- status = f_file_stream_write(file, f_string_ascii_space_s, 0);
+ data_make->setting->state.status = f_file_stream_write(file, f_string_ascii_space_s, 0);
- if (F_status_is_error(status)) {
- fake_print_error(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_stream_write));
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_file_stream_write));
break;
}
f_file_stream_close(&file);
}
- if (F_status_is_error(status)) return F_status_set_error(F_failure);
-
- return F_none;
+ data_make->setting->state.status = F_status_is_error(data_make->setting->state.status) ? F_status_set_error(F_failure) : F_none;
}
#endif // _di_fake_make_operate_process_type_write_
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: fake_make_operate_process_type_if_define()
+ * Errors (with error bit) from: fake_make_operate_process_type_if_exist()
+ * Errors (with error bit) from: fake_make_operate_process_type_if_greater_if_lesser()
+ * Errors (with error bit) from: fake_make_operate_process_type_if_group()
+ * Errors (with error bit) from: fake_make_operate_process_type_if_is()
+ * Errors (with error bit) from: fake_make_operate_process_type_if_mode()
+ * Errors (with error bit) from: fake_make_operate_process_type_if_owner()
+ * Errors (with error bit) from: fake_make_operate_process_type_if_parameter()
* @param state_process
* The operation and if-condition states.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
+ * @see fake_make_operate_process_type_if_define()
+ * @see fake_make_operate_process_type_if_exist()
+ * @see fake_make_operate_process_type_if_greater_if_lesser()
+ * @see fake_make_operate_process_type_if_group()
+ * @see fake_make_operate_process_type_if_is()
+ * @see fake_make_operate_process_type_if_mode()
+ * @see fake_make_operate_process_type_if_owner()
+ * @see fake_make_operate_process_type_if_parameter()
*/
#ifndef _di_fake_make_operate_process_type_condition_
extern void fake_make_operate_process_type_condition(fake_make_data_t * const data_make, fake_state_process_t * const state_process);
*
* F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_directory_is()
+ * Errors (with error bit) from: f_file_clone()
+ * Errors (with error bit) from: f_file_copy()
+ * Errors (with error bit) from: f_file_name_base()
+ * Errors (with error bit) from: fl_directory_copy()
* @param clone
* If TRUE, perform a copy that is a clone (preserved timestamps, roles, and permissions).
* If FALSE, perforrm a normaly copy without preserving properties.
* @see f_file_clone()
* @see f_file_copy()
* @see f_file_name_base()
- * @see fl_directory_clone()
* @see fl_directory_copy()
*/
#ifndef _di_fake_make_operate_process_type_copy_
* This alters data_make.setting.state.status:
* F_none on success.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
- *
- * @return
- * Success from: f_environment_set().
+ * Success from: f_environment_set().
*
- * Errors (with error bit) from: f_environment_set().
+ * Errors (with error bit) from: f_environment_set()
*
* @see f_environment_set()
*/
*
* F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_file_remove()
+ * Errors (with error bit) from: f_file_stat()
+ * Errors (with error bit) from: f_directory_remove()
+ * Errors (with error bit) from: f_directory_remove_custom()
* @param all
* If TRUE, then if the path is a directory, then recursively apply to all paths within the directory.
* If FALSE, then only apply to the given path.
* All make related setting data, including data from the fakefile and the build settings file.
*
* This alters data_make.setting.state.status:
- * F_none on success.
+ * F_none on unknown exit type (only success and failure are known).
+ * F_signal_quit to designate exit on success.
*
* F_failure (with error bit) on any error.
- *
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * F_signal_quit (with error bit) to designate exit on failure.
*
* @return
* F_none on unknown exit type (only success and failure are known).
* @param data_make
* All make related setting data, including data from the fakefile and the build settings file.
*
- * This alters data_make.setting.state.status:
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * This does not alter data_make.setting.state.status.
*/
#ifndef _di_fake_make_operate_process_type_fail_
extern void fake_make_operate_process_type_fail(fake_make_data_t * const data_make);
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_file_role_change()
+ * Errors (with error bit) from: fll_file_role_change_all()
+ * Errors (with error bit) from: fake_make_assure_inside_project()
+ * Errors (with error bit) from: fake_make_get_id()
* @param all
* If TRUE, then if the path is a directory, then recursively apply to all paths within the directory.
* If FALSE, then only apply to the given path.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
* @see f_file_role_change()
* @see fll_file_role_change_all()
*
* F_none on success.
*
* F_failure (with error bit) on any error.
- *
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
* @param if_not
* When TRUE, perform the if not is.
* When FALSE, perform the if is.
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_file_exists()
* @param if_not
* When TRUE, perform the if not is.
* When FALSE, perform the if is.
* @param state_process
* The operation process state.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
* @see f_file_exists()
*/
#ifndef _di_fake_make_operate_process_type_if_exist_
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: fl_conversion_dynamic_partial_to_unsigned_detect()
* @param state_process
* The operation process state.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
* @see fl_conversion_dynamic_partial_to_unsigned_detect()
*/
#ifndef _di_fake_make_operate_process_type_if_greater_if_lesser_
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_file_group_read()
+ * Errors (with error bit) from: fake_make_get_id()
* @param if_not
* When TRUE, perform the if not is.
* When FALSE, perform the if is.
* @param state_process
* The operation process state.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
* @see f_file_group_read()
*
* @see fake_make_get_id()
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_file_mode_read()
* @param if_not
* When TRUE, perform the if not is.
* When FALSE, perform the if is.
* @param state_process
* The operation process state.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
* @see f_file_mode_read()
*/
#ifndef _di_fake_make_operate_process_type_if_is_
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_file_mode_read()
+ * Errors (with error bit) from: f_file_mode_to_mode()
+ * Errors (with error bit) from: fake_make_get_id_mode()
* @param if_not
* When TRUE, perform the if not is.
* When FALSE, perform the if is.
* @param state_process
* The operation process state.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
* @see f_file_mode_read()
* @see f_file_mode_to_mode()
*
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_file_owner_read()
+ * Errors (with error bit) from: fake_make_get_id()
* @param if_not
* When TRUE, perform the if not is.
* When FALSE, perform the if is.
* @param state_process
* The operation process state.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
* @see f_file_owner_read()
*
* @see fake_make_get_id()
* F_none on success.
*
* F_failure (with error bit) on any error.
- *
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
* @param if_not
* When TRUE, perform the if not is.
* When FALSE, perform the if is.
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
- * @param status
- * F_child on child process returning.
- *
- * Success from: fake_make_operate_process_return().
+ * Success from: fake_make_operate_process_return().
*
- * Errors (with error bit) from: fake_make_operate_process_return().
+ * Errors (with error bit) from: fake_execute()
+ * Errors (with error bit) from: fake_make_operate_process_return()
*
* @return
* The return code of the index operation.
* @see fake_make_operate_process_return()
*/
#ifndef _di_fake_make_operate_process_type_index_
- extern int fake_make_operate_process_type_index(fake_make_data_t * const data_make, f_status_t * const status);
+ extern int fake_make_operate_process_type_index(fake_make_data_t * const data_make);
#endif // _di_fake_make_operate_process_type_index_
/**
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
- *
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
+ * Errors (with error bit) from: f_file_link()
*
* @see f_file_link()
*/
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_file_mode_determine()
+ * Errors (with error bit) from: f_file_mode_read()
+ * Errors (with error bit) from: f_file_mode_set()
+ * Errors (with error bit) from: fll_file_mode_set_all()
+ * Errors (with error bit) from: fake_make_get_id_mode()
* @param all
* If TRUE, then if the path is a directory, then recursively apply to all paths within the directory.
* If FALSE, then only apply to the given path.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
* @see f_file_mode_determine()
* @see f_file_mode_read()
* @see f_file_mode_set()
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
- *
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
+ * Errors (with error bit) from: f_directory_is()
+ * Errors (with error bit) from: f_file_name_base()
+ * Errors (with error bit) from: fll_file_move()
*
* @see f_directory_is()
* @see f_file_name_base()
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: fake_make_operate_section()
* @param section_stack
* The current operation stack.
- * @param status
- * The status code.
- *
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
*
* @return
* The return code of the section operation.
* @see fake_make_operate_section()
*/
#ifndef _di_fake_make_operate_process_type_operate_
- extern int fake_make_operate_process_type_operate(fake_make_data_t * const data_make, f_array_lengths_t * const section_stack, f_status_t * const status);
+ extern int fake_make_operate_process_type_operate(fake_make_data_t * const data_make, f_array_lengths_t * const section_stack);
#endif // _di_fake_make_operate_process_type_operate_
/**
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_file_role_change()
+ * Errors (with error bit) from: fll_file_role_change_all()
+ * Errors (with error bit) from: fake_make_assure_inside_project()
+ * Errors (with error bit) from: fake_make_get_id()
* @param all
* If TRUE, then if the path is a directory, then recursively apply to all paths within the directory.
* If FALSE, then only apply to the given path.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
* @see f_file_role_change()
* @see fll_file_role_change_all()
*
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
- *
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
+ * Errors (with error bit) from: f_string_dynamic_resize()
+ * Errors (with error bit) from: f_string_dynamics_resize()
+ * Errors (with error bit) from: f_string_map_multis_resize()
*
* @see f_string_dynamic_resize()
* @see f_string_dynamics_resize()
*
* F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*
- * Errors (with error bit) from: ()
- *
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
+ * Errors (with error bit) from: f_path_change()
+ * Errors (with error bit) from: f_string_dynamic_resize()
+ * Errors (with error bit) from: fake_make_path_relative()
*
* @see f_path_change()
* @see f_string_dynamic_resize()
*
* F_failure (with error bit) on any error.
*
- * F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
- *
- * Errors (with error bit) from: ()
+ * Errors (with error bit) from: f_string_dynamic_append()
+ * Errors (with error bit) from: f_string_dynamic_increase_by()
+ * Errors (with error bit) from: fake_make_operate_process_buffer_escape()
* @param arguments
* The arguments for print operation.
*
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
- *
- * @see fake_make_operate_process_buffer_escape()
* @see f_string_dynamic_append()
* @see f_string_dynamic_increase_by()
+ *
+ * @see fake_make_operate_process_buffer_escape()
*/
#ifndef _di_fake_make_operate_process_type_print_
extern void fake_make_operate_process_type_print(fake_make_data_t * const data_make);
*
* F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*
- * Errors (with error bit) from: ()
- *
- * @return
- * F_interrupt (with error bit) on interrupt.
- *
- * Success from: fake_make_operate_process_return().
- *
- * Errors (with error bit) from: fake_make_operate_process_return().
+ * Errors (with error bit) from: fake_make_operate_process_return()
+ * Errors (with error bit) from: fake_skeleton_operate()
*
* @see fake_make_operate_process_return()
* @see fake_skeleton_operate()
*
* F_failure (with error bit) on any error.
*
- * F_failure (with error bit) on any error.
- *
* Errors (with error bit) from: f_path_change()
* Errors (with error bit) from: f_string_dynamic_append()
* Errors (with error bit) from: f_string_dynamics_increase_by()
*
* F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*
- * Errors (with error bit) from: ()
- *
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
+ * Errors (with error bit) from: f_path_change_at()
+ * Errors (with error bit) from: f_string_dynamic_resize()
*
* @see f_path_change_at()
* @see f_string_dynamic_resize()
*
* F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*
- * Errors (with error bit) from: ()
- *
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
+ * Errors (with error bit) from: f_directory_touch()
+ * Errors (with error bit) from: f_file_touch()
*
* @see f_directory_touch()
* @see f_file_touch()
*
* F_interrupt (with error bit) on receiving a terminate process signal, such as an interrupt signal.
*
- * Errors (with error bit) from: ()
- *
- * @return
- * F_none on success.
- *
- * F_failure (with error bit) on any error.
+ * Errors (with error bit) from: f_file_exists()
+ * Errors (with error bit) from: f_file_stream_open()
+ * Errors (with error bit) from: f_file_stream_write()
*
* @see f_file_exists()
* @see f_file_stream_open()
void fake_make_operate_validate(fake_make_data_t * const data_make, const f_string_range_t section_name, fake_state_process_t * const state_process, f_array_lengths_t * const section_stack) {
if (!data_make) return;
- if (F_status_is_error(data_make->setting->status)) return;
+ if (F_status_is_error(data_make->setting->state.status)) return;
if (!section_stack) {
- data_make->setting->status = F_status_set_error(F_parameter);
+ data_make->setting->state.status = F_status_set_error(F_parameter);
return;
}
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
if (state_process->operation == fake_make_operation_type_break_e) {
fake_make_operate_validate_type_break(data_make);
if (data_make->cache_arguments.used > 1) {
fake_print_error_too_many_arguments(data_make->setting, data_make->main->error);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
if (data_make->cache_arguments.used) {
if (fl_string_dynamic_compare(fake_make_operation_argument_failure_s, data_make->cache_arguments.array[0]) == F_equal_to_not) {
fake_make_print_error_unsupported_type(data_make->setting, data_make->main->error, fake_make_operation_break_s, data_make->cache_arguments.array[0]);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
}
}
- return F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_validate_type_break_
memcpy(path_file_string, data_make->data->path_data_build.string, sizeof(f_char_t) * data_make->data->path_data_build.used);
memcpy(path_file_string + data_make->data->path_data_build.used, data_make->cache_arguments.array[0].string, sizeof(f_char_t) * data_make->cache_arguments.array[0].used);
- const f_status_t status = f_file_is(path_file, F_file_type_regular_d, F_false);
+ data_make->setting->state.status = f_file_is(path_file, F_file_type_regular_d, F_false);
- if (status == F_file_found_not || F_status_is_error(status)) {
- fake_print_error_file_simple(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_is), path_file, f_file_operation_find_s, fll_error_file_type_file_e);
+ if (data_make->setting->state.status == F_file_found_not || F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file_simple(data_make->setting, data_make->main->error, macro_fake_f(f_file_is), path_file, f_file_operation_find_s, fll_error_file_type_file_e);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
- if (!status) {
+ if (!data_make->setting->state.status) {
fake_make_print_error_file_type(data_make->setting, data_make->main->message, f_file_type_name_regular_s, path_file);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
}
else {
fake_make_print_error_file_name_empty(data_make->setting, data_make->main->error);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
}
- return F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_validate_type_build_
if (data_make->cache_arguments.used) {
fake_print_error_too_many_arguments(data_make->setting, data_make->main->error);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+ }
+ else {
+ data_make->setting->state.status = F_none;
}
-
- return F_none;
}
#endif // _di_fake_make_operate_validate_type_clean_top_skeleton_
if (data_make->cache_arguments.used > 1) {
f_status_t status = F_none;
- f_status_t status_file = F_none;
for (f_array_length_t i = 0; i < data_make->cache_arguments.used; ++i) {
- status_file = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
+ fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
- if (F_status_is_error(status_file)) {
- fake_print_error_operation_path_outside(data_make->setting, data_make->error, F_status_set_fine(status_file), macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]);
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]);
- status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
} // for
for (f_array_length_t i = 0; i < data_make->cache_arguments.used - 1; ++i) {
if (f_file_exists(data_make->cache_arguments.array[i], F_true) != F_true) {
- fake_print_error_file_simple(data_make->setting, data_make->main->error, status, macro_fake_f(f_file_is), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_file_e);
+ fake_print_error_file_simple(data_make->setting, data_make->main->error, macro_fake_f(f_file_is), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_file_e);
status = F_status_set_error(F_failure);
}
if (data_make->cache_arguments.used > 2) {
// The last file must be a directory.
- status_file = f_directory_is(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
- if (status_file == F_false || status_file == F_file_found_not) {
+ if (data_make->setting->state.status == F_false || data_make->setting->state.status == F_file_found_not) {
fake_make_print_error_content_not_directory(data_make->setting, data_make->main->error, "last", data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
status = F_status_set_error(F_failure);
}
- if (F_status_is_error(status_file)) {
- fake_print_error_file(data_make->setting, data_make->main->error, status_file, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_find_s, fll_error_file_type_directory_e);
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_find_s, fll_error_file_type_directory_e);
status = F_status_set_error(F_failure);
}
else {
// When the first file is a directory, then the second, if it exists, must also be a directory.
- status_file = f_directory_is(data_make->cache_arguments.array[0]);
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[0]);
- if (status_file == F_true) {
- status_file = f_directory_is(data_make->cache_arguments.array[1]);
+ if (data_make->setting->state.status == F_true) {
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[1]);
- if (status_file == F_false) {
+ if (data_make->setting->state.status == F_false) {
fake_make_print_error_content_not_directory(data_make->setting, data_make->main->error, "second", data_make->cache_arguments.array[1]);
status = F_status_set_error(F_failure);
}
}
- return status;
+ data_make->setting->state.status = status;
+
+ return;
}
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
#endif // _di_fake_make_operate_validate_type_clone_
if (!data_make->cache_arguments.used) {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
-
- if (data_make->setting_build.build_compiler.used) {
+ else if (data_make->setting_build.build_compiler.used) {
fake_make_print_error_compiler_not_specified(data_make->setting, data_make->main->error, fake_make_operation_compile_s);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+ }
+ else {
+ data_make->setting->state.status = F_none;
}
-
- return F_none;
}
#endif // _di_fake_make_operate_validate_type_compile_
if (state_process->operation_previous == fake_make_operation_type_if_e) {
fake_make_print_error_after_condition_must_not(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (!(state_process->operation_previous == fake_make_operation_type_if_e || state_process->operation_previous == fake_make_operation_type_and_e || state_process->operation_previous == fake_make_operation_type_or_e)) {
fake_make_print_error_after_condition_may_only(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (i == 23) {
fake_make_print_error_unsupported_type(data_make->setting, data_make->main->error, if_and_or, data_make->cache_arguments.array[k]);
- return F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
+
+ return;
}
state_process->condition_result = fake_condition_result_true_e;
if (data_make->cache_arguments.used < 1 + k) {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (j == 7) {
fake_make_print_error_unsupported_type(data_make->setting, data_make->main->error, if_and_or, data_make->cache_arguments.array[k]);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (data_make->cache_arguments.used > if_type_minimum[i]) {
fake_print_error_too_many_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else {
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
return;
if (data_make->cache_arguments.used < 2 + k) {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else {
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
return;
}
if (state_process->condition == fake_make_operation_if_type_if_exist_e || state_process->condition == fake_make_operation_if_type_if_not_exist_e) {
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
return;
}
fake_make_print_error_unsupported_type(data_make->setting, data_make->main->error, message_s, data_make->cache_arguments.array[k]);
}
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
f_file_mode_t mode_rule = 0;
uint8_t replace = 0;
- if (F_status_is_error(fake_make_get_id_mode(data_make->data, data_make->error, data_make->cache_arguments.array[++k], &mode_rule, &replace))) {
- data_make->setting->status = F_status_set_error(F_failure);
+ fake_make_get_id_mode(data_make, data_make->cache_arguments.array[++k], &mode_rule, &replace);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
else if (state_process->condition == fake_make_operation_if_type_if_group_e || state_process->condition == fake_make_operation_if_type_if_not_group_e) {
gid_t id = 0;
- if (F_status_is_error(fake_make_get_id(data_make, data_make->cache_arguments.array[k++], (void *) &id))) {
- data_make->setting->status = F_status_set_error(F_failure);
+ fake_make_get_id(data_make, F_false, data_make->cache_arguments.array[k++], (void *) &id);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
} // for
if (type_file & 0x80) {
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
else if (state_process->condition == fake_make_operation_if_type_if_owner_e || state_process->condition == fake_make_operation_if_type_if_not_owner_e) {
uid_t id = 0;
- if (F_status_is_error(fake_make_get_id(data_make->data, data_make->error, data_make->cache_arguments.array[k++], (void *) &id))) {
- data_make->setting->status = F_status_set_error(F_failure);
+ fake_make_get_id(data_make, F_true, data_make->cache_arguments.array[k++], (void *) &id);
+
+ if (F_status_is_error(data_make->setting->state.status)) {
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
for (; i < data_make->cache_arguments.used; ++i) {
- data_make->setting->status = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
+ fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]);
status = F_status_set_error(F_failure);
else if (state_process->condition != fake_make_operation_if_type_if_exist_e && state_process->condition != fake_make_operation_if_type_if_is_e) {
// The existence tests do not need to happen here for *_if_exists and *_if_is as those two types will handle performing them during the process stage.
- data_make->setting->status = f_file_exists(data_make->cache_arguments.array[i], dereference);
+ data_make->setting->state.status = f_file_exists(data_make->cache_arguments.array[i], dereference);
- if (data_make->setting->status == F_false) {
- data_make->setting->status = F_status_set_error(F_file_found_not);
+ if (data_make->setting->state.status == F_false) {
+ data_make->setting->state.status = F_status_set_error(F_file_found_not);
}
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_exists), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_file_e);
status = F_status_set_error(F_failure);
}
} // for
- data_make->setting->status = status;
+ data_make->setting->state.status = status;
}
else {
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
return;
if (data_make->cache_arguments.used < 2 + k) {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
f_string_range_t range = f_string_range_t_initialize;
f_number_unsigned_t number = 0;
- for (i = k; i < data_make->cache_arguments.used; ++i, data_make->setting->status = F_none) {
+ for (i = k; i < data_make->cache_arguments.used; ++i, data_make->setting->state.status = F_none) {
if (data_make->cache_arguments.array[i].used) {
range.start = 0;
}
if (range.start > range.stop) {
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else {
- data_make->setting->status = fl_conversion_dynamic_partial_to_unsigned_detect(fl_conversion_data_base_10_c, data_make->cache_arguments.array[i], range, &number);
+ data_make->setting->state.status = fl_conversion_dynamic_partial_to_unsigned_detect(fl_conversion_data_base_10_c, data_make->cache_arguments.array[i], range, &number);
}
}
else {
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
status = F_status_set_error(F_failure);
if (number > F_number_t_size_unsigned_d) {
}
} // for
- data_make->setting->status = status;
+ data_make->setting->state.status = status;
}
else {
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
return;
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_condition_
fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]);
status = F_status_set_error(F_failure);
if (data_make->cache_arguments.used > 2) {
// The last file must be a directory.
- status_file = f_directory_is(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
- if (status_file == F_false || status_file == F_file_found_not) {
+ if (data_make->setting->state.status == F_false || data_make->setting->state.status == F_file_found_not) {
fake_make_print_error_content_not_directory(data_make->setting, data_make->main->error, "last", data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
status = F_status_set_error(F_failure);
}
- if (F_status_is_error(status_file)) {
- fake_print_error_file(data_make->setting, data_make->main->error, status_file, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_identify_s, fll_error_file_type_directory_e);
+ if (F_status_is_error(data_make->setting->state.status)) {
+ fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_identify_s, fll_error_file_type_directory_e);
status = F_status_set_error(F_failure);
}
else {
// When the first file is a directory, then the second, if it exists, must also be a directory.
- status_file = f_directory_is(data_make->cache_arguments.array[0]);
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[0]);
- if (status_file == F_true) {
- status_file = f_directory_is(data_make->cache_arguments.array[1]);
+ if (data_make->setting->state.status == F_true) {
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[1]);
- if (status_file == F_false) {
+ if (data_make->setting->state.status == F_false) {
fake_make_print_error_content_not_directory(data_make->setting, data_make->main->error, "second", data_make->cache_arguments.array[1]);
status = F_status_set_error(F_failure);
}
}
- data_make->setting->status = status;
+ data_make->setting->state.status = status;
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_copy_
if (data_make->cache_arguments.used) {
fake_make_operate_validate_define_name(data_make->cache_arguments.array[0]);
- if (data_make->setting->status == F_true) {
- data_make->setting->status = F_none;
+ if (data_make->setting->state.status == F_true) {
+ data_make->setting->state.status = F_none;
return;
}
- if (data_make->setting->status == F_none) {
+ if (data_make->setting->state.status == F_none) {
fake_make_print_error_define_name_empty(data_make->setting, data_make->main->error);
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
}
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
#endif // _di_fake_make_operate_validate_type_define_
fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]);
status = F_status_set_error(F_failure);
}
} // for
- data_make->setting->status = status;
+ data_make->setting->state.status = status;
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_delete_
if (state_process->operation_previous == fake_make_operation_type_else_e) {
fake_make_print_error_after_condition_must_not(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (state_process->operation_previous == fake_make_operation_type_if_e || state_process->operation_previous == fake_make_operation_type_and_e || state_process->operation_previous == fake_make_operation_type_or_e) {
fake_make_print_error_after_condition_must_not(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (!state_process->block) {
fake_make_print_error_after_condition_no_preceding(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (data_make->cache_arguments.used) {
fake_print_error_too_many_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_validate_type_else_
if (data_make->cache_arguments.used > 1) {
fake_print_error_too_many_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (fl_string_dynamic_compare(fake_make_operation_argument_failure_s, data_make->cache_arguments.array[0]) == F_equal_to_not) {
fake_make_print_error_unsupported_type(data_make->setting, data_make->main->error, fake_make_operation_exit_s, data_make->cache_arguments.array[0]);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
}
}
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
#endif // _di_fake_make_operate_validate_type_exit_
if (fl_string_dynamic_compare(fake_make_operation_argument_ignore_s, data_make->cache_arguments.array[0]) == F_equal_to_not) {
fake_make_print_error_unsupported_type(data_make->setting, data_make->main->error, fake_make_operation_fail_s, data_make->cache_arguments.array[0]);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
}
}
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_fail_
if (!data_make->cache_arguments.used) {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else if (!data_make->setting_build.build_indexer.used) {
fake_make_print_error_indexer_not_specified(data_make->setting, data_make->main->error, fake_make_operation_index_s);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else {
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
}
#endif // _di_fake_make_operate_validate_type_index_
if (data_make->cache_arguments.used > 4) {
fake_print_error_too_many_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
status = F_status_set_error(F_failure);
if (f_path_is_absolute(data_make->cache_arguments.array[data_make->cache_arguments.used - 2]) == F_true) {
fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[data_make->cache_arguments.used - 2]);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_arguments.array[data_make->cache_arguments.used - 2]);
status = F_status_set_error(F_failure);
}
- if ((flag & 0x2) && F_status_is_error_not(data_make->setting->status)) {
+ if ((flag & 0x2) && F_status_is_error_not(data_make->setting->state.status)) {
if (f_file_exists(data_make->cache_arguments.array[data_make->cache_arguments.used - 2], F_false) != F_true) {
fake_print_error_operation_link_target_exists_not(data_make->setting, data_make->error, data_make->cache_arguments.array[data_make->cache_arguments.used - 2]);
data_make->cache_path.used = 0;
- data_make->setting->status = f_file_name_directory(full, &data_make->cache_path);
+ data_make->setting->state.status = f_file_name_directory(full, &data_make->cache_path);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_name_directory), full, f_file_operation_analyze_s, fll_error_file_type_path_e);
status = F_status_set_error(F_failure);
}
- if (F_status_is_error_not(data_make->setting->status)) {
- data_make->setting->status = f_string_dynamic_append_assure(f_path_separator_s, &data_make->cache_path);
+ if (F_status_is_error_not(data_make->setting->state.status)) {
+ data_make->setting->state.status = f_string_dynamic_append_assure(f_path_separator_s, &data_make->cache_path);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append_assure));
status = F_status_set_error(F_failure);
}
else {
- data_make->setting->status = f_string_dynamic_append(data_make->cache_arguments.array[data_make->cache_arguments.used - 2], &data_make->cache_path);
+ data_make->setting->state.status = f_string_dynamic_append(data_make->cache_arguments.array[data_make->cache_arguments.used - 2], &data_make->cache_path);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error(data_make->setting, data_make->main->error, macro_fake_f(f_string_dynamic_append));
status = F_status_set_error(F_failure);
}
}
- if (F_status_is_error_not(data_make->setting->status)) {
+ if (F_status_is_error_not(data_make->setting->state.status)) {
// The cache_path is used by fake_make_assure_inside_project(), so copy the contents into another buffer.
f_char_t target_string[data_make->cache_path.used + 1];
fake_make_assure_inside_project(data_make, target);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), target);
status = F_status_set_error(F_failure);
}
- if ((flag & 0x2) && F_status_is_error_not(data_make->setting->status)) {
+ if ((flag & 0x2) && F_status_is_error_not(data_make->setting->state.status)) {
if (f_file_exists(target, F_false) != F_true) {
fake_print_error_operation_link_target_exists_not(data_make->setting, data_make->error, target);
else {
fake_make_print_error_target_file_name_empty(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
- data_make->setting->status = status;
+ data_make->setting->state.status = status;
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_link_
for (f_array_length_t i = 0; i < data_make->cache_arguments.used; ++i) {
- data_make->setting->status = fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
+ fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]);
status = F_status_set_error(F_failure);
} // for
}
- data_make->setting->status = status;
+ data_make->setting->state.status = status;
- if (F_status_is_error(data_make->setting->status)) return;
+ if (F_status_is_error(data_make->setting->state.status)) return;
}
if (data_make->cache_arguments.used > 2) {
// The last file must be a directory.
- data_make->setting->status = f_directory_is(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
- if (data_make->setting->status == F_false || data_make->setting->status == F_file_found_not) {
+ if (data_make->setting->state.status == F_false || data_make->setting->state.status == F_file_found_not) {
fake_make_print_error_content_not_directory(data_make->setting, data_make->main->error, "last", data_make->cache_arguments.array[data_make->cache_arguments.used - 1]);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_directory_is), data_make->cache_arguments.array[data_make->cache_arguments.used - 1], f_file_operation_identify_s, fll_error_file_type_directory_e);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
else {
// When the first file is a directory, then the second, if it exists, must also be a directory.
- data_make->setting->status = f_directory_is(data_make->cache_arguments.array[0]);
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[0]);
- if (data_make->setting->status == F_true) {
- data_make->setting->status = f_directory_is(data_make->cache_arguments.array[1]);
+ if (data_make->setting->state.status == F_true) {
+ data_make->setting->state.status = f_directory_is(data_make->cache_arguments.array[1]);
- if (data_make->setting->status == F_false) {
+ if (data_make->setting->state.status == F_false) {
fake_make_print_error_content_not_directory(data_make->setting, data_make->main->error, "second", data_make->cache_arguments.array[1]);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
- break;
+ return;
}
}
}
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_move_
if (data_make->cache_arguments.used > 1) {
fake_print_error_too_many_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (id_section == data_make->fakefile.used) {
fake_make_print_error_operation_section_not_found(data_make->setting, data_make->main->error, data_make->cache_arguments.array[0]);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (section_stack->array[i] == id_section) {
fake_make_print_error_operation_recursion(data_make->setting, data_make->main->error, data_make->buffer, data_make->fakefile.array[id_section].name);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
} // for
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_operate_
}
} // for
- data_make->setting->status = status;
+ data_make->setting->state.status = status;
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_parameter_
for (; i < data_make->cache_arguments.used; ++i) {
- data_make->setting->status = f_file_is(data_make->cache_arguments.array[i], F_file_type_regular_d, F_false);
+ data_make->setting->state.status = f_file_is(data_make->cache_arguments.array[i], F_file_type_regular_d, F_false);
- if (data_make->setting->status == F_file_found_not) {
+ if (data_make->setting->state.status == F_file_found_not) {
fake_print_error_file_simple(data_make->setting, data_make->main->error, macro_fake_f(f_file_is), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_file_e);
status = F_status_set_error(F_failure);
}
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->main->error.to.stream) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_is), data_make->cache_arguments.array[i], f_file_operation_find_s, fll_error_file_type_directory_e);
}
}
} // for
- data_make->setting->status = status;
+ data_make->setting->state.status = status;
}
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_permission_
if (data_make->cache_arguments.used) {
fake_print_error_too_many_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (data_make->path.stack.used == 1) {
fake_make_print_error_pop_last_path(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else {
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
}
#endif // _di_fake_make_operate_validate_type_pop_
if (!data_make->cache_arguments.used) {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else {
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
}
#endif // _di_fake_make_operate_validate_type_run_
if (data_make->cache_arguments.used > 1) {
fake_print_error_too_many_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
if (data_make->cache_arguments.used) {
if (data_make->cache_arguments.array[0].used) {
- data_make->setting->status = f_file_is(data_make->cache_arguments.array[0], F_file_type_directory_d, F_false);
+ data_make->setting->state.status = f_file_is(data_make->cache_arguments.array[0], F_file_type_directory_d, F_false);
- if (data_make->setting->status == F_file_found_not) {
+ if (data_make->setting->state.status == F_file_found_not) {
fake_print_error_file_simple(data_make->setting, data_make->main->error, macro_fake_f(f_file_is), data_make->cache_arguments.array[0], f_file_operation_find_s, fll_error_file_type_file_e);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
if (data_make->error.verbosity != f_console_verbosity_quiet_e && data_make->main->error.to.stream) {
fake_print_error_file(data_make->setting, data_make->main->error, macro_fake_f(f_file_is), data_make->data->file_data_build_fakefile, f_file_operation_find_s, fll_error_file_type_file_e);
}
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
- if (data_make->setting->status) {
- data_make->setting->status = F_none;
+ if (data_make->setting->state.status) {
+ data_make->setting->state.status = F_none;
}
else {
fake_make_print_error_content_not_directory(data_make->setting, data_make->main->error, 0, data_make->cache_arguments.array[0]);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
else {
fake_make_print_error_file_name_empty(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_to_
if (fl_string_dynamic_compare(fake_make_operation_argument_directory_s, data_make->cache_arguments.array[0]) == F_equal_to_not) {
fake_make_print_error_unsupported_type(data_make->setting, data_make->main->error, f_file_type_name_file_s, data_make->cache_arguments.array[0]);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[i]);
- if (F_status_is_error(setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[i]);
status = F_status_set_error(F_failure);
}
} // for
- data_make->setting->status = status;
+ data_make->setting->state.status = status;
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_touch_
#ifndef _di_fake_make_operate_validate_type_write_
- f_status_t fake_make_operate_validate_type_write(fake_make_data_t * const data_make) {
+ void fake_make_operate_validate_type_write(fake_make_data_t * const data_make) {
if (data_make->cache_arguments.used) {
if (!data_make->cache_arguments.array[0].used) {
fake_print_error_argument_empty(data_make->setting, data_make->error, 1);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
return;
}
fake_make_assure_inside_project(data_make, data_make->cache_arguments.array[0]);
- if (F_status_is_error(data_make->setting->status)) {
+ if (F_status_is_error(data_make->setting->state.status)) {
fake_print_error_operation_path_outside(data_make->setting, data_make->error, macro_fake_f(fake_make_assure_inside_project), data_make->cache_path.used ? data_make->cache_path : data_make->cache_arguments.array[0]);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
else {
- data_make->setting->status = F_none;
+ data_make->setting->state.status = F_none;
}
}
else {
fake_print_error_requires_more_arguments(data_make->setting, data_make->main->error);
- data_make->setting->status = F_status_set_error(F_failure);
+ data_make->setting->state.status = F_status_set_error(F_failure);
}
}
#endif // _di_fake_make_operate_validate_type_write_
#endif
#ifndef _di_fake_print_verbose_clone_
- f_status_t fake_print_verbose_clone(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t source, const f_string_static_t destination) {
+ void fake_print_verbose_clone(const f_string_static_t source, const f_string_static_t destination, void * const void_recurse) {
- if (!setting) return F_status_set_error(F_output_not);
- if (print.verbosity < f_console_verbosity_verbose_e) return F_output_not;
+ if (!void_recurse) return;
- fake_print_wrapped_variables(setting, print, "Cloned ", source, " to ", destination, 0);
+ f_directory_recurse_t * const recurse = (f_directory_recurse_t * const) void_recurse;
- return F_none;
+ if (!recurse->state.custom) {
+ recurse->state.status = F_output_not;
+
+ return;
+ }
+
+ fake_data_t * const data = (fake_data_t * const) recurse->state.custom;
+
+ if (data->main->message.verbosity < f_console_verbosity_verbose_e) {
+ recurse->state.status = F_output_not;
+
+ return;
+ }
+
+ fake_print_wrapped_variables(data->setting, data->main->message, "Cloned ", source, " to ", destination, 0);
}
#endif // _di_fake_print_verbose_clone_
#ifndef _di_fake_print_verbose_copy_
- f_status_t fake_print_verbose_copy(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t source, const f_string_static_t destination) {
+ void fake_print_verbose_copy(const f_string_static_t source, const f_string_static_t destination, void * const void_recurse) {
- if (!setting) return F_status_set_error(F_output_not);
- if (print.verbosity < f_console_verbosity_verbose_e) return F_output_not;
+ if (!void_recurse) return;
+
+ f_directory_recurse_t * const recurse = (f_directory_recurse_t * const) void_recurse;
+
+ if (!recurse->state.custom) {
+ recurse->state.status = F_output_not;
- fll_print_format("Copied '%Q' to '%Q'.%r", output, source, destination, f_string_eol_s);
+ return;
+ }
+
+ fake_data_t * const data = (fake_data_t * const) recurse->state.custom;
+
+ if (data->main->message.verbosity < f_console_verbosity_verbose_e) {
+ recurse->state.status = F_output_not;
+
+ return;
+ }
+
+ fake_print_wrapped_variables(data->setting, data->main->message, "Copied ", source, " to ", destination, 0);
}
#endif // _di_fake_print_verbose_copy_
#ifndef _di_fake_print_verbose_create_directory_
- f_status_t fake_print_verbose_create_directory(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t path) {
+ void fake_print_verbose_create_directory(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t path) {
if (!setting) return F_status_set_error(F_output_not);
if (print.verbosity < f_console_verbosity_verbose_e) return F_output_not;
#endif // _di_fake_print_verbose_file_pre_populated_
#ifndef _di_fake_print_verbose_move_
- f_status_t fake_print_verbose_move(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t source, const f_string_static_t destination) {
+ void fake_print_verbose_move(const f_string_static_t source, const f_string_static_t destination, void * const void_recurse) {
- if (!setting) return F_status_set_error(F_output_not);
- if (print.verbosity < f_console_verbosity_verbose_e) return F_output_not;
+ if (!void_recurse) return;
+
+ f_directory_recurse_t * const recurse = (f_directory_recurse_t * const) void_recurse;
+
+ if (!recurse->state.custom) {
+ recurse->state.status = F_output_not;
+
+ return;
+ }
+
+ fake_data_t * const data = (fake_data_t * const) recurse->state.custom;
+
+ if (data->main->message.verbosity < f_console_verbosity_verbose_e) {
+ recurse->state.status = F_output_not;
+
+ return;
+ }
- fll_print_format("Moved '%Q' to '%Q'.%r", output, source, destination, f_string_eol_s);
+ fake_print_wrapped_variables(data->setting, data->main->message, "Moved ", source, " to ", destination, 0);
}
#endif // _di_fake_print_verbose_move_
/**
* Helper function for performing a verbose print for a file clone operation.
*
- * @param setting
- * The main program settings.
+ * This is intended to be passed as a callback to f_directory_recurse_t.verbose.
+ * The f_directory_recurse_t.state.custom must be the fake_data_t.
*
- * This does not alter setting.state.status.
- * @param print
- * Designates the how and where to print.
* @param source
* The source string.
* @param destination
* The destination string.
+ * @param recurse
+ * The recurse.state.custom must be a structure of type fake_data_t.
*
- * @return
- * F_none on success.
- * F_output_not on success, but no printing is performed.
- *
- * F_output_not (with error bit) if setting is NULL.
+ * This alters recurse.state.status:
+ * F_none on success.
+ * F_output_not on success, but no printing is performed.
*
- * @see fake_print_wrapped_variables()
+ * @see fll_print_format()
*/
#ifndef _di_fake_print_verbose_clone_
- extern f_status_t fake_print_verbose_clone(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t source, const f_string_static_t destination);
+ extern void fake_print_verbose_clone(const f_string_static_t source, const f_string_static_t destination, void * const recurse);
#endif // _di_fake_print_verbose_clone_
/**
* Helper function for performing a verbose print for a file copy operation.
*
- * @param setting
- * The main program settings.
+ * This is intended to be passed as a callback to f_directory_recurse_t.verbose.
+ * The f_directory_recurse_t.state.custom must be the fake_data_t.
*
- * This does not alter setting.state.status.
- * @param print
- * Designates the how and where to print.
* @param source
* The source string.
* @param destination
* The destination string.
+ * @param recurse
+ * The recurse.state.custom must be a structure of type fake_data_t.
*
- * @return
- * F_none on success.
- * F_output_not on success, but no printing is performed.
- *
- * F_output_not (with error bit) if setting is NULL.
+ * This alters recurse.state.status:
+ * F_none on success.
+ * F_output_not on success, but no printing is performed.
*
* @see fll_print_format()
*/
#ifndef _di_fake_print_verbose_copy_
- extern f_status_t fake_print_verbose_copy(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t source, const f_string_static_t destination);
+ extern void fake_print_verbose_copy(const f_string_static_t source, const f_string_static_t destination, void * const recurse);
#endif // _di_fake_print_verbose_copy_
/**
/**
* Print a verbose message for when a file is moved.
*
- * @param setting
- * The main program settings.
+ * This is intended to be passed as a callback to f_directory_recurse_t.verbose.
+ * The f_directory_recurse_t.state.custom must be the fake_data_t.
*
- * This does not alter setting.state.status.
- * @param print
- * Designates the how and where to print.
* @param source
* The source string.
* @param destination
* The destination string.
+ * @param recurse
+ * The recurse.state.custom must be a structure of type fake_data_t.
*
- * @return
- * F_none on success.
- * F_output_not on success, but no printing is performed.
- *
- * F_output_not (with error bit) if setting is NULL.
+ * This alters recurse.state.status:
+ * F_none on success.
+ * F_output_not on success, but no printing is performed.
*
* @see fll_print_format()
*/
#ifndef _di_fake_print_verbose_move_
- extern f_status_t fake_print_verbose_move(fake_setting_t * const setting, const fl_print_t print, const f_string_static_t source, const f_string_static_t destination);
+ extern void fake_print_verbose_move(const f_string_static_t source, const f_string_static_t destination, void * const recurse);
#endif // _di_fake_print_verbose_move_
#ifdef __cplusplus
status = fake_skeleton_operate_directory_create(data, path[i]);
if (F_status_is_error(status)) {
- fake_print_error(data->setting, data->main->error, status, macro_fake_f(fake_skeleton_operate_directory_create));
+ fake_print_error(data->setting, data->main->error, macro_fake_f(fake_skeleton_operate_directory_create));
return status;
}