From: Kevin Day Date: Sun, 9 Nov 2025 04:37:28 +0000 (-0600) Subject: Update: Support the status debug define. X-Git-Tag: 0.7.3~15 X-Git-Url: https://www.git.kevux.org/?a=commitdiff_plain;h=d5b9398a9710df630235616bfc00f9d048c27421;p=controller Update: Support the status debug define. The `controller_debug_file_line_d` has been implemented in FLL as `F_status_debug_source_d`. Switch to using the FLL `F_status_debug_source_d` in place of `controller_debug_file_line_d`. Update the build settings modes. --- diff --git a/data/build/defines b/data/build/defines index 4a3be13..f282d0f 100644 --- a/data/build/defines +++ b/data/build/defines @@ -1,8 +1,7 @@ # fss-0000 -_di_libcap_ Disable libcap support, allow for compiling and linking without libcap (-lcap). -_di_thread_support_ Disables thread support. -_en_controller_debug_ Enable debug support (such as printing file and line number in error messages). +_di_libcap_ Disable libcap support, allow for compiling and linking without libcap (-lcap). +_di_thread_support_ Disables thread support. _libcap_legacy_only_ Disable functionality provided by later versions of libcap (2.43 and later). diff --git a/data/build/settings b/data/build/settings index 9bd6068..b49d93c 100644 --- a/data/build/settings +++ b/data/build/settings @@ -4,7 +4,7 @@ # - android: Compile on an android system (using Termux; may need modification depending on the android system). # - clang: Use CLang rather than the default, which is generally GCC. # - coverage: Compile for building coverage. -# - debug: Enable debug support. +# - debug: Enable debugging, such as compile time debug options. # - fanalyzer: Compile using GCC's -fanalyzer compile time option. # - gcc: Use GCC specific settings. # - gcc_13: Use GCC version 13 or greater specific settings. @@ -26,7 +26,7 @@ version_file micro version_target minor modes android clang coverage debug gcc gcc_13 fanalyzer individual individual_thread level monolithic test thread threadless -modes_default monolithic thread gcc debug +modes_default debug gcc monolithic thread build_compiler gcc build_compiler-clang clang @@ -128,7 +128,7 @@ environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY L #defines -D_di_libcap_ defines -D_libcap_legacy_only_ defines-android -D_di_f_thread_attribute_affinity_get_ -D_di_f_thread_attribute_affinity_set_ -D_di_f_thread_attribute_concurrency_get_ -D_di_f_thread_attribute_concurrency_set_ -D_di_f_thread_attribute_default_get_ -D_di_f_thread_attribute_default_set_ -D_di_f_thread_cancel_ -D_di_f_thread_cancel_state_set_ -D_di_f_thread_cancel_test_ -D_di_f_thread_join_try_ -D_di_f_thread_join_timed_ -D_pthread_mutex_prioceiling_unsupported_ -D_di_f_thread_semaphore_file_close_ -D_di_f_thread_semaphore_file_open_ -D_di_f_thread_semaphore_file_delete_ -D_di_f_thread_cancel_type_set_ -defines-debug -D_en_controller_debug_ +defines-debug -D_en_status_debug_ defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ defines-threadless -D_di_thread_support_ diff --git a/data/build/settings.controller b/data/build/settings.controller index ec4f54c..f6f6156 100644 --- a/data/build/settings.controller +++ b/data/build/settings.controller @@ -4,6 +4,7 @@ # - android: Compile on an android system (using Termux; may need modification depending on the android system). # - clang: Use CLang rather than the default, which is generally GCC. # - coverage: Compile for building coverage. +# - debug: Enable debugging, such as compile time debug options. # - fanalyzer: Compile using GCC's -fanalyzer compile time option. # - gcc: Use GCC specific settings. # - gcc_13: Use GCC version 13 or greater specific settings. @@ -24,8 +25,8 @@ version_micro 3 version_file micro version_target minor -modes android clang coverage gcc gcc_13 fanalyzer individual individual_thread level monolithic test thread threadless -modes_default monolithic thread gcc +modes android clang coverage debug gcc gcc_13 fanalyzer individual individual_thread level monolithic test thread threadless +modes_default debug gcc monolithic thread build_compiler gcc build_compiler-clang clang @@ -89,6 +90,7 @@ environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY L #defines -D_di_libcap_ defines -D_libcap_legacy_only_ defines-android -D_di_f_thread_attribute_affinity_get_ -D_di_f_thread_attribute_affinity_set_ -D_di_f_thread_attribute_concurrency_get_ -D_di_f_thread_attribute_concurrency_set_ -D_di_f_thread_attribute_default_get_ -D_di_f_thread_attribute_default_set_ -D_di_f_thread_cancel_ -D_di_f_thread_cancel_state_set_ -D_di_f_thread_cancel_test_ -D_di_f_thread_join_try_ -D_di_f_thread_join_timed_ -D_pthread_mutex_prioceiling_unsupported_ -D_di_f_thread_semaphore_file_close_ -D_di_f_thread_semaphore_file_open_ -D_di_f_thread_semaphore_file_delete_ -D_di_f_thread_cancel_type_set_ +defines-debug -D_en_f_status_debug_ defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ defines-threadless -D_di_thread_support_ diff --git a/data/build/settings.init b/data/build/settings.init index 5deb3c7..2f84a39 100644 --- a/data/build/settings.init +++ b/data/build/settings.init @@ -4,6 +4,7 @@ # - android: Compile on an android system (using Termux; may need modification depending on the android system). # - clang: Use CLang rather than the default, which is generally GCC. # - coverage: Compile for building coverage. +# - debug: Enable debugging, such as compile time debug options. # - fanalyzer: Compile using GCC's -fanalyzer compile time option. # - gcc: Use GCC specific settings. # - gcc_13: Use GCC version 13 or greater specific settings. @@ -24,8 +25,8 @@ version_micro 3 version_file micro version_target minor -modes android clang coverage gcc gcc_13 fanalyzer individual individual_thread level monolithic test thread threadless -modes_default monolithic thread gcc +modes android clang coverage debug gcc gcc_13 fanalyzer individual individual_thread level monolithic test thread threadless +modes_default debug gcc monolithic thread build_compiler gcc build_compiler-clang clang @@ -89,6 +90,7 @@ environment LANG LC_ALL LC_COLLATE LC_CTYPE LC_FASTMSG LC_MESSAGES LC_MONETARY L #defines -D_di_libcap_ defines -D_libcap_legacy_only_ defines-android -D_di_f_thread_attribute_affinity_get_ -D_di_f_thread_attribute_affinity_set_ -D_di_f_thread_attribute_concurrency_get_ -D_di_f_thread_attribute_concurrency_set_ -D_di_f_thread_attribute_default_get_ -D_di_f_thread_attribute_default_set_ -D_di_f_thread_cancel_ -D_di_f_thread_cancel_state_set_ -D_di_f_thread_cancel_test_ -D_di_f_thread_join_try_ -D_di_f_thread_join_timed_ -D_pthread_mutex_prioceiling_unsupported_ -D_di_f_thread_semaphore_file_close_ -D_di_f_thread_semaphore_file_open_ -D_di_f_thread_semaphore_file_delete_ -D_di_f_thread_cancel_type_set_ +defines-debug -D_en_f_status_debug_ defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ defines-threadless -D_di_thread_support_ diff --git a/data/build/stand_alone/config.h b/data/build/stand_alone/config.h index ca6075a..eec26fc 100644 --- a/data/build/stand_alone/config.h +++ b/data/build/stand_alone/config.h @@ -1139,6 +1139,7 @@ #define _di_f_statess_destroy_callback_ #define _di_f_statess_t_ //#define _di_f_status_e_ +//#define _di_f_status_debug_d_ //#define _di_f_status_mask_d_ //#define _di_f_status_t_ #define _di_f_statuss_t_ diff --git a/data/build/stand_alone/settings.controller b/data/build/stand_alone/settings.controller index 924220d..6a8cfab 100644 --- a/data/build/stand_alone/settings.controller +++ b/data/build/stand_alone/settings.controller @@ -7,10 +7,12 @@ # # Modes: # - android: Compile on an android system (using Termux; may need modification depending on the android system). -# - clang: Use clang rather than the default, which is generally GCC. +# - clang: Use CLang rather than the default, which is generally GCC. # - coverage: Compile for building coverage. +# - debug: Enable debugging, such as compile time debug options. # - fanalyzer: Compile using GCC's -fanalyzer compile time option. # - gcc: Use GCC specific settings. +# - gcc_13: Use GCC version 13 or greater specific settings. # - test: Compile for a test, such as unit testing. # - thread: Compile with thread support. # - threadless: Compile without thread support. @@ -25,8 +27,8 @@ version_micro 3 version_file micro version_target minor -modes android clang coverage fanalyzer gcc test thread threadless -modes_default thread gcc +modes android clang coverage debug fanalyzer gcc gcc_13 test thread threadless +modes_default debug gcc thread build_compiler gcc build_compiler-clang clang @@ -154,6 +156,7 @@ defines -include sources/c/config.h -I sources/c/ #defines -D_di_libcap_ defines -D_libcap_legacy_only_ defines-android -D_di_f_thread_attribute_affinity_get_ -D_di_f_thread_attribute_affinity_set_ -D_di_f_thread_attribute_concurrency_get_ -D_di_f_thread_attribute_concurrency_set_ -D_di_f_thread_attribute_default_get_ -D_di_f_thread_attribute_default_set_ -D_di_f_thread_cancel_ -D_di_f_thread_cancel_state_set_ -D_di_f_thread_cancel_test_ -D_di_f_thread_join_try_ -D_di_f_thread_join_timed_ -D_pthread_mutex_prioceiling_unsupported_ -D_di_f_thread_semaphore_file_close_ -D_di_f_thread_semaphore_file_open_ -D_di_f_thread_semaphore_file_delete_ -D_di_f_thread_cancel_type_set_ +defines-debug -D_en_f_status_debug_ defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ defines-threadless -D_di_thread_support_ diff --git a/data/build/stand_alone/settings.init b/data/build/stand_alone/settings.init index 48ce5a3..2ed979a 100644 --- a/data/build/stand_alone/settings.init +++ b/data/build/stand_alone/settings.init @@ -7,10 +7,12 @@ # # Modes: # - android: Compile on an android system (using Termux; may need modification depending on the android system). -# - clang: Use clang rather than the default, which is generally GCC. +# - clang: Use CLang rather than the default, which is generally GCC. # - coverage: Compile for building coverage. +# - debug: Enable debugging, such as compile time debug options. # - fanalyzer: Compile using GCC's -fanalyzer compile time option. # - gcc: Use GCC specific settings. +# - gcc_13: Use GCC version 13 or greater specific settings. # - test: Compile for a test, such as unit testing. # - thread: Compile with thread support. # - threadless: Compile without thread support. @@ -25,8 +27,8 @@ version_micro 3 version_file micro version_target minor -modes android clang coverage fanalyzer gcc test thread threadless -modes_default thread gcc +modes android clang coverage debug fanalyzer gcc gcc_13 test thread threadless +modes_default debug gcc thread build_compiler gcc build_compiler-clang clang @@ -154,6 +156,7 @@ defines -include sources/c/config.h -I sources/c/ #defines -D_di_libcap_ defines -D_libcap_legacy_only_ defines-android -D_di_f_thread_attribute_affinity_get_ -D_di_f_thread_attribute_affinity_set_ -D_di_f_thread_attribute_concurrency_get_ -D_di_f_thread_attribute_concurrency_set_ -D_di_f_thread_attribute_default_get_ -D_di_f_thread_attribute_default_set_ -D_di_f_thread_cancel_ -D_di_f_thread_cancel_state_set_ -D_di_f_thread_cancel_test_ -D_di_f_thread_join_try_ -D_di_f_thread_join_timed_ -D_pthread_mutex_prioceiling_unsupported_ -D_di_f_thread_semaphore_file_close_ -D_di_f_thread_semaphore_file_open_ -D_di_f_thread_semaphore_file_delete_ -D_di_f_thread_cancel_type_set_ +defines-debug -D_en_f_status_debug_ defines-thread -D_pthread_attr_unsupported_ -D_pthread_sigqueue_unsupported_ defines-threadless -D_di_thread_support_ diff --git a/sources/c/program/controller/main/common/define.h b/sources/c/program/controller/main/common/define.h index 85efc84..01825f6 100644 --- a/sources/c/program/controller/main/common/define.h +++ b/sources/c/program/controller/main/common/define.h @@ -145,33 +145,6 @@ extern "C" { #define controller_with_session_same_d 0x4 #endif // _di_controller_with_d_ -/** - * Debug related macros and defines - * - * The line_number and line_string macro parts are both required due to how macro expansion works, even with the stringify macro (the '#'). - * - * controller_debug_*_d: - * - file_line: Print the current file and line number (and possibly the function, if __FUNCTION__ is supported). - * - * macro_controller_debug_*: - * - line_number: Convert the pre-defined __LINE__ macro into a string for use by the file_line, final part. - * - line_string: Convert the pre-defined __LINE__ macro into a string for use by the file_line, first part. - */ -#ifndef _di_controller_debug_d_ - #ifdef _en_controller_debug_ - #define macro_controller_debug_line_number(line) #line - #define macro_controller_debug_line_string(line) macro_controller_debug_line_number(line) - - #ifdef __FUNCTION__ - #define controller_debug_file_line_d "" __FILE__ ":" macro_controller_debug_line_string(__LINE__) ":" __FUNCTION__ - #else - #define controller_debug_file_line_d "" __FILE__ ":" macro_controller_debug_line_string(__LINE__) - #endif // __FUNCTION__ - #else - #define controller_debug_file_line_d "" - #endif // _en_controller_debug_ -#endif // _di_controller_with_d_ - #ifdef __cplusplus } // extern "C" #endif diff --git a/sources/c/program/controller/main/entry.c b/sources/c/program/controller/main/entry.c index c00d85f..afc2ba3 100644 --- a/sources/c/program/controller/main/entry.c +++ b/sources/c/program/controller/main/entry.c @@ -101,7 +101,7 @@ extern "C" { f_fss_apply_delimit(main->thread.cache.delimits, &main->thread.cache.buffer_file, &state); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_fss_apply_delimit), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_fss_apply_delimit), F_true, F_status_debug_source_d); } } } @@ -114,7 +114,7 @@ extern "C" { state.status = f_memory_array_increase_by(main->thread.cache.object_items.used, sizeof(f_range_t), (void **) &main->thread.cache.object_items.array, &main->thread.cache.object_items.used, &main->thread.cache.object_items.size); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase_by), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase_by), F_true, F_status_debug_source_d); } else { @@ -150,7 +150,7 @@ extern "C" { state.status = f_memory_array_increase(controller_allocation_small_d, sizeof(controller_entry_item_t), (void **) &entry->items.array, &entry->items.used, &entry->items.size); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_status_debug_source_d); break; } @@ -158,7 +158,7 @@ extern "C" { state.status = f_string_dynamic_partial_append(main->thread.cache.buffer_file, main->thread.cache.object_items.array[i], &main->thread.cache.action.name_item); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append), F_true, F_status_debug_source_d); break; } @@ -166,7 +166,7 @@ extern "C" { f_fss_count_lines(main->thread.cache.buffer_file, main->thread.cache.object_items.array[i].start, &main->thread.cache.action.line_item, &state); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_fss_count_lines), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_fss_count_lines), F_true, F_status_debug_source_d); break; } @@ -176,7 +176,7 @@ extern "C" { for (j = (code & 0x1) ? 1 : 0; j < entry->items.used; ++j) { if (f_compare_dynamic(entry->items.array[j].name, main->thread.cache.action.name_item) == F_equal_to) { - controller_print_warning_entry_item_duplicate_ignore(&main->program.warning, &main->thread.cache, is_entry, main->thread.cache.action.name_item, controller_debug_file_line_d); + controller_print_warning_entry_item_duplicate_ignore(&main->program.warning, &main->thread.cache, is_entry, main->thread.cache.action.name_item, F_status_debug_source_d); code |= 0x2; @@ -205,7 +205,7 @@ extern "C" { state.status = f_memory_array_increase(at, sizeof(controller_entry_item_t), (void **) &entry->items.array, &entry->items.used, &entry->items.size); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase_by), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase_by), F_true, F_status_debug_source_d); break; } @@ -217,7 +217,7 @@ extern "C" { state.status = f_memory_array_resize(2, sizeof(controller_entry_item_t), (void **) &entry->items.array, &entry->items.used, &entry->items.size); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_memory_array_resize), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_memory_array_resize), F_true, F_status_debug_source_d); break; } @@ -246,7 +246,7 @@ extern "C" { if (F_status_set_fine(state.status) != F_interrupt) { controller_lock_print(main->program.error.to, &main->thread); - controller_print_error_entry_cache(&main->program.error, &main->thread.cache.action, is_entry, controller_debug_file_line_d); + controller_print_error_entry_cache(&main->program.error, &main->thread.cache.action, is_entry, F_status_debug_source_d); controller_unlock_print_flush(main->program.error.to, &main->thread); } @@ -343,7 +343,7 @@ extern "C" { entry->status = controller_status_simplify_error(F_status_set_fine(state.status)); if (F_status_set_fine(state.status) != F_interrupt) { - controller_print_error_entry_cache(&main->program.error, &main->thread.cache.action, is_entry, controller_debug_file_line_d); + controller_print_error_entry_cache(&main->program.error, &main->thread.cache.action, is_entry, F_status_debug_source_d); } } else { diff --git a/sources/c/program/controller/main/entry/action.c b/sources/c/program/controller/main/entry/action.c index d7f152e..264c54f 100644 --- a/sources/c/program/controller/main/entry/action.c +++ b/sources/c/program/controller/main/entry/action.c @@ -34,7 +34,7 @@ extern "C" { } if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(fll_fss_extended_read), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(fll_fss_extended_read), F_true, F_status_debug_source_d); return state.status; } @@ -42,7 +42,7 @@ extern "C" { f_fss_apply_delimit(main->thread.cache.delimits, &main->thread.cache.buffer_file, &state); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_fss_apply_delimit), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_fss_apply_delimit), F_true, F_status_debug_source_d); return state.status; } @@ -52,7 +52,7 @@ extern "C" { state.status = f_memory_array_increase_by(main->thread.cache.object_actions.used, sizeof(controller_entry_action_t), (void **) &actions->array, &actions->used, &actions->size); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase_by), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase_by), F_true, F_status_debug_source_d); return state.status; } @@ -83,7 +83,7 @@ extern "C" { f_fss_count_lines(main->thread.cache.buffer_file, main->thread.cache.object_actions.array[i].start, &main->thread.cache.action.line_action, &state); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_fss_count_lines), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_fss_count_lines), F_true, F_status_debug_source_d); break; } @@ -93,7 +93,7 @@ extern "C" { state.status = f_rip_dynamic_partial_nulless(main->thread.cache.buffer_file, main->thread.cache.object_actions.array[i], &main->thread.cache.action.name_action); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_rip_dynamic_partial_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_rip_dynamic_partial_nulless), F_true, F_status_debug_source_d); break; } @@ -144,7 +144,7 @@ extern "C" { actions->array[actions->used].type = controller_entry_action_type_timeout_e; } else { - controller_print_warning_entry_action_unknown(&main->program.warning, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, main->thread.cache.action.name_action, controller_debug_file_line_d); + controller_print_warning_entry_action_unknown(&main->program.warning, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, main->thread.cache.action.name_action, F_status_debug_source_d); continue; } @@ -178,7 +178,7 @@ extern "C" { if (main->thread.cache.content_actions.array[i].used < at_least || main->thread.cache.content_actions.array[i].used > at_most) { action->status = controller_status_simplify_error(F_parameter); - controller_print_error_entry_action_requires_range(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, main->thread.cache.action.name_action, at_least, at_most, action->type, controller_debug_file_line_d); + controller_print_error_entry_action_requires_range(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, main->thread.cache.action.name_action, at_least, at_most, action->type, F_status_debug_source_d); } else { action->status = F_okay; @@ -196,7 +196,7 @@ extern "C" { state.status = f_memory_array_increase_by(allocate, sizeof(f_string_dynamic_t), (void **) &action->parameters.array, &action->parameters.used, &action->parameters.size); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase_by), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase_by), F_true, F_status_debug_source_d); action->status = state.status; @@ -216,7 +216,7 @@ extern "C" { state.status = f_memory_array_increase_by((main->thread.cache.content_actions.array[i].array[j].stop - main->thread.cache.content_actions.array[i].array[j].start) + 1, sizeof(f_char_t), (void **) &action->parameters.array[j].string, &action->parameters.array[j].used, &action->parameters.array[j].size); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase_by), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase_by), F_true, F_status_debug_source_d); break; } @@ -224,7 +224,7 @@ extern "C" { state.status = f_string_dynamic_partial_append_nulless(main->thread.cache.buffer_file, main->thread.cache.content_actions.array[i].array[j], &action->parameters.array[j]); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_status_debug_source_d); break; } @@ -240,7 +240,7 @@ extern "C" { state.status = controller_path_canonical_relative(main, main->process.path_current, action->parameters.array[0], &main->thread.cache.buffer_path); if (F_status_is_error(state.status)) { - controller_print_error_entry_file(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(controller_path_canonical_relative), F_true, main->thread.cache.action.generic, f_file_operation_analyze_s, fll_error_file_type_path_e, controller_debug_file_line_d); + controller_print_error_entry_file(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(controller_path_canonical_relative), F_true, main->thread.cache.action.generic, f_file_operation_analyze_s, fll_error_file_type_path_e, F_status_debug_source_d); action->status = state.status; @@ -262,7 +262,7 @@ extern "C" { status_action = action->status; } - controller_print_error_entry_action_parameter_empty(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, "first parameter", controller_debug_file_line_d); + controller_print_error_entry_action_parameter_empty(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, "first parameter", F_status_debug_source_d); } if (action->parameters.array[1].used) { @@ -271,7 +271,7 @@ extern "C" { state.status = f_file_name_base(action->parameters.array[1], &main->thread.cache.buffer_path); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_file_name_base), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(f_file_name_base), F_true, F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_action = controller_status_simplify_error(state.status); @@ -287,7 +287,7 @@ extern "C" { } else { if (f_compare_dynamic(action->parameters.array[1], main->thread.cache.buffer_path) == F_equal_to_not) { - controller_print_error_entry_action_parameter_second_base(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, action->parameters.array[1], main->thread.cache.buffer_path, controller_debug_file_line_d); + controller_print_error_entry_action_parameter_second_base(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, action->parameters.array[1], main->thread.cache.buffer_path, F_status_debug_source_d); action->status = controller_status_simplify_error(F_parameter); @@ -304,7 +304,7 @@ extern "C" { status_action = action->status; } - controller_print_error_entry_action_parameter_empty(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, "second parameter", controller_debug_file_line_d); + controller_print_error_entry_action_parameter_empty(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, "second parameter", F_status_debug_source_d); } for (j = 2; j < action->parameters.used; ++j) { @@ -327,7 +327,7 @@ extern "C" { } } - controller_print_error_entry_action_invalid_allow_3(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, "third parameter (and beyond)", action->parameters.array[j], controller_asynchronous_s, controller_require_s, controller_wait_s, controller_debug_file_line_d); + controller_print_error_entry_action_invalid_allow_3(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, "third parameter (and beyond)", action->parameters.array[j], controller_asynchronous_s, controller_require_s, controller_wait_s, F_status_debug_source_d); } } // for } @@ -339,7 +339,7 @@ extern "C" { status_action = action->status; } - controller_print_error_entry_action_unsupported_reserve(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, controller_main_s, controller_debug_file_line_d); + controller_print_error_entry_action_unsupported_reserve(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, controller_main_s, F_status_debug_source_d); } } else if (action->type == controller_entry_action_type_timeout_e) { @@ -360,7 +360,7 @@ extern "C" { status_action = action->status; } - controller_print_error_entry_action_invalid_allow_3(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, 0, action->parameters.array[0], controller_kill_s, controller_start_s, controller_stop_s, controller_debug_file_line_d); + controller_print_error_entry_action_invalid_allow_3(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, 0, action->parameters.array[0], controller_kill_s, controller_start_s, controller_stop_s, F_status_debug_source_d); } if (action->status == F_okay) { @@ -380,14 +380,14 @@ extern "C" { } if (F_status_set_fine(state.status) == F_memory_not) { - controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_to_unsigned_detect), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, entry->flag & controller_entry_flag_is_e, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_to_unsigned_detect), F_true, F_status_debug_source_d); status_action = state.status; break; } - controller_print_error_entry_action_unsupported_number(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, action->parameters.array[1], controller_debug_file_line_d); + controller_print_error_entry_action_unsupported_number(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, action->parameters.array[1], F_status_debug_source_d); } } else { @@ -403,7 +403,7 @@ extern "C" { else { action->status = controller_status_simplify_error(F_support_not); - controller_print_error_entry_action_invalid_allow_1(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, 0, action->parameters.array[0], controller_wait_s, controller_debug_file_line_d); + controller_print_error_entry_action_invalid_allow_1(&main->program.error, &main->thread.cache.action, entry->flag & controller_entry_flag_is_e, 0, action->parameters.array[0], controller_wait_s, F_status_debug_source_d); } } } diff --git a/sources/c/program/controller/main/entry/preprocess.c b/sources/c/program/controller/main/entry/preprocess.c index 61d5473..8d63268 100644 --- a/sources/c/program/controller/main/entry/preprocess.c +++ b/sources/c/program/controller/main/entry/preprocess.c @@ -36,7 +36,7 @@ extern "C" { status = f_memory_array_resize(2, sizeof(f_number_unsigned_t), (void **) &cache->ats.array, &cache->ats.used, &cache->ats.size); if (F_status_is_error(status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_memory_array_resize), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_memory_array_resize), F_true, F_status_debug_source_d); return status; } @@ -53,7 +53,7 @@ extern "C" { status = f_string_dynamic_append_nulless(entry->items.array[0].name, &cache->action.name_item); if (F_status_is_error(status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append_nulless), F_true, F_status_debug_source_d); return status; } @@ -70,14 +70,14 @@ extern "C" { status2 = f_string_dynamic_append_nulless(controller_entry_action_type_name(actions->array[cache->ats.array[at_j]].type), &cache->action.name_action); if (F_status_is_error(status2)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status2), macro_controller_f(f_string_dynamic_append_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status2), macro_controller_f(f_string_dynamic_append_nulless), F_true, F_status_debug_source_d); return status2; } if (actions->array[cache->ats.array[at_j]].type == controller_entry_action_type_ready_e) { if (main->process.ready == controller_process_ready_wait_e) { - controller_print_warning_entry_action_multiple(&main->program.warning, cache, is_entry, controller_ready_s, controller_debug_file_line_d); + controller_print_warning_entry_action_multiple(&main->program.warning, cache, is_entry, controller_ready_s, F_status_debug_source_d); } else { main->process.ready = controller_process_ready_wait_e; @@ -99,7 +99,7 @@ extern "C" { for (j = 2; j < cache->ats.used; j += 2) { if (cache->ats.array[j] == i) { - controller_print_error_entry_item_failure(&main->program.error, cache, is_entry, entry->items.array[i].name, "cannot be executed because recursion is not allowed", controller_debug_file_line_d); + controller_print_error_entry_item_failure(&main->program.error, cache, is_entry, entry->items.array[i].name, "cannot be executed because recursion is not allowed", F_status_debug_source_d); if (F_status_is_error_not(status)) { status = F_status_set_error(F_recurse); @@ -116,7 +116,7 @@ extern "C" { status2 = f_memory_array_increase(controller_allocation_small_d, sizeof(f_number_unsigned_t), (void **) &cache->ats.array, &cache->ats.used, &cache->ats.size); if (F_status_is_error(status2)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status2), macro_controller_f(f_memory_array_increase), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status2), macro_controller_f(f_memory_array_increase), F_true, F_status_debug_source_d); return status2; } @@ -141,7 +141,7 @@ extern "C" { status2 = f_string_dynamic_append_nulless(entry->items.array[i].name, &cache->action.name_item); if (F_status_is_error(status2)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status2), macro_controller_f(f_string_dynamic_append_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status2), macro_controller_f(f_string_dynamic_append_nulless), F_true, F_status_debug_source_d); return status2; } @@ -152,7 +152,7 @@ extern "C" { if (error_has || i >= entry->items.used) { if (i >= entry->items.used) { - controller_print_error_entry_item_failure(&main->program.error, cache, is_entry, actions->array[cache->ats.array[at_j]].parameters.array[0], "does not exist", controller_debug_file_line_d); + controller_print_error_entry_item_failure(&main->program.error, cache, is_entry, actions->array[cache->ats.array[at_j]].parameters.array[0], "does not exist", F_status_debug_source_d); if (F_status_is_error_not(status)) { status = F_status_set_error(F_valid_not); @@ -186,7 +186,7 @@ extern "C" { status2 = f_string_dynamic_append_nulless(entry->items.array[cache->ats.array[at_i]].name, &cache->action.name_item); if (F_status_is_error(status2)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status2), macro_controller_f(f_string_dynamic_append_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status2), macro_controller_f(f_string_dynamic_append_nulless), F_true, F_status_debug_source_d); return status2; } diff --git a/sources/c/program/controller/main/entry/process.c b/sources/c/program/controller/main/entry/process.c index 1525638..9231ee7 100644 --- a/sources/c/program/controller/main/entry/process.c +++ b/sources/c/program/controller/main/entry/process.c @@ -37,7 +37,7 @@ extern "C" { status = f_memory_array_resize(2, sizeof(f_number_unsigned_t), (void **) &cache->ats.array, &cache->ats.used, &cache->ats.size); if (F_status_is_error(status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_memory_array_resize), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_memory_array_resize), F_true, F_status_debug_source_d); return status; } @@ -54,7 +54,7 @@ extern "C" { status = f_string_dynamic_append_nulless(entry->items.array[cache->ats.array[0]].name, &cache->action.name_item); if (F_status_is_error(status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append_nulless), F_true, F_status_debug_source_d); return status; } @@ -83,7 +83,7 @@ extern "C" { status = f_string_dynamic_append_nulless(controller_entry_action_type_name(entry_action->type), &cache->action.name_action); if (F_status_is_error(status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append_nulless), F_true, F_status_debug_source_d); return status; } @@ -143,7 +143,7 @@ extern "C" { if (entry_action->number == 0 || entry_action->number >= entry->items.used || failsafe && entry_action->number == main->process.failsafe_item_id) { // This should not happen if the pre-process is working as intended, but in case it doesn't, return a critical error to prevent infinite recursion and similar errors. - controller_print_error_entry_item_invalid(&main->program.error, cache, is_entry, entry_action->number, controller_debug_file_line_d); + controller_print_error_entry_item_invalid(&main->program.error, cache, is_entry, entry_action->number, F_status_debug_source_d); return F_status_is_error(F_critical); } @@ -151,7 +151,7 @@ extern "C" { status = f_memory_array_increase_by(2, sizeof(f_number_unsigned_t), (void **) &cache->ats.array, &cache->ats.used, &cache->ats.size); if (F_status_is_error(status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_memory_array_increase_by), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_memory_array_increase_by), F_true, F_status_debug_source_d); return status; } @@ -174,7 +174,7 @@ extern "C" { status = f_string_dynamic_append_nulless(entry->items.array[cache->ats.array[at_i]].name, &cache->action.name_item); if (F_status_is_error(status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append_nulless), F_true, F_status_debug_source_d); return status; } @@ -221,7 +221,7 @@ extern "C" { status = f_memory_new(1, sizeof(controller_rule_t), (void **) &rule); if (F_status_is_error(status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_memory_new), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_memory_new), F_true, F_status_debug_source_d); return status; } @@ -266,7 +266,7 @@ extern "C" { if (main->program.error.verbosity > f_console_verbosity_quiet_e) { controller_lock_print(main->program.error.to, &main->thread); - controller_print_error_entry_cache(&main->program.error, &cache->action, is_entry, controller_debug_file_line_d); + controller_print_error_entry_cache(&main->program.error, &cache->action, is_entry, F_status_debug_source_d); controller_unlock_print_flush(main->program.error.to, &main->thread); } @@ -296,7 +296,7 @@ extern "C" { f_memory_delete(1, sizeof(controller_rule_t), (void **) &rule); } - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, F_status_debug_source_d); break; } @@ -310,7 +310,7 @@ extern "C" { f_thread_unlock(&main->thread.lock.rule); - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_memory_array_increase), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_memory_array_increase), F_true, F_status_debug_source_d); return status; } @@ -377,16 +377,16 @@ extern "C" { if (F_status_is_error(status)) { if (F_status_set_fine(status) == F_file_found_not) { - controller_print_error_entry_action_execution_missing(&main->program.error, &cache->action, is_entry, entry_action->parameters.array[0], controller_debug_file_line_d); + controller_print_error_entry_action_execution_missing(&main->program.error, &cache->action, is_entry, entry_action->parameters.array[0], F_status_debug_source_d); } else { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(fll_execute_into), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(fll_execute_into), F_true, F_status_debug_source_d); } return F_status_set_error(F_execute); } else if (result != 0) { - controller_print_error_entry_action_execution_failure(&main->program.error, &cache->action, is_entry, result, controller_debug_file_line_d); + controller_print_error_entry_action_execution_failure(&main->program.error, &cache->action, is_entry, result, F_status_debug_source_d); return F_status_set_error(F_execute); } @@ -417,13 +417,13 @@ extern "C" { } else if (entry_action->type == controller_entry_action_type_failsafe_e) { if (failsafe) { - controller_print_warning_entry_action_failsafe_twice(&main->program.warning, cache, is_entry, controller_debug_file_line_d); + controller_print_warning_entry_action_failsafe_twice(&main->program.warning, cache, is_entry, F_status_debug_source_d); } else { if (entry_action->number == 0 || entry_action->number >= entry->items.used) { // This should not happen if the pre-process is working as designed, but in case it doesn't, return a critical error to prevent infinite recursion and similar errors. - controller_print_error_entry_item_invalid(&main->program.error, cache, is_entry, entry_action->number, controller_debug_file_line_d); + controller_print_error_entry_item_invalid(&main->program.error, cache, is_entry, entry_action->number, F_status_debug_source_d); return F_status_is_error(F_critical); } @@ -464,7 +464,7 @@ extern "C" { status = f_string_dynamic_append_nulless(entry->items.array[cache->ats.array[at_i]].name, &cache->action.name_item); if (F_status_is_error(status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append_nulless), F_true, F_status_debug_source_d); break; } diff --git a/sources/c/program/controller/main/entry/setting.c b/sources/c/program/controller/main/entry/setting.c index 5509ed7..07da2a2 100644 --- a/sources/c/program/controller/main/entry/setting.c +++ b/sources/c/program/controller/main/entry/setting.c @@ -20,7 +20,7 @@ extern "C" { } if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(fll_fss_extended_read), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(fll_fss_extended_read), F_true, F_status_debug_source_d); return state.status; } @@ -28,7 +28,7 @@ extern "C" { f_fss_apply_delimit(cache->delimits, &cache->buffer_file, &state); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_fss_apply_delimit), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_fss_apply_delimit), F_true, F_status_debug_source_d); return state.status; } @@ -46,7 +46,7 @@ extern "C" { f_fss_count_lines(cache->buffer_file, cache->object_actions.array[i].start, &cache->action.line_action, &state); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_fss_count_lines), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_fss_count_lines), F_true, F_status_debug_source_d); break; } @@ -57,14 +57,14 @@ extern "C" { state.status = f_rip_dynamic_partial_nulless(cache->buffer_file, cache->object_actions.array[i], &cache->action.name_action); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_rip_dynamic_partial_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_rip_dynamic_partial_nulless), F_true, F_status_debug_source_d); break; } if (is_entry && f_compare_dynamic(controller_control_s, cache->action.name_action) == F_equal_to) { if (cache->content_actions.array[i].used < 1 || cache->content_actions.array[i].used > 2) { - controller_print_error_entry_setting_requires_between(&main->program.error, cache, is_entry, 1, 2, controller_debug_file_line_d); + controller_print_error_entry_setting_requires_between(&main->program.error, cache, is_entry, 1, 2, F_status_debug_source_d); continue; } @@ -74,7 +74,7 @@ extern "C" { main->process.control.flag |= controller_control_flag_readonly_e; } else { - controller_print_error_entry_item_setting_support_not_option(&main->program.error, cache, is_entry, cache->buffer_file, cache->content_actions.array[i].array[1], controller_debug_file_line_d); + controller_print_error_entry_item_setting_support_not_option(&main->program.error, cache, is_entry, cache->buffer_file, cache->content_actions.array[i].array[1], F_status_debug_source_d); continue; } @@ -89,7 +89,7 @@ extern "C" { state.status = f_rip_dynamic_partial_nulless(cache->buffer_file, cache->content_actions.array[i].array[0], &cache->action.generic); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_rip_dynamic_partial_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_rip_dynamic_partial_nulless), F_true, F_status_debug_source_d); break; } @@ -99,7 +99,7 @@ extern "C" { state.status = controller_path_canonical_relative(main, main->process.path_current, cache->action.generic, &main->process.path_control); if (F_status_is_error(state.status)) { - controller_print_error_entry_file(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_path_canonical_relative), F_true, cache->action.generic, f_file_operation_analyze_s, fll_error_file_type_path_e, controller_debug_file_line_d); + controller_print_error_entry_file(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_path_canonical_relative), F_true, cache->action.generic, f_file_operation_analyze_s, fll_error_file_type_path_e, F_status_debug_source_d); continue; } @@ -111,16 +111,16 @@ extern "C" { if (F_status_is_error(state.status)) { if (F_status_set_fine(state.status) == F_exist_not) { - controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid group", cache->content_actions.array[i].array[0], ", because no group was found by that name", controller_debug_file_line_d); + controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid group", cache->content_actions.array[i].array[0], ", because no group was found by that name", F_status_debug_source_d); } else if (F_status_set_fine(state.status) == F_number_too_large) { - controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid group", cache->content_actions.array[i].array[0], ", because the given ID is too large", controller_debug_file_line_d); + controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid group", cache->content_actions.array[i].array[0], ", because the given ID is too large", F_status_debug_source_d); } else if (F_status_set_fine(state.status) == F_number) { - controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid group", cache->content_actions.array[i].array[0], ", because the given ID is not a valid supported number", controller_debug_file_line_d); + controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid group", cache->content_actions.array[i].array[0], ", because the given ID is not a valid supported number", F_status_debug_source_d); } else { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_convert_group_id), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_convert_group_id), F_true, F_status_debug_source_d); } continue; @@ -139,7 +139,7 @@ extern "C" { state.status = f_rip_dynamic_partial_nulless(cache->buffer_file, cache->content_actions.array[i].array[0], &cache->action.generic); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_rip_dynamic_partial_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_rip_dynamic_partial_nulless), F_true, F_status_debug_source_d); break; } @@ -147,7 +147,7 @@ extern "C" { state.status = f_file_mode_from_string(cache->action.generic, main->program.umask, &mode_file, &replace); if (F_status_is_error(state.status)) { - controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an unsupported mode", cache->content_actions.array[i].array[0], ", because the format is unknown or contains invalid data", controller_debug_file_line_d); + controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an unsupported mode", cache->content_actions.array[i].array[0], ", because the format is unknown or contains invalid data", F_status_debug_source_d); continue; } @@ -155,7 +155,7 @@ extern "C" { state.status = f_file_mode_to_mode(mode_file, &mode); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_file_mode_to_mode), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_file_mode_to_mode), F_true, F_status_debug_source_d); continue; } @@ -170,16 +170,16 @@ extern "C" { if (F_status_is_error(state.status)) { if (F_status_set_fine(state.status) == F_exist_not) { - controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid user", cache->content_actions.array[i].array[0], ", because no user was found by that name", controller_debug_file_line_d); + controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid user", cache->content_actions.array[i].array[0], ", because no user was found by that name", F_status_debug_source_d); } else if (F_status_set_fine(state.status) == F_number_too_large) { - controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid user", cache->content_actions.array[i].array[0], ", because the given ID is too large", controller_debug_file_line_d); + controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid user", cache->content_actions.array[i].array[0], ", because the given ID is too large", F_status_debug_source_d); } else if (F_status_set_fine(state.status) == F_number) { - controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid user", cache->content_actions.array[i].array[0], ", because the given ID is not a valid supported number", controller_debug_file_line_d); + controller_print_error_entry_setting_with_range(&main->program.error, cache, is_entry, " has an invalid user", cache->content_actions.array[i].array[0], ", because the given ID is not a valid supported number", F_status_debug_source_d); } else { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_convert_user_id), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_convert_user_id), F_true, F_status_debug_source_d); } continue; @@ -190,7 +190,7 @@ extern "C" { } else if (f_compare_dynamic(controller_define_s, cache->action.name_action) == F_equal_to) { if (cache->content_actions.array[i].used != 2) { - controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 2, controller_debug_file_line_d); + controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 2, F_status_debug_source_d); continue; } @@ -198,14 +198,14 @@ extern "C" { state.status = controller_entry_setting_read_map(cache->buffer_file, cache->content_actions.array[i], &entry->define); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_entry_setting_read_map), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_entry_setting_read_map), F_true, F_status_debug_source_d); continue; } } else if (is_entry && f_compare_dynamic(controller_mode_s, cache->action.name_action) == F_equal_to) { if (cache->content_actions.array[i].used != 1) { - controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 1, controller_debug_file_line_d); + controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 1, F_status_debug_source_d); continue; } @@ -220,14 +220,14 @@ extern "C" { main->process.mode = controller_process_mode_program_e; } else { - controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], controller_debug_file_line_d); + controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], F_status_debug_source_d); continue; } } else if (f_compare_dynamic(controller_parameter_s, cache->action.name_action) == F_equal_to) { if (cache->content_actions.array[i].used != 2) { - controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 2, controller_debug_file_line_d); + controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 2, F_status_debug_source_d); continue; } @@ -235,14 +235,14 @@ extern "C" { state.status = controller_entry_setting_read_map(cache->buffer_file, cache->content_actions.array[i], &entry->parameter); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_entry_setting_read_map), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_entry_setting_read_map), F_true, F_status_debug_source_d); continue; } } else if (f_compare_dynamic(controller_pid_s, cache->action.name_action) == F_equal_to) { if (cache->content_actions.array[i].used != 1) { - controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 1, controller_debug_file_line_d); + controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 1, F_status_debug_source_d); continue; } @@ -257,20 +257,20 @@ extern "C" { entry->pid = controller_entry_pid_require_e; } else { - controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], controller_debug_file_line_d); + controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], F_status_debug_source_d); continue; } } else if (is_entry && f_compare_dynamic(controller_pid_file_s, cache->action.name_action) == F_equal_to) { if (cache->content_actions.array[i].used != 1) { - controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 1, controller_debug_file_line_d); + controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 1, F_status_debug_source_d); continue; } if (main->setting.flag & controller_main_flag_pid_d) { - controller_print_error_entry_setting_ignored(&main->program.error, cache, is_entry, controller_debug_file_line_d); + controller_print_error_entry_setting_ignored(&main->program.error, cache, is_entry, F_status_debug_source_d); } else { cache->action.generic.used = 0; @@ -278,7 +278,7 @@ extern "C" { state.status = f_rip_dynamic_partial_nulless(cache->buffer_file, cache->content_actions.array[i].array[0], &cache->action.generic); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_rip_dynamic_partial_nulless), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(f_rip_dynamic_partial_nulless), F_true, F_status_debug_source_d); continue; } @@ -288,7 +288,7 @@ extern "C" { state.status = controller_path_canonical_relative(main, main->process.path_current, cache->action.generic, &main->process.path_pid); if (F_status_is_error(state.status)) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_path_canonical_relative), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(controller_path_canonical_relative), F_true, F_status_debug_source_d); continue; } @@ -296,7 +296,7 @@ extern "C" { } else if (f_compare_dynamic(controller_session_s, cache->action.name_action) == F_equal_to) { if (cache->content_actions.array[i].used != 1) { - controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 1, controller_debug_file_line_d); + controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 1, F_status_debug_source_d); continue; } @@ -308,14 +308,14 @@ extern "C" { entry->session = controller_entry_session_same_e; } else { - controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], controller_debug_file_line_d); + controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], F_status_debug_source_d); continue; } } else if (f_compare_dynamic(controller_show_s, cache->action.name_action) == F_equal_to) { if (cache->content_actions.array[i].used != 1) { - controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 1, controller_debug_file_line_d); + controller_print_error_entry_setting_requires_exactly(&main->program.error, cache, is_entry, 1, F_status_debug_source_d); continue; } @@ -327,14 +327,14 @@ extern "C" { entry->show = controller_entry_show_init_e; } else { - controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], controller_debug_file_line_d); + controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], F_status_debug_source_d); continue; } } else if (f_compare_dynamic(controller_timeout_s, cache->action.name_action) == F_equal_to) { if (cache->content_actions.array[i].used < 1 || cache->content_actions.array[i].used > 2) { - controller_print_error_entry_setting_requires_between(&main->program.error, cache, is_entry, 1, 2, controller_debug_file_line_d); + controller_print_error_entry_setting_requires_between(&main->program.error, cache, is_entry, 1, 2, F_status_debug_source_d); continue; } @@ -382,7 +382,7 @@ extern "C" { time = &entry->timeout_stop; } else { - controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], controller_debug_file_line_d); + controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], F_status_debug_source_d); continue; } @@ -395,16 +395,16 @@ extern "C" { *time = time_previous; if (F_status_set_fine(state.status) == F_memory_not) { - controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_unsigned_detect), F_true, controller_debug_file_line_d); + controller_print_error_entry(&main->program.error, is_entry, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_unsigned_detect), F_true, F_status_debug_source_d); continue; } - controller_print_error_entry_setting_support_not_number(&main->program.error, is_entry, cache->buffer_file, cache->content_actions.array[i].array[1], controller_debug_file_line_d); + controller_print_error_entry_setting_support_not_number(&main->program.error, is_entry, cache->buffer_file, cache->content_actions.array[i].array[1], F_status_debug_source_d); } } else { - controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], controller_debug_file_line_d); + controller_print_warning_entry_setting_unknown_action_value(&main->program.warning, cache, is_entry, cache->action.name_action, cache->buffer_file, cache->content_actions.array[i].array[0], F_status_debug_source_d); continue; } diff --git a/sources/c/program/controller/main/instance/prepare.c b/sources/c/program/controller/main/instance/prepare.c index 26b95f1..c30e74e 100644 --- a/sources/c/program/controller/main/instance/prepare.c +++ b/sources/c/program/controller/main/instance/prepare.c @@ -14,7 +14,7 @@ extern "C" { f_status_t status = controller_lock_read_standard(is_normal, controller_lock_check_flag_yes_d, &main->thread, &main->thread.lock.instance); if (status != F_okay) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_true, F_status_debug_source_d); return status; } @@ -40,7 +40,7 @@ extern "C" { status = controller_lock_write_standard(is_normal, controller_lock_check_flag_yes_d, &main->thread, &main->thread.lock.instance); if (F_status_is_error(status)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_false, F_status_debug_source_d); } else { if (F_status_is_error_not(status)) { diff --git a/sources/c/program/controller/main/instance/wait.c b/sources/c/program/controller/main/instance/wait.c index 67740b3..39885cd 100644 --- a/sources/c/program/controller/main/instance/wait.c +++ b/sources/c/program/controller/main/instance/wait.c @@ -50,7 +50,7 @@ extern "C" { status_lock = controller_lock_read_instance(instance, &instance->use); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status_lock), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status_lock), F_true, F_status_debug_source_d); break; } diff --git a/sources/c/program/controller/main/perform.c b/sources/c/program/controller/main/perform.c index de40968..5c6a717 100644 --- a/sources/c/program/controller/main/perform.c +++ b/sources/c/program/controller/main/perform.c @@ -28,7 +28,7 @@ extern "C" { // Always return immediately on memory errors. if (F_status_set_fine(status) == F_memory_not) { - controller_print_error_perform_pid_file_create(&main->program.error, F_status_set_fine(status), macro_controller_f(controller_file_pid_create), is_entry, controller_debug_file_line_d); + controller_print_error_perform_pid_file_create(&main->program.error, F_status_set_fine(status), macro_controller_f(controller_file_pid_create), is_entry, F_status_debug_source_d); return status; } diff --git a/sources/c/program/controller/main/print/debug/rule/action.h b/sources/c/program/controller/main/print/debug/rule/action.h index 0650498..b2d9d63 100644 --- a/sources/c/program/controller/main/print/debug/rule/action.h +++ b/sources/c/program/controller/main/print/debug/rule/action.h @@ -33,7 +33,7 @@ extern "C" { * Must not be NULL. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/debug/rule/execute.h b/sources/c/program/controller/main/print/debug/rule/execute.h index 792e82d..1e89732 100644 --- a/sources/c/program/controller/main/print/debug/rule/execute.h +++ b/sources/c/program/controller/main/print/debug/rule/execute.h @@ -39,7 +39,7 @@ extern "C" { * The ID of the Action being re-run. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/debug/rule/instance.h b/sources/c/program/controller/main/print/debug/rule/instance.h index b8a3cf5..2c0cdad 100644 --- a/sources/c/program/controller/main/print/debug/rule/instance.h +++ b/sources/c/program/controller/main/print/debug/rule/instance.h @@ -40,7 +40,7 @@ extern "C" { * A short explanation on why this is an error or warning. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/entry.h b/sources/c/program/controller/main/print/error/entry.h index 405a445..5ff7a99 100644 --- a/sources/c/program/controller/main/print/error/entry.h +++ b/sources/c/program/controller/main/print/error/entry.h @@ -42,7 +42,7 @@ extern "C" { * The thread data. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -80,7 +80,7 @@ extern "C" { * If FALSE, then this loads as an Exit. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -125,7 +125,7 @@ extern "C" { * A valid file type code from the fll_error_file_type enum. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/entry/action.h b/sources/c/program/controller/main/print/error/entry/action.h index 3cd1e6e..173b953 100644 --- a/sources/c/program/controller/main/print/error/entry/action.h +++ b/sources/c/program/controller/main/print/error/entry/action.h @@ -38,7 +38,7 @@ extern "C" { * The return code. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -74,7 +74,7 @@ extern "C" { * The program or script name. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -118,7 +118,7 @@ extern "C" { * The allowed value that is supported. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -166,7 +166,7 @@ extern "C" { * The third allowed value that is supported. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -202,7 +202,7 @@ extern "C" { * A message describing which parameter is empty. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -240,7 +240,7 @@ extern "C" { * An example of a valid base path name. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -282,7 +282,7 @@ extern "C" { * The Action type code. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -318,7 +318,7 @@ extern "C" { * The invalid value that is not supported. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -354,7 +354,7 @@ extern "C" { * The reserved item that is not allowed to be used. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/entry/item.h b/sources/c/program/controller/main/print/error/entry/item.h index 755d243..859d690 100644 --- a/sources/c/program/controller/main/print/error/entry/item.h +++ b/sources/c/program/controller/main/print/error/entry/item.h @@ -40,7 +40,7 @@ extern "C" { * A short message describing the reason for the failure. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -76,7 +76,7 @@ extern "C" { * The index position of the invalid item. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -114,7 +114,7 @@ extern "C" { * The range within the buffer representing the setting name. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/entry/setting.h b/sources/c/program/controller/main/print/error/entry/setting.h index 33f99bd..813584c 100644 --- a/sources/c/program/controller/main/print/error/entry/setting.h +++ b/sources/c/program/controller/main/print/error/entry/setting.h @@ -45,7 +45,7 @@ extern "C" { * The string to add to the message being printed (after the value). * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -79,7 +79,7 @@ extern "C" { * If FALSE, then this loads as an Exit. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -117,7 +117,7 @@ extern "C" { * The expected maximum number of arguments. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -153,7 +153,7 @@ extern "C" { * The expected number of arguments. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -189,7 +189,7 @@ extern "C" { * The range within the buffer representing the unsupported number. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/lock.h b/sources/c/program/controller/main/print/error/lock.h index e45280b..18b3f63 100644 --- a/sources/c/program/controller/main/print/error/lock.h +++ b/sources/c/program/controller/main/print/error/lock.h @@ -37,7 +37,7 @@ extern "C" { * If FALSE, then this is for a write lock. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/perform/pid.h b/sources/c/program/controller/main/print/error/perform/pid.h index e4f1f03..47eb99c 100644 --- a/sources/c/program/controller/main/print/error/perform/pid.h +++ b/sources/c/program/controller/main/print/error/perform/pid.h @@ -37,7 +37,7 @@ extern "C" { * If FALSE, then this operates as an Exit. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/rule.h b/sources/c/program/controller/main/print/error/rule.h index 98174a8..92370f8 100644 --- a/sources/c/program/controller/main/print/error/rule.h +++ b/sources/c/program/controller/main/print/error/rule.h @@ -46,7 +46,7 @@ extern "C" { * If FALSE, then this error is associated with a Rule setting. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -91,7 +91,7 @@ extern "C" { * If FALSE, then this error is associated with a Rule setting. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -127,7 +127,7 @@ extern "C" { * If FALSE, then this error is associated with a Rule setting. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/rule/action.h b/sources/c/program/controller/main/print/error/rule/action.h index 5e0d3b0..e24dfe6 100644 --- a/sources/c/program/controller/main/print/error/rule/action.h +++ b/sources/c/program/controller/main/print/error/rule/action.h @@ -41,7 +41,7 @@ extern "C" { * The range within the buffer representing the unknown Action name. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -74,7 +74,7 @@ extern "C" { * The Rule alias of the Rule that is missing the pid file designation. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -107,7 +107,7 @@ extern "C" { * The Rule alias of the Rule that is missing the pid file designation. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -148,7 +148,7 @@ extern "C" { * The status code of the error. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -183,7 +183,7 @@ extern "C" { * The range within the buffer representing the second Action. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -218,7 +218,7 @@ extern "C" { * A specific message on what is being attempted by the Action. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -255,7 +255,7 @@ extern "C" { * The range within the buffer representing the unknown Action name. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -290,7 +290,7 @@ extern "C" { * The Action type name. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/rule/instance.h b/sources/c/program/controller/main/print/error/rule/instance.h index 926e249..9cb0ca2 100644 --- a/sources/c/program/controller/main/print/error/rule/instance.h +++ b/sources/c/program/controller/main/print/error/rule/instance.h @@ -40,7 +40,7 @@ extern "C" { * A short explanation on why this is an error or warning. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/rule/item.h b/sources/c/program/controller/main/print/error/rule/item.h index 0a32449..0b1481a 100644 --- a/sources/c/program/controller/main/print/error/rule/item.h +++ b/sources/c/program/controller/main/print/error/rule/item.h @@ -40,7 +40,7 @@ extern "C" { * The status code representing the failure (without the error bit set). * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -78,7 +78,7 @@ extern "C" { * The status code result. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -114,7 +114,7 @@ extern "C" { * If FALSE, then nothing to execute because there is no items. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -148,7 +148,7 @@ extern "C" { * A short explanation on why this is an error or warning. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -181,7 +181,7 @@ extern "C" { * The Rule alias of the Rule that is not loaded. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/error/rule/setting.h b/sources/c/program/controller/main/print/error/rule/setting.h index 5b2e460..f7c9916 100644 --- a/sources/c/program/controller/main/print/error/rule/setting.h +++ b/sources/c/program/controller/main/print/error/rule/setting.h @@ -40,7 +40,7 @@ extern "C" { * The string to append to the message being printed. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -75,7 +75,7 @@ extern "C" { * The name or value of the setting associated with the error. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -129,7 +129,7 @@ extern "C" { * Must not be NULL. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -156,7 +156,7 @@ extern "C" { * The map being applied. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -191,7 +191,7 @@ extern "C" { * F_output_not (with error bit) if setting is NULL. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. */ @@ -216,7 +216,7 @@ extern "C" { * The ranger within the buffer representing the invalid number. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -247,7 +247,7 @@ extern "C" { * The ranger within the buffer representing the invalid value. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -278,7 +278,7 @@ extern "C" { * The ranger within the buffer representing the invalid value. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -312,7 +312,7 @@ extern "C" { * If FALSE, then only the range 1 through 99 is supported. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -343,7 +343,7 @@ extern "C" { * The ranger within the buffer representing the invalid value. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -375,7 +375,7 @@ extern "C" { * An additional message to append at the end (before the final period). * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -408,7 +408,7 @@ extern "C" { * Position within the content_actions range cache array. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/warning/entry/action.h b/sources/c/program/controller/main/print/warning/entry/action.h index f5f0d72..e8f7912 100644 --- a/sources/c/program/controller/main/print/warning/entry/action.h +++ b/sources/c/program/controller/main/print/warning/entry/action.h @@ -36,7 +36,7 @@ extern "C" { * If FALSE, then this loads as an Exit. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -72,7 +72,7 @@ extern "C" { * The item name. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -107,7 +107,7 @@ extern "C" { * The unknown value. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/warning/entry/item.h b/sources/c/program/controller/main/print/warning/entry/item.h index fa38559..545c1d3 100644 --- a/sources/c/program/controller/main/print/warning/entry/item.h +++ b/sources/c/program/controller/main/print/warning/entry/item.h @@ -38,7 +38,7 @@ extern "C" { * The item name. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/warning/entry/setting.h b/sources/c/program/controller/main/print/warning/entry/setting.h index 5b7c085..9fa231a 100644 --- a/sources/c/program/controller/main/print/warning/entry/setting.h +++ b/sources/c/program/controller/main/print/warning/entry/setting.h @@ -40,7 +40,7 @@ extern "C" { * The parameter name whose value is unknown. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * @@ -80,7 +80,7 @@ extern "C" { * The range within the buffer representing the unknown value. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/warning/rule/action.h b/sources/c/program/controller/main/print/warning/rule/action.h index 86e1139..289afdb 100644 --- a/sources/c/program/controller/main/print/warning/rule/action.h +++ b/sources/c/program/controller/main/print/warning/rule/action.h @@ -35,7 +35,7 @@ extern "C" { * The Action name that is unknown. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/warning/rule/item.h b/sources/c/program/controller/main/print/warning/rule/item.h index 8a13912..2110996 100644 --- a/sources/c/program/controller/main/print/warning/rule/item.h +++ b/sources/c/program/controller/main/print/warning/rule/item.h @@ -35,7 +35,7 @@ extern "C" { * The Item name that is unknown. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/print/warning/rule/setting.h b/sources/c/program/controller/main/print/warning/rule/setting.h index 3c171f7..70ceda9 100644 --- a/sources/c/program/controller/main/print/warning/rule/setting.h +++ b/sources/c/program/controller/main/print/warning/rule/setting.h @@ -35,7 +35,7 @@ extern "C" { * The Item name that is unknown. * @param line_file * The line number and file name associated with the error. - * Set this to macros like controller_debug_file_line_d. + * Set this to macros like F_status_debug_source_d. * * Set to NULL to disable. * diff --git a/sources/c/program/controller/main/rule.c b/sources/c/program/controller/main/rule.c index bc7faaa..800ec01 100644 --- a/sources/c/program/controller/main/rule.c +++ b/sources/c/program/controller/main/rule.c @@ -236,7 +236,7 @@ extern "C" { f_status_t status = controller_lock_read_standard(is_entry, controller_lock_check_flag_yes_d, &main->thread, &main->thread.lock.rule); if (F_status_is_error(status)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_true, F_status_debug_source_d); return status; } diff --git a/sources/c/program/controller/main/rule/action.c b/sources/c/program/controller/main/rule/action.c index 7a865f1..fd3b824 100644 --- a/sources/c/program/controller/main/rule/action.c +++ b/sources/c/program/controller/main/rule/action.c @@ -290,7 +290,7 @@ extern "C" { if (!type_rerun) { state->status = F_status_set_error(F_valid_not); - controller_print_error_rule_action_first(&main->program.error, &cache->action, cache->buffer_item, cache->content_action.array[0], controller_debug_file_line_d); + controller_print_error_rule_action_first(&main->program.error, &cache->action, cache->buffer_item, cache->content_action.array[0], F_status_debug_source_d); return; } @@ -310,7 +310,7 @@ extern "C" { else { state->status = F_status_set_error(F_valid_not); - controller_print_error_rule_action_second(&main->program.error, &cache->action, cache->buffer_item, cache->content_action.array[1], controller_debug_file_line_d); + controller_print_error_rule_action_second(&main->program.error, &cache->action, cache->buffer_item, cache->content_action.array[1], F_status_debug_source_d); return; } @@ -329,7 +329,7 @@ extern "C" { else { state->status = F_status_set_error(F_valid_not); - controller_print_error_rule_action_unknown(&main->program.error, &cache->action, controller_rerun_s, cache->buffer_item, cache->content_action.array[i], controller_debug_file_line_d); + controller_print_error_rule_action_unknown(&main->program.error, &cache->action, controller_rerun_s, cache->buffer_item, cache->content_action.array[i], F_status_debug_source_d); return; } @@ -354,7 +354,7 @@ extern "C" { item->with &= ~controller_with_session_new_d; } else { - controller_print_error_rule_action_unknown(&main->program.error, &cache->action, controller_with_s, cache->buffer_item, cache->content_action.array[i], controller_debug_file_line_d); + controller_print_error_rule_action_unknown(&main->program.error, &cache->action, controller_with_s, cache->buffer_item, cache->content_action.array[i], F_status_debug_source_d); state->status = F_status_set_error(F_valid_not); @@ -457,7 +457,7 @@ extern "C" { } if (F_status_is_error_not(state->status) && state->status == F_data_not) { - controller_print_debug_rule_action_empty(&main->program.debug, cache, controller_debug_file_line_d); + controller_print_debug_rule_action_empty(&main->program.debug, cache, F_status_debug_source_d); } } #endif // _di_controller_rule_action_read_ @@ -491,7 +491,7 @@ extern "C" { controller_print_error(&main->program.error, macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect)); } else { - controller_print_error_rule_action_positive_number_not(&main->program.error, &cache->action, name, cache->buffer_item, cache->content_action, *index, status, controller_debug_file_line_d); + controller_print_error_rule_action_positive_number_not(&main->program.error, &cache->action, name, cache->buffer_item, cache->content_action, *index, status, F_status_debug_source_d); } } } diff --git a/sources/c/program/controller/main/rule/execute.c b/sources/c/program/controller/main/rule/execute.c index 81944c9..4ed6e3e 100644 --- a/sources/c/program/controller/main/rule/execute.c +++ b/sources/c/program/controller/main/rule/execute.c @@ -248,7 +248,7 @@ extern "C" { status = controller_rule_expand(main, instance->rule.items.array[i].actions.array[j], instance); if (F_status_is_error(status)) { - controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(controller_rule_expand), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(controller_rule_expand), F_true, F_false, F_status_debug_source_d); break; } @@ -278,7 +278,7 @@ extern "C" { status = controller_rule_expand(main, instance->rule.items.array[i].actions.array[j], instance); if (F_status_is_error(status)) { - controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(controller_rule_expand), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(controller_rule_expand), F_true, F_false, F_status_debug_source_d); break; } @@ -320,7 +320,7 @@ extern "C" { status = controller_rule_expand(main, instance->rule.items.array[i].actions.array[j], instance); if (F_status_is_error(status)) { - controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(controller_rule_expand), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(controller_rule_expand), F_true, F_false, F_status_debug_source_d); break; } @@ -350,7 +350,7 @@ extern "C" { else { success = F_status_set_error(F_failure); - controller_print_error_rule_action_missing_pid(&main->program.error, &instance->cache.action, instance->rule.alias, controller_debug_file_line_d); + controller_print_error_rule_action_missing_pid(&main->program.error, &instance->cache.action, instance->rule.alias, F_status_debug_source_d); } } else if (instance->rule.items.array[i].type == controller_rule_item_type_utility_e) { @@ -358,7 +358,7 @@ extern "C" { status = controller_rule_expand(main, instance->rule.items.array[i].actions.array[j], instance); if (F_status_is_error(status)) { - controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(controller_rule_expand), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(controller_rule_expand), F_true, F_false, F_status_debug_source_d); break; } @@ -394,7 +394,7 @@ extern "C" { else { success = F_status_set_error(F_failure); - controller_print_error_rule_action_missing_pid(&main->program.error, &instance->cache.action, instance->rule.alias, controller_debug_file_line_d); + controller_print_error_rule_action_missing_pid(&main->program.error, &instance->cache.action, instance->rule.alias, F_status_debug_source_d); } } else { @@ -416,7 +416,7 @@ extern "C" { if (F_status_set_fine(status) == F_lock || F_status_set_fine(status) == F_lock_read || F_status_set_fine(status) == F_lock_write) return status; if (success == false && execute_nothing) { - controller_print_error_rule_item_execute_none(&main->program.error, &instance->cache.action, instance->rule.alias, execute_nothing & 0x2, controller_debug_file_line_d); + controller_print_error_rule_item_execute_none(&main->program.error, &instance->cache.action, instance->rule.alias, execute_nothing & 0x2, F_status_debug_source_d); } if (!controller_thread_is_enabled_instance(instance)) return F_status_set_error(F_interrupt); @@ -482,7 +482,7 @@ extern "C" { f_status_t status_lock = controller_lock_write_instance(instance, &instance->use); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, F_status_debug_source_d); return status_lock; } @@ -498,7 +498,7 @@ extern "C" { status_lock = controller_lock_write_instance(instance, &instance->use); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, F_status_debug_source_d); return status_lock; } @@ -538,14 +538,14 @@ extern "C" { const f_status_t status_lock = controller_lock_read_instance(instance, &instance->use); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, F_status_debug_source_d); return status_lock; } } if ((WIFEXITED(instance->result) && WEXITSTATUS(instance->result)) || status == F_control_group || status == F_failure || status == F_limit || status == F_processor || status == F_schedule) { - controller_print_error_rule_item_execute(&instance->main->program.error, type == controller_rule_item_type_script_e, program.used ? program : arguments.array[0], status, instance->result, controller_debug_file_line_d); + controller_print_error_rule_item_execute(&instance->main->program.error, type == controller_rule_item_type_script_e, program.used ? program : arguments.array[0], status, instance->result, F_status_debug_source_d); } else { controller_print_error_status(&instance->main->program.error, macro_controller_f(fll_execute_program), F_status_set_fine(status)); @@ -680,7 +680,7 @@ extern "C" { f_status_t status_lock = controller_lock_write_instance(instance, &instance->use); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, F_status_debug_source_d); return status_lock; } @@ -696,7 +696,7 @@ extern "C" { status_lock = controller_lock_write_instance(instance, &instance->use); if (status_lock != F_okay) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, F_status_debug_source_d); return F_status_set_error(F_lock_write); } @@ -736,14 +736,14 @@ extern "C" { const f_status_t status_lock = controller_lock_read_instance(instance, &instance->use); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, F_status_debug_source_d); return status_lock; } } if ((WIFEXITED(instance->result) && WEXITSTATUS(instance->result)) || status == F_control_group || status == F_failure || status == F_limit || status == F_processor || status == F_schedule) { - controller_print_error_rule_item_execute(&instance->main->program.error, type == controller_rule_item_type_utility_e, program.used ? program : arguments.array[0], status, instance->result, controller_debug_file_line_d); + controller_print_error_rule_item_execute(&instance->main->program.error, type == controller_rule_item_type_utility_e, program.used ? program : arguments.array[0], status, instance->result, F_status_debug_source_d); } else { controller_print_error_status(&instance->main->program.error, macro_controller_f(fll_execute_program), F_status_set_fine(status)); @@ -772,7 +772,7 @@ extern "C" { if (!controller_thread_is_enabled_instance(instance)) return -2; if (!rerun_item->max || rerun_item->count < rerun_item->max) { - controller_main_print_debug_rule_execute_rerun(&main->program.output, instance, rerun_item, action, controller_debug_file_line_d); + controller_main_print_debug_rule_execute_rerun(&main->program.output, instance, rerun_item, action, F_status_debug_source_d); if (rerun_item->delay) { f_time_spec_t delay = f_time_spec_t_initialize; diff --git a/sources/c/program/controller/main/rule/instance.c b/sources/c/program/controller/main/rule/instance.c index 25dba48..d6b1407 100644 --- a/sources/c/program/controller/main/rule/instance.c +++ b/sources/c/program/controller/main/rule/instance.c @@ -24,7 +24,7 @@ extern "C" { break; default: - controller_print_error_rule_action_type_unsupported(&main->program.error, &instance->cache.action, controller_convert_rule_action_type_string(instance->action), "execute rule", controller_debug_file_line_d); + controller_print_error_rule_action_type_unsupported(&main->program.error, &instance->cache.action, controller_convert_rule_action_type_string(instance->action), "execute rule", F_status_debug_source_d); return F_status_set_error(F_parameter); } @@ -42,7 +42,7 @@ extern "C" { } if (F_status_is_error(status)) { - controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append), F_true, F_true, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append), F_true, F_true, F_status_debug_source_d); return status; } @@ -50,7 +50,7 @@ extern "C" { status = f_string_dynamic_append(instance->rule.alias, &instance->cache.action.name_file); if (F_status_is_error(status)) { - controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append), F_true, F_true, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append), F_true, F_true, F_status_debug_source_d); return status; } @@ -62,7 +62,7 @@ extern "C" { } if (F_status_is_error(status)) { - controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append), F_true, F_true, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &instance->cache.action, F_status_set_fine(status), macro_controller_f(f_string_dynamic_append), F_true, F_true, F_status_debug_source_d); return status; } @@ -83,7 +83,7 @@ extern "C" { break; default: - controller_print_error_rule_action_type_unsupported(&main->program.error, &instance->cache.action, controller_convert_rule_action_type_string(instance->action), "validate Fule execution", controller_debug_file_line_d); + controller_print_error_rule_action_type_unsupported(&main->program.error, &instance->cache.action, controller_convert_rule_action_type_string(instance->action), "validate Fule execution", F_status_debug_source_d); break; } @@ -138,7 +138,7 @@ extern "C" { if (!controller_thread_is_enabled_instance_type(&main->thread, instance->type)) return F_status_set_error(F_interrupt); } - controller_print_error_rule_item_rule_not_loaded(&main->program.error, &instance->cache.action, dynamics[i]->array[j], controller_debug_file_line_d); + controller_print_error_rule_item_rule_not_loaded(&main->program.error, &instance->cache.action, dynamics[i]->array[j], F_status_debug_source_d); return status; } @@ -148,7 +148,7 @@ extern "C" { status_lock = controller_lock_read_instance(instance, &dependency->active); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, F_status_debug_source_d); status = F_false; dependency = 0; @@ -172,12 +172,12 @@ extern "C" { rule = 0; if (i) { - controller_print_debug_rule_instance_need_want_wish(&main->program.warning, instance, strings[i], dynamics[i]->array[j], "is not found", controller_debug_file_line_d); + controller_print_debug_rule_instance_need_want_wish(&main->program.warning, instance, strings[i], dynamics[i]->array[j], "is not found", F_status_debug_source_d); } else { status = F_status_set_error(F_found_not); - controller_print_error_rule_instance_need_want_wish(&main->program.error, instance, strings[i], dynamics[i]->array[j], "is not found", controller_debug_file_line_d); + controller_print_error_rule_instance_need_want_wish(&main->program.error, instance, strings[i], dynamics[i]->array[j], "is not found", F_status_debug_source_d); if (!(instance->options & controller_instance_option_simulate_d)) { if (dependency) { @@ -204,7 +204,7 @@ extern "C" { status_lock = controller_lock_read_instance(instance, &dependency->use); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, F_status_debug_source_d); status = status_lock; } @@ -218,7 +218,7 @@ extern "C" { status_lock = controller_lock_read_instance(instance, &dependency->use); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, F_status_debug_source_d); status = status_lock; } @@ -253,7 +253,7 @@ extern "C" { if (F_status_is_error(status)) { if (i == 0 || i == 1 || F_status_set_fine(status) == F_memory_not) { - controller_print_error_rule_instance_need_want_wish(&main->program.error, instance, strings[i], alias_other_buffer, "failed during execution", controller_debug_file_line_d); + controller_print_error_rule_instance_need_want_wish(&main->program.error, instance, strings[i], alias_other_buffer, "failed during execution", F_status_debug_source_d); if (!(dependency->options & controller_instance_option_simulate_d) || F_status_set_fine(status) == F_memory_not) { f_thread_unlock(&dependency->active); @@ -262,7 +262,7 @@ extern "C" { } } else { - controller_print_debug_rule_instance_need_want_wish(&main->program.warning, instance, strings[i], alias_other_buffer, "failed during execution", controller_debug_file_line_d); + controller_print_debug_rule_instance_need_want_wish(&main->program.warning, instance, strings[i], alias_other_buffer, "failed during execution", F_status_debug_source_d); } } } @@ -281,14 +281,14 @@ extern "C" { status = status_lock; if (F_status_set_fine(status_lock) != F_interrupt) { - controller_print_error_rule_instance_need_want_wish(&main->program.error, instance, strings[i], alias_other_buffer, "due to lock failure", controller_debug_file_line_d); + controller_print_error_rule_instance_need_want_wish(&main->program.error, instance, strings[i], alias_other_buffer, "due to lock failure", F_status_debug_source_d); } } else if (controller_rule_status_is_error(instance->action, *rule)) { if (i == 0 || i == 1) { status = F_status_set_error(F_found_not); - controller_print_error_rule_instance_need_want_wish(&main->program.error, instance, strings[i], alias_other_buffer, "is in a failed state", controller_debug_file_line_d); + controller_print_error_rule_instance_need_want_wish(&main->program.error, instance, strings[i], alias_other_buffer, "is in a failed state", F_status_debug_source_d); if (!(dependency->options & controller_instance_option_simulate_d)) { f_thread_unlock(&dependency->active); @@ -297,7 +297,7 @@ extern "C" { } } else { - controller_print_debug_rule_instance_need_want_wish(&main->program.warning, instance, strings[i], alias_other_buffer, "is in a failed state", controller_debug_file_line_d); + controller_print_debug_rule_instance_need_want_wish(&main->program.warning, instance, strings[i], alias_other_buffer, "is in a failed state", F_status_debug_source_d); } } } @@ -341,7 +341,7 @@ extern "C" { if (missing) { status = F_status_set_error(F_parameter); - controller_print_error_rule_action_unknown_execute(&main->program.error, &instance->cache.action, instance->rule.name, controller_convert_rule_action_type_string(instance->action), instance->rule.items.used, controller_debug_file_line_d); + controller_print_error_rule_action_unknown_execute(&main->program.error, &instance->cache.action, instance->rule.name, controller_convert_rule_action_type_string(instance->action), instance->rule.items.used, F_status_debug_source_d); } } @@ -355,7 +355,7 @@ extern "C" { controller_print_error_status(&main->program.error, macro_controller_f(controller_rule_execute), F_status_set_fine(status)); } - controller_print_error_rule_item(&main->program.error, &instance->cache.action, F_true, F_status_set_fine(status), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &instance->cache.action, F_true, F_status_set_fine(status), F_status_debug_source_d); } } } @@ -363,7 +363,7 @@ extern "C" { status_lock = controller_lock_write_instance(instance, &instance->use); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_false, F_status_debug_source_d); return status_lock; } @@ -396,7 +396,7 @@ extern "C" { if (F_status_is_error(status_lock)) { f_thread_unlock(&instance->use); - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, F_status_debug_source_d); return F_status_set_error(status_lock); } @@ -413,7 +413,7 @@ extern "C" { if (F_status_is_error(status_lock)) { f_thread_unlock(&instance->use); - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, F_status_debug_source_d); return F_status_set_error(status_lock); } @@ -437,7 +437,7 @@ extern "C" { f_status_t status = controller_instance_prepare(main, type != controller_instance_type_exit_e, action, alias_rule, &instance); if (F_status_is_error(status)) { - controller_print_error_rule_item_rule_not_loaded(&main->program.error, &cache->action, alias_rule, controller_debug_file_line_d); + controller_print_error_rule_item_rule_not_loaded(&main->program.error, &cache->action, alias_rule, F_status_debug_source_d); return status; } @@ -445,8 +445,8 @@ extern "C" { status = controller_lock_read_standard(type != controller_instance_type_exit_e, controller_lock_check_flag_yes_d, &main->thread, &instance->active); if (status != F_okay) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_true, controller_debug_file_line_d); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(status), controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_true, F_status_debug_source_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(status), F_status_debug_source_d); return status; } @@ -456,7 +456,7 @@ extern "C" { if (F_status_is_error(status)) { f_thread_unlock(&instance->active); - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_false, F_status_debug_source_d); return status; } @@ -583,7 +583,7 @@ extern "C" { if (F_status_is_error(status)) { f_thread_unlock(&instance->active); - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_true, F_status_debug_source_d); return status; } @@ -599,7 +599,7 @@ extern "C" { if (F_status_is_error(status)) { f_thread_unlock(&instance->active); - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status), F_false, F_status_debug_source_d); return status; } @@ -631,7 +631,7 @@ extern "C" { f_status_t status = controller_lock_read_instance(instance, &instance->use); if (F_status_is_error(status)) { - controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status), F_true, F_status_debug_source_d); return status; } @@ -671,7 +671,7 @@ extern "C" { else { status = F_status_set_error(F_found_not); - controller_print_error_rule_item_rule_not_loaded(&instance->main->program.error, &instance->cache.action, instance->rule.alias, controller_debug_file_line_d); + controller_print_error_rule_item_rule_not_loaded(&instance->main->program.error, &instance->cache.action, instance->rule.alias, F_status_debug_source_d); } if (status == F_child) return status; @@ -689,7 +689,7 @@ extern "C" { const f_status_t status_lock = controller_lock_write_instance(instance, &instance->use); if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status_lock), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status_lock), F_false, F_status_debug_source_d); return status_lock; } @@ -714,7 +714,7 @@ extern "C" { f_status_t status = controller_lock_write_instance(instance, &instance->use); if (F_status_is_error(status)) { - controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status), F_false, F_status_debug_source_d); return status; } @@ -741,7 +741,7 @@ extern "C" { f_status_t status = controller_lock_write_instance(instance, &instance->use); if (F_status_is_error(status)) { - controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status), F_false, controller_debug_file_line_d); + controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status), F_false, F_status_debug_source_d); return status; } @@ -769,7 +769,7 @@ extern "C" { f_status_t status = controller_lock_read_instance(instance, &instance->use); if (F_status_is_error(status)) { - controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status), F_true, F_status_debug_source_d); return status; } @@ -781,7 +781,7 @@ extern "C" { // Never continue on circular recursion errors even in simulate mode. status = F_status_set_error(F_recurse); - controller_print_error_rule_stack_already(&instance->main->program.error, &instance->cache.action, instance->rule.alias, F_true, controller_debug_file_line_d); + controller_print_error_rule_stack_already(&instance->main->program.error, &instance->cache.action, instance->rule.alias, F_true, F_status_debug_source_d); break; } diff --git a/sources/c/program/controller/main/rule/item.c b/sources/c/program/controller/main/rule/item.c index a765f67..f95d8d2 100644 --- a/sources/c/program/controller/main/rule/item.c +++ b/sources/c/program/controller/main/rule/item.c @@ -125,7 +125,7 @@ extern "C" { type = controller_rule_action_type_with_e; } else { - controller_print_warning_rule_action_unknown(&main->program.warning, &cache->action, cache->action.name_action, controller_debug_file_line_d); + controller_print_warning_rule_action_unknown(&main->program.warning, &cache->action, cache->action.name_action, F_status_debug_source_d); continue; } @@ -134,7 +134,7 @@ extern "C" { if (type == controller_rule_action_type_group_e || type == controller_rule_action_type_pid_file_e || type == controller_rule_action_type_user_e) { state->status = F_status_set_error(F_support_not); - controller_print_error_rule_action_fss_0003_unsupported(&main->program.error, &cache->action, cache->action.name_action, controller_debug_file_line_d); + controller_print_error_rule_action_fss_0003_unsupported(&main->program.error, &cache->action, cache->action.name_action, F_status_debug_source_d); break; } diff --git a/sources/c/program/controller/main/rule/read.c b/sources/c/program/controller/main/rule/read.c index 557af82..320cba2 100644 --- a/sources/c/program/controller/main/rule/read.c +++ b/sources/c/program/controller/main/rule/read.c @@ -272,7 +272,7 @@ extern "C" { rule->items.array[rule->items.used].type = controller_rule_item_type_utility_e; } else { - controller_print_warning_rule_item_unknown(&main->program.warning, &cache->action, cache->action.name_item, controller_debug_file_line_d); + controller_print_warning_rule_item_unknown(&main->program.warning, &cache->action, cache->action.name_item, F_status_debug_source_d); continue; } @@ -316,7 +316,7 @@ extern "C" { } if (F_status_is_error(state.status)) { - controller_print_error_rule_item(&main->program.error, &cache->action, for_item, F_status_set_fine(state.status), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, for_item, F_status_set_fine(state.status), F_status_debug_source_d); rule->status[0] = controller_error_simplify(F_status_set_fine(state.status)); diff --git a/sources/c/program/controller/main/rule/setting.c b/sources/c/program/controller/main/rule/setting.c index 8beccf9..fb8823e 100644 --- a/sources/c/program/controller/main/rule/setting.c +++ b/sources/c/program/controller/main/rule/setting.c @@ -127,7 +127,7 @@ extern "C" { fll_fss_extended_read(cache->buffer_item, &range, &cache->object_actions, &cache->content_actions, 0, 0, &cache->delimits, 0, &state); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fll_fss_extended_read), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fll_fss_extended_read), F_true, F_false, F_status_debug_source_d); return state.status; } @@ -163,7 +163,7 @@ extern "C" { state.status = f_string_dynamic_partial_append_nulless(cache->buffer_item, cache->object_actions.array[i], &cache->action.name_item); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_return = state.status; @@ -179,7 +179,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } @@ -238,7 +238,7 @@ extern "C" { else { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_warning_rule_setting_unknown(&main->program.warning, &cache->action, cache->action.name_item, "Unknown", controller_debug_file_line_d); + controller_print_warning_rule_setting_unknown(&main->program.warning, &cache->action, cache->action.name_item, "Unknown", F_status_debug_source_d); continue; } @@ -258,9 +258,9 @@ extern "C" { state.status = original; } - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, F_status_debug_source_d); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(state.status), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(state.status), F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_return = state.status; @@ -279,7 +279,7 @@ extern "C" { if (empty_disallow) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_warning_rule_setting_unknown(&main->program.warning, &cache->action, cache->action.name_item, "Empty", controller_debug_file_line_d); + controller_print_warning_rule_setting_unknown(&main->program.warning, &cache->action, cache->action.name_item, "Empty", F_status_debug_source_d); continue; } @@ -289,7 +289,7 @@ extern "C" { if (!cache->content_actions.array[i].used) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "requires one or more Content", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "requires one or more Content", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -307,7 +307,7 @@ extern "C" { state.status = f_memory_array_increase(controller_allocation_small_d, sizeof(int32_t), (void **) &rule->affinity.array, &rule->affinity.used, &rule->affinity.size); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, F_status_debug_source_d); break; } @@ -328,13 +328,13 @@ extern "C" { if (state.status == F_data_not || state.status == F_number || state.status == F_number_overflow || state.status == F_number_underflow || state.status == F_number_negative || state.status == F_number_decimal) { if (state.status == F_number_underflow) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[j], ", the number is too small for this system", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[j], ", the number is too small for this system", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else if (state.status == F_number_overflow || state.status == F_number_positive) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[j], ", the number is too large for this system", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[j], ", the number is too large for this system", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid number", cache->buffer_item, cache->content_actions.array[i].array[j], ", only whole numbers are allowed for an affinity value", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid number", cache->buffer_item, cache->content_actions.array[i].array[j], ", only whole numbers are allowed for an affinity value", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } state.status = F_status_set_error(F_valid_not); @@ -344,7 +344,7 @@ extern "C" { } } else { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect), F_true, F_false, F_status_debug_source_d); state.status = F_status_set_error(state.status); @@ -359,7 +359,7 @@ extern "C" { rule->affinity.array[rule->affinity.used++] = number; } // for - controller_print_error_rule_setting_values(&main->program.error, cache, controller_affinity_s, i, controller_debug_file_line_d); + controller_print_error_rule_setting_values(&main->program.error, cache, controller_affinity_s, i, F_status_debug_source_d); continue; } @@ -368,7 +368,7 @@ extern "C" { if (cache->content_actions.array[i].used != 2) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "requires exactly two Content", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "requires exactly two Content", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -387,7 +387,7 @@ extern "C" { state.status = f_memory_array_increase(controller_allocation_small_d, sizeof(f_string_map_t), (void **) &setting_maps->array, &setting_maps->used, &setting_maps->size); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_return = state.status; @@ -403,7 +403,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } @@ -414,7 +414,7 @@ extern "C" { state.status = f_string_dynamic_partial_append_nulless(cache->buffer_item, cache->content_actions.array[i].array[0], &setting_maps->array[setting_maps->used].key); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_return = state.status; @@ -430,7 +430,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } @@ -438,7 +438,7 @@ extern "C" { state.status = f_string_dynamic_partial_append_nulless(cache->buffer_item, cache->content_actions.array[i].array[1], &setting_maps->array[setting_maps->used].value); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_return = state.status; @@ -454,12 +454,12 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } - controller_print_error_rule_setting_mapping(&main->program.error, type == controller_rule_setting_type_define_e ? controller_define_s : controller_parameter_s, setting_maps->array[setting_maps->used], controller_debug_file_line_d); + controller_print_error_rule_setting_mapping(&main->program.error, type == controller_rule_setting_type_define_e ? controller_define_s : controller_parameter_s, setting_maps->array[setting_maps->used], F_status_debug_source_d); ++setting_maps->used; @@ -470,7 +470,7 @@ extern "C" { if (cache->content_actions.array[i].used < 2 || rule->has & controller_rule_has_cgroup_d) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "requires two or more Content", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "requires two or more Content", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -486,7 +486,7 @@ extern "C" { rule->cgroup.as_new = F_true; } else { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unknown option", cache->buffer_item, cache->content_actions.array[i].array[0], "", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unknown option", cache->buffer_item, cache->content_actions.array[i].array[0], "", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -500,7 +500,7 @@ extern "C" { state.status = f_string_dynamic_append(main->process.path_cgroup, &rule->cgroup.path); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_append), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_append), F_true, F_false, F_status_debug_source_d); } else { rule->cgroup.groups.used = 0; @@ -510,7 +510,7 @@ extern "C" { state.status = f_memory_array_increase(controller_allocation_small_d, sizeof(f_string_dynamic_t), (void **) &rule->cgroup.groups.array, &rule->cgroup.groups.used, &rule->cgroup.groups.size); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, F_status_debug_source_d); break; } @@ -520,7 +520,7 @@ extern "C" { state.status = f_string_dynamic_partial_append_nulless(cache->buffer_item, cache->content_actions.array[i].array[j], &rule->cgroup.groups.array[rule->cgroup.groups.used]); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, F_status_debug_source_d); break; } @@ -546,14 +546,14 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } rule->has |= controller_rule_has_cgroup_d; - controller_print_error_rule_setting_values(&main->program.error, cache, controller_cgroup_s, i, controller_debug_file_line_d); + controller_print_error_rule_setting_values(&main->program.error, cache, controller_cgroup_s, i, F_status_debug_source_d); continue; } @@ -562,7 +562,7 @@ extern "C" { if (cache->content_actions.array[i].used != 3) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "requires three Content", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "requires three Content", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -622,7 +622,7 @@ extern "C" { else { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_setting_reason_name(&main->program.error, &cache->action, "Unknown resource limit type", cache->action.name_action, controller_debug_file_line_d); + controller_print_error_rule_setting_reason_name(&main->program.error, &cache->action, "Unknown resource limit type", cache->action.name_action, F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -638,7 +638,7 @@ extern "C" { state.status = F_status_set_error(F_valid_not); - controller_print_error_rule_setting_reason_name(&main->program.error, &cache->action, "The resource limit type is already specified", cache->action.name_action, controller_debug_file_line_d); + controller_print_error_rule_setting_reason_name(&main->program.error, &cache->action, "The resource limit type is already specified", cache->action.name_action, F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = state.status; @@ -651,7 +651,7 @@ extern "C" { state.status = f_memory_array_increase(controller_allocation_small_d, sizeof(f_limit_set_t), (void **) &rule->limits.array, &rule->limits.used, &rule->limits.size); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_return = state.status; @@ -667,7 +667,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } @@ -692,13 +692,13 @@ extern "C" { if (state.status == F_data_not || state.status == F_number || state.status == F_number_overflow || state.status == F_number_underflow || state.status == F_number_negative || state.status == F_number_positive || state.status == F_number_decimal) { if (state.status == F_number_underflow) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[j], ", the number is too small for this system", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[j], ", the number is too small for this system", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else if (state.status == F_number_overflow) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[j], ", the number is too large for this system", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[j], ", the number is too large for this system", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[j], ", only whole numbers are allowed for a resource limit value", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[j], ", only whole numbers are allowed for a resource limit value", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } state.status = F_status_set_error(F_valid_not); @@ -708,7 +708,7 @@ extern "C" { } } else { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect), F_true, F_false, F_status_debug_source_d); state.status = F_status_set_error(state.status); @@ -732,7 +732,7 @@ extern "C" { rule->limits.array[rule->limits.used++].type = type; - controller_print_error_rule_setting_values(&main->program.error, cache, controller_limit_s, i, controller_debug_file_line_d); + controller_print_error_rule_setting_values(&main->program.error, cache, controller_limit_s, i, F_status_debug_source_d); continue; } @@ -752,7 +752,7 @@ extern "C" { if (setting_value->used || !cache->content_actions.array[i].used) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "requires one or more Content", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "requires one or more Content", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -800,7 +800,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } @@ -817,7 +817,7 @@ extern "C" { } if (state.status == F_false) { - controller_print_error_rule_setting_name_invalid(&main->program.error, &cache->action, *setting_value, controller_debug_file_line_d); + controller_print_error_rule_setting_name_invalid(&main->program.error, &cache->action, *setting_value, F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -826,13 +826,13 @@ extern "C" { else { // This function should only return F_complete_not_utf on error. - controller_print_error_rule(&main->program.error, &cache->action, F_complete_not_utf, macro_controller_f(controller_validate_has_graph), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_complete_not_utf, macro_controller_f(controller_validate_has_graph), F_true, F_false, F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = state.status; } - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(state.status), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(state.status), F_status_debug_source_d); } setting_value->used = 0; @@ -840,13 +840,13 @@ extern "C" { continue; } - controller_print_error_rule_setting_value(&main->program.error, type == controller_rule_setting_type_name_e ? controller_name_s : controller_engine_s, f_string_empty_s, *setting_value, 0, controller_debug_file_line_d); + controller_print_error_rule_setting_value(&main->program.error, type == controller_rule_setting_type_name_e ? controller_name_s : controller_engine_s, f_string_empty_s, *setting_value, 0, F_status_debug_source_d); } else if (type == controller_rule_setting_type_path_e) { state.status = f_string_dynamic_partial_append_nulless(cache->buffer_item, cache->content_actions.array[i].array[0], setting_value); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_return = state.status; @@ -864,12 +864,12 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } - controller_print_error_rule_setting_value(&main->program.error, controller_path_s, f_string_empty_s, *setting_value, 0, controller_debug_file_line_d); + controller_print_error_rule_setting_value(&main->program.error, controller_path_s, f_string_empty_s, *setting_value, 0, F_status_debug_source_d); } continue; @@ -879,7 +879,7 @@ extern "C" { if (cache->content_actions.array[i].used < 1 || cache->content_actions.array[i].used > 2 || rule->has & controller_rule_has_scheduler_d) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "requires either one or two Content", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "requires either one or two Content", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -913,7 +913,7 @@ extern "C" { rule->scheduler.priority = 49; } else { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unknown scheduler", cache->buffer_item, cache->content_actions.array[i].array[0], "", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unknown scheduler", cache->buffer_item, cache->content_actions.array[i].array[0], "", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -950,14 +950,14 @@ extern "C" { state.status = original; } - controller_print_error_rule_setting_number_invalid_scheduler(&main->program.error, &cache->action, cache->buffer_item, cache->content_actions.array[i].array[1], zero_only, controller_debug_file_line_d); + controller_print_error_rule_setting_number_invalid_scheduler(&main->program.error, &cache->action, cache->buffer_item, cache->content_actions.array[i].array[1], zero_only, F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); } } else { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect), F_true, F_false, F_status_debug_source_d); state.status = F_status_set_error(state.status); if (F_status_is_error_not(status_return)) { @@ -973,7 +973,7 @@ extern "C" { rule->has |= controller_rule_has_scheduler_d; - controller_print_error_rule_setting_values(&main->program.error, cache, controller_scheduler_s, i, controller_debug_file_line_d); + controller_print_error_rule_setting_values(&main->program.error, cache, controller_scheduler_s, i, F_status_debug_source_d); continue; } @@ -982,7 +982,7 @@ extern "C" { if (cache->content_actions.array[i].used != 2) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "requires exactly two Content", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "requires exactly two Content", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -1011,7 +1011,7 @@ extern "C" { state.status = original; } - controller_print_error_rule_setting_number_invalid_timeout(&main->program.error, &cache->action, cache->buffer_item, cache->content_actions.array[i].array[0], controller_debug_file_line_d); + controller_print_error_rule_setting_number_invalid_timeout(&main->program.error, &cache->action, cache->buffer_item, cache->content_actions.array[i].array[0], F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -1037,10 +1037,10 @@ extern "C" { state.status = F_status_set_fine(state.status); if (state.status == F_number_overflow) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[1], ", the number is too large for this system", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an unsupported number", cache->buffer_item, cache->content_actions.array[i].array[1], ", the number is too large for this system", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else if (state.status == F_data_not || state.status == F_number || state.status == F_number_underflow || state.status == F_number_negative || state.status == F_number_positive || state.status == F_number_decimal) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid number", cache->buffer_item, cache->content_actions.array[i].array[1], ", only positive whole numbers are allowed", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid number", cache->buffer_item, cache->content_actions.array[i].array[1], ", only positive whole numbers are allowed", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else { { @@ -1051,7 +1051,7 @@ extern "C" { state.status = original; } - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect), F_true, F_false, F_status_debug_source_d); } if (F_status_is_error_not(status_return)) { @@ -1089,7 +1089,7 @@ extern "C" { break; } - controller_print_error_rule_setting_value(&main->program.error, controller_timeout_s, name_sub, cache->action.generic, 0, controller_debug_file_line_d); + controller_print_error_rule_setting_value(&main->program.error, controller_timeout_s, name_sub, cache->action.generic, 0, F_status_debug_source_d); } } @@ -1100,7 +1100,7 @@ extern "C" { if (cache->content_actions.array[i].used != 1 || type == controller_rule_setting_type_capability_e && rule->capability || type == controller_rule_setting_type_group_e && (rule->has & controller_rule_has_group_d) || type == controller_rule_setting_type_nice_e && (rule->has & controller_rule_has_nice_d) || type == controller_rule_setting_type_user_e && (rule->has & controller_rule_has_user_d)) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "requires exactly one Content", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "requires exactly one Content", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -1125,9 +1125,9 @@ extern "C" { controller_lock_print(main->program.error.to, &main->thread); - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, F_status_debug_source_d); - controller_print_error_rule_cache(&main->program.error, &cache->action, F_false, controller_debug_file_line_d); + controller_print_error_rule_cache(&main->program.error, &cache->action, F_false, F_status_debug_source_d); controller_unlock_print_flush(main->program.error.to, &main->thread); @@ -1156,9 +1156,9 @@ extern "C" { controller_lock_print(main->program.error.to, &main->thread); - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_capability_from_text), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_capability_from_text), F_true, F_false, F_status_debug_source_d); - controller_print_error_rule_cache(&main->program.error, &cache->action, F_false, controller_debug_file_line_d); + controller_print_error_rule_cache(&main->program.error, &cache->action, F_false, F_status_debug_source_d); controller_unlock_print_flush(main->program.error.to, &main->thread); @@ -1169,7 +1169,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "failed to process the capabilities", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "failed to process the capabilities", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -1178,7 +1178,7 @@ extern "C" { continue; } - controller_print_error_rule_setting_value(&main->program.error, controller_capability_s, f_string_empty_s, cache->action.generic, 0, controller_debug_file_line_d); + controller_print_error_rule_setting_value(&main->program.error, controller_capability_s, f_string_empty_s, cache->action.generic, 0, F_status_debug_source_d); } else if (type == controller_rule_setting_type_nice_e) { f_number_signed_t number = 0; @@ -1206,14 +1206,14 @@ extern "C" { state.status = original; } - controller_print_error_rule_setting_number_invalid_nice(&main->program.error, &cache->action, cache->buffer_item, cache->content_actions.array[i].array[0], controller_debug_file_line_d); + controller_print_error_rule_setting_number_invalid_nice(&main->program.error, &cache->action, cache->buffer_item, cache->content_actions.array[i].array[0], F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); } } else { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(fl_conversion_dynamic_partial_to_signed_detect), F_true, F_false, F_status_debug_source_d); state.status = F_status_set_error(state.status); if (F_status_is_error_not(status_return)) { @@ -1241,9 +1241,9 @@ extern "C" { controller_lock_print(main->program.error.to, &main->thread); - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, F_status_debug_source_d); - controller_print_error_rule_cache(&main->program.error, &cache->action, F_false, controller_debug_file_line_d); + controller_print_error_rule_cache(&main->program.error, &cache->action, F_false, F_status_debug_source_d); controller_unlock_print_flush(main->program.error.to, &main->thread); @@ -1259,7 +1259,7 @@ extern "C" { } if (F_status_is_error_not(state.status)) { - controller_print_error_rule_setting_value(&main->program.error, controller_nice_s, f_string_empty_s, cache->action.generic, 0, controller_debug_file_line_d); + controller_print_error_rule_setting_value(&main->program.error, controller_nice_s, f_string_empty_s, cache->action.generic, 0, F_status_debug_source_d); } } } @@ -1273,13 +1273,13 @@ extern "C" { state.status = F_status_set_fine(state.status); if (state.status == F_exist_not) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid user", cache->buffer_item, cache->content_actions.array[i].array[0], ", because no user was found by that name", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid user", cache->buffer_item, cache->content_actions.array[i].array[0], ", because no user was found by that name", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else if (state.status == F_number_too_large) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid user", cache->buffer_item, cache->content_actions.array[i].array[0], ", because the given ID is too large", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid user", cache->buffer_item, cache->content_actions.array[i].array[0], ", because the given ID is too large", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else if (state.status == F_number) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid user", cache->buffer_item, cache->content_actions.array[i].array[0], ", because the given ID is not a valid supported number", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid user", cache->buffer_item, cache->content_actions.array[i].array[0], ", because the given ID is not a valid supported number", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else { { @@ -1290,9 +1290,9 @@ extern "C" { state.status = original; } - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(controller_convert_user_id), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(controller_convert_user_id), F_true, F_false, F_status_debug_source_d); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(state.status), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(state.status), F_status_debug_source_d); } if (F_status_is_error_not(status_return)) { @@ -1308,7 +1308,7 @@ extern "C" { state.status = f_string_dynamic_partial_append_nulless(cache->buffer_item, cache->content_actions.array[i].array[0], &cache->action.generic); - controller_print_error_rule_setting_value(&main->program.error, controller_user_s, f_string_empty_s, cache->action.generic, 0, controller_debug_file_line_d); + controller_print_error_rule_setting_value(&main->program.error, controller_user_s, f_string_empty_s, cache->action.generic, 0, F_status_debug_source_d); } } } @@ -1320,7 +1320,7 @@ extern "C" { if (!cache->content_actions.array[i].used) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "requires one or more Content", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "requires one or more Content", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -1338,7 +1338,7 @@ extern "C" { state.status = f_memory_array_increase(controller_allocation_small_d, sizeof(f_int32s_t), (void **) &rule->groups.array, &rule->groups.used, &rule->groups.size); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_return = state.status; @@ -1354,7 +1354,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } @@ -1365,13 +1365,13 @@ extern "C" { state.status = F_status_set_fine(state.status); if (state.status == F_exist_not) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid group", cache->buffer_item, cache->content_actions.array[i].array[j], ", because no group was found by that name", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid group", cache->buffer_item, cache->content_actions.array[i].array[j], ", because no group was found by that name", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else if (state.status == F_number_too_large) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid group", cache->buffer_item, cache->content_actions.array[i].array[j], ", because the given ID is too large", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid group", cache->buffer_item, cache->content_actions.array[i].array[j], ", because the given ID is too large", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else if (state.status == F_number) { - controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid group", cache->buffer_item, cache->content_actions.array[i].array[j], ", because the given ID is not a valid supported number", cache->object_actions.array[i].start, line_item, &state, controller_debug_file_line_d); + controller_print_error_rule_setting_with_range(&main->program.error, &cache->action, " has an invalid group", cache->buffer_item, cache->content_actions.array[i].array[j], ", because the given ID is not a valid supported number", cache->object_actions.array[i].start, line_item, &state, F_status_debug_source_d); } else { { @@ -1382,9 +1382,9 @@ extern "C" { state.status = original; } - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_account_group_id_by_name), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_account_group_id_by_name), F_true, F_false, F_status_debug_source_d); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(state.status), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(state.status), F_status_debug_source_d); } if (F_status_is_error_not(status_return)) { @@ -1402,7 +1402,7 @@ extern "C" { } } // for - controller_print_error_rule_setting_values(&main->program.error, cache, controller_group_s, i, controller_debug_file_line_d); + controller_print_error_rule_setting_values(&main->program.error, cache, controller_group_s, i, F_status_debug_source_d); continue; } @@ -1415,7 +1415,7 @@ extern "C" { state.status = f_memory_array_increase(controller_allocation_small_d, sizeof(f_string_dynamic_t), (void **) &setting_values->array, &setting_values->used, &setting_values->size); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_return = state.status; @@ -1431,7 +1431,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } @@ -1441,7 +1441,7 @@ extern "C" { state.status = f_string_dynamic_partial_append_nulless(cache->buffer_item, cache->content_actions.array[i].array[j], &setting_values->array[setting_values->used]); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_string_dynamic_partial_append_nulless), F_true, F_false, F_status_debug_source_d); setting_values->array[setting_values->used].used = 0; @@ -1459,7 +1459,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } @@ -1476,7 +1476,7 @@ extern "C" { } if (state.status == F_false) { - controller_print_error_rule_setting_reason_name(&main->program.error, &cache->action, "Rule setting has an invalid environment variable name", setting_values->array[setting_values->used], controller_debug_file_line_d); + controller_print_error_rule_setting_reason_name(&main->program.error, &cache->action, "Rule setting has an invalid environment variable name", setting_values->array[setting_values->used], F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -1485,7 +1485,7 @@ extern "C" { else { // This function should only return F_complete_not_utf on error. - controller_print_error_rule(&main->program.error, &cache->action, F_complete_not_utf, macro_controller_f(controller_validate_environment_name), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_complete_not_utf, macro_controller_f(controller_validate_environment_name), F_true, F_false, F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = state.status; @@ -1494,7 +1494,7 @@ extern "C" { setting_values->array[setting_values->used].used = 0; - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(state.status), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(state.status), F_status_debug_source_d); continue; } @@ -1505,7 +1505,7 @@ extern "C" { rule->has |= controller_rule_has_environment_d; if (cache->content_actions.array[i].used) { - controller_print_error_rule_setting_values(&main->program.error, cache, controller_environment_s, i, controller_debug_file_line_d); + controller_print_error_rule_setting_values(&main->program.error, cache, controller_environment_s, i, F_status_debug_source_d); } else { controller_print_output_rule_execute_setting_empty_set(&main->program.output, controller_environment_s); @@ -1518,7 +1518,7 @@ extern "C" { if (cache->content_actions.array[i].used != 4) { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, line_item, &state); - controller_print_error_rule_setting(&main->program.error, &cache->action, "requires exactly four Content", controller_debug_file_line_d); + controller_print_error_rule_setting(&main->program.error, &cache->action, "requires exactly four Content", F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -1557,7 +1557,7 @@ extern "C" { else { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_setting_number_invalid_on_first(&main->program.error, &cache->action, cache->buffer_item, cache->content_actions.array[i].array[1], controller_debug_file_line_d); + controller_print_error_rule_setting_number_invalid_on_first(&main->program.error, &cache->action, cache->buffer_item, cache->content_actions.array[i].array[1], F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -1575,7 +1575,7 @@ extern "C" { } if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, F_status_debug_source_d); } else { if (f_compare_dynamic_partial_string(controller_need_s.string, cache->buffer_item, controller_need_s.used, cache->content_actions.array[i].array[1]) == F_equal_to) { @@ -1590,7 +1590,7 @@ extern "C" { else { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_setting_number_invalid_on_second(&main->program.error, &cache->action, cache->buffer_item, cache->content_actions.array[i].array[1], controller_debug_file_line_d); + controller_print_error_rule_setting_number_invalid_on_second(&main->program.error, &cache->action, cache->buffer_item, cache->content_actions.array[i].array[1], F_status_debug_source_d); if (F_status_is_error_not(status_return)) { status_return = F_status_set_error(F_valid_not); @@ -1602,7 +1602,7 @@ extern "C" { state.status = f_memory_array_increase(controller_allocation_small_d, sizeof(f_string_dynamic_t), (void **) &setting_values->array, &setting_values->used, &setting_values->size); if (F_status_is_error(state.status)) { - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_memory_array_increase), F_true, F_false, F_status_debug_source_d); } } @@ -1621,7 +1621,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } @@ -1645,7 +1645,7 @@ extern "C" { controller_rule_setting_line_action(main, &cache->action, cache->buffer_item, cache->object_actions.array[i].start, cache->action.line_item, &state); - controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), controller_debug_file_line_d); + controller_print_error_rule_item(&main->program.error, &cache->action, F_false, F_status_set_fine(original), F_status_debug_source_d); continue; } @@ -1657,7 +1657,7 @@ extern "C" { if (F_status_is_error(state.status)) { setting_values->array[setting_values->used].used = 0; - controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_file_name_base), F_true, F_false, controller_debug_file_line_d); + controller_print_error_rule(&main->program.error, &cache->action, F_status_set_fine(state.status), macro_controller_f(f_file_name_base), F_true, F_false, F_status_debug_source_d); if (F_status_set_fine(state.status) == F_memory_not) { status_return = state.status; diff --git a/sources/c/program/controller/main/rule/wait.c b/sources/c/program/controller/main/rule/wait.c index 3fe743b..797d581 100644 --- a/sources/c/program/controller/main/rule/wait.c +++ b/sources/c/program/controller/main/rule/wait.c @@ -14,7 +14,7 @@ extern "C" { f_status_t status_lock = controller_lock_read_standard(is_normal, controller_lock_check_flag_no_d, &main->thread, &main->thread.lock.instance); if (status_lock != F_okay) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), F_true, F_status_debug_source_d); return status_lock; } @@ -151,7 +151,7 @@ extern "C" { } if (F_status_is_error(status_lock)) { - controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), !(locked & 0x4), controller_debug_file_line_d); + controller_print_error_lock_critical(&main->program.error, F_status_set_fine(status_lock), !(locked & 0x4), F_status_debug_source_d); return status_lock; } diff --git a/sources/c/program/controller/main/thread/instance.c b/sources/c/program/controller/main/thread/instance.c index e6ad454..e918d1f 100644 --- a/sources/c/program/controller/main/thread/instance.c +++ b/sources/c/program/controller/main/thread/instance.c @@ -15,7 +15,7 @@ extern "C" { status = controller_lock_read_instance(instance, &instance->active); if (F_status_is_error(status)) { - controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status), F_true, controller_debug_file_line_d); + controller_print_error_lock_critical(&instance->main->program.error, F_status_set_fine(status), F_true, F_status_debug_source_d); // According to some man pages, pthread_exit() calls exit(0), so expliticly exit to ensure a non-zero code is returned when needed. exit(EXIT_FAILURE);