The practice of having an increase(), increase_by(), etc.. has become standard.
Redesign the code to better follow this, simplifying the code base some.
There is more work to do in this regard, but this focuses on just changing the existing code.
While I prefer to always return "const" where I can, simplify the design to always return "f_status_t" instead of using the wrapping macro "f_return_status".
This will make things between C and C++ more consistent.
build_libraries -lc -lcap
build_libraries-level
build_libraries-level_threadless
-build_sources_library-level account.c private-account.c capability.c console.c conversion.c directory.c private-directory.c environment.c private-environment.c file.c private-file.c fss.c iki.c private-iki.c limit.c private-limit.c memory.c path.c private-path.c pipe.c print.c private-print.c serialize.c private-serialize.c signal.c socket.c thread.c private-thread.c utf.c private-utf.c
-build_sources_library-level_threadless account.c private-account.c capability.c console.c conversion.c directory.c private-directory.c environment.c private-environment.c file.c private-file.c fss.c iki.c private-iki.c limit.c private-limit.c memory.c path.c private-path.c pipe.c print.c private-print.c serialize.c private-serialize.c signal.c socket.c utf.c private-utf.c
+build_sources_library account.c private-account.c capability.c console.c conversion.c directory.c private-directory.c environment.c private-environment.c file.c private-file.c fss.c iki.c private-iki.c limit.c memory.c memory_structure.c private-memory.c path.c private-path.c pipe.c print.c private-print.c serialize.c private-serialize.c signal.c socket.c utf.c private-utf.c
+build_sources_library-level thread.c
build_sources_program
-build_sources_headers-level account.h account-common.h capability.h capability-common.h color.h console.h console-common.h control_group.h control_group-common.h conversion.h conversion-common.h directory.h directory_type.h directory-common.h environment.h environment-common.h execute.h execute-common.h file.h file-common.h fss.h fss-common.h fss_comment.h fss_delimit.h fss_named.h fss_nest.h fss_quote.h fss_set.h iki.h iki-common.h limit.h limit-common.h memory.h memory_structure.h path.h path-common.h pipe.h print.h serialize.h serialize-common.h signal.h signal-common.h socket.h socket-common.h status.h status_array.h string.h string-common.h string_dynamic.h string_map.h string_quantity.h string_range.h string_triple.h thread.h thread-common.h type.h type_array.h utf.h utf-common.h
-build_sources_headers-level_threadless account.h account-common.h capability.h capability-common.h color.h console.h console-common.h control_group.h control_group-common.h conversion.h conversion-common.h directory.h directory_type.h directory-common.h environment.h environment-common.h execute.h execute-common.h file.h file-common.h fss.h fss-common.h fss_comment.h fss_delimit.h fss_named.h fss_nest.h fss_quote.h fss_set.h iki.h iki-common.h limit.h limit-common.h memory.h memory_structure.h path.h path-common.h pipe.h print.h serialize.h serialize-common.h signal.h signal-common.h socket.h socket-common.h status.h status_array.h string.h string-common.h string_dynamic.h string_map.h string_quantity.h string_range.h string_triple.h type.h type_array.h utf.h utf-common.h
+build_sources_headers account.h account-common.h capability.h capability-common.h color.h console.h console-common.h control_group.h control_group-common.h conversion.h conversion-common.h directory.h directory_type.h directory-common.h environment.h environment-common.h execute.h execute-common.h file.h file-common.h fss.h fss-common.h fss_comment.h fss_delimit.h fss_named.h fss_nest.h fss_quote.h fss_set.h iki.h iki-common.h limit.h limit-common.h memory.h memory_structure.h memory-common.h path.h path-common.h pipe.h print.h serialize.h serialize-common.h signal.h signal-common.h socket.h socket-common.h status.h status_array.h string.h string-common.h string_dynamic.h string_map.h string_quantity.h string_range.h string_triple.h type.h type_array.h utf.h utf-common.h
+build_sources_headers-level thread.h thread-common.h
build_sources_script
build_sources_setting
build_script yes
build_libraries -lc -lcap
build_libraries-monolithic
build_libraries-monolithic_threadless
-build_sources_library-monolithic level_0/account.c level_0/private-account.c level_0/capability.c level_0/console.c level_0/conversion.c level_0/directory.c level_0/private-directory.c level_0/environment.c level_0/private-environment.c level_0/file.c level_0/private-file.c level_0/fss.c level_0/iki.c level_0/private-iki.c level_0/limit.c level_0/private-limit.c level_0/memory.c level_0/path.c level_0/private-path.c level_0/pipe.c level_0/print.c level_0/private-print.c level_0/serialize.c level_0/private-serialize.c level_0/signal.c level_0/socket.c level_0/thread.c level_0/private-thread.c level_0/utf.c level_0/private-utf.c level_1/color.c level_1/console.c level_1/control_group.c level_1/conversion.c level_1/directory.c level_1/private-directory.c level_1/environment.c level_1/private-fss.c level_1/fss_basic.c level_1/fss_basic_list.c level_1/fss_embedded_list.c level_1/fss_extended.c level_1/fss_extended_list.c level_1/iki.c level_1/print.c level_1/private-print.c level_1/status.c level_1/string.c level_1/private-string.c level_1/type.c level_1/private-type.c level_1/utf.c level_1/private-utf.c level_1/utf_file.c level_1/private-utf_file.c level_2/control_group.c level_2/environment.c level_2/error.c level_2/private-error.c level_2/execute.c level_2/private-execute.c level_2/file.c level_2/private-file.c level_2/fss.c level_2/private-fss.c level_2/fss_basic.c level_2/fss_basic_list.c level_2/fss_embedded_list.c level_2/fss_extended.c level_2/fss_extended_list.c level_2/fss_status.c level_2/iki.c level_2/private-iki.c level_2/path.c level_2/program.c level_2/status.c
-build_sources_library-monolithic_threadless level_0/account.c level_0/private-account.c level_0/capability.c level_0/console.c level_0/conversion.c level_0/directory.c level_0/private-directory.c level_0/environment.c level_0/private-environment.c level_0/file.c level_0/private-file.c level_0/fss.c level_0/iki.c level_0/private-iki.c level_0/limit.c level_0/private-limit.c level_0/memory.c level_0/path.c level_0/private-path.c level_0/pipe.c level_0/print.c level_0/private-print.c level_0/serialize.c level_0/private-serialize.c level_0/signal.c level_0/socket.c level_0/utf.c level_0/private-utf.c level_1/color.c level_1/console.c level_1/control_group.c level_1/conversion.c level_1/directory.c level_1/private-directory.c level_1/environment.c level_1/private-fss.c level_1/fss_basic.c level_1/fss_basic_list.c level_1/fss_embedded_list.c level_1/fss_extended.c level_1/fss_extended_list.c level_1/iki.c level_1/print.c level_1/private-print.c level_1/status.c level_1/string.c level_1/private-string.c level_1/type.c level_1/private-type.c level_1/utf.c level_1/private-utf.c level_1/utf_file.c level_1/private-utf_file.c level_2/control_group.c level_2/environment.c level_2/error.c level_2/private-error.c level_2/execute.c level_2/private-execute.c level_2/file.c level_2/private-file.c level_2/fss.c level_2/private-fss.c level_2/fss_basic.c level_2/fss_basic_list.c level_2/fss_embedded_list.c level_2/fss_extended.c level_2/fss_extended_list.c level_2/fss_status.c level_2/iki.c level_2/private-iki.c level_2/path.c level_2/program.c level_2/status.c
+build_sources_library level_0/account.c level_0/private-account.c level_0/capability.c level_0/console.c level_0/conversion.c level_0/directory.c level_0/private-directory.c level_0/environment.c level_0/private-environment.c level_0/file.c level_0/private-file.c level_0/fss.c level_0/iki.c level_0/private-iki.c level_0/limit.c level_0/memory.c level_0/memory_structure.c level_0/private-memory.c level_0/path.c level_0/private-path.c level_0/pipe.c level_0/print.c level_0/private-print.c level_0/serialize.c level_0/private-serialize.c level_0/signal.c level_0/socket.c level_0/utf.c level_0/private-utf.c
+build_sources_library level_1/color.c level_1/console.c level_1/control_group.c level_1/conversion.c level_1/directory.c level_1/private-directory.c level_1/environment.c level_1/private-fss.c level_1/fss_basic.c level_1/fss_basic_list.c level_1/fss_embedded_list.c level_1/fss_extended.c level_1/fss_extended_list.c level_1/iki.c level_1/print.c level_1/private-print.c level_1/status.c level_1/string.c level_1/private-string.c level_1/type.c level_1/private-type.c level_1/utf.c level_1/private-utf.c level_1/utf_file.c level_1/private-utf_file.c
+build_sources_library level_2/control_group.c level_2/environment.c level_2/error.c level_2/private-error.c level_2/execute.c level_2/private-execute.c level_2/file.c level_2/private-file.c level_2/fss.c level_2/private-fss.c level_2/fss_basic.c level_2/fss_basic_list.c level_2/fss_embedded_list.c level_2/fss_extended.c level_2/fss_extended_list.c level_2/fss_status.c level_2/iki.c level_2/private-iki.c level_2/path.c level_2/program.c level_2/status.c
+build_sources_library-monolithic level_0/thread.c
build_sources_program
-build_sources_headers-monolithic level_0/account.h level_0/account-common.h level_0/capability.h level_0/capability-common.h level_0/color.h level_0/console.h level_0/console-common.h level_0/control_group.h level_0/control_group-common.h level_0/conversion.h level_0/conversion-common.h level_0/directory.h level_0/directory_type.h level_0/directory-common.h level_0/environment.h level_0/environment-common.h level_0/execute.h level_0/execute-common.h level_0/file.h level_0/file-common.h level_0/fss.h level_0/fss-common.h level_0/fss_comment.h level_0/fss_delimit.h level_0/fss_named.h level_0/fss_nest.h level_0/fss_quote.h level_0/fss_set.h level_0/iki.h level_0/iki-common.h level_0/limit.h level_0/limit-common.h level_0/memory.h level_0/memory_structure.h level_0/path.h level_0/path-common.h level_0/pipe.h level_0/print.h level_0/serialize.h level_0/serialize-common.h level_0/signal.h level_0/signal-common.h level_0/socket.h level_0/socket-common.h level_0/status.h level_0/status_array.h level_0/string.h level_0/string-common.h level_0/string_dynamic.h level_0/string_map.h level_0/string_quantity.h level_0/string_range.h level_0/string_triple.h level_0/thread.h level_0/thread-common.h level_0/type.h level_0/type_array.h level_0/utf.h level_0/utf-common.h level_1/color.h level_1/console.h level_1/control_group.h level_1/conversion.h level_1/directory.h level_1/environment.h level_1/execute.h level_1/execute-common.h level_1/fss.h level_1/fss_basic.h level_1/fss_basic_list.h level_1/fss_embedded_list.h level_1/fss_extended.h level_1/fss_extended_list.h level_1/fss_status.h level_1/iki.h level_1/print.h level_1/status.h level_1/string.h level_1/type.h level_1/utf.h level_1/utf_file.h level_2/control_group.h level_2/environment.h level_2/error.h level_2/error-common.h level_2/execute.h level_2/file.h level_2/fss.h level_2/fss_basic.h level_2/fss_basic_list.h level_2/fss_embedded_list.h level_2/fss_extended.h level_2/fss_extended_list.h level_2/fss_status.h level_2/iki.h level_2/path.h level_2/program.h level_2/status.h
-build_sources_headers-monolithic_threadless level_0/account.h level_0/account-common.h level_0/capability.h level_0/capability-common.h level_0/color.h level_0/console.h level_0/console-common.h level_0/control_group.h level_0/control_group-common.h level_0/conversion.h level_0/conversion-common.h level_0/directory.h level_0/directory_type.h level_0/directory-common.h level_0/environment.h level_0/environment-common.h level_0/execute.h level_0/execute-common.h level_0/file.h level_0/file-common.h level_0/fss.h level_0/fss-common.h level_0/fss_comment.h level_0/fss_delimit.h level_0/fss_named.h level_0/fss_nest.h level_0/fss_quote.h level_0/fss_set.h level_0/iki.h level_0/iki-common.h level_0/limit.h level_0/limit-common.h level_0/memory.h level_0/memory_structure.h level_0/path.h level_0/path-common.h level_0/pipe.h level_0/print.h level_0/serialize.h level_0/serialize-common.h level_0/signal.h level_0/signal-common.h level_0/socket.h level_0/socket-common.h level_0/status.h level_0/status_array.h level_0/string.h level_0/string-common.h level_0/string_dynamic.h level_0/string_map.h level_0/string_quantity.h level_0/string_range.h level_0/string_triple.h level_0/type.h level_0/type_array.h level_0/utf.h level_0/utf-common.h level_1/color.h level_1/console.h level_1/control_group.h level_1/conversion.h level_1/directory.h level_1/environment.h level_1/execute.h level_1/execute-common.h level_1/fss.h level_1/fss_basic.h level_1/fss_basic_list.h level_1/fss_embedded_list.h level_1/fss_extended.h level_1/fss_extended_list.h level_1/fss_status.h level_1/iki.h level_1/print.h level_1/status.h level_1/string.h level_1/type.h level_1/utf.h level_1/utf_file.h level_2/control_group.h level_2/environment.h level_2/error.h level_2/error-common.h level_2/execute.h level_2/file.h level_2/fss.h level_2/fss_basic.h level_2/fss_basic_list.h level_2/fss_embedded_list.h level_2/fss_extended.h level_2/fss_extended_list.h level_2/fss_status.h level_2/iki.h level_2/path.h level_2/program.h level_2/status.h
+build_sources_headers level_0/account.h level_0/account-common.h level_0/capability.h level_0/capability-common.h level_0/color.h level_0/console.h level_0/console-common.h level_0/control_group.h level_0/control_group-common.h level_0/conversion.h level_0/conversion-common.h level_0/directory.h level_0/directory_type.h level_0/directory-common.h level_0/environment.h level_0/environment-common.h level_0/execute.h level_0/execute-common.h level_0/file.h level_0/file-common.h level_0/fss.h level_0/fss-common.h level_0/fss_comment.h level_0/fss_delimit.h level_0/fss_named.h level_0/fss_nest.h level_0/fss_quote.h level_0/fss_set.h level_0/iki.h level_0/iki-common.h level_0/limit.h level_0/limit-common.h level_0/memory.h level_0/memory_structure.h level_0/memory-common.h level_0/path.h level_0/path-common.h level_0/pipe.h level_0/print.h level_0/serialize.h level_0/serialize-common.h level_0/signal.h level_0/signal-common.h level_0/socket.h level_0/socket-common.h level_0/status.h level_0/status_array.h level_0/string.h level_0/string-common.h level_0/string_dynamic.h level_0/string_map.h level_0/string_quantity.h level_0/string_range.h level_0/string_triple.h level_0/type.h level_0/type_array.h level_0/utf.h level_0/utf-common.h
+build_sources_headers level_1/color.h level_1/console.h level_1/control_group.h level_1/conversion.h level_1/directory.h level_1/environment.h level_1/execute.h level_1/execute-common.h level_1/fss.h level_1/fss_basic.h level_1/fss_basic_list.h level_1/fss_embedded_list.h level_1/fss_extended.h level_1/fss_extended_list.h level_1/fss_status.h level_1/iki.h level_1/print.h level_1/status.h level_1/string.h level_1/type.h level_1/utf.h level_1/utf_file.h
+build_sources_headers level_2/control_group.h level_2/environment.h level_2/error.h level_2/error-common.h level_2/execute.h level_2/file.h level_2/fss.h level_2/fss_basic.h level_2/fss_basic_list.h level_2/fss_embedded_list.h level_2/fss_extended.h level_2/fss_extended_list.h level_2/fss_status.h level_2/iki.h level_2/path.h level_2/program.h level_2/status.h
+build_sources_headers-monolithic level_0/thread.h level_0/thread-common.h
build_sources_script
build_sources_setting
build_script yes
#endif
#ifndef _di_f_account_by_name_
- f_return_status f_account_by_name(const f_string_t name, f_account_t *account) {
+ f_status_t f_account_by_name(const f_string_t name, f_account_t *account) {
#ifndef _di_level_0_parameter_checking_
if (!account) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_account_by_name_
#ifndef _di_f_account_by_id_
- f_return_status f_account_by_id(const uid_t id, f_account_t *account) {
+ f_status_t f_account_by_id(const uid_t id, f_account_t *account) {
#ifndef _di_level_0_parameter_checking_
if (!account) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_account_by_id_
#ifndef _di_f_account_id_group_by_name_
- f_return_status f_account_id_group_by_name(const f_string_t name, gid_t *id) {
+ f_status_t f_account_id_group_by_name(const f_string_t name, gid_t *id) {
#ifndef _di_level_0_parameter_checking_
if (!id) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_account_id_group_by_name_
#ifndef _di_f_account_id_user_by_name_
- f_return_status f_account_id_user_by_name(const f_string_t name, uid_t *id) {
+ f_status_t f_account_id_user_by_name(const f_string_t name, uid_t *id) {
#ifndef _di_level_0_parameter_checking_
if (!id) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_account_id_user_by_name_
#ifndef _di_f_account_name_user_by_id_
- f_return_status f_account_name_user_by_id(const uid_t id, f_string_dynamic_t *name) {
+ f_status_t f_account_name_user_by_id(const uid_t id, f_string_dynamic_t *name) {
#ifndef _di_level_0_parameter_checking_
if (!name) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
* @see getpwnam_r()
*/
#ifndef _di_f_account_by_name_
- extern f_return_status f_account_by_name(const f_string_t name, f_account_t *account);
+ extern f_status_t f_account_by_name(const f_string_t name, f_account_t *account);
#endif // _di_f_account_by_name_
/**
* @see getpwuid_r()
*/
#ifndef _di_f_account_by_id_
- extern f_return_status f_account_by_id(const uid_t id, f_account_t *account);
+ extern f_status_t f_account_by_id(const uid_t id, f_account_t *account);
#endif // _di_f_account_by_id_
/**
* @see getgrnam_r()
*/
#ifndef _di_f_account_id_group_by_name_
- extern f_return_status f_account_id_group_by_name(const f_string_t name, gid_t *id);
+ extern f_status_t f_account_id_group_by_name(const f_string_t name, gid_t *id);
#endif // _di_f_account_id_group_by_name_
/**
* @see getpwnam_r()
*/
#ifndef _di_f_account_id_user_by_name_
- extern f_return_status f_account_id_user_by_name(const f_string_t name, uid_t *id);
+ extern f_status_t f_account_id_user_by_name(const f_string_t name, uid_t *id);
#endif // _di_f_account_id_user_by_name_
/**
* @see getpwuid_r()
*/
#ifndef _di_f_account_name_user_by_id_
- extern f_return_status f_account_name_user_by_id(const uid_t id, f_string_dynamic_t *name);
+ extern f_status_t f_account_name_user_by_id(const uid_t id, f_string_dynamic_t *name);
#endif // _di_f_account_name_user_by_id_
#ifdef __cplusplus
#endif
#if !defined(_di_f_account_by_name_) || !defined(_di_f_account_by_id_)
- f_return_status private_f_account_from_passwd(const struct passwd password, const f_string_length_t password_length, f_account_t *account) {
+ f_status_t private_f_account_from_passwd(const struct passwd password, const f_string_length_t password_length, f_account_t *account) {
f_status_t status = F_none;
* @see f_macro_string_dynamic_t_resize()
*/
#if !defined(_di_f_account_by_name_) || !defined(_di_f_account_by_id_)
- extern f_return_status private_f_account_from_passwd(const struct passwd password, const f_string_length_t password_length, f_account_t *account) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_account_from_passwd(const struct passwd password, const f_string_length_t password_length, f_account_t *account) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_account_by_name_) || !defined(_di_f_account_by_id_)
#ifdef __cplusplus
#ifdef _di_libcap_
#ifndef _di_f_capability_clear_
- f_return_status f_capability_clear(f_capability_t *capability) {
+ f_status_t f_capability_clear(f_capability_t *capability) {
return F_status_set_error(F_supported_not);
}
#endif // _di_f_capability_clear_
#ifndef _di_f_capability_clear_flag_
- f_return_status f_capability_clear_flag(const f_capability_flag_t flag, f_capability_t *capability) {
+ f_status_t f_capability_clear_flag(const f_capability_flag_t flag, f_capability_t *capability) {
return F_status_set_error(F_supported_not);
}
#endif // _di_f_capability_clear_flag_
#ifndef _di_f_capability_compare_
- f_return_status f_capability_compare(const f_capability_t capability1, const f_capability_t capability2, int *flags) {
+ f_status_t f_capability_compare(const f_capability_t capability1, const f_capability_t capability2, int *flags) {
return F_status_set_error(F_supported_not);
}
#endif // _di_f_capability_compare_
#ifndef _di_f_capability_delete_
- f_return_status f_capability_delete(f_capability_t *capability) {
+ f_status_t f_capability_delete(f_capability_t *capability) {
return F_status_set_error(F_supported_not);
}
#endif // _di_f_capability_delete_
#ifndef _di_f_capability_duplicate_
- f_return_status f_capability_duplicate(const f_capability_t source, f_capability_t *destination) {
+ f_status_t f_capability_duplicate(const f_capability_t source, f_capability_t *destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_duplicate_
#ifndef _di_f_capability_flag_get_
- f_return_status f_capability_flag_get(const f_capability_t capability, const f_capability_value_t code, const f_capability_flag_t flag, f_capability_flag_value_t *enabled) {
+ f_status_t f_capability_flag_get(const f_capability_t capability, const f_capability_value_t code, const f_capability_flag_t flag, f_capability_flag_value_t *enabled) {
return F_status_set_error(F_supported_not);
}
#endif // _di_f_capability_flag_get_
#ifndef _di_f_capability_flag_set_
- f_return_status f_capability_flag_set(const f_capability_flag_t flag, const f_capability_flag_value_t enabled, const f_int32s_t codes, f_capability_t *capability) {
+ f_status_t f_capability_flag_set(const f_capability_flag_t flag, const f_capability_flag_value_t enabled, const f_int32s_t codes, f_capability_t *capability) {
return F_status_set_error(F_supported_not);
}
#endif // _di_f_capability_flag_set_
#ifndef _di_f_capability_from_name_
- f_return_status f_capability_from_name(const f_string_t name, f_capability_value_t *code) {
+ f_status_t f_capability_from_name(const f_string_t name, f_capability_value_t *code) {
return F_status_set_error(F_supported_not);
}
#endif // _di_f_capability_from_name_
#ifndef _di_f_capability_from_text_
- f_return_status f_capability_from_text(const f_string_t text, f_capability_t *capability) {
+ f_status_t f_capability_from_text(const f_string_t text, f_capability_t *capability) {
return F_status_set_error(F_supported_not);
}
#endif // _di_f_capability_from_text_
#ifndef _di_f_capability_process_bound_drop_
- f_return_status f_capability_process_bound_drop(f_capability_value_t code, int *bound) {
+ f_status_t f_capability_process_bound_drop(f_capability_value_t code, int *bound) {
#ifndef _di_level_0_parameter_checking_
if (!bound) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_process_bound_drop_
#ifndef _di_f_capability_process_bound_get_
- f_return_status f_capability_process_bound_get(f_capability_value_t code, int *bound) {
+ f_status_t f_capability_process_bound_get(f_capability_value_t code, int *bound) {
#ifndef _di_level_0_parameter_checking_
if (!bound) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_process_bound_get_
#ifndef _di_f_capability_initialize_
- f_return_status f_capability_initialize(f_capability_t *capability) {
+ f_status_t f_capability_initialize(f_capability_t *capability) {
#ifndef _di_level_0_parameter_checking_
if (!capability) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_initialize_
#ifndef _di_f_capability_process_get_
- f_return_status f_capability_process_get(f_capability_t *capability) {
+ f_status_t f_capability_process_get(f_capability_t *capability) {
#ifndef _di_level_0_parameter_checking_
if (!capability) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_process_get_
#ifndef _di_f_capability_process_get_by_id_
- f_return_status f_capability_process_get_by_id(const pid_t id, f_capability_t *capability) {
+ f_status_t f_capability_process_get_by_id(const pid_t id, f_capability_t *capability) {
#ifndef _di_level_0_parameter_checking_
if (!capability) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_process_get_by_id_
#ifndef _di_f_capability_process_set_
- f_return_status f_capability_process_set(const f_capability_t capability) {
+ f_status_t f_capability_process_set(const f_capability_t capability) {
return F_status_set_error(F_supported_not);
}
#endif // _di_f_capability_process_set_
#endif // _di_f_capability_supported_code_
#ifndef _di_f_capability_to_name_
- f_return_status f_capability_to_name(const int code, f_string_dynamic_t *name) {
+ f_status_t f_capability_to_name(const int code, f_string_dynamic_t *name) {
#ifndef _di_level_0_parameter_checking_
if (!name) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_to_name_
#ifndef _di_f_capability_to_text_
- f_return_status f_capability_to_text(const f_capability_t capability, f_string_dynamic_t *text) {
+ f_status_t f_capability_to_text(const f_capability_t capability, f_string_dynamic_t *text) {
return F_status_set_error(F_supported_not);
}
#endif // _di_f_capability_to_text_
#else // _di_libcap_
#ifndef _di_f_capability_clear_
- f_return_status f_capability_clear(f_capability_t *capability) {
+ f_status_t f_capability_clear(f_capability_t *capability) {
if (cap_clear(*capability) < 0) {
if (errno == EINVAL) return F_status_set_error(F_parameter);
#endif // _di_f_capability_clear_
#ifndef _di_f_capability_clear_flag_
- f_return_status f_capability_clear_flag(const f_capability_flag_t flag, f_capability_t *capability) {
+ f_status_t f_capability_clear_flag(const f_capability_flag_t flag, f_capability_t *capability) {
if (cap_clear_flag(*capability, flag) < 0) {
if (errno == EINVAL) return F_status_set_error(F_parameter);
#endif // _di_f_capability_clear_flag_
#ifndef _di_f_capability_compare_
- f_return_status f_capability_compare(const f_capability_t capability1, const f_capability_t capability2, int *flags) {
+ f_status_t f_capability_compare(const f_capability_t capability1, const f_capability_t capability2, int *flags) {
if (*flags) {
*flags = 0;
#endif // _di_f_capability_compare_
#ifndef _di_f_capability_delete_
- f_return_status f_capability_delete(f_capability_t *capability) {
+ f_status_t f_capability_delete(f_capability_t *capability) {
if (cap_free(*capability) < 0) {
return F_status_set_error(F_failure);
#endif // _di_f_capability_delete_
#ifndef _di_f_capability_duplicate_
- f_return_status f_capability_duplicate(const f_capability_t source, f_capability_t *destination) {
+ f_status_t f_capability_duplicate(const f_capability_t source, f_capability_t *destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_duplicate_
#ifndef _di_f_capability_flag_get_
- f_return_status f_capability_flag_get(const f_capability_t capability, const f_capability_value_t code, const f_capability_flag_t flag, f_capability_flag_value_t *enabled) {
+ f_status_t f_capability_flag_get(const f_capability_t capability, const f_capability_value_t code, const f_capability_flag_t flag, f_capability_flag_value_t *enabled) {
#ifndef _di_level_0_parameter_checking_
if (!enabled) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_flag_get_
#ifndef _di_f_capability_flag_set_
- f_return_status f_capability_flag_set(const f_capability_flag_t flag, const f_capability_flag_value_t enabled, const f_int32s_t codes, f_capability_t *capability) {
+ f_status_t f_capability_flag_set(const f_capability_flag_t flag, const f_capability_flag_value_t enabled, const f_int32s_t codes, f_capability_t *capability) {
if (cap_set_flag(*capability, flag, codes.used, codes.array, enabled) < 0) {
if (errno == EINVAL) return F_status_set_error(F_parameter);
#endif // _di_f_capability_flag_set_
#ifndef _di_f_capability_from_name_
- f_return_status f_capability_from_name(const f_string_t name, f_capability_value_t *code) {
+ f_status_t f_capability_from_name(const f_string_t name, f_capability_value_t *code) {
if (cap_from_name(name, code) < 0) {
if (errno == EINVAL) return F_status_set_error(F_parameter);
#endif // _di_f_capability_from_name_
#ifndef _di_f_capability_from_text_
- f_return_status f_capability_from_text(const f_string_t text, f_capability_t *capability) {
+ f_status_t f_capability_from_text(const f_string_t text, f_capability_t *capability) {
*capability = cap_from_text(text);
if (*capability) {
#endif // _di_f_capability_from_text_
#ifndef _di_f_capability_initialize_
- f_return_status f_capability_initialize(f_capability_t *capability) {
+ f_status_t f_capability_initialize(f_capability_t *capability) {
#ifndef _di_level_0_parameter_checking_
if (!capability) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_initialize_
#ifndef _di_f_capability_process_bound_drop_
- f_return_status f_capability_process_bound_drop(f_capability_value_t code, int *bound) {
+ f_status_t f_capability_process_bound_drop(f_capability_value_t code, int *bound) {
*bound = cap_drop_bound(code);
#endif // _di_f_capability_process_bound_drop_
#ifndef _di_f_capability_process_bound_get_
- f_return_status f_capability_process_bound_get(f_capability_value_t code, int *bound) {
+ f_status_t f_capability_process_bound_get(f_capability_value_t code, int *bound) {
#ifndef _di_level_0_parameter_checking_
if (!bound) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_process_bound_get_
#ifndef _di_f_capability_process_get_
- f_return_status f_capability_process_get(f_capability_t *capability) {
+ f_status_t f_capability_process_get(f_capability_t *capability) {
*capability = cap_get_proc();
#endif // _di_f_capability_process_get_
#ifndef _di_f_capability_process_get_by_id_
- f_return_status f_capability_process_get_by_id(const pid_t id, f_capability_t *capability) {
+ f_status_t f_capability_process_get_by_id(const pid_t id, f_capability_t *capability) {
*capability = cap_get_pid(id);
#endif // _di_f_capability_process_get_by_id_
#ifndef _di_f_capability_process_set_
- f_return_status f_capability_process_set(const f_capability_t capability) {
+ f_status_t f_capability_process_set(const f_capability_t capability) {
if (cap_set_proc(capability) < 0) {
if (errno == EINVAL) return F_status_set_error(F_parameter);
#endif // _di_f_capability_supported_code_
#ifndef _di_f_capability_to_name_
- f_return_status f_capability_to_name(const int code, f_string_dynamic_t *name) {
+ f_status_t f_capability_to_name(const int code, f_string_dynamic_t *name) {
#ifndef _di_level_0_parameter_checking_
if (!name) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_capability_to_name_
#ifndef _di_f_capability_to_text_
- f_return_status f_capability_to_text(const f_capability_t capability, f_string_dynamic_t *text) {
+ f_status_t f_capability_to_text(const f_capability_t capability, f_string_dynamic_t *text) {
#ifndef _di_level_0_parameter_checking_
if (!text) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
* @see cap_clear()
*/
#ifndef _di_f_capability_clear_
- extern f_return_status f_capability_clear(f_capability_t *capability);
+ extern f_status_t f_capability_clear(f_capability_t *capability);
#endif // _di_f_capability_clear_
/**
* @see cap_clear_flag()
*/
#ifndef _di_f_capability_clear_flag_
- extern f_return_status f_capability_clear_flag(const f_capability_flag_t flag, f_capability_t *capability);
+ extern f_status_t f_capability_clear_flag(const f_capability_flag_t flag, f_capability_t *capability);
#endif // _di_f_capability_clear_flag_
/**
* @see cap_compare()
*/
#ifndef _di_f_capability_compare_
- extern f_return_status f_capability_compare(const f_capability_t capability1, const f_capability_t capability2, int *flags);
+ extern f_status_t f_capability_compare(const f_capability_t capability1, const f_capability_t capability2, int *flags);
#endif // _di_f_capability_compare_
/**
* @see cap_free()
*/
#ifndef _di_f_capability_delete_
- extern f_return_status f_capability_delete(f_capability_t *capability);
+ extern f_status_t f_capability_delete(f_capability_t *capability);
#endif // _di_f_capability_delete_
/**
* @see cap_dup()
*/
#ifndef _di_f_capability_duplicate_
- extern f_return_status f_capability_duplicate(const f_capability_t source, f_capability_t *destination);
+ extern f_status_t f_capability_duplicate(const f_capability_t source, f_capability_t *destination);
#endif // _di_f_capability_duplicate_
/**
* @see cap_get_flag()
*/
#ifndef _di_f_capability_flag_get_
- extern f_return_status f_capability_flag_get(const f_capability_t capability, const f_capability_value_t code, const f_capability_flag_t flag, f_capability_flag_value_t *enabled);
+ extern f_status_t f_capability_flag_get(const f_capability_t capability, const f_capability_value_t code, const f_capability_flag_t flag, f_capability_flag_value_t *enabled);
#endif // _di_f_capability_flag_get
/**
* @see cap_set_flag()
*/
#ifndef _di_f_capability_flag_set_
- extern f_return_status f_capability_flag_set(const f_capability_flag_t flag, const f_capability_flag_value_t enabled, const f_int32s_t codes, f_capability_t *capability);
+ extern f_status_t f_capability_flag_set(const f_capability_flag_t flag, const f_capability_flag_value_t enabled, const f_int32s_t codes, f_capability_t *capability);
#endif // _di_f_capability_flag_set_
/**
* @see cap_from_name()
*/
#ifndef _di_f_capability_from_name_
- extern f_return_status f_capability_from_name(const f_string_t name, f_capability_value_t *code);
+ extern f_status_t f_capability_from_name(const f_string_t name, f_capability_value_t *code);
#endif // _di_f_capability_from_name_
/**
* @see cap_from_text()
*/
#ifndef _di_f_capability_from_text_
- extern f_return_status f_capability_from_text(const f_string_t text, f_capability_t *capability);
+ extern f_status_t f_capability_from_text(const f_string_t text, f_capability_t *capability);
#endif // _di_f_capability_from_text_
/**
* @see cap_init()
*/
#ifndef _di_f_capability_initialize_
- extern f_return_status f_capability_initialize(f_capability_t *capability);
+ extern f_status_t f_capability_initialize(f_capability_t *capability);
#endif // _di_f_capability_initialize_
/**
* @see cap_drop_bound()
*/
#ifndef _di_f_capability_process_bound_drop_
- extern f_return_status f_capability_process_bound_drop(f_capability_value_t code, int *bound);
+ extern f_status_t f_capability_process_bound_drop(f_capability_value_t code, int *bound);
#endif // _di_f_capability_process_bound_drop_
/**
* @see cap_get_bound()
*/
#ifndef _di_f_capability_process_bound_get_
- extern f_return_status f_capability_process_bound_get(f_capability_value_t code, int *bound);
+ extern f_status_t f_capability_process_bound_get(f_capability_value_t code, int *bound);
#endif // _di_f_capability_process_bound_get_
/**
* @see cap_get_proc()
*/
#ifndef _di_f_capability_process_get_
- extern f_return_status f_capability_process_get(f_capability_t *capability);
+ extern f_status_t f_capability_process_get(f_capability_t *capability);
#endif // _di_f_capability_process_get_
/**
* @see cap_get_pid()
*/
#ifndef _di_f_capability_process_get_by_id_
- extern f_return_status f_capability_process_get_by_id(const pid_t id, f_capability_t *capability);
+ extern f_status_t f_capability_process_get_by_id(const pid_t id, f_capability_t *capability);
#endif // _di_f_capability_process_get_by_id_
/**
* @see cap_set_proc()
*/
#ifndef _di_f_capability_process_set_
- extern f_return_status f_capability_process_set(const f_capability_t capability);
+ extern f_status_t f_capability_process_set(const f_capability_t capability);
#endif // _di_f_capability_process_set_
/**
* @see cap_to_name()
*/
#ifndef _di_f_capability_to_name_
- extern f_return_status f_capability_to_name(const f_capability_value_t code, f_string_dynamic_t *name);
+ extern f_status_t f_capability_to_name(const f_capability_value_t code, f_string_dynamic_t *name);
#endif // _di_f_capability_to_name_
/**
* @see cap_to_text()
*/
#ifndef _di_f_capability_to_text_
- extern f_return_status f_capability_to_text(const f_capability_t capability, f_string_dynamic_t *text);
+ extern f_status_t f_capability_to_text(const f_capability_t capability, f_string_dynamic_t *text);
#endif // _di_f_capability_to_text_
#ifdef __cplusplus
#endif
#ifndef _di_f_console_identify_
- f_return_status f_console_identify(const f_string_t input, f_console_id_t *result) {
+ f_status_t f_console_identify(const f_string_t input, f_console_id_t *result) {
#ifndef _di_level_0_parameter_checking_
if (!result) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_f
#endif // _di_f_console_identify_
#ifndef _di_f_console_parameter_process_
- f_return_status f_console_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t parameters, f_string_lengths_t *remaining) {
+ f_status_t f_console_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t parameters, f_string_lengths_t *remaining) {
#ifndef _di_level_0_parameter_checking_
if (!remaining) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_console_parameter_process_
#ifndef _di_f_console_parameter_prioritize_left_
- f_return_status f_console_parameter_prioritize_left(const f_console_parameters_t parameters, const f_console_parameter_ids_t choices, f_console_parameter_id_t *decision) {
+ f_status_t f_console_parameter_prioritize_left(const f_console_parameters_t parameters, const f_console_parameter_ids_t choices, f_console_parameter_id_t *decision) {
#ifndef _di_level_0_parameter_checking_
if (!decision) return F_status_set_error(F_parameter);
if (!choices.id) return F_status_set_error(F_parameter);
#endif // _di_f_console_parameter_prioritize_left_
#ifndef _di_f_console_parameter_prioritize_right_
- f_return_status f_console_parameter_prioritize_right(const f_console_parameters_t parameters, const f_console_parameter_ids_t choices, f_console_parameter_id_t *decision) {
+ f_status_t f_console_parameter_prioritize_right(const f_console_parameters_t parameters, const f_console_parameter_ids_t choices, f_console_parameter_id_t *decision) {
#ifndef _di_level_0_parameter_checking_
if (!decision) return F_status_set_error(F_parameter);
if (!choices.id) return F_status_set_error(F_parameter);
* F_memory_reallocation (with error bit) on memory reallocation error.
*/
#ifndef _di_f_console_identify_
- extern f_return_status f_console_identify(const f_string_t input, f_console_id_t *result);
+ extern f_status_t f_console_identify(const f_string_t input, f_console_id_t *result);
#endif // _di_f_console_identify_
/**
* F_memory_reallocation (with error bit) on memory reallocation error.
*/
#ifndef _di_f_console_parameter_process_
- extern f_return_status f_console_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t parameters, f_string_lengths_t *remaining);
+ extern f_status_t f_console_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t parameters, f_string_lengths_t *remaining);
#endif // _di_f_console_parameter_process_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_console_parameter_prioritize_left_
- extern f_return_status f_console_parameter_prioritize_left(const f_console_parameters_t parameters, const f_console_parameter_ids_t choices, f_console_parameter_id_t *decision);
+ extern f_status_t f_console_parameter_prioritize_left(const f_console_parameters_t parameters, const f_console_parameter_ids_t choices, f_console_parameter_id_t *decision);
#endif // _di_f_console_parameter_prioritize_left_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_console_parameter_prioritize_right_
- extern f_return_status f_console_parameter_prioritize_right(const f_console_parameters_t parameters, const f_console_parameter_ids_t choices, f_console_parameter_id_t *decision);
+ extern f_status_t f_console_parameter_prioritize_right(const f_console_parameters_t parameters, const f_console_parameter_ids_t choices, f_console_parameter_id_t *decision);
#endif // _di_f_console_parameter_prioritize_right_
#ifdef __cplusplus
#endif
#ifndef _di_f_conversion_character_is_binary_
- f_return_status f_conversion_character_is_binary(const int8_t character) {
+ f_status_t f_conversion_character_is_binary(const int8_t character) {
if (character == 0x30 || character == 0x31) {
return F_true;
#endif // _di_f_conversion_character_is_binary_
#ifndef _di_f_conversion_character_is_decimal_
- f_return_status f_conversion_character_is_decimal(const int8_t character) {
+ f_status_t f_conversion_character_is_decimal(const int8_t character) {
if (character > 0x29 && character < 0x40) {
return F_true;
#endif // _di_f_conversion_character_is_decimal_
#ifndef _di_f_conversion_character_is_duodecimal_
- f_return_status f_conversion_character_is_duodecimal(const int8_t character) {
+ f_status_t f_conversion_character_is_duodecimal(const int8_t character) {
if (character > 0x29 && character < 0x40) {
return F_true;
#endif // _di_f_conversion_character_is_duodecimal_
#ifndef _di_f_conversion_character_is_hexidecimal_
- f_return_status f_conversion_character_is_hexidecimal(const int8_t character) {
+ f_status_t f_conversion_character_is_hexidecimal(const int8_t character) {
if (character > 0x29 && character < 0x40) {
return F_true;
#endif // _di_f_conversion_character_is_hexidecimal_
#ifndef _di_f_conversion_character_is_octal_
- f_return_status f_conversion_character_is_octal(const int8_t character) {
+ f_status_t f_conversion_character_is_octal(const int8_t character) {
if (character > 0x29 && character < 0x38) {
return F_true;
#endif // _di_f_conversion_character_is_octal_
#ifndef _di_f_conversion_character_to_binary_
- f_return_status f_conversion_character_to_binary(const int8_t character, f_number_unsigned_t *number) {
+ f_status_t f_conversion_character_to_binary(const int8_t character, f_number_unsigned_t *number) {
#ifndef _di_level_0_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_conversion_character_to_binary_
#ifndef _di_f_conversion_character_to_decimal_
- f_return_status f_conversion_character_to_decimal(const int8_t character, f_number_unsigned_t *number) {
+ f_status_t f_conversion_character_to_decimal(const int8_t character, f_number_unsigned_t *number) {
#ifndef _di_level_0_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_conversion_character_to_decimal_
#ifndef _di_f_conversion_character_to_duodecimal_
- f_return_status f_conversion_character_to_duodecimal(const int8_t character, f_number_unsigned_t *decimal) {
+ f_status_t f_conversion_character_to_duodecimal(const int8_t character, f_number_unsigned_t *decimal) {
#ifndef _di_level_0_parameter_checking_
if (!decimal) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_conversion_character_to_duodecimal_
#ifndef _di_f_conversion_character_to_hexidecimal_
- f_return_status f_conversion_character_to_hexidecimal(const int8_t character, f_number_unsigned_t *decimal) {
+ f_status_t f_conversion_character_to_hexidecimal(const int8_t character, f_number_unsigned_t *decimal) {
#ifndef _di_level_0_parameter_checking_
if (!decimal) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_conversion_character_to_hexidecimal_
#ifndef _di_f_conversion_character_to_octal_
- f_return_status f_conversion_character_to_octal(const int8_t character, f_number_unsigned_t *number) {
+ f_status_t f_conversion_character_to_octal(const int8_t character, f_number_unsigned_t *number) {
#ifndef _di_level_0_parameter_checking_
if (!number) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_conversion_character_to_octal_
#ifndef _di_f_conversion_number_signed_to_string_
- f_return_status f_conversion_number_signed_to_string(const f_number_signed_t number, const uint8_t base, f_string_dynamic_t *destination) {
+ f_status_t f_conversion_number_signed_to_string(const f_number_signed_t number, const uint8_t base, f_string_dynamic_t *destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
if (base < 2 || base > 16) return F_status_set_error(F_parameter);
#endif // _di_f_conversion_decimal_signed_to_string_
#ifndef _di_f_conversion_number_unsigned_to_string_
- f_return_status f_conversion_number_unsigned_to_string(const f_number_unsigned_t number, const uint8_t base, f_string_dynamic_t *destination) {
+ f_status_t f_conversion_number_unsigned_to_string(const f_number_unsigned_t number, const uint8_t base, f_string_dynamic_t *destination) {
#ifndef _di_level_0_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
if (base < 2 || base > 16) return F_status_set_error(F_parameter);
* F_false if character is not a binary.
*/
#ifndef _di_f_conversion_character_is_binary_
- extern f_return_status f_conversion_character_is_binary(const int8_t character);
+ extern f_status_t f_conversion_character_is_binary(const int8_t character);
#endif // _di_f_conversion_character_is_binary_
/**
* F_false if character is not a decimal.
*/
#ifndef _di_f_conversion_character_is_decimal_
- extern f_return_status f_conversion_character_is_decimal(const int8_t character);
+ extern f_status_t f_conversion_character_is_decimal(const int8_t character);
#endif // _di_f_conversion_character_is_decimal_
/**
* F_false if character is not a duodecimal.
*/
#ifndef _di_f_conversion_character_is_duodecimal_
- extern f_return_status f_conversion_character_is_duodecimal(const int8_t character);
+ extern f_status_t f_conversion_character_is_duodecimal(const int8_t character);
#endif // _di_f_conversion_character_is_duodecimal_
/**
* F_false if character is not a hexidecimal.
*/
#ifndef _di_f_conversion_character_is_hexidecimal_
- extern f_return_status f_conversion_character_is_hexidecimal(const int8_t character);
+ extern f_status_t f_conversion_character_is_hexidecimal(const int8_t character);
#endif // _di_f_conversion_character_is_hexidecimal_
/**
* F_false if character is not an octal.
*/
#ifndef _di_f_conversion_character_is_octal_
- extern f_return_status f_conversion_character_is_octal(const int8_t character);
+ extern f_status_t f_conversion_character_is_octal(const int8_t character);
#endif // _di_f_conversion_character_is_octal_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_conversion_character_to_binary_
- extern f_return_status f_conversion_character_to_binary(const int8_t character, f_number_unsigned_t *number);
+ extern f_status_t f_conversion_character_to_binary(const int8_t character, f_number_unsigned_t *number);
#endif // _di_f_conversion_character_to_binary_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_conversion_character_to_decimal_
- extern f_return_status f_conversion_character_to_decimal(const int8_t character, f_number_unsigned_t *number);
+ extern f_status_t f_conversion_character_to_decimal(const int8_t character, f_number_unsigned_t *number);
#endif // _di_f_conversion_character_to_decimal_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_conversion_character_to_duodecimal_
- extern f_return_status f_conversion_character_to_duodecimal(const int8_t character, f_number_unsigned_t *number);
+ extern f_status_t f_conversion_character_to_duodecimal(const int8_t character, f_number_unsigned_t *number);
#endif // _di_f_conversion_character_to_duodecimal_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_conversion_character_to_hexidecimal_
- extern f_return_status f_conversion_character_to_hexidecimal(const int8_t character, f_number_unsigned_t *number);
+ extern f_status_t f_conversion_character_to_hexidecimal(const int8_t character, f_number_unsigned_t *number);
#endif // _di_f_conversion_character_to_hexidecimal_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_conversion_character_to_octal_
- extern f_return_status f_conversion_character_to_octal(const int8_t character, f_number_unsigned_t *number);
+ extern f_status_t f_conversion_character_to_octal(const int8_t character, f_number_unsigned_t *number);
#endif // _di_f_conversion_character_to_octal_
/**
* F_memory_reallocation (with error bit) on memory reallocation error.
*/
#ifndef _di_f_conversion_number_signed_to_string_
- extern f_return_status f_conversion_number_signed_to_string(const f_number_signed_t number, const uint8_t base, f_string_dynamic_t *destination);
+ extern f_status_t f_conversion_number_signed_to_string(const f_number_signed_t number, const uint8_t base, f_string_dynamic_t *destination);
#endif // _di_f_conversion_number_signed_to_string_
/**
* F_memory_reallocation (with error bit) on memory reallocation error.
*/
#ifndef _di_f_conversion_number_unsigned_to_string_
- extern f_return_status f_conversion_number_unsigned_to_string(const f_number_unsigned_t number, const uint8_t base, f_string_dynamic_t *destination);
+ extern f_status_t f_conversion_number_unsigned_to_string(const f_number_unsigned_t number, const uint8_t base, f_string_dynamic_t *destination);
#endif // _di_f_conversion_number_unsigned_to_string_
#ifdef __cplusplus
#endif
#ifndef _di_f_directory_create_
- f_return_status f_directory_create(const f_string_t path, const mode_t mode) {
+ f_status_t f_directory_create(const f_string_t path, const mode_t mode) {
return private_f_directory_create(path, mode);
}
#endif // _di_f_directory_create_
#ifndef _di_f_directory_create_at_
- f_return_status f_directory_create_at(const int at_id, const f_string_t path, const mode_t mode) {
+ f_status_t f_directory_create_at(const int at_id, const f_string_t path, const mode_t mode) {
#ifndef _di_level_0_parameter_checking_
if (at_id <= 0) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_directory_create_at_
#ifndef _di_f_directory_exists_
- f_return_status f_directory_exists(const f_string_t path) {
+ f_status_t f_directory_exists(const f_string_t path) {
struct stat file_stat;
memset(&file_stat, 0, sizeof(struct stat));
#endif // _di_f_directory_exists_
#ifndef _di_f_directory_exists_at_
- f_return_status f_directory_exists_at(const int at_id, const f_string_t path, const int flag) {
+ f_status_t f_directory_exists_at(const int at_id, const f_string_t path, const int flag) {
struct stat file_stat;
memset(&file_stat, 0, sizeof(struct stat));
#endif // _di_f_directory_exists_at_
#ifndef _di_f_directory_is_
- f_return_status f_directory_is(const f_string_t path) {
+ f_status_t f_directory_is(const f_string_t path) {
struct stat file_stat;
memset(&file_stat, AT_SYMLINK_NOFOLLOW, sizeof(struct stat));
#endif // _di_f_directory_is_
#ifndef _di_f_directory_is_at_
- f_return_status f_directory_is_at(const int at_id, const f_string_t path, const int flag) {
+ f_status_t f_directory_is_at(const int at_id, const f_string_t path, const int flag) {
struct stat file_stat;
memset(&file_stat, 0, sizeof(struct stat));
#endif // _di_f_directory_is_at_
#ifndef _di_f_directory_list_
- f_return_status f_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), f_string_dynamics_t *names) {
+ f_status_t f_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), f_string_dynamics_t *names) {
#ifndef _di_level_0_parameter_checking_
if (!names) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_directory_list_
#ifndef _di_f_directory_open_
- f_return_status f_directory_open(const f_string_t path, const bool dereference, int *id) {
+ f_status_t f_directory_open(const f_string_t path, const bool dereference, int *id) {
#ifndef _di_level_0_parameter_checking_
if (!id) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_directory_open_
#ifndef _di_f_directory_open_at_
- f_return_status f_directory_open_at(const int at_id, const f_string_t path, const bool dereference, int *id) {
+ f_status_t f_directory_open_at(const int at_id, const f_string_t path, const bool dereference, int *id) {
#ifndef _di_level_0_parameter_checking_
if (at_id <= 0) return F_status_set_error(F_parameter);
if (!id) return F_status_set_error(F_parameter);
#endif // _di_f_directory_open_at_
#ifndef _di_f_directory_remove_
- f_return_status f_directory_remove(const f_string_t path, const int depth_max, const bool preserve) {
+ f_status_t f_directory_remove(const f_string_t path, const int depth_max, const bool preserve) {
#ifndef _di_level_0_parameter_checking_
if (depth_max < 0) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_directory_remove_
#ifndef _di_f_directory_remove_custom_
- f_return_status f_directory_remove_custom(const f_string_t path, const int depth_max, const bool preserve, int (*custom) (const char *, const struct stat *, int, struct FTW *)) {
+ f_status_t f_directory_remove_custom(const f_string_t path, const int depth_max, const bool preserve, int (*custom) (const char *, const struct stat *, int, struct FTW *)) {
#ifndef _di_level_0_parameter_checking_
if (depth_max < 0) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_directory_remove_custom_
#ifndef _di_f_directory_touch_
- f_return_status f_directory_touch(const f_string_t path, const mode_t mode) {
+ f_status_t f_directory_touch(const f_string_t path, const mode_t mode) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_directory_touch_
#ifndef _di_f_directory_touch_at_
- f_return_status f_directory_touch_at(const int at_id, const f_string_t path, const mode_t mode, const int flag) {
+ f_status_t f_directory_touch_at(const int at_id, const f_string_t path, const mode_t mode, const int flag) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
* @see mkdir()
*/
#ifndef _di_f_directory_create_
- extern f_return_status f_directory_create(const f_string_t path, const mode_t mode);
+ extern f_status_t f_directory_create(const f_string_t path, const mode_t mode);
#endif // _di_f_directory_create_
/**
* @see mkdirat()
*/
#ifndef _di_f_directory_create_at_
- extern f_return_status f_directory_create_at(const int at_id, const f_string_t path, const mode_t mode);
+ extern f_status_t f_directory_create_at(const int at_id, const f_string_t path, const mode_t mode);
#endif // _di_f_directory_create_at_
/**
* @see stat()
*/
#ifndef _di_f_directory_exists_
- extern f_return_status f_directory_exists(const f_string_t path);
+ extern f_status_t f_directory_exists(const f_string_t path);
#endif // _di_f_directory_exists_
/**
* @see fstatat()
*/
#ifndef _di_f_directory_exists_at_
- extern f_return_status f_directory_exists_at(const int at_id, const f_string_t path, const int flag);
+ extern f_status_t f_directory_exists_at(const int at_id, const f_string_t path, const int flag);
#endif // _di_f_directory_exists_at_
/**
* @see stat()
*/
#ifndef _di_f_directory_is_
- extern f_return_status f_directory_is(const f_string_t path);
+ extern f_status_t f_directory_is(const f_string_t path);
#endif // _di_f_directory_is_
/**
* @see fstatat()
*/
#ifndef _di_f_directory_is_at_
- extern f_return_status f_directory_is_at(const int at_id, const f_string_t path, const int flag);
+ extern f_status_t f_directory_is_at(const int at_id, const f_string_t path, const int flag);
#endif // _di_f_directory_is_at_
/**
* @see versionsort()
*/
#ifndef _di_f_directory_list_
- extern f_return_status f_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), f_string_dynamics_t *names);
+ extern f_status_t f_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), f_string_dynamics_t *names);
#endif // _di_f_directory_list_
/**
* @see open()
*/
#ifndef _di_f_directory_open_
- extern f_return_status f_directory_open(const f_string_t path, const bool dereference, int *id);
+ extern f_status_t f_directory_open(const f_string_t path, const bool dereference, int *id);
#endif // _di_f_directory_open_
/**
* @see openat()
*/
#ifndef _di_f_directory_open_at_
- extern f_return_status f_directory_open_at(const int at_id, const f_string_t path, const bool dereference, int *id);
+ extern f_status_t f_directory_open_at(const int at_id, const f_string_t path, const bool dereference, int *id);
#endif // _di_f_directory_open_at_
/**
* @see remove()
*/
#ifndef _di_f_directory_remove_
- extern f_return_status f_directory_remove(const f_string_t path, const int depth_max, const bool preserve);
+ extern f_status_t f_directory_remove(const f_string_t path, const int depth_max, const bool preserve);
#endif // _di_f_directory_remove_
/**
* @see remove()
*/
#ifndef _di_f_directory_remove_custom_
- extern f_return_status f_directory_remove_custom(const f_string_t path, const int depth_max, const bool preserve, int (*custom) (const char *, const struct stat *, int, struct FTW *));
+ extern f_status_t f_directory_remove_custom(const f_string_t path, const int depth_max, const bool preserve, int (*custom) (const char *, const struct stat *, int, struct FTW *));
#endif // _di_f_directory_remove_custom_
/**
* @see utimensat()
*/
#ifndef _di_f_directory_touch_
- extern f_return_status f_directory_touch(const f_string_t path, const mode_t mode);
+ extern f_status_t f_directory_touch(const f_string_t path, const mode_t mode);
#endif // _di_f_directory_touch_
/**
* @see utimensat()
*/
#ifndef _di_f_directory_touch_at_
- extern f_return_status f_directory_touch_at(const int at_id, const f_string_t path, const mode_t mode, const int flag);
+ extern f_status_t f_directory_touch_at(const int at_id, const f_string_t path, const mode_t mode, const int flag);
#endif // _di_f_directory_touch_at_
#ifdef __cplusplus
#endif
#if !defined(_di_f_directory_create_) || !defined(_di_f_directory_touch_)
- f_return_status private_f_directory_create(const f_string_t path, const mode_t mode) {
+ f_status_t private_f_directory_create(const f_string_t path, const mode_t mode) {
if (mkdir(path, mode) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_directory_create_) || !defined(_di_f_directory_touch_)
#if !defined(_di_f_directory_create_at_) || !defined(_di_f_directory_touch_at_)
- f_return_status private_f_directory_create_at(const int at_id, const f_string_t path, const mode_t mode) {
+ f_status_t private_f_directory_create_at(const int at_id, const f_string_t path, const mode_t mode) {
if (mkdirat(at_id, path, mode) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
* @see f_directory_touch()
*/
#if !defined(_di_f_directory_create_) || !defined(_di_f_directory_touch_)
- extern f_return_status private_f_directory_create(const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_directory_create(const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_directory_create_) || !defined(_di_f_directory_touch_)
/**
* @see f_directory_touch_at()
*/
#if !defined(_di_f_directory_create_at_) || !defined(_di_f_directory_touch_at_)
- extern f_return_status private_f_directory_create_at(const int at_id, const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_directory_create_at(const int at_id, const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_directory_create_at_) || !defined(_di_f_directory_touch_at_)
/**
#endif
#ifndef _di_f_environment_clear_
- f_return_status f_environment_clear() {
+ f_status_t f_environment_clear() {
if (!clearenv()) {
return F_none;
}
#endif // _di_f_environment_clear_
#ifndef _di_f_environment_exists_
- f_return_status f_environment_exists(const f_string_t name) {
+ f_status_t f_environment_exists(const f_string_t name) {
#ifndef _di_level_0_parameter_checking_
if (!name) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_environment_exists_
#ifndef _di_f_environment_get_
- f_return_status f_environment_get(const f_string_t name, f_string_dynamic_t *value) {
+ f_status_t f_environment_get(const f_string_t name, f_string_dynamic_t *value) {
#ifndef _di_level_0_parameter_checking_
if (!name) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_environment_get_
#ifndef _di_f_environment_get_dynamic_
- f_return_status f_environment_get_dynamic(const f_string_static_t name, f_string_dynamic_t *value) {
+ f_status_t f_environment_get_dynamic(const f_string_static_t name, f_string_dynamic_t *value) {
#ifndef _di_level_0_parameter_checking_
if (name.used > name.size) return F_status_set_error(F_parameter);
if (value->used > value->size) return F_status_set_error(F_parameter);
#endif // _di_f_environment_get_dynamic_
#ifndef _di_f_environment_set_
- f_return_status f_environment_set(const f_string_t name, const f_string_t value, const bool replace) {
+ f_status_t f_environment_set(const f_string_t name, const f_string_t value, const bool replace) {
return private_f_environment_set(name, value, replace);
}
#endif // _di_f_environment_set_
#ifndef _di_f_environment_set_dynamic_
- f_return_status f_environment_set_dynamic(const f_string_static_t name, const f_string_static_t value, const bool replace) {
+ f_status_t f_environment_set_dynamic(const f_string_static_t name, const f_string_static_t value, const bool replace) {
#ifndef _di_level_0_parameter_checking_
if (name.used > name.size) return F_status_set_error(F_parameter);
if (value.used > value.size) return F_status_set_error(F_parameter);
#endif // _di_f_environment_set_dynamic_
#ifndef _di_f_environment_unset_
- f_return_status f_environment_unset(const f_string_t name) {
+ f_status_t f_environment_unset(const f_string_t name) {
return private_f_environment_unset(name);
}
#endif // _di_f_environment_unset_
#ifndef _di_f_environment_unset_
- f_return_status f_environment_unset_dynamic(const f_string_static_t name) {
+ f_status_t f_environment_unset_dynamic(const f_string_static_t name) {
#ifndef _di_level_0_parameter_checking_
if (name.used > name.size) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
* @see clearenv()
*/
#ifndef _di_f_environment_clear_
- extern f_return_status f_environment_clear();
+ extern f_status_t f_environment_clear();
#endif // _di_f_environment_clear_
/**
* @see getenv()
*/
#ifndef _di_f_environment_exists_
- extern f_return_status f_environment_exists(const f_string_t name);
+ extern f_status_t f_environment_exists(const f_string_t name);
#endif // _di_f_environment_exists_
/**
* @see getenv()
*/
#ifndef _di_f_environment_get_
- extern f_return_status f_environment_get(const f_string_t name, f_string_dynamic_t *value);
+ extern f_status_t f_environment_get(const f_string_t name, f_string_dynamic_t *value);
#endif // _di_f_environment_get_
/**
* @see getenv()
*/
#ifndef _di_f_environment_get_dynamic_
- extern f_return_status f_environment_get_dynamic(const f_string_static_t name, f_string_dynamic_t *value);
+ extern f_status_t f_environment_get_dynamic(const f_string_static_t name, f_string_dynamic_t *value);
#endif // _di_f_environment_get_dynamic_
/**
* @see setenv()
*/
#ifndef _di_f_environment_set_
- extern f_return_status f_environment_set(const f_string_t name, const f_string_t value, const bool replace);
+ extern f_status_t f_environment_set(const f_string_t name, const f_string_t value, const bool replace);
#endif // _di_f_environment_set_
/**
* @see setenv()
*/
#ifndef _di_f_environment_set_dynamic_
- extern f_return_status f_environment_set_dynamic(const f_string_static_t name, const f_string_static_t value, const bool replace);
+ extern f_status_t f_environment_set_dynamic(const f_string_static_t name, const f_string_static_t value, const bool replace);
#endif // _di_f_environment_set_dynamic_
/**
* @see unsetenv()
*/
#ifndef _di_f_environment_unset_
- extern f_return_status f_environment_unset(const f_string_t name);
+ extern f_status_t f_environment_unset(const f_string_t name);
#endif // _di_f_environment_unset_
/**
* @see unsetenv()
*/
#ifndef _di_f_environment_unset_dynamic_
- extern f_return_status f_environment_unset_dynamic(const f_string_static_t name);
+ extern f_status_t f_environment_unset_dynamic(const f_string_static_t name);
#endif // _di_f_environment_unset_dynamic_
#ifdef __cplusplus
#endif
#if !defined(_di_f_environment_get_) || !defined(_di_f_environment_get_dynamic_)
- f_return_status private_f_environment_get(const f_string_t name, f_string_dynamic_t *value) {
+ f_status_t private_f_environment_get(const f_string_t name, f_string_dynamic_t *value) {
const f_string_t result = getenv(name);
if (!result) {
#endif // !defined(_di_f_environment_get_) || !defined(_di_f_environment_get_dynamic_)
#if !defined(_di_f_environment_set_) || !defined(_di_f_environment_set_dynamic_)
- f_return_status private_f_environment_set(const f_string_t name, const f_string_t value, const bool replace) {
+ f_status_t private_f_environment_set(const f_string_t name, const f_string_t value, const bool replace) {
if (setenv(name, value, replace) < 0) {
if (errno == EINVAL) {
#endif // !defined(_di_f_environment_set_) || !defined(_di_f_environment_set_dynamic_)
#if !defined(_di_f_environment_unset_) || !defined(_di_f_environment_unset_dynamic_)
- f_return_status private_f_environment_unset(const f_string_t name) {
+ f_status_t private_f_environment_unset(const f_string_t name) {
if (unsetenv(name) < 0) {
if (errno == EINVAL) {
* @see f_environment_get_dynamic()
*/
#if !defined(_di_f_environment_get_) || !defined(_di_f_environment_get_dynamic_)
- extern f_return_status private_f_environment_get(const f_string_t name, f_string_dynamic_t *value) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_environment_get(const f_string_t name, f_string_dynamic_t *value) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_environment_get_) || !defined(_di_f_environment_get_dynamic_)
/**
* @see f_environment_set_dynamic()
*/
#if !defined(_di_f_environment_set_) || !defined(_di_f_environment_set_dynamic_)
- extern f_return_status private_f_environment_set(const f_string_t name, const f_string_t value, const bool replace) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_environment_set(const f_string_t name, const f_string_t value, const bool replace) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_environment_set_) || !defined(_di_f_environment_set_dynamic_)
/**
* @see f_environment_unset_dynamic()
*/
#if !defined(_di_f_environment_unset_) || !defined(_di_f_environment_unset_dynamic_)
- extern f_return_status private_f_environment_unset(const f_string_t name) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_environment_unset(const f_string_t name) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_environment_unset_) || !defined(_di_f_environment_unset_dynamic_)
#ifdef __cplusplus
#endif
#ifndef _di_f_file_access_
- f_return_status f_file_access(const f_string_t path) {
+ f_status_t f_file_access(const f_string_t path) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_access_
#ifndef _di_f_file_clone_
- f_return_status f_file_clone(const f_string_t source, const f_string_t destination, const bool role, const f_number_unsigned_t size_block, const bool exclusive) {
+ f_status_t f_file_clone(const f_string_t source, const f_string_t destination, const bool role, const f_number_unsigned_t size_block, const bool exclusive) {
#ifndef _di_level_0_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_f_file_clone_
#ifndef _di_f_file_close_
- f_return_status f_file_close(int *id) {
+ f_status_t f_file_close(int *id) {
return private_f_file_close(id);
}
#endif // _di_f_file_close_
#ifndef _di_f_file_copy_
- f_return_status f_file_copy(const f_string_t source, const f_string_t destination, const f_mode_t mode, const f_number_unsigned_t size_block, const bool exclusive) {
+ f_status_t f_file_copy(const f_string_t source, const f_string_t destination, const f_mode_t mode, const f_number_unsigned_t size_block, const bool exclusive) {
#ifndef _di_level_0_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_f_file_copy_
#ifndef _di_f_file_create_
- f_return_status f_file_create(const f_string_t path, const mode_t mode, const bool exclusive) {
+ f_status_t f_file_create(const f_string_t path, const mode_t mode, const bool exclusive) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_create_
#ifndef _di_f_file_create_at_
- f_return_status f_file_create_at(const int at_id, const f_string_t path, const mode_t mode, const bool exclusive) {
+ f_status_t f_file_create_at(const int at_id, const f_string_t path, const mode_t mode, const bool exclusive) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_create_at_
#ifndef _di_f_file_create_device_
- f_return_status f_file_create_device(const f_string_t path, const mode_t mode, const unsigned int major, const unsigned int minor) {
+ f_status_t f_file_create_device(const f_string_t path, const mode_t mode, const unsigned int major, const unsigned int minor) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_create_device_
#ifndef _di_f_file_create_device_at_
- f_return_status f_file_create_device_at(const int at_id, const f_string_t path, const mode_t mode, const unsigned int major, const unsigned int minor) {
+ f_status_t f_file_create_device_at(const int at_id, const f_string_t path, const mode_t mode, const unsigned int major, const unsigned int minor) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_create_device_at_
#ifndef _di_f_file_create_fifo_
- f_return_status f_file_create_fifo(const f_string_t path, const mode_t mode) {
+ f_status_t f_file_create_fifo(const f_string_t path, const mode_t mode) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_create_fifo_
#ifndef _di_f_file_create_fifo_at_
- f_return_status f_file_create_fifo_at(const int at_id, const f_string_t path, const mode_t mode) {
+ f_status_t f_file_create_fifo_at(const int at_id, const f_string_t path, const mode_t mode) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_create_fifo_at_
#ifndef _di_f_file_create_node_
- f_return_status f_file_create_node(const f_string_t path, const mode_t mode, const dev_t device) {
+ f_status_t f_file_create_node(const f_string_t path, const mode_t mode, const dev_t device) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_create_node_
#ifndef _di_f_file_create_node_at_
- f_return_status f_file_create_node_at(const int at_id, const f_string_t path, const mode_t mode, const dev_t device) {
+ f_status_t f_file_create_node_at(const int at_id, const f_string_t path, const mode_t mode, const dev_t device) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_create_node_at_
#ifndef _di_f_file_descriptor_
- f_return_status f_file_descriptor(f_file_t *file) {
+ f_status_t f_file_descriptor(f_file_t *file) {
file->id = fileno(file->stream);
if (file->id == -1) {
#endif // _di_f_file_descriptor_
#ifndef _di_f_file_exists_
- f_return_status f_file_exists(const f_string_t path) {
+ f_status_t f_file_exists(const f_string_t path) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_exists_
#ifndef _di_f_file_exists_at_
- f_return_status f_file_exists_at(const int at_id, const f_string_t path, const int flag) {
+ f_status_t f_file_exists_at(const int at_id, const f_string_t path, const int flag) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_exists_at_
#ifndef _di_f_file_flush_
- f_return_status f_file_flush(const int id) {
+ f_status_t f_file_flush(const int id) {
return private_f_file_flush(id);
}
#endif // _di_f_file_flush_
#ifndef _di_f_file_group_read_
- f_return_status f_file_group_read(const f_string_t path, gid_t *group) {
+ f_status_t f_file_group_read(const f_string_t path, gid_t *group) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!group) return F_status_set_error(F_parameter);
#endif // _di_f_file_group_read_
#ifndef _di_f_file_is_
- f_return_status f_file_is(const f_string_t path, const int type, const bool dereference) {
+ f_status_t f_file_is(const f_string_t path, const int type, const bool dereference) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_is_
#ifndef _di_f_file_is_at_
- f_return_status f_file_is_at(const int at_id, const f_string_t path, const int type, const int flag) {
+ f_status_t f_file_is_at(const int at_id, const f_string_t path, const int type, const int flag) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_is_at_
#ifndef _di_f_file_link_
- f_return_status f_file_link(const f_string_t target, const f_string_t point) {
+ f_status_t f_file_link(const f_string_t target, const f_string_t point) {
#ifndef _di_level_0_parameter_checking_
if (!target) return F_status_set_error(F_parameter);
if (!point) return F_status_set_error(F_parameter);
#endif // _di_f_file_link_
#ifndef _di_f_file_link_at_
- f_return_status f_file_link_at(const int at_id, const f_string_t target, const f_string_t point) {
+ f_status_t f_file_link_at(const int at_id, const f_string_t target, const f_string_t point) {
#ifndef _di_level_0_parameter_checking_
if (!target) return F_status_set_error(F_parameter);
if (!point) return F_status_set_error(F_parameter);
#endif // _di_f_file_link_at_
#ifndef _di_f_file_link_hard_
- f_return_status f_file_link_hard(const f_string_t target, const f_string_t point) {
+ f_status_t f_file_link_hard(const f_string_t target, const f_string_t point) {
#ifndef _di_level_0_parameter_checking_
if (!target) return F_status_set_error(F_parameter);
if (!point) return F_status_set_error(F_parameter);
#endif // _di_f_file_link_hard_
#ifndef _di_f_file_link_hard_at_
- f_return_status f_file_link_hard_at(const int at_id_target, const int at_id_point, const f_string_t target, const f_string_t point, const int flag) {
+ f_status_t f_file_link_hard_at(const int at_id_target, const int at_id_point, const f_string_t target, const f_string_t point, const int flag) {
#ifndef _di_level_0_parameter_checking_
if (!target) return F_status_set_error(F_parameter);
if (!point) return F_status_set_error(F_parameter);
#endif // _di_f_file_link_hard_at_
#ifndef _di_f_file_link_read_
- f_return_status f_file_link_read(const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) {
+ f_status_t f_file_link_read(const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!link_stat.st_size) return F_status_set_error(F_parameter);
#endif // _di_f_file_link_read_
#ifndef _di_f_file_link_read_at_
- f_return_status f_file_link_read_at(const int at_id, const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) {
+ f_status_t f_file_link_read_at(const int at_id, const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) {
#ifndef _di_level_0_parameter_checking_
if (!link_stat.st_size) return F_status_set_error(F_parameter);
if (!target) return F_status_set_error(F_parameter);
#endif // _di_f_file_link_read_at_
#ifndef _di_f_file_mode_determine_
- f_return_status f_file_mode_determine(const mode_t mode_file, const f_file_mode_t mode_change, const uint8_t mode_replace, const bool directory_is, mode_t *mode) {
+ f_status_t f_file_mode_determine(const mode_t mode_file, const f_file_mode_t mode_change, const uint8_t mode_replace, const bool directory_is, mode_t *mode) {
#ifndef _di_level_0_parameter_checking_
if (!mode) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_mode_determine_
#ifndef _di_f_file_mode_from_string_
- f_return_status f_file_mode_from_string(const f_string_t string, const mode_t umask, f_file_mode_t *mode, uint8_t *replace) {
+ f_status_t f_file_mode_from_string(const f_string_t string, const mode_t umask, f_file_mode_t *mode, uint8_t *replace) {
#ifndef _di_level_0_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!string[0]) return F_status_set_error(F_parameter);
#endif // _di_f_file_mode_from_string_
#ifndef _di_f_file_mode_read_
- f_return_status f_file_mode_read(const f_string_t path, mode_t *mode) {
+ f_status_t f_file_mode_read(const f_string_t path, mode_t *mode) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!mode) return F_status_set_error(F_parameter);
#endif // _di_f_file_mode_read_
#ifndef _di_f_file_mode_read_at_
- f_return_status f_file_mode_read_at(const int at_id, const f_string_t path, mode_t *mode) {
+ f_status_t f_file_mode_read_at(const int at_id, const f_string_t path, mode_t *mode) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!mode) return F_status_set_error(F_parameter);
#endif // _di_f_file_mode_read_at_
#ifndef _di_f_file_mode_set_
- f_return_status f_file_mode_set(const f_string_t path, const mode_t mode) {
+ f_status_t f_file_mode_set(const f_string_t path, const mode_t mode) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_mode_set_
#ifndef _di_f_file_mode_set_at_
- f_return_status f_file_mode_set_at(const int at_id, const f_string_t path, const mode_t mode) {
+ f_status_t f_file_mode_set_at(const int at_id, const f_string_t path, const mode_t mode) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_mode_set_at_
#ifndef _di_f_file_mode_to_mode_
- f_return_status f_file_mode_to_mode(const f_file_mode_t from, mode_t *to) {
+ f_status_t f_file_mode_to_mode(const f_file_mode_t from, mode_t *to) {
#ifndef _di_level_0_parameter_checking_
if (!to) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_mode_to_mode_
#ifndef _di_f_file_name_base_
- f_return_status f_file_name_base(const f_string_t path, const f_string_length_t length, f_string_dynamic_t *name_base) {
+ f_status_t f_file_name_base(const f_string_t path, const f_string_length_t length, f_string_dynamic_t *name_base) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!name_base) return F_status_set_error(F_parameter);
#endif // _di_f_file_name_base_
#ifndef _di_f_file_name_directory_
- f_return_status f_file_name_directory(const f_string_t path, const f_string_length_t length, f_string_dynamic_t *name_directory) {
+ f_status_t f_file_name_directory(const f_string_t path, const f_string_length_t length, f_string_dynamic_t *name_directory) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!name_directory) return F_status_set_error(F_parameter);
#endif // _di_f_file_name_directory_
#ifndef _di_f_file_open_
- f_return_status f_file_open(const f_string_t path, const mode_t mode, f_file_t *file) {
+ f_status_t f_file_open(const f_string_t path, const mode_t mode, f_file_t *file) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!file) return F_status_set_error(F_parameter);
#endif // _di_f_file_open_
#ifndef _di_f_file_open_at_
- f_return_status f_file_open_at(const int at_id, const f_string_t path, const mode_t mode, f_file_t *file) {
+ f_status_t f_file_open_at(const int at_id, const f_string_t path, const mode_t mode, f_file_t *file) {
#ifndef _di_level_0_parameter_checking_
if (!file) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_open_at_
#ifndef _di_f_file_owner_read_
- f_return_status f_file_owner_read(const f_string_t path, uid_t *owner) {
+ f_status_t f_file_owner_read(const f_string_t path, uid_t *owner) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!owner) return F_status_set_error(F_parameter);
#endif // _di_f_file_owner_read_
#ifndef _di_f_file_read_
- f_return_status f_file_read(const f_file_t file, f_string_dynamic_t *buffer) {
+ f_status_t f_file_read(const f_file_t file, f_string_dynamic_t *buffer) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_read) return F_status_set_error(F_parameter);
if (buffer->used > buffer->size) return F_status_set_error(F_parameter);
#endif // _di_f_file_read_
#ifndef _di_f_file_read_block_
- f_return_status f_file_read_block(const f_file_t file, f_string_dynamic_t *buffer) {
+ f_status_t f_file_read_block(const f_file_t file, f_string_dynamic_t *buffer) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_read) return F_status_set_error(F_parameter);
if (buffer->used > buffer->size) return F_status_set_error(F_parameter);
#endif // _di_f_file_read_block_
#ifndef _di_f_file_read_until_
- f_return_status f_file_read_until(const f_file_t file, const f_string_length_t total, f_string_dynamic_t *buffer) {
+ f_status_t f_file_read_until(const f_file_t file, const f_string_length_t total, f_string_dynamic_t *buffer) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_read) return F_status_set_error(F_parameter);
if (buffer->used > buffer->size) return F_status_set_error(F_parameter);
#endif // _di_f_file_read_until_
#ifndef _di_f_file_remove_
- f_return_status f_file_remove(const f_string_t path) {
+ f_status_t f_file_remove(const f_string_t path) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_remove_
#ifndef _di_f_file_remove_at_
- f_return_status f_file_remove_at(const int at_id, const f_string_t path, const int flag) {
+ f_status_t f_file_remove_at(const int at_id, const f_string_t path, const int flag) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_remove_at_
#ifndef _di_f_file_rename_
- f_return_status f_file_rename(const f_string_t source, const f_string_t destination) {
+ f_status_t f_file_rename(const f_string_t source, const f_string_t destination) {
#ifndef _di_level_0_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_f_file_rename_
#ifndef _di_f_file_rename_at_
- f_return_status f_file_rename_at(const int at_id, const int to_id, const f_string_t source, const f_string_t destination) {
+ f_status_t f_file_rename_at(const int at_id, const int to_id, const f_string_t source, const f_string_t destination) {
#ifndef _di_level_0_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_f_file_rename_at_
#ifndef _di_f_file_role_change_
- f_return_status f_file_role_change(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference) {
+ f_status_t f_file_role_change(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (uid == -1 && gid == -1) return F_status_set_error(F_parameter);
#endif // _di_f_file_role_change_
#ifndef _di_f_file_role_change_at_
- f_return_status f_file_role_change_at(const int at_id, const f_string_t path, const uid_t uid, const gid_t gid, const int flag) {
+ f_status_t f_file_role_change_at(const int at_id, const f_string_t path, const uid_t uid, const gid_t gid, const int flag) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (uid == -1 && gid == -1) return F_status_set_error(F_parameter);
#endif // _di_f_file_role_change_at_
#ifndef _di_f_file_seek_
- f_return_status f_file_seek(const int id, const int whence, const f_string_length_t offset, f_string_length_t *seeked) {
+ f_status_t f_file_seek(const int id, const int whence, const f_string_length_t offset, f_string_length_t *seeked) {
#ifndef _di_level_0_parameter_checking_
if (id <= 0) return F_status_set_error(F_parameter);
if (whence < 0) return F_status_set_error(F_parameter);
#endif // _di_f_file_seek_
#ifndef _di_f_file_size_
- f_return_status f_file_size(const f_string_t path, const bool dereference, f_string_length_t *size) {
+ f_status_t f_file_size(const f_string_t path, const bool dereference, f_string_length_t *size) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!size) return F_status_set_error(F_parameter);
#endif // _di_f_file_size_
#ifndef _di_f_file_size_at_
- f_return_status f_file_size_at(const int at_id, const f_string_t path, const bool dereference, f_string_length_t *size) {
+ f_status_t f_file_size_at(const int at_id, const f_string_t path, const bool dereference, f_string_length_t *size) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (at_id <= 0) return F_status_set_error(F_parameter);
#endif // _di_f_file_size_at_
#ifndef _di_f_file_size_by_id_
- f_return_status f_file_size_by_id(const int id, f_string_length_t *size) {
+ f_status_t f_file_size_by_id(const int id, f_string_length_t *size) {
#ifndef _di_level_0_parameter_checking_
if (id <= 0) return F_status_set_error(F_parameter);
if (!size) return F_status_set_error(F_parameter);
#endif // _di_f_file_size_by_id_
#ifndef _di_f_file_stat_
- f_return_status f_file_stat(const f_string_t path, const bool dereference, struct stat *stat_file) {
+ f_status_t f_file_stat(const f_string_t path, const bool dereference, struct stat *stat_file) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!stat_file) return F_status_set_error(F_parameter);
#endif // _di_f_file_stat_
#ifndef _di_f_file_stat_at_
- f_return_status f_file_stat_at(const int at_id, const f_string_t path, const int flag, struct stat *stat_file) {
+ f_status_t f_file_stat_at(const int at_id, const f_string_t path, const int flag, struct stat *stat_file) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (at_id <= 0) return F_status_set_error(F_parameter);
#endif // _di_f_file_stat_at_
#ifndef _di_f_file_stat_by_id_
- f_return_status f_file_stat_by_id(const int id, struct stat *stat_file) {
+ f_status_t f_file_stat_by_id(const int id, struct stat *stat_file) {
#ifndef _di_level_0_parameter_checking_
if (id <= 0) return F_status_set_error(F_parameter);
if (!stat_file) return F_status_set_error(F_parameter);
#endif // _di_f_file_stat_by_id_
#ifndef _di_f_file_stream_close_
- f_return_status f_file_stream_close(const bool complete, f_file_t *file) {
+ f_status_t f_file_stream_close(const bool complete, f_file_t *file) {
#ifndef _di_level_0_parameter_checking_
if (!file) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_stream_close_
#ifndef _di_f_file_stream_descriptor_
- f_return_status f_file_stream_descriptor(const f_string_t mode, f_file_t *file) {
+ f_status_t f_file_stream_descriptor(const f_string_t mode, f_file_t *file) {
#ifndef _di_level_0_parameter_checking_
if (!file) return F_status_set_error(F_parameter);
if (file->id == -1) return F_status_set_error(F_parameter);
#ifndef _di_f_file_stream_open_
- f_return_status f_file_stream_open(const f_string_t path, const f_string_t mode, f_file_t *file) {
+ f_status_t f_file_stream_open(const f_string_t path, const f_string_t mode, f_file_t *file) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!file) return F_status_set_error(F_parameter);
#endif // _di_f_file_stream_open_
#ifndef _di_f_file_stream_read_
- f_return_status f_file_stream_read(const f_file_t file, const f_string_length_t amount, f_string_dynamic_t *buffer) {
+ f_status_t f_file_stream_read(const f_file_t file, const f_string_length_t amount, f_string_dynamic_t *buffer) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_read) return F_status_set_error(F_parameter);
if (amount < 1) return F_status_set_error(F_parameter);
#endif // _di_f_file_stream_read_
#ifndef _di_f_file_stream_read_block_
- f_return_status f_file_stream_read_block(const f_file_t file, const f_string_length_t amount, f_string_dynamic_t *buffer) {
+ f_status_t f_file_stream_read_block(const f_file_t file, const f_string_length_t amount, f_string_dynamic_t *buffer) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_read) return F_status_set_error(F_parameter);
if (amount < 1) return F_status_set_error(F_parameter);
#endif // _di_f_file_stream_read_block_
#ifndef _di_f_file_stream_read_until_
- f_return_status f_file_stream_read_until(const f_file_t file, const f_string_length_t amount, const f_string_length_t total, f_string_dynamic_t *buffer) {
+ f_status_t f_file_stream_read_until(const f_file_t file, const f_string_length_t amount, const f_string_length_t total, f_string_dynamic_t *buffer) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_read) return F_status_set_error(F_parameter);
if (amount < 1) return F_status_set_error(F_parameter);
#endif // _di_f_file_stream_read_until_
#ifndef _di_f_file_stream_reopen_
- f_return_status f_file_stream_reopen(const f_string_t path, const f_string_t mode, f_file_t *file) {
+ f_status_t f_file_stream_reopen(const f_string_t path, const f_string_t mode, f_file_t *file) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!file) return F_status_set_error(F_parameter);
#endif // _di_f_file_stream_reopen_
#ifndef _di_f_file_stream_write_
- f_return_status f_file_stream_write(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, f_string_length_t *written) {
+ f_status_t f_file_stream_write(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, f_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
#endif // _di_f_file_stream_write_
#ifndef _di_f_file_stream_write_block_
- f_return_status f_file_stream_write_block(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, f_string_length_t *written) {
+ f_status_t f_file_stream_write_block(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, f_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
#endif // _di_f_file_stream_write_block_
#ifndef _di_f_file_stream_write_until_
- f_return_status f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, const f_string_length_t total, f_string_length_t *written) {
+ f_status_t f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, const f_string_length_t total, f_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
#endif // _di_f_file_stream_write_until_
#ifndef _di_f_file_stream_write_range_
- f_return_status f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, const f_string_range_t range, f_string_length_t *written) {
+ f_status_t f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, const f_string_range_t range, f_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
#endif // _di_f_file_stream_write_range_
#ifndef _di_f_file_touch_
- f_return_status f_file_touch(const f_string_t path, const mode_t mode, const bool dereference) {
+ f_status_t f_file_touch(const f_string_t path, const mode_t mode, const bool dereference) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_touch_
#ifndef _di_f_file_touch_at_
- f_return_status f_file_touch_at(const int at_id, const f_string_t path, const mode_t mode, const int flag) {
+ f_status_t f_file_touch_at(const int at_id, const f_string_t path, const mode_t mode, const int flag) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_file_touch_at_
#ifndef _di_f_file_type_
- f_return_status f_file_type(const f_string_t path, int *type) {
+ f_status_t f_file_type(const f_string_t path, int *type) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!type) return F_status_set_error(F_parameter);
#endif // _di_f_file_type_
#ifndef _di_f_file_type_at_
- f_return_status f_file_type_at(const int at_id, const f_string_t path, const int flag, int *type) {
+ f_status_t f_file_type_at(const int at_id, const f_string_t path, const int flag, int *type) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!type) return F_status_set_error(F_parameter);
#endif // _di_f_file_type_at_
#ifndef _di_f_file_write_
- f_return_status f_file_write(const f_file_t file, const f_string_static_t buffer, f_string_length_t *written) {
+ f_status_t f_file_write(const f_file_t file, const f_string_static_t buffer, f_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
#endif // _di_f_file_write_
#ifndef _di_f_file_write_block_
- f_return_status f_file_write_block(const f_file_t file, const f_string_static_t buffer, f_string_length_t *written) {
+ f_status_t f_file_write_block(const f_file_t file, const f_string_static_t buffer, f_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
#endif // _di_f_file_write_block_
#ifndef _di_f_file_write_until_
- f_return_status f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_string_length_t total, f_string_length_t *written) {
+ f_status_t f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_string_length_t total, f_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
#endif // _di_f_file_write_until_
#ifndef _di_f_file_write_range_
- f_return_status f_file_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_string_length_t *written) {
+ f_status_t f_file_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
* @see access()
*/
#ifndef _di_f_file_access_
- extern f_return_status f_file_access(const f_string_t path);
+ extern f_status_t f_file_access(const f_string_t path);
#endif // _di_f_file_access_
/**
* F_failure (with error bit) for any other error.
*/
#ifndef _di_f_file_clone_
- extern f_return_status f_file_clone(const f_string_t source, const f_string_t destination, const bool role, const f_number_unsigned_t size_block, const bool exclusive);
+ extern f_status_t f_file_clone(const f_string_t source, const f_string_t destination, const bool role, const f_number_unsigned_t size_block, const bool exclusive);
#endif // _di_f_file_clone_
/**
* @see fclose()
*/
#ifndef _di_f_file_close_
- extern f_return_status f_file_close(int *id);
+ extern f_status_t f_file_close(int *id);
#endif // _di_f_file_close_
/**
* F_failure (with error bit) for any other error.
*/
#ifndef _di_f_file_copy_
- extern f_return_status f_file_copy(const f_string_t source, const f_string_t destination, const f_mode_t mode, const f_number_unsigned_t size_block, const bool exclusive);
+ extern f_status_t f_file_copy(const f_string_t source, const f_string_t destination, const f_mode_t mode, const f_number_unsigned_t size_block, const bool exclusive);
#endif // _di_f_file_copy_
/**
* @see open()
*/
#ifndef _di_f_file_create_
- extern f_return_status f_file_create(const f_string_t path, const mode_t mode, const bool exclusive);
+ extern f_status_t f_file_create(const f_string_t path, const mode_t mode, const bool exclusive);
#endif // _di_f_file_create_
/**
* @see openat()
*/
#ifndef _di_f_file_create_at_
- extern f_return_status f_file_create_at(const int at_id, const f_string_t path, const mode_t mode, const bool exclusive);
+ extern f_status_t f_file_create_at(const int at_id, const f_string_t path, const mode_t mode, const bool exclusive);
#endif // _di_f_file_create_at_
/**
* @see mknod()
*/
#ifndef _di_f_file_create_device_
- extern f_return_status f_file_create_device(const f_string_t path, const mode_t mode, const unsigned int major, const unsigned int minor);
+ extern f_status_t f_file_create_device(const f_string_t path, const mode_t mode, const unsigned int major, const unsigned int minor);
#endif // _di_f_file_create_device_
/**
* @see mknodat()
*/
#ifndef _di_f_file_create_device_at_
- extern f_return_status f_file_create_device_at(const int at_id, const f_string_t path, const mode_t mode, const unsigned int major, const unsigned int minor);
+ extern f_status_t f_file_create_device_at(const int at_id, const f_string_t path, const mode_t mode, const unsigned int major, const unsigned int minor);
#endif // _di_f_file_create_device_at_
/**
* @see mkfifo()
*/
#ifndef _di_f_file_create_fifo_
- extern f_return_status f_file_create_fifo(const f_string_t path, const mode_t mode);
+ extern f_status_t f_file_create_fifo(const f_string_t path, const mode_t mode);
#endif // _di_f_file_create_fifo_
/**
* @see mkfifoat()
*/
#ifndef _di_f_file_create_fifo_at_
- extern f_return_status f_file_create_fifo_at(const int at_id, const f_string_t path, const mode_t mode);
+ extern f_status_t f_file_create_fifo_at(const int at_id, const f_string_t path, const mode_t mode);
#endif // _di_f_file_create_fifo_at_
/**
* @see mknod()
*/
#ifndef _di_f_file_create_node_
- extern f_return_status f_file_create_node(const f_string_t path, const mode_t mode, const dev_t device);
+ extern f_status_t f_file_create_node(const f_string_t path, const mode_t mode, const dev_t device);
#endif // _di_f_file_create_node_
/**
* @see mknodat()
*/
#ifndef _di_f_file_create_node_at_
- extern f_return_status f_file_create_node_at(const int at_id, const f_string_t path, const mode_t mode, const dev_t device);
+ extern f_status_t f_file_create_node_at(const int at_id, const f_string_t path, const mode_t mode, const dev_t device);
#endif // _di_f_file_create_node_at_
/**
* @see fileno()
*/
#ifndef _di_f_file_descriptor_
- extern f_return_status f_file_descriptor(f_file_t *file);
+ extern f_status_t f_file_descriptor(f_file_t *file);
#endif // _di_f_file_descriptor_
/**
* @see stat()
*/
#ifndef _di_f_file_exists_
- extern f_return_status f_file_exists(const f_string_t path);
+ extern f_status_t f_file_exists(const f_string_t path);
#endif // _di_f_file_exists_
/**
* @see fstatat()
*/
#ifndef _di_f_file_exists_at_
- extern f_return_status f_file_exists_at(const int at_id, const f_string_t path, const int flag);
+ extern f_status_t f_file_exists_at(const int at_id, const f_string_t path, const int flag);
#endif // _di_f_file_exists_at_
/**
* @see fsync()
*/
#ifndef _di_f_file_flush_
- extern f_return_status f_file_flush(const int id);
+ extern f_status_t f_file_flush(const int id);
#endif // _di_f_file_flush_
/**
* @see fstat()
*/
#ifndef _di_f_file_group_read_
- extern f_return_status f_file_group_read(const f_string_t path, uid_t *group);
+ extern f_status_t f_file_group_read(const f_string_t path, uid_t *group);
#endif // _di_f_file_group_read_
/**
* @see stat()
*/
#ifndef _di_f_file_is_
- extern f_return_status f_file_is(const f_string_t path, const int type, const bool dereference);
+ extern f_status_t f_file_is(const f_string_t path, const int type, const bool dereference);
#endif // _di_f_file_is_
/**
* @see fstatat()
*/
#ifndef _di_f_file_is_at_
- extern f_return_status f_file_is_at(const int at_id, const f_string_t path, const int type, const int flag);
+ extern f_status_t f_file_is_at(const int at_id, const f_string_t path, const int type, const int flag);
#endif // _di_f_file_is_at_
/**
* @see symlink()
*/
#ifndef _di_f_file_link_
- extern f_return_status f_file_link(const f_string_t target, const f_string_t point);
+ extern f_status_t f_file_link(const f_string_t target, const f_string_t point);
#endif // _di_f_file_link_
/**
* @see symlinkat()
*/
#ifndef _di_f_file_link_at_
- extern f_return_status f_file_link_at(const int at_id, const f_string_t target, const f_string_t point);
+ extern f_status_t f_file_link_at(const int at_id, const f_string_t target, const f_string_t point);
#endif // _di_f_file_link_at_
/**
* @see link()
*/
#ifndef _di_f_file_link_hard_
- extern f_return_status f_file_link_hard(const f_string_t target, const f_string_t point);
+ extern f_status_t f_file_link_hard(const f_string_t target, const f_string_t point);
#endif // _di_f_file_link_hard_
/**
* @see linkat()
*/
#ifndef _di_f_file_link_hard_at_
- extern f_return_status f_file_link_hard_at(const int at_id_target, const int at_id_point, const f_string_t target, const f_string_t point, const int flag);
+ extern f_status_t f_file_link_hard_at(const int at_id_target, const int at_id_point, const f_string_t target, const f_string_t point, const int flag);
#endif // _di_f_file_link_hard_at_
/**
* @see readlink()
*/
#ifndef _di_f_file_link_read_
- extern f_return_status f_file_link_read(const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target);
+ extern f_status_t f_file_link_read(const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target);
#endif // _di_f_file_link_read_
/**
* @see readlinkat()
*/
#ifndef _di_f_file_link_read_at_
- extern f_return_status f_file_link_read_at(const int at_id, const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target);
+ extern f_status_t f_file_link_read_at(const int at_id, const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target);
#endif // _di_f_file_link_read_at_
/**
* @see f_file_mode_from_string()
*/
#ifndef _di_f_file_mode_determine_
- extern f_return_status f_file_mode_determine(const mode_t mode_file, const f_file_mode_t mode_change, const uint8_t mode_replace, const bool directory_is, mode_t *mode);
+ extern f_status_t f_file_mode_determine(const mode_t mode_file, const f_file_mode_t mode_change, const uint8_t mode_replace, const bool directory_is, mode_t *mode);
#endif // _di_f_file_mode_determine_
/**
* @see private_f_file_mode_determine()
*/
#ifndef _di_f_file_mode_from_string_
- extern f_return_status f_file_mode_from_string(const f_string_t string, const mode_t umask, f_file_mode_t *mode, uint8_t *replace);
+ extern f_status_t f_file_mode_from_string(const f_string_t string, const mode_t umask, f_file_mode_t *mode, uint8_t *replace);
#endif // _di_f_file_mode_from_string_
/**
* @see fstat()
*/
#ifndef _di_f_file_mode_read_
- extern f_return_status f_file_mode_read(const f_string_t path, mode_t *mode);
+ extern f_status_t f_file_mode_read(const f_string_t path, mode_t *mode);
#endif // _di_f_file_mode_read_
/**
* @see fstatat()
*/
#ifndef _di_f_file_mode_read_at_
- extern f_return_status f_file_mode_read_at(const int at_id, const f_string_t path, mode_t *mode);
+ extern f_status_t f_file_mode_read_at(const int at_id, const f_string_t path, mode_t *mode);
#endif // _di_f_file_mode_read_at_
/**
* @see chmod()
*/
#ifndef _di_f_file_mode_set_
- extern f_return_status f_file_mode_set(const f_string_t path, const mode_t mode);
+ extern f_status_t f_file_mode_set(const f_string_t path, const mode_t mode);
#endif // _di_f_file_mode_set_
/**
* @see fchmodat()
*/
#ifndef _di_f_file_mode_set_at_
- extern f_return_status f_file_mode_set_at(const int at_id, const f_string_t path, const mode_t mode);
+ extern f_status_t f_file_mode_set_at(const int at_id, const f_string_t path, const mode_t mode);
#endif // _di_f_file_mode_set_at_
/**
* @see f_file_mode_from_string()
*/
#ifndef _di_f_file_mode_to_mode_
- extern f_return_status f_file_mode_to_mode(const f_file_mode_t from, mode_t *to);
+ extern f_status_t f_file_mode_to_mode(const f_file_mode_t from, mode_t *to);
#endif // _di_f_file_mode_to_mode_
/**
* @see basename()
*/
#ifndef _di_f_file_name_base_
- extern f_return_status f_file_name_base(const f_string_t path, const f_string_length_t length, f_string_dynamic_t *name_base);
+ extern f_status_t f_file_name_base(const f_string_t path, const f_string_length_t length, f_string_dynamic_t *name_base);
#endif // _di_f_file_name_base_
/**
* @see dirname()
*/
#ifndef _di_f_file_name_directory_
- extern f_return_status f_file_name_directory(const f_string_t path, const f_string_length_t length, f_string_dynamic_t *name_directory);
+ extern f_status_t f_file_name_directory(const f_string_t path, const f_string_length_t length, f_string_dynamic_t *name_directory);
#endif // _di_f_file_name_directory_
/**
* @see open()
*/
#ifndef _di_f_file_open_
- extern f_return_status f_file_open(const f_string_t path, const mode_t mode, f_file_t *file);
+ extern f_status_t f_file_open(const f_string_t path, const mode_t mode, f_file_t *file);
#endif // _di_f_file_open_
/**
* @see openat()
*/
#ifndef _di_f_file_open_at_
- extern f_return_status f_file_open_at(const int at_id, const f_string_t path, const mode_t mode, f_file_t *file);
+ extern f_status_t f_file_open_at(const int at_id, const f_string_t path, const mode_t mode, f_file_t *file);
#endif // _di_f_file_open_at_
/**
* @see fstat()
*/
#ifndef _di_f_file_owner_read_
- extern f_return_status f_file_owner_read(const f_string_t path, uid_t *owner);
+ extern f_status_t f_file_owner_read(const f_string_t path, uid_t *owner);
#endif // _di_f_file_owner_read_
/**
* @see read()
*/
#ifndef _di_f_file_read_
- extern f_return_status f_file_read(const f_file_t file, f_string_dynamic_t *buffer);
+ extern f_status_t f_file_read(const f_file_t file, f_string_dynamic_t *buffer);
#endif // _di_f_file_read_
/**
* @see read()
*/
#ifndef _di_f_file_read_block_
- extern f_return_status f_file_read_block(const f_file_t file, f_string_dynamic_t *buffer);
+ extern f_status_t f_file_read_block(const f_file_t file, f_string_dynamic_t *buffer);
#endif // _di_f_file_read_block_
/**
* @see read()
*/
#ifndef _di_f_file_read_until_
- extern f_return_status f_file_read_until(const f_file_t file, const f_string_length_t total, f_string_dynamic_t *buffer);
+ extern f_status_t f_file_read_until(const f_file_t file, const f_string_length_t total, f_string_dynamic_t *buffer);
#endif // _di_f_file_read_until_
/**
* @see unlink()
*/
#ifndef _di_f_file_remove_
- extern f_return_status f_file_remove(const f_string_t path);
+ extern f_status_t f_file_remove(const f_string_t path);
#endif // _di_f_file_remove_
/**
* @see unlinkat()
*/
#ifndef _di_f_file_remove_at_
- extern f_return_status f_file_remove_at(const int at_id, const f_string_t path, const int flag);
+ extern f_status_t f_file_remove_at(const int at_id, const f_string_t path, const int flag);
#endif // _di_f_file_remove_at_
/**
* @see rename()
*/
#ifndef _di_f_file_rename_
- extern f_return_status f_file_rename(const f_string_t source, const f_string_t destination);
+ extern f_status_t f_file_rename(const f_string_t source, const f_string_t destination);
#endif // _di_f_file_rename_
/**
* @see renameat()
*/
#ifndef _di_f_file_rename_at_
- extern f_return_status f_file_rename_at(const int at_id, const int to_id, const f_string_t source, const f_string_t destination);
+ extern f_status_t f_file_rename_at(const int at_id, const int to_id, const f_string_t source, const f_string_t destination);
#endif // _di_f_file_rename_at_
/**
* @see lchown()
*/
#ifndef _di_f_file_role_change_
- extern f_return_status f_file_role_change(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference);
+ extern f_status_t f_file_role_change(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference);
#endif // _di_f_file_role_change_
/**
* @see fchownat()
*/
#ifndef _di_f_file_role_change_at_
- extern f_return_status f_file_role_change_at(const int at_id, const f_string_t path, const uid_t uid, const gid_t gid, const int flag);
+ extern f_status_t f_file_role_change_at(const int at_id, const f_string_t path, const uid_t uid, const gid_t gid, const int flag);
#endif // _di_f_file_role_change_at_
/**
* @see lseek
*/
#ifndef _di_f_file_seek_
- extern f_return_status f_file_seek(const int id, const int whence, const f_string_length_t offset, f_string_length_t *seeked);
+ extern f_status_t f_file_seek(const int id, const int whence, const f_string_length_t offset, f_string_length_t *seeked);
#endif // _di_f_file_seek_
/**
* @see f_file_stat()
*/
#ifndef _di_f_file_size_
- extern f_return_status f_file_size(const f_string_t path, const bool dereference, f_string_length_t *size);
+ extern f_status_t f_file_size(const f_string_t path, const bool dereference, f_string_length_t *size);
#endif // _di_f_file_size_
/**
* @see f_file_stat_at()
*/
#ifndef _di_f_file_size_at_
- extern f_return_status f_file_size_at(const int at_id, const f_string_t path, const bool dereference, f_string_length_t *size);
+ extern f_status_t f_file_size_at(const int at_id, const f_string_t path, const bool dereference, f_string_length_t *size);
#endif // _di_f_file_size_at_
/**
* @see f_file_stat_by_id()
*/
#ifndef _di_f_file_size_by_id_
- extern f_return_status f_file_size_by_id(const int id, f_string_length_t *size);
+ extern f_status_t f_file_size_by_id(const int id, f_string_length_t *size);
#endif // _di_f_file_size_by_id_
/**
* @see stat()
*/
#ifndef _di_f_file_stat_
- extern f_return_status f_file_stat(const f_string_t path, const bool dereference, struct stat *stat_file);
+ extern f_status_t f_file_stat(const f_string_t path, const bool dereference, struct stat *stat_file);
#endif // _di_f_file_stat_
/**
* @see fstatat()
*/
#ifndef _di_f_file_stat_at_
- extern f_return_status f_file_stat_at(const int at_id, const f_string_t path, const int flag, struct stat *stat_file);
+ extern f_status_t f_file_stat_at(const int at_id, const f_string_t path, const int flag, struct stat *stat_file);
#endif // _di_f_file_stat_at_
/**
* @see fstat()
*/
#ifndef _di_f_file_stat_by_id_
- extern f_return_status f_file_stat_by_id(const int id, struct stat *stat_file);
+ extern f_status_t f_file_stat_by_id(const int id, struct stat *stat_file);
#endif // _di_f_file_stat_by_id_
/**
* @see fclose()
*/
#ifndef _di_f_file_stream_close_
- extern f_return_status f_file_stream_close(const bool complete, f_file_t *file);
+ extern f_status_t f_file_stream_close(const bool complete, f_file_t *file);
#endif // _di_f_file_stream_close_
/**
* @see fdopen()
*/
#ifndef _di_f_file_stream_descriptor_
- extern f_return_status f_file_stream_descriptor(const f_string_t mode, f_file_t *file);
+ extern f_status_t f_file_stream_descriptor(const f_string_t mode, f_file_t *file);
#endif // _di_f_file_stream_descriptor_
/**
* @see fopen()
*/
#ifndef _di_f_file_stream_open_
- extern f_return_status f_file_stream_open(const f_string_t path, const f_string_t mode, f_file_t *file);
+ extern f_status_t f_file_stream_open(const f_string_t path, const f_string_t mode, f_file_t *file);
#endif // _di_f_file_stream_open_
/**
* @see fread()
*/
#ifndef _di_f_file_stream_read_
- extern f_return_status f_file_stream_read(const f_file_t file, const f_string_length_t amount, f_string_dynamic_t *buffer);
+ extern f_status_t f_file_stream_read(const f_file_t file, const f_string_length_t amount, f_string_dynamic_t *buffer);
#endif // _di_f_file_stream_read_
/**
* @see fread()
*/
#ifndef _di_f_file_stream_read_block_
- extern f_return_status f_file_stream_read_block(const f_file_t file, const f_string_length_t amount, f_string_dynamic_t *buffer);
+ extern f_status_t f_file_stream_read_block(const f_file_t file, const f_string_length_t amount, f_string_dynamic_t *buffer);
#endif // _di_f_file_stream_read_block_
/**
* @see fread()
*/
#ifndef _di_f_file_stream_read_until_
- extern f_return_status f_file_stream_read_until(const f_file_t file, const f_string_length_t amount, const f_string_length_t total, f_string_dynamic_t *buffer);
+ extern f_status_t f_file_stream_read_until(const f_file_t file, const f_string_length_t amount, const f_string_length_t total, f_string_dynamic_t *buffer);
#endif // _di_f_file_stream_read_until_
/**
* @see freopen()
*/
#ifndef _di_f_file_stream_reopen_
- extern f_return_status f_file_stream_reopen(const f_string_t path, const f_string_t mode, f_file_t *file);
+ extern f_status_t f_file_stream_reopen(const f_string_t path, const f_string_t mode, f_file_t *file);
#endif // _di_f_file_stream_reopen_
/**
* @see fwrite()
*/
#ifndef _di_f_file_stream_write_
- extern f_return_status f_file_stream_write(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, f_string_length_t *written);
+ extern f_status_t f_file_stream_write(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, f_string_length_t *written);
#endif // _di_f_file_stream_write_
/**
* @see fwrite()
*/
#ifndef _di_f_file_stream_write_block_
- extern f_return_status f_file_stream_write_block(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, f_string_length_t *written);
+ extern f_status_t f_file_stream_write_block(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, f_string_length_t *written);
#endif // _di_f_file_stream_write_block_
/**
* @see fwrite()
*/
#ifndef _di_f_file_stream_write_until_
- extern f_return_status f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, const f_string_length_t total, f_string_length_t *written);
+ extern f_status_t f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, const f_string_length_t total, f_string_length_t *written);
#endif // _di_f_file_stream_write_until_
/**
* @see fwrite()
*/
#ifndef _di_f_file_stream_write_range_
- extern f_return_status f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, const f_string_range_t range, f_string_length_t *written);
+ extern f_status_t f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_length_t amount, const f_string_range_t range, f_string_length_t *written);
#endif // _di_f_file_stream_write_range_
* @see utimensat()
*/
#ifndef _di_f_file_touch_
- extern f_return_status f_file_touch(const f_string_t path, const mode_t mode, const bool dereference);
+ extern f_status_t f_file_touch(const f_string_t path, const mode_t mode, const bool dereference);
#endif // _di_f_file_touch_
/**
* @see utimensat()
*/
#ifndef _di_f_file_touch_at_
- extern f_return_status f_file_touch_at(const int at_id, const f_string_t path, const mode_t mode, const int flag);
+ extern f_status_t f_file_touch_at(const int at_id, const f_string_t path, const mode_t mode, const int flag);
#endif // _di_f_file_touch_at_
/**
* @see stat()
*/
#ifndef _di_f_file_type_
- extern f_return_status f_file_type(const f_string_t path, int *type);
+ extern f_status_t f_file_type(const f_string_t path, int *type);
#endif // _di_f_file_type_
/**
* @see fstatat()
*/
#ifndef _di_f_file_type_at_
- extern f_return_status f_file_type_at(const int at_id, const f_string_t path, const int flag, int *type);
+ extern f_status_t f_file_type_at(const int at_id, const f_string_t path, const int flag, int *type);
#endif // _di_f_file_type_at_
/**
* @see write()
*/
#ifndef _di_f_file_write_
- extern f_return_status f_file_write(const f_file_t file, const f_string_static_t buffer, f_string_length_t *written);
+ extern f_status_t f_file_write(const f_file_t file, const f_string_static_t buffer, f_string_length_t *written);
#endif // _di_f_file_write_
/**
* @see write()
*/
#ifndef _di_f_file_write_block_
- extern f_return_status f_file_write_block(const f_file_t file, const f_string_static_t buffer, f_string_length_t *written);
+ extern f_status_t f_file_write_block(const f_file_t file, const f_string_static_t buffer, f_string_length_t *written);
#endif // _di_f_file_write_block_
/**
* @see write()
*/
#ifndef _di_f_file_write_until_
- extern f_return_status f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_string_length_t total, f_string_length_t *written);
+ extern f_status_t f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_string_length_t total, f_string_length_t *written);
#endif // _di_f_file_write_until_
/**
* @see write()
*/
#ifndef _di_f_file_write_range_
- extern f_return_status f_file_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_string_length_t *written);
+ extern f_status_t f_file_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_string_length_t *written);
#endif // _di_f_file_write_range_
#ifdef __cplusplus
#endif
#if !defined(_di_f_file_close_) || !defined(_di_f_file_copy_) || !defined(_di_f_file_stream_close_)
- f_return_status private_f_file_close(int *id) {
+ f_status_t private_f_file_close(int *id) {
if (*id == -1) return F_none;
#endif // !defined(_di_f_file_close_) || !defined(_di_f_file_copy_) || !defined(_di_f_file_stream_close_)
#if !defined(_di_f_file_copy_) || !defined(_di_f_file_clone_)
- f_return_status private_f_file_copy_content(const f_string_t source, const f_string_t destination, const f_number_unsigned_t size_block) {
+ f_status_t private_f_file_copy_content(const f_string_t source, const f_string_t destination, const f_number_unsigned_t size_block) {
f_file_t file_source = f_file_t_initialize;
f_file_t file_destination = f_file_t_initialize;
#endif // !defined(_di_f_file_copy_) || !defined(_di_f_file_clone_)
#if !defined(_di_f_file_copy_at_) || !defined(_di_f_file_clone_at_)
- f_return_status private_f_file_copy_content_at(const int at_id, const f_string_t source, const f_string_t destination, const f_number_unsigned_t size_block) {
+ f_status_t private_f_file_copy_content_at(const int at_id, const f_string_t source, const f_string_t destination, const f_number_unsigned_t size_block) {
f_file_t file_source = f_file_t_initialize;
f_file_t file_destination = f_file_t_initialize;
#endif // !defined(_di_f_file_copy_at_) || !defined(_di_f_file_clone_at_)
#if !defined(_di_f_file_create_) || !defined(_di_f_file_copy_)
- f_return_status private_f_file_create(const f_string_t path, const mode_t mode, const bool exclusive) {
+ f_status_t private_f_file_create(const f_string_t path, const mode_t mode, const bool exclusive) {
f_file_t file = f_file_t_initialize;
file.flag = f_file_flag_close_execute | f_file_flag_create | f_file_flag_write_only;
#endif // !defined(_di_f_file_create_) || !defined(_di_f_file_copy_)
#if !defined(_di_f_file_create_at_) || !defined(_di_f_file_copy_at_)
- f_return_status private_f_file_create_at(const int at_id, const f_string_t path, const mode_t mode, const bool exclusive) {
+ f_status_t private_f_file_create_at(const int at_id, const f_string_t path, const mode_t mode, const bool exclusive) {
f_file_t file = f_file_t_initialize;
file.flag = f_file_flag_close_execute | f_file_flag_create | f_file_flag_write_only;
#endif // !defined(_di_f_file_create_at_) || !defined(_di_f_file_copy_at_)
#if !defined(_di_f_file_copy_)
- f_return_status private_f_file_create_directory(const f_string_t path, const mode_t mode) {
+ f_status_t private_f_file_create_directory(const f_string_t path, const mode_t mode) {
if (mkdir(path, mode) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_file_copy_)
#if !defined(_di_f_file_copy_at_)
- f_return_status private_f_file_create_directory_at(const int at_id, const f_string_t path, const mode_t mode) {
+ f_status_t private_f_file_create_directory_at(const int at_id, const f_string_t path, const mode_t mode) {
if (mkdirat(at_id, path, mode) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_file_copy_at_)
#if !defined(_di_f_file_create_fifo_) || !defined(_di_f_file_copy_)
- f_return_status private_f_file_create_fifo(const f_string_t path, const mode_t mode) {
+ f_status_t private_f_file_create_fifo(const f_string_t path, const mode_t mode) {
if (mkfifo(path, mode) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_file_create_fifo_) || !defined(_di_f_file_copy_)
#if !defined(_di_f_file_create_fifo_at_) || !defined(_di_f_file_copy_at_)
- f_return_status private_f_file_create_fifo_at(const int at_id, const f_string_t path, const mode_t mode) {
+ f_status_t private_f_file_create_fifo_at(const int at_id, const f_string_t path, const mode_t mode) {
if (mkfifoat(at_id, path, mode) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_file_create_fifo_at_) || !defined(_di_f_file_copy_at_)
#if !defined(_di_f_file_create_device_) || !defined(_di_f_file_create_node_) || !defined(_di_f_file_copy_)
- f_return_status private_f_file_create_node(const f_string_t path, const mode_t mode, const dev_t device) {
+ f_status_t private_f_file_create_node(const f_string_t path, const mode_t mode, const dev_t device) {
if (mknod(path, mode, device) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_file_create_device_) || !defined(_di_f_file_create_node_) || !defined(_di_f_file_copy_)
#if !defined(_di_f_file_create_device_at_) || !defined(_di_f_file_create_node_at_) || !defined(_di_f_file_copy_at_)
- f_return_status private_f_file_create_node_at(const int at_id, const f_string_t path, const mode_t mode, const dev_t device) {
+ f_status_t private_f_file_create_node_at(const int at_id, const f_string_t path, const mode_t mode, const dev_t device) {
if (mknodat(at_id, path, mode, device) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_file_create_device_at_) || !defined(_di_f_file_create_node_at_) || !defined(_di_f_file_copy_at_)
#if !defined(_di_f_file_flush_) || !defined(_di_f_file_close_) || !defined(_di_f_file_copy_)
- f_return_status private_f_file_flush(const int id) {
+ f_status_t private_f_file_flush(const int id) {
if (fsync(id) < 0) {
if (errno == EBADF) return F_status_set_error(F_file_descriptor);
#endif // !defined(_di_f_file_flush_) || !defined(_di_f_file_close_) || !defined(_di_f_file_copy_)
#if !defined(_di_f_file_link_) || !defined(_di_f_file_copy_)
- f_return_status private_f_file_link(const f_string_t target, const f_string_t point) {
+ f_status_t private_f_file_link(const f_string_t target, const f_string_t point) {
if (symlink(target, point) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_file_link_) || !defined(_di_f_file_copy_)
#if !defined(_di_f_file_link_at_) || !defined(_di_f_file_copy_at_)
- f_return_status private_f_file_link_at(const int at_id, const f_string_t target, const f_string_t point) {
+ f_status_t private_f_file_link_at(const int at_id, const f_string_t target, const f_string_t point) {
if (symlinkat(target, at_id, point) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_file_link_at_) || !defined(_di_f_file_copy_at_)
#if !defined(_di_f_file_link_read_) || !defined(_di_f_file_copy_)
- f_return_status private_f_file_link_read(const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) {
+ f_status_t private_f_file_link_read(const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) {
// create a NULL terminated string based on file stat.
if (link_stat.st_size + 1 > target->size) {
if (link_stat.st_size + 1 > f_string_length_t_size) {
#endif // !defined(_di_f_file_link_read_) || !defined(_di_f_file_copy_)
#if !defined(_di_f_file_link_read_at_) || !defined(_di_f_file_copy_at_)
- f_return_status private_f_file_link_read_at(const int at_id, const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) {
+ f_status_t private_f_file_link_read_at(const int at_id, const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) {
// create a NULL terminated string based on file stat.
if (link_stat.st_size + 1 > target->size) {
if (link_stat.st_size + 1 > f_string_length_t_size) {
#endif // !defined(_di_f_file_link_read_at_) || !defined(_di_f_file_copy_at_)
#if !defined(_di_f_file_mode_set_) || !defined(_di_f_file_copy_)
- f_return_status private_f_file_mode_set(const f_string_t path, const mode_t mode) {
+ f_status_t private_f_file_mode_set(const f_string_t path, const mode_t mode) {
if (chmod(path, mode) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_file_mode_set_) || !defined(_di_f_file_copy_)
#if !defined(_di_f_file_mode_set_at_) || !defined(_di_f_file_copy_at_)
- f_return_status private_f_file_mode_set_at(const int at_id, const f_string_t path, const mode_t mode) {
+ f_status_t private_f_file_mode_set_at(const int at_id, const f_string_t path, const mode_t mode) {
if (fchmodat(at_id, path, mode, 0) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // !defined(_di_f_file_mode_set_at_) || !defined(_di_f_file_copy_at_)
#if !defined(_di_f_file_open_) || !defined(_di_f_file_copy_)
- f_return_status private_f_file_open(const f_string_t path, const mode_t mode, f_file_t *file) {
+ f_status_t private_f_file_open(const f_string_t path, const mode_t mode, f_file_t *file) {
if (!mode) {
file->id = open(path, file->flag);
#endif // !defined(_di_f_file_open_) || !defined(_di_f_file_copy_)
#if !defined(_di_f_file_open_at_) || !defined(_di_f_file_copy_at_)
- f_return_status private_f_file_open_at(const int at_id, const f_string_t path, const mode_t mode, f_file_t *file) {
+ f_status_t private_f_file_open_at(const int at_id, const f_string_t path, const mode_t mode, f_file_t *file) {
if (!mode) {
file->id = openat(at_id, path, file->flag);
#endif // !defined(_di_f_file_open_at_) || !defined(_di_f_file_copy_at_)
#if !defined(_di_f_file_role_change_) || !defined(_di_f_file_copy_)
- f_return_status private_f_file_role_change(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference) {
+ f_status_t private_f_file_role_change(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference) {
int result = 0;
if (dereference) {
#endif // !defined(_di_f_file_role_change_) || !defined(_di_f_file_copy_)
#if !defined(_di_f_file_role_change_at_) || !defined(_di_f_file_copy_at_)
- f_return_status private_f_file_role_change_at(const int at_id, const f_string_t path, const uid_t uid, const gid_t gid, const int flag) {
+ f_status_t private_f_file_role_change_at(const int at_id, const f_string_t path, const uid_t uid, const gid_t gid, const int flag) {
int result = 0;
if (uid != -1) {
#endif // !defined(_di_f_file_role_change_at_) || !defined(_di_f_file_copy_at_)
#if !defined(_di_f_file_stat_) || !defined(_di_f_file_copy_)
- f_return_status private_f_file_stat(const f_string_t path, const bool dereference, struct stat *file_stat) {
+ f_status_t private_f_file_stat(const f_string_t path, const bool dereference, struct stat *file_stat) {
if ((dereference ? stat(path, file_stat) : lstat(path, file_stat)) < 0) {
if (errno == ENAMETOOLONG) return F_status_set_error(F_name);
#endif // !defined(_di_f_file_stat_) || !defined(_di_f_file_copy_)
#if !defined(_di_f_file_stat_at_) || !defined(_di_f_file_copy_at_)
- f_return_status private_f_file_stat_at(const int at_id, const f_string_t path, const int flag, struct stat *file_stat) {
+ f_status_t private_f_file_stat_at(const int at_id, const f_string_t path, const int flag, struct stat *file_stat) {
if (fstatat(at_id, path, file_stat, flag) < 0) {
if (errno == ENAMETOOLONG) return F_status_set_error(F_name);
#endif // !defined(_di_f_file_stat_at_) || !defined(_di_f_file_copy_at_)
#if !defined(_di_f_file_stat_by_id_) || !defined(_di_f_file_size_by_id_)
- f_return_status private_f_file_stat_by_id(const int id, struct stat *file_stat) {
+ f_status_t private_f_file_stat_by_id(const int id, struct stat *file_stat) {
const int result = fstat(id, file_stat);
if (result < 0) {
#endif // !defined(_di_f_file_stream_descriptor_) || !defined(_di_f_file_stream_open_) || !defined(_di_f_file_stream_reopen_)
#if !defined(f_file_stream_write) || !defined(_di_f_file_stream_write_block_) || !defined(f_file_stream_write_until) || !defined(f_file_stream_write_range)
- f_return_status private_f_file_stream_write_until(const f_file_t file, const f_string_t string, const f_string_length_t amount, const f_string_length_t total, f_string_length_t *written) {
+ f_status_t private_f_file_stream_write_until(const f_file_t file, const f_string_t string, const f_string_length_t amount, const f_string_length_t total, f_string_length_t *written) {
*written = 0;
f_status_t status = F_none;
#endif // !defined(f_file_stream_write) || !defined(_di_f_file_stream_write_block_) || !defined(f_file_stream_write_until) || !defined(f_file_stream_write_range)
#if !defined(f_file_write) || !defined(_di_f_file_write_block_) || !defined(f_file_write_until) || !defined(f_file_write_range)
- f_return_status private_f_file_write_until(const f_file_t file, const f_string_t string, const f_string_length_t total, f_string_length_t *written) {
+ f_status_t private_f_file_write_until(const f_file_t file, const f_string_t string, const f_string_length_t total, f_string_length_t *written) {
*written = 0;
f_status_t status = F_none;
* @see f_file_stream_close()
*/
#if !defined(_di_f_file_close_) || !defined(_di_f_file_copy_) || !defined(_di_f_file_stream_close_)
- extern f_return_status private_f_file_close(int *id) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_close(int *id) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_close_) || !defined(_di_f_file_copy_) || !defined(_di_f_file_stream_close_)
/**
* @see f_file_clone()
*/
#if !defined(_di_f_file_copy_) || !defined(_di_f_file_clone_)
- extern f_return_status private_f_file_copy_content(const f_string_t source, const f_string_t destination, const f_number_unsigned_t size_block) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_copy_content(const f_string_t source, const f_string_t destination, const f_number_unsigned_t size_block) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_copy_) || !defined(_di_f_file_clone_)
/**
* @see f_file_create()
*/
#if !defined(_di_f_file_create_) || !defined(_di_f_file_copy_)
- extern f_return_status private_f_file_create(const f_string_t path, const mode_t mode, const bool exclusive) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_create(const f_string_t path, const mode_t mode, const bool exclusive) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_create_) || !defined(_di_f_file_copy_)
/**
* @see f_file_create_at()
*/
#if !defined(_di_f_file_create_at_)
- extern f_return_status private_f_file_create_at(const int at_id, const f_string_t path, const mode_t mode, const bool exclusive) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_create_at(const int at_id, const f_string_t path, const mode_t mode, const bool exclusive) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_create_at_)
/**
* @see f_file_copy()
*/
#if !defined(_di_f_file_copy_)
- extern f_return_status private_f_file_create_directory(const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_create_directory(const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_copy_)
/**
* @see f_file_copy_at()
*/
#if !defined(_di_f_file_copy_at_)
- extern f_return_status private_f_file_create_directory_at(const int at_id, const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_create_directory_at(const int at_id, const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_copy_at_)
/**
* @see f_file_copy()
*/
#if !defined(_di_f_file_create_fifo_) || !defined(_di_f_file_copy_)
- extern f_return_status private_f_file_create_fifo(const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_create_fifo(const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_create_fifo_) || !defined(_di_f_file_copy_)
/**
* @see f_file_copy_at()
*/
#if !defined(_di_f_file_create_fifo_at_) || !defined(_di_f_file_copy_at_)
- extern f_return_status private_f_file_create_fifo_at(const int at_id, const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_create_fifo_at(const int at_id, const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_create_fifo_at_) || !defined(_di_f_file_copy_at_)
/**
* @see f_file_create_node()
*/
#if !defined(_di_f_file_create_device_) || !defined(_di_f_file_create_node_) || !defined(_di_f_file_copy_)
- extern f_return_status private_f_file_create_node(const f_string_t path, const mode_t mode, const dev_t device) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_create_node(const f_string_t path, const mode_t mode, const dev_t device) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_create_device_) || !defined(_di_f_file_create_node_) || !defined(_di_f_file_copy_)
/**
* @see f_file_create_node_at()
*/
#if !defined(_di_f_file_create_device_at_) || !defined(_di_f_file_create_node_at_) || !defined(_di_f_file_copy_at_)
- extern f_return_status private_f_file_create_node_at(const int at_id, const f_string_t path, const mode_t mode, const dev_t device) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_create_node_at(const int at_id, const f_string_t path, const mode_t mode, const dev_t device) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_create_device_at_) || !defined(_di_f_file_create_node_at_) || !defined(_di_f_file_copy_at_)
/**
* @see f_file_flush()
*/
#if !defined(_di_f_file_flush_) || !defined(_di_f_file_close_) || !defined(_di_f_file_copy_)
- extern f_return_status private_f_file_flush(const int id) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_flush(const int id) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_flush_) || !defined(_di_f_file_close_) || !defined(_di_f_file_copy_)
/**
* @see f_file_link()
*/
#if !defined(_di_f_file_link_) || !defined(_di_f_file_copy_)
- extern f_return_status private_f_file_link(const f_string_t target, const f_string_t point) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_link(const f_string_t target, const f_string_t point) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_link_) || !defined(_di_f_file_copy_)
/**
* @see f_file_link_at()
*/
#if !defined(_di_f_file_link_at_)
- extern f_return_status private_f_file_link_at(const int at_id, const f_string_t target, const f_string_t point) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_link_at(const int at_id, const f_string_t target, const f_string_t point) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_link_at_)
/**
* @see f_file_link_read()
*/
#if !defined(_di_f_file_link_read_) || !defined(_di_f_file_copy_)
- extern f_return_status private_f_file_link_read(const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_link_read(const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_link_read_) || !defined(_di_f_file_copy_)
/**
* @see f_file_link_read_at()
*/
#if !defined(_di_f_file_link_read_at_) || !defined(_di_f_file_copy_at_)
- extern f_return_status private_f_file_link_read_at(const int at_id, const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_link_read_at(const int at_id, const f_string_t path, const struct stat link_stat, f_string_dynamic_t *target) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_link_read_at_) || !defined(_di_f_file_copy_at_)
/**
* @see f_file_mode_set()
*/
#if !defined(_di_f_file_mode_set_) || !defined(_di_f_file_copy_)
- extern f_return_status private_f_file_mode_set(const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_mode_set(const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_mode_set_) || !defined(_di_f_file_copy_)
/**
* @see f_file_mode_set_at()
*/
#if !defined(_di_f_file_mode_set_at_)
- extern f_return_status private_f_file_mode_set_at(const int at_id, const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_mode_set_at(const int at_id, const f_string_t path, const mode_t mode) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_mode_set_at_)
/**
* @see f_file_open()
*/
#if !defined(_di_f_file_open_) || !defined(_di_f_file_copy_)
- extern f_return_status private_f_file_open(const f_string_t path, const mode_t mode, f_file_t *file) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_open(const f_string_t path, const mode_t mode, f_file_t *file) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_open_) || !defined(_di_f_file_copy_)
/**
* @see f_file_open_at()
*/
#if !defined(_di_f_file_open_at_)
- extern f_return_status private_f_file_open_at(const int at_id, const f_string_t path, const mode_t mode, f_file_t *file) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_open_at(const int at_id, const f_string_t path, const mode_t mode, f_file_t *file) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_open_at_)
/**
* @see f_file_role_change()
*/
#if !defined(_di_f_file_role_change_) || !defined(_di_f_file_copy_)
- extern f_return_status private_f_file_role_change(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_role_change(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_role_change_) || !defined(_di_f_file_copy_)
/**
* @see f_file_role_change_at()
*/
#if !defined(_di_f_file_role_change_at_)
- extern f_return_status private_f_file_role_change_at(const int at_id, const f_string_t path, const uid_t uid, const gid_t gid, const int flag) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_role_change_at(const int at_id, const f_string_t path, const uid_t uid, const gid_t gid, const int flag) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_role_change_at_)
/**
* @see f_file_touch()
*/
#if !defined(_di_f_file_stat_) || !defined(_di_f_file_copy_) || !defined(_di_f_file_exists_) || !defined(_di_f_file_is_) || !defined(_di_f_file_touch_)
- extern f_return_status private_f_file_stat(const f_string_t file_name, const bool dereference, struct stat *file_stat) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_stat(const f_string_t file_name, const bool dereference, struct stat *file_stat) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_stat_) || !defined(_di_f_file_copy_) || !defined(_di_f_file_exists_) || !defined(_di_f_file_is_) || !defined(_di_f_file_touch_)
/**
* @see f_file_touch_at()
*/
#if !defined(_di_f_file_stat_at_) || !defined(_di_f_file_exists_at_) || !defined(_di_f_file_touch_at_)
- extern f_return_status private_f_file_stat_at(const int at_id, const f_string_t file_name, const int flag, struct stat *file_stat) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_stat_at(const int at_id, const f_string_t file_name, const int flag, struct stat *file_stat) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_stat_at_) || !defined(_di_f_file_exists_at_) || !defined(_di_f_file_touch_at_)
/**
* @see f_file_stat_by_id()
*/
#if !defined(_di_f_file_stat_by_id_) || !defined(_di_f_file_size_by_id_)
- extern f_return_status private_f_file_stat_by_id(const int id, struct stat *file_stat) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_stat_by_id(const int id, struct stat *file_stat) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_file_stat_by_id_) || !defined(_di_f_file_size_by_id_)
/**
* @see f_file_stream_write_until()
*/
#if !defined(f_file_stream_write) || !defined(_di_f_file_stream_write_block_) || !defined(f_file_stream_write_until) || !defined(f_file_stream_write_range)
- extern f_return_status private_f_file_stream_write_until(const f_file_t file, const f_string_t string, const f_string_length_t amount, const f_string_length_t total, f_string_length_t *written) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_stream_write_until(const f_file_t file, const f_string_t string, const f_string_length_t amount, const f_string_length_t total, f_string_length_t *written) f_gcc_attribute_visibility_internal;
#endif // !defined(f_file_stream_write) || !defined(_di_f_file_stream_write_block_) || !defined(f_file_stream_write_until) || !defined(f_file_stream_write_range)
/**
* @see f_file_write_until()
*/
#if !defined(f_file_write) || !defined(_di_f_file_write_block_) || !defined(f_file_write_until) || !defined(f_file_write_range)
- extern f_return_status private_f_file_write_until(const f_file_t file, const f_string_t string, const f_string_length_t total, f_string_length_t *written) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_file_write_until(const f_file_t file, const f_string_t string, const f_string_length_t total, f_string_length_t *written) f_gcc_attribute_visibility_internal;
#endif // !defined(f_file_write) || !defined(_di_f_file_write_block_) || !defined(f_file_write_until) || !defined(f_file_write_range)
#ifdef __cplusplus
* FSS-specific types.
*/
#ifndef _di_f_fss_types_t_
- const static f_string_t f_fss_brace_left_s = "{";
- const static f_string_t f_fss_brace_right_s = "}";
- const static f_string_t f_fss_colon_s = ":";
- const static f_string_t f_fss_dash_s = "-";
- const static f_string_t f_fss_f_s = "f";
- const static f_string_t f_fss_pound_s = "#";
- const static f_string_t f_fss_quote_single_s = "'";
- const static f_string_t f_fss_quote_double_s = "\"";
- const static f_string_t f_fss_s_s = "s";
- const static f_string_t f_fss_slash_s = "\\";
- const static f_string_t f_fss_space_s = " ";
- const static f_string_t f_fss_underscore_s = "_";
+ const extern f_string_t f_fss_brace_left_s;
+ const extern f_string_t f_fss_brace_right_s;
+ const extern f_string_t f_fss_colon_s;
+ const extern f_string_t f_fss_dash_s;
+ const extern f_string_t f_fss_f_s;
+ const extern f_string_t f_fss_pound_s;
+ const extern f_string_t f_fss_quote_single_s;
+ const extern f_string_t f_fss_quote_double_s;
+ const extern f_string_t f_fss_s_s;
+ const extern f_string_t f_fss_slash_s;
+ const extern f_string_t f_fss_space_s;
+ const extern f_string_t f_fss_underscore_s;
#define f_fss_comment f_fss_pound_s[0]
#define f_fss_eol f_string_eol_s[0]
extern "C" {
#endif
+#ifndef _di_f_fss_types_t_
+ const f_string_t f_fss_brace_left_s = "{";
+ const f_string_t f_fss_brace_right_s = "}";
+ const f_string_t f_fss_colon_s = ":";
+ const f_string_t f_fss_dash_s = "-";
+ const f_string_t f_fss_f_s = "f";
+ const f_string_t f_fss_pound_s = "#";
+ const f_string_t f_fss_quote_single_s = "'";
+ const f_string_t f_fss_quote_double_s = "\"";
+ const f_string_t f_fss_s_s = "s";
+ const f_string_t f_fss_slash_s = "\\";
+ const f_string_t f_fss_space_s = " ";
+ const f_string_t f_fss_underscore_s = "_";
+#endif // _di_f_fss_types_t_
+
#ifndef _di_fl_fss_apply_delimit_
- f_return_status fl_fss_apply_delimit(const f_fss_delimits_t delimits, f_string_static_t *buffer) {
+ f_status_t fl_fss_apply_delimit(const f_fss_delimits_t delimits, f_string_static_t *buffer) {
#ifndef _di_level_0_parameter_checking_
if (!buffer) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_fl_fss_apply_delimit_
#ifndef _di_fl_fss_apply_delimit_between_
- f_return_status fl_fss_apply_delimit_between(const f_fss_delimits_t delimits, const f_string_range_t range, f_string_static_t *buffer) {
+ f_status_t fl_fss_apply_delimit_between(const f_fss_delimits_t delimits, const f_string_range_t range, f_string_static_t *buffer) {
#ifndef _di_level_0_parameter_checking_
if (!buffer) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_fl_fss_apply_delimit_between_
#ifndef _di_f_fss_count_lines_
- f_return_status f_fss_count_lines(const f_string_static_t buffer, const f_string_length_t before, f_string_length_t *line) {
+ f_status_t f_fss_count_lines(const f_string_static_t buffer, const f_string_length_t before, f_string_length_t *line) {
#ifndef _di_level_0_parameter_checking_
if (!line) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_fss_count_lines_
#ifndef _di_f_fss_count_lines_range_
- f_return_status f_fss_count_lines_range(const f_string_static_t buffer, const f_string_range_t range, const f_string_length_t before, f_string_length_t *line) {
+ f_status_t f_fss_count_lines_range(const f_string_static_t buffer, const f_string_range_t range, const f_string_length_t before, f_string_length_t *line) {
#ifndef _di_level_0_parameter_checking_
if (!line) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_fss_count_lines_range_
#ifndef _di_f_fss_is_graph_
- f_return_status f_fss_is_graph(const f_string_static_t buffer, const f_string_range_t range) {
+ f_status_t f_fss_is_graph(const f_string_static_t buffer, const f_string_range_t range) {
if (range.stop < range.start || range.start >= buffer.used || !buffer.used) {
return F_false;
#endif // _di_f_fss_is_graph_
#ifndef _di_f_fss_is_space_
- f_return_status f_fss_is_space(const f_string_static_t buffer, const f_string_range_t range) {
+ f_status_t f_fss_is_space(const f_string_static_t buffer, const f_string_range_t range) {
if (range.stop < range.start || range.start >= buffer.used || !buffer.used) {
return F_false;
#endif // _di_f_fss_is_space_
#ifndef _di_f_fss_is_zero_width_
- f_return_status f_fss_is_zero_width(const f_string_static_t buffer, const f_string_range_t range) {
+ f_status_t f_fss_is_zero_width(const f_string_static_t buffer, const f_string_range_t range) {
if (range.stop < range.start || range.start >= buffer.used || !buffer.used) {
return F_false;
#endif // _di_f_fss_is_zero_width_
#ifndef _di_f_fss_seek_to_eol_
- f_return_status f_fss_seek_to_eol(const f_string_dynamic_t buffer, f_string_range_t *range) {
+ f_status_t f_fss_seek_to_eol(const f_string_dynamic_t buffer, f_string_range_t *range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_fss_seek_to_eol_
#ifndef _di_f_fss_shift_delimit_
- f_return_status f_fss_shift_delimit(const f_string_range_t range, f_string_dynamic_t *buffer) {
+ f_status_t f_fss_shift_delimit(const f_string_range_t range, f_string_dynamic_t *buffer) {
#ifndef _di_level_0_parameter_checking_
if (!buffer) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_fss_shift_delimit_
#ifndef _di_f_fss_skip_past_delimit_
- f_return_status f_fss_skip_past_delimit(const f_string_static_t buffer, f_string_range_t *range) {
+ f_status_t f_fss_skip_past_delimit(const f_string_static_t buffer, f_string_range_t *range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_fss_skip_past_delimit_
#ifndef _di_f_fss_skip_past_space_
- f_return_status f_fss_skip_past_space(const f_string_static_t buffer, f_string_range_t *range) {
+ f_status_t f_fss_skip_past_space(const f_string_static_t buffer, f_string_range_t *range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_fss_skip_past_space_
#ifndef _di_f_fss_skip_past_non_graph_
- f_return_status f_fss_skip_past_non_graph(const f_string_static_t buffer, f_string_range_t *range) {
+ f_status_t f_fss_skip_past_non_graph(const f_string_static_t buffer, f_string_range_t *range) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_fss_apply_delimit_
- extern f_return_status fl_fss_apply_delimit(const f_fss_delimits_t delimits, f_string_static_t *buffer);
+ extern f_status_t fl_fss_apply_delimit(const f_fss_delimits_t delimits, f_string_static_t *buffer);
#endif // _di_fl_fss_apply_delimit_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_fss_apply_delimit_between_
- extern f_return_status fl_fss_apply_delimit_between(const f_fss_delimits_t delimits, const f_string_range_t range, f_string_static_t *buffer);
+ extern f_status_t fl_fss_apply_delimit_between(const f_fss_delimits_t delimits, const f_string_range_t range, f_string_static_t *buffer);
#endif // _di_fl_fss_apply_delimit_between_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_fss_count_lines_
- extern f_return_status f_fss_count_lines(const f_string_static_t buffer, const f_string_length_t before, f_string_length_t *line);
+ extern f_status_t f_fss_count_lines(const f_string_static_t buffer, const f_string_length_t before, f_string_length_t *line);
#endif // _di_f_fss_count_lines_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_fss_count_lines_range_
- extern f_return_status f_fss_count_lines_range(const f_string_static_t buffer, const f_string_range_t range, const f_string_length_t before, f_string_length_t *line);
+ extern f_status_t f_fss_count_lines_range(const f_string_static_t buffer, const f_string_range_t range, const f_string_length_t before, f_string_length_t *line);
#endif // _di_f_fss_count_lines_range_
/**
* @see f_utf_is_graph()
*/
#ifndef _di_f_fss_is_graph_
- extern f_return_status f_fss_is_graph(const f_string_static_t buffer, const f_string_range_t range);
+ extern f_status_t f_fss_is_graph(const f_string_static_t buffer, const f_string_range_t range);
#endif // _di_f_fss_is_graph_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_f_fss_is_space_
- extern f_return_status f_fss_is_space(const f_string_static_t buffer, const f_string_range_t range);
+ extern f_status_t f_fss_is_space(const f_string_static_t buffer, const f_string_range_t range);
#endif // _di_f_fss_is_space_
/**
* @see f_utf_is_zero_width()
*/
#ifndef _di_f_fss_is_zero_width_
- extern f_return_status f_fss_is_zero_width(const f_string_static_t buffer, const f_string_range_t range);
+ extern f_status_t f_fss_is_zero_width(const f_string_static_t buffer, const f_string_range_t range);
#endif // _di_f_fss_is_zero_width_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_fss_seek_to_eol_
- extern f_return_status f_fss_seek_to_eol(const f_string_dynamic_t buffer, f_string_range_t *range);
+ extern f_status_t f_fss_seek_to_eol(const f_string_dynamic_t buffer, f_string_range_t *range);
#endif // _di_f_fss_seek_to_eol_
/**
* F_utf (with error bit) if UTF-8 cannot be fully processed (buffer or range range not long enough).
*/
#ifndef _di_f_fss_shift_delimit_
- extern f_return_status f_fss_shift_delimit(const f_string_range_t range, f_string_dynamic_t *buffer);
+ extern f_status_t f_fss_shift_delimit(const f_string_range_t range, f_string_dynamic_t *buffer);
#endif // _di_f_fss_shift_delimit_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_fss_skip_past_delimit_
- extern f_return_status f_fss_skip_past_delimit(const f_string_static_t buffer, f_string_range_t *range);
+ extern f_status_t f_fss_skip_past_delimit(const f_string_static_t buffer, f_string_range_t *range);
#endif // _di_f_fss_skip_past_delimit_
/**
* @see f_utf_is_zero_width()
*/
#ifndef _di_f_fss_skip_past_space_
- extern f_return_status f_fss_skip_past_space(const f_string_static_t buffer, f_string_range_t *range);
+ extern f_status_t f_fss_skip_past_space(const f_string_static_t buffer, f_string_range_t *range);
#endif // _di_f_fss_skip_past_space_
/**
* @see f_utf_is_zero_width()
*/
#ifndef _di_f_fss_skip_past_non_graph_
- extern f_return_status f_fss_skip_past_non_graph(const f_string_static_t buffer, f_string_range_t *range);
+ extern f_status_t f_fss_skip_past_non_graph(const f_string_static_t buffer, f_string_range_t *range);
#endif // _di_f_fss_skip_past_non_graph_
#ifdef __cplusplus
#define f_fss_delimits_t_initialize f_string_lengths_t_initialize
- #define f_macro_fss_delimits_t_clear(delimits) f_macro_string_lengths_t_clear(delimits)
+ #define f_macro_fss_delimits_t_adjust(status, delimits, length) f_macro_memory_structure_t_adjust(status, delimits, f_fss_delimit_t, length)
- #define f_macro_fss_delimits_t_new(status, delimits, length) f_macro_string_lengths_t_new(status, delimits, length)
+ #define f_macro_fss_delimits_t_clear(delimits) f_macro_memory_structure_t_clear(delimits)
- #define f_macro_fss_delimits_t_delete(status, delimits) f_macro_string_lengths_t_delete(status, delimits)
- #define f_macro_fss_delimits_t_destroy(status, delimits) f_macro_string_lengths_t_destroy(status, delimits)
+ #define f_macro_fss_delimits_t_decimate(status, delimits) f_macro_memory_structure_decimate(status, delimits, f_fss_delimit_t);
+ #define f_macro_fss_delimits_t_decimate_by(status, delimits, amount) f_macro_memory_structure_decimate_by(status, delimits, f_fss_delimit_t, amount);
- #define f_macro_fss_delimits_t_delete_simple(delimits) f_macro_string_lengths_t_delete_simple(delimits)
- #define f_macro_fss_delimits_t_destroy_simple(delimits) f_macro_string_lengths_t_destroy_simple(delimits)
+ #define f_macro_fss_delimits_t_decrease(status, delimits) f_macro_memory_structure_decrease(status, delimits, f_fss_delimit_t);
+ #define f_macro_fss_delimits_t_decrease_by(status, delimits, amount) f_macro_memory_structure_decrease_by(status, delimits, f_fss_delimit_t, amount);
- #define f_macro_fss_delimits_t_resize(status, delimits, new_length) f_macro_string_lengths_t_resize(status, delimits, new_length)
- #define f_macro_fss_delimits_t_adjust(status, delimits, new_length) f_macro_string_lengths_t_adjust(status, delimits, new_length)
+ #define f_macro_fss_delimits_t_delete(status, delimits) f_macro_memory_structure_t_delete(status, delimits, f_fss_delimit_t)
+ #define f_macro_fss_delimits_t_delete_simple(delimits) f_macro_memory_structure_t_delete_simple(delimits, f_fss_delimit_t)
+
+ #define f_macro_fss_delimits_t_destroy(status, delimits) f_macro_memory_structure_t_destroy(status, delimits, f_fss_delimit_t)
+ #define f_macro_fss_delimits_t_destroy_simple(delimits) f_macro_memory_structure_t_destroy_simple(delimits, f_fss_delimit_t)
+
+ #define f_macro_fss_delimits_t_increase(status, delimits) f_macro_memory_structure_increase(status, delimits, f_fss_delimit_t);
+ #define f_macro_fss_delimits_t_increase_by(status, delimits, amount) f_macro_memory_structure_increase_by(status, delimits, f_fss_delimit_t, amount);
+
+ #define f_macro_fss_delimits_t_new(status, delimits, length) f_macro_memory_structure_t_new(status, delimits, f_fss_delimit_t, length)
+
+ #define f_macro_fss_delimits_t_resize(status, delimits, new_length) f_macro_memory_structure_t_resize(status, delimits, f_fss_delimit_t, new_length)
#endif // _di_f_fss_delimits_t_
/**
#endif
#ifndef _di_f_iki_content_is_
- f_return_status f_iki_content_is(const f_string_static_t content, const uint8_t quote) {
+ f_status_t f_iki_content_is(const f_string_static_t content, const uint8_t quote) {
#ifndef _di_level_0_parameter_checking_
if (content.used > content.size) return F_status_set_error(F_parameter);
if (quote != f_iki_syntax_quote_single && quote != f_iki_syntax_quote_double) return F_status_set_error(F_parameter);
#endif // _di_f_iki_content_is_
#ifndef _di_f_iki_content_partial_is_
- f_return_status f_iki_content_partial_is(const f_string_static_t content, const f_string_range_t range, const uint8_t quote) {
+ f_status_t f_iki_content_partial_is(const f_string_static_t content, const f_string_range_t range, const uint8_t quote) {
#ifndef _di_level_0_parameter_checking_
if (content.used > content.size) return F_status_set_error(F_parameter);
if (range.start > range.stop) return F_status_set_error(F_parameter);
#endif // _di_f_iki_content_partial_is_
#ifndef _di_f_iki_object_is_
- f_return_status f_iki_object_is(const f_string_static_t object) {
+ f_status_t f_iki_object_is(const f_string_static_t object) {
#ifndef _di_level_0_parameter_checking_
if (object.used > object.size) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_iki_object_is_
#ifndef _di_f_iki_object_partial_is_
- f_return_status f_iki_object_partial_is(const f_string_static_t object, const f_string_range_t range) {
+ f_status_t f_iki_object_partial_is(const f_string_static_t object, const f_string_range_t range) {
#ifndef _di_level_0_parameter_checking_
if (object.used > object.size) return F_status_set_error(F_parameter);
if (range.start > range.stop) return F_status_set_error(F_parameter);
#endif // _di_f_iki_object_partial_is_
#ifndef _di_f_iki_read_
- f_return_status f_iki_read(f_string_static_t *buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content) {
+ f_status_t f_iki_read(f_string_static_t *buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content) {
#ifndef _di_level_0_parameter_checking_
if (!buffer) return F_status_set_error(F_parameter);
if (!range) return F_status_set_error(F_parameter);
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_iki_content_is_
- extern f_return_status f_iki_content_is(const f_string_static_t content, const uint8_t quote);
+ extern f_status_t f_iki_content_is(const f_string_static_t content, const uint8_t quote);
#endif // _di_f_iki_content_is_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_iki_content_partial_is_
- extern f_return_status f_iki_content_partial_is(const f_string_static_t content, const f_string_range_t range, const uint8_t quote);
+ extern f_status_t f_iki_content_partial_is(const f_string_static_t content, const f_string_range_t range, const uint8_t quote);
#endif // _di_f_iki_content_partial_is_
/**
* Errors (with error bit) from: f_utf_is_word().
*/
#ifndef _di_f_iki_object_is_
- extern f_return_status f_iki_object_is(const f_string_static_t object);
+ extern f_status_t f_iki_object_is(const f_string_static_t object);
#endif // _di_f_iki_object_is_
/**
* Errors (with error bit) from: f_utf_is_word().
*/
#ifndef _di_f_iki_object_partial_is_
- extern f_return_status f_iki_object_partial_is(const f_string_static_t object, const f_string_range_t range);
+ extern f_status_t f_iki_object_partial_is(const f_string_static_t object, const f_string_range_t range);
#endif // _di_f_iki_object_partial_is_
/**
* F_string_too_large (with error bit) if a string length is too large to store in the buffer.
*/
#ifndef _di_f_iki_read_
- extern f_return_status f_iki_read(f_string_static_t *buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content);
+ extern f_status_t f_iki_read(f_string_static_t *buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content);
#endif // _di_f_iki_read_
#ifdef __cplusplus
#endif
#if !defined(_di_f_iki_content_is_) || !defined(_di_f_iki_content_partial_is_)
- f_return_status private_f_iki_content_partial_is(const f_string_static_t buffer, const f_string_range_t range, const uint8_t quote) {
+ f_status_t private_f_iki_content_partial_is(const f_string_static_t buffer, const f_string_range_t range, const uint8_t quote) {
f_string_length_t delimits = 0;
for (f_string_length_t i = 0; i < buffer.used; i++) {
#endif // !defined(_di_f_iki_content_is_) || !defined(_di_f_iki_content_partial_is_)
#if !defined(_di_f_iki_object_is_) || !defined(_di_f_iki_object_partial_is_)
- f_return_status private_f_iki_object_partial_is(const f_string_static_t buffer, const f_string_range_t range) {
+ f_status_t private_f_iki_object_partial_is(const f_string_static_t buffer, const f_string_range_t range) {
f_status_t status = F_none;
for (f_string_length_t i = 0; i < buffer.used; i++) {
* @see f_iki_content_partial_is()
*/
#if !defined(_di_f_iki_content_is_) || !defined(_di_f_iki_content_partial_is_)
- extern f_return_status private_f_iki_content_partial_is(const f_string_static_t buffer, const f_string_range_t range, const uint8_t quote) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_iki_content_partial_is(const f_string_static_t buffer, const f_string_range_t range, const uint8_t quote) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_iki_content_is_) || !defined(_di_f_iki_content_partial_is_)
/**
* @see f_iki_object_partial_is()
*/
#if !defined(_di_f_iki_object_is_) || !defined(_di_f_iki_object_partial_is_)
- extern f_return_status private_f_iki_object_partial_is(const f_string_static_t buffer, const f_string_range_t range) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_iki_object_partial_is(const f_string_static_t buffer, const f_string_range_t range) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_iki_object_is_) || !defined(_di_f_iki_object_partial_is_)
#ifdef __cplusplus
#define f_limit_values_t_initialize { 0, 0, 0 }
+ #define f_macro_limit_values_t_adjust(status, values, new_length) f_macro_memory_structure_t_adjust(status, values, f_limit_value_t, new_length)
+
#define f_macro_limit_values_t_clear(values) f_macro_memory_structure_t_clear(values)
- #define f_macro_limit_values_t_new(status, values, length) f_macro_memory_structure_t_new(status, values, f_limit_value_t, length)
+ #define f_macro_limit_values_t_decimate(status, values) f_macro_memory_structure_decimate(status, values, sizeof(f_limit_value_t));
+ #define f_macro_limit_values_t_decimate_by(status, values, amount) f_macro_memory_structure_decimate_by(status, values, sizeof(f_limit_value_t), amount);
- #define f_macro_limit_values_t_delete(status, values) f_macro_memory_structure_t_delete(status, values, f_limit_value_t)
- #define f_macro_limit_values_t_destroy(status, values) f_macro_memory_structure_t_destroy(status, values, f_limit_value_t)
+ #define f_macro_limit_values_t_decrease(status, values) f_macro_memory_structure_decrease(status, values, sizeof(f_limit_value_t));
+ #define f_macro_limit_values_t_decrease_by(status, values, amount) f_macro_memory_structure_decrease_by(status, values, sizeof(f_limit_value_t), amount);
+ #define f_macro_limit_values_t_delete(status, values) f_macro_memory_structure_t_delete(status, values, f_limit_value_t)
#define f_macro_limit_values_t_delete_simple(values) f_macro_memory_structure_t_delete_simple(values, f_limit_value_t)
+
+ #define f_macro_limit_values_t_destroy(status, values) f_macro_memory_structure_t_destroy(status, values, f_limit_value_t)
#define f_macro_limit_values_t_destroy_simple(values) f_macro_memory_structure_t_destroy_simple(values, f_limit_value_t)
+ #define f_macro_limit_values_t_increase(status, values) f_macro_memory_structure_increase(status, values, sizeof(f_limit_value_t));
+ #define f_macro_limit_values_t_increase_by(status, values, amount) f_macro_memory_structure_increase_by(status, values, sizeof(f_limit_value_t), amount);
+
+ #define f_macro_limit_values_t_new(status, values, length) f_macro_memory_structure_t_new(status, values, f_limit_value_t, length)
+
#define f_macro_limit_values_t_resize(status, values, new_length) f_macro_memory_structure_t_resize(status, values, f_limit_value_t, new_length)
- #define f_macro_limit_values_t_adjust(status, values, new_length) f_macro_memory_structure_t_adjust(status, values, f_limit_value_t, new_length)
#endif // _di_f_limit_values_t_
/**
#define f_limit_sets_t_initialize { 0, 0, 0 }
+ #define f_macro_limit_sets_t_adjust(status, sets, length) f_macro_memory_structure_t_adjust(status, sets, f_limit_set_t, length)
+
#define f_macro_limit_sets_t_clear(sets) f_macro_memory_structure_t_clear(sets)
- #define f_macro_limit_sets_t_new(status, sets, length) f_macro_memory_structure_t_new(status, sets, f_limit_set_t, length)
+ #define f_macro_limit_sets_t_decimate(status, sets) f_macro_memory_structure_decimate(status, sets, f_limit_set_t);
+ #define f_macro_limit_sets_t_decimate_by(status, sets, amount) f_macro_memory_structure_decimate_by(status, sets, f_limit_set_t, amount);
- #define f_macro_limit_sets_t_delete(status, sets) f_macro_memory_structure_t_delete(status, sets, f_limit_set_t)
- #define f_macro_limit_sets_t_destroy(status, sets) f_macro_memory_structure_t_destroy(status, sets, f_limit_set_t)
+ #define f_macro_limit_sets_t_decrease(status, sets) f_macro_memory_structure_decrease(status, sets, f_limit_set_t);
+ #define f_macro_limit_sets_t_decrease_by(status, sets, amount) f_macro_memory_structure_decrease_by(status, sets, f_limit_set_t, amount);
+ #define f_macro_limit_sets_t_delete(status, sets) f_macro_memory_structure_t_delete(status, sets, f_limit_set_t)
#define f_macro_limit_sets_t_delete_simple(sets) f_macro_memory_structure_t_delete_simple(sets, f_limit_set_t)
- #define f_macro_limit_sets_t_destroy_simple(sets) f_macro_memory_structure_t_destroy_simple(sets, f_limit_set_t)
+
+ #define f_macro_limit_sets_t_destroy(status, sets) f_macro_memory_structure_t_destroy(status, sets, f_limit_set_t)
+ #define f_macro_limit_sets_t_destroy_simple(sets) f_macro_memory_structure_t_destroy_simple(sets, f_limit_set_t)
+
+ #define f_macro_limit_sets_t_increase(status, sets) f_macro_memory_structure_increase(status, sets, f_limit_set_t);
+ #define f_macro_limit_sets_t_increase_by(status, sets, amount) f_macro_memory_structure_increase_by(status, sets, f_limit_set_t, amount);
+
+ #define f_macro_limit_sets_t_new(status, sets, length) f_macro_memory_structure_t_new(status, sets, f_limit_set_t, length)
#define f_macro_limit_sets_t_resize(status, sets, new_length) f_macro_memory_structure_t_resize(status, sets, f_limit_set_t, new_length)
- #define f_macro_limit_sets_t_adjust(status, sets, new_length) f_macro_memory_structure_t_adjust(status, sets, f_limit_set_t, new_length)
#endif // _di_f_limit_sets_t_
#ifdef __cplusplus
#include "limit.h"
-#include "private-limit.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _di_f_limit_process_
- f_return_status f_limit_process(const pid_t id, const int type, const f_limit_value_t *value_next, f_limit_value_t *value_current) {
+ f_status_t f_limit_process(const pid_t id, const int type, const f_limit_value_t *value_next, f_limit_value_t *value_current) {
#ifndef _di_level_0_parameter_checking_
if (!value_next && !value_current) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
}
#endif // _di_f_limit_process_
-#ifndef _di_f_limit_sets_decrease_
- f_return_status f_limit_sets_decrease(f_limit_sets_t *sets) {
- #ifndef _di_level_0_parameter_checking_
- if (!sets) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (sets->size > 1) {
- return private_f_limit_sets_resize(sets->size - 1, sets);
- }
-
- return private_f_limit_sets_delete(sets);
- }
-#endif // _di_f_limit_sets_decrease_
-
-#ifndef _di_f_limit_sets_decrease_by_
- f_return_status f_limit_sets_decrease_by(const f_array_length_t amount, f_limit_sets_t *sets) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!sets) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (sets->size - amount > 0) {
- return private_f_limit_sets_resize(sets->size - amount, sets);
- }
-
- return private_f_limit_sets_delete(sets);
- }
-#endif // _di_f_limit_sets_decrease_by_
-
-#ifndef _di_f_limit_sets_delete_
- f_return_status f_limit_sets_delete(f_limit_sets_t *sets) {
- #ifndef _di_level_0_parameter_checking_
- if (!sets) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_limit_sets_delete(sets);
- }
-#endif // _di_f_limit_sets_delete_
-
-#ifndef _di_f_limit_sets_increase_
- f_return_status f_limit_sets_increase(f_limit_sets_t *sets) {
- #ifndef _di_level_0_parameter_checking_
- if (!sets) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (sets->used + 1 > sets->size) {
- f_array_length_t size = sets->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (sets->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_limit_sets_resize(size, sets);
- }
-
- return F_none;
- }
-#endif // _di_f_limit_sets_increase_
-
-#ifndef _di_f_limit_sets_increase_by_
- f_return_status f_limit_sets_increase_by(const f_array_length_t amount, f_limit_sets_t *sets) {
- #ifndef _di_level_0_parameter_checking_
- if (!sets) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (sets->used + amount > sets->size) {
- if (sets->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_limit_sets_resize(sets->used + amount, sets);
- }
-
- return F_none;
- }
-#endif // _di_f_limit_sets_increase_by_
-
-#ifndef _di_f_limit_values_decrease_
- f_return_status f_limit_values_decrease(f_limit_values_t *values) {
- #ifndef _di_level_0_parameter_checking_
- if (!values) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (values->size > 1) {
- return private_f_limit_values_resize(values->size - 1, values);
- }
-
- return private_f_limit_values_delete(values);
- }
-#endif // _di_f_limit_values_decrease_
-
-#ifndef _di_f_limit_values_decrease_by_
- f_return_status f_limit_values_decrease_by(const f_array_length_t amount, f_limit_values_t *values) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!values) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (values->size - amount > 0) {
- return private_f_limit_values_resize(values->size - amount, values);
- }
-
- return private_f_limit_values_delete(values);
- }
-#endif // _di_f_limit_values_decrease_by_
-
-#ifndef _di_f_limit_values_delete_
- f_return_status f_limit_values_delete(f_limit_values_t *values) {
- #ifndef _di_level_0_parameter_checking_
- if (!values) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_limit_values_delete(values);
- }
-#endif // _di_f_limit_values_delete_
-
-#ifndef _di_f_limit_values_increase_
- f_return_status f_limit_values_increase(f_limit_values_t *values) {
- #ifndef _di_level_0_parameter_checking_
- if (!values) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (values->used + 1 > values->size) {
- f_array_length_t size = values->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (values->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_limit_values_resize(size, values);
- }
-
- return F_none;
- }
-#endif // _di_f_limit_values_increase_
-
-#ifndef _di_f_limit_values_increase_by_
- f_return_status f_limit_values_increase_by(const f_array_length_t amount, f_limit_values_t *values) {
- #ifndef _di_level_0_parameter_checking_
- if (!values) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (values->used + amount > values->size) {
- if (values->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_limit_values_resize(values->used + amount, values);
- }
-
- return F_none;
- }
-#endif // _di_f_limit_values_increase_by_
-
-
#ifdef __cplusplus
} // extern "C"
#endif
#include <level_0/status.h>
#include <level_0/memory.h>
-// fll-1 control includes
+// fll-0 control includes
#include <level_0/limit-common.h>
#ifdef __cplusplus
* @see prlimit()
*/
#ifndef _di_f_limit_process_
- extern f_return_status f_limit_process(const pid_t id, const int type, const f_limit_value_t *value_next, f_limit_value_t *value_current);
+ extern f_status_t f_limit_process(const pid_t id, const int type, const f_limit_value_t *value_next, f_limit_value_t *value_current);
#endif // _di_f_limit_process_
-/**
- * Resize the sets array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param sets
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_limit_sets_decrease_
- extern f_return_status f_limit_sets_decrease(f_limit_sets_t *sets);
-#endif // _di_f_limit_sets_decrease_
-
-/**
- * Resize the sets array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param sets
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_limit_sets_decrease_by_
- extern f_return_status f_limit_sets_decrease_by(const f_array_length_t amount, f_limit_sets_t *sets);
-#endif // _di_f_limit_sets_decrease_by_
-
-/**
- * Delete the sets array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_limit_sets_delete_
- extern f_return_status f_limit_sets_delete(f_limit_sets_t *sets);
-#endif // _di_f_limit_sets_delete_
-
-/**
- * Increase the size of the sets array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param sets
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_limit_sets_increase_
- extern f_return_status f_limit_sets_increase(f_limit_sets_t *sets);
-#endif // _di_f_limit_sets_increase_
-
-/**
- * Resize the sets array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param sets
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_limit_sets_increase_by_
- extern f_return_status f_limit_sets_increase_by(const f_array_length_t amount, f_limit_sets_t *sets);
-#endif // _di_f_limit_sets_increase_by_
-
-/**
- * Resize the values array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param values
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_limit_values_decrease_
- extern f_return_status f_limit_values_decrease(f_limit_values_t *values);
-#endif // _di_f_limit_values_decrease_
-
-/**
- * Resize the values array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param values
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_limit_values_decrease_by_
- extern f_return_status f_limit_values_decrease_by(const f_array_length_t amount, f_limit_values_t *values);
-#endif // _di_f_limit_values_decrease_by_
-
-/**
- * Delete the values array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_limit_values_delete_
- extern f_return_status f_limit_values_delete(f_limit_values_t *values);
-#endif // _di_f_limit_values_delete_
-
-/**
- * Increase the size of the values array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param values
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_limit_values_increase_
- extern f_return_status f_limit_values_increase(f_limit_values_t *values);
-#endif // _di_f_limit_values_increase_
-
-/**
- * Resize the values array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param values
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_limit_values_increase_by_
- extern f_return_status f_limit_values_increase_by(const f_array_length_t amount, f_limit_values_t *values);
-#endif // _di_f_limit_values_increase_by_
-
#ifdef __cplusplus
} // extern "C"
#endif
+++ /dev/null
-#include "limit.h"
-#include "private-limit.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#if !defined(_di_f_limit_sets_decrease_) || !defined(_di_f_limit_sets_decrease_by_) || !defined(_di_f_limit_sets_delete_)
- f_return_status private_f_limit_sets_delete(f_limit_sets_t *sets) {
- f_status_t status = F_none;
-
- f_macro_limit_sets_t_delete(status, (*sets));
-
- return status;
- }
-#endif // !defined(_di_f_limit_sets_decrease_) || !defined(_di_f_limit_sets_decrease_by_) || !defined(_di_f_limit_sets_delete_)
-
-#if !defined(_di_f_limit_sets_decrease_) || !defined(_di_f_limit_sets_decrease_by_) || !defined(_di_f_limit_sets_increase_) || !defined(_di_f_limit_sets_increase_by_)
- f_return_status private_f_limit_sets_resize(const f_array_length_t length, f_limit_sets_t *sets) {
- f_status_t status = F_none;
-
- f_macro_limit_sets_t_resize(status, (*sets), length);
-
- return status;
- }
-#endif // !defined(_di_f_limit_sets_decrease_) || !defined(_di_f_limit_sets_decrease_by_) || !defined(_di_f_limit_sets_increase_) || !defined(_di_f_limit_sets_increase_by_)
-
-#if !defined(_di_f_limit_values_decrease_) || !defined(_di_f_limit_values_decrease_by_) || !defined(_di_f_limit_values_delete_)
- f_return_status private_f_limit_values_delete(f_limit_values_t *values) {
- f_status_t status = F_none;
-
- f_macro_limit_values_t_delete(status, (*values));
-
- return status;
- }
-#endif // !defined(_di_f_limit_values_decrease_) || !defined(_di_f_limit_values_decrease_by_) || !defined(_di_f_limit_values_delete_)
-
-#if !defined(_di_f_limit_values_decrease_) || !defined(_di_f_limit_values_decrease_by_) || !defined(_di_f_limit_values_increase_) || !defined(_di_f_limit_values_increase_by_)
- f_return_status private_f_limit_values_resize(const f_array_length_t length, f_limit_values_t *values) {
- f_status_t status = F_none;
-
- f_macro_limit_values_t_resize(status, (*values), length);
-
- return status;
- }
-#endif // !defined(_di_f_limit_values_decrease_) || !defined(_di_f_limit_values_decrease_by_) || !defined(_di_f_limit_values_increase_) || !defined(_di_f_limit_values_increase_by_)
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 0
- *
- * Project: Limit
- * API Version: 0.5
- * Licenses: lgplv2.1
- *
- * These are provided for internal reduction in redundant code.
- * These should not be exposed/used outside of this project.
- */
-#ifndef _PRIVATE_F_limit_h
-#define _PRIVATE_F_limit_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * Private implementation of f_limit_sets_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param sets
- * The sets to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_limit_sets_t_delete().
- *
- * @see f_macro_limit_sets_t_delete()
- * @see f_limit_sets_decrease()
- * @see f_limit_sets_decrease_by()
- * @see f_limit_sets_delete()
- */
-#if !defined(_di_f_limit_sets_decrease_) || !defined(_di_f_limit_sets_decrease_by_) || !defined(_di_f_limit_sets_delete_)
- extern f_return_status private_f_limit_sets_delete(f_limit_sets_t *sets) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_limit_sets_decrease_) || !defined(_di_f_limit_sets_decrease_by_) || !defined(_di_f_limit_sets_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param sets
- * The sets to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_limit_sets_t_resize().
- *
- * @see f_macro_limit_sets_t_resize()
- * @see f_limit_sets_decrease()
- * @see f_limit_sets_decrease_by()
- * @see f_limit_sets_increase()
- * @see f_limit_sets_increase_by()
- */
-#if !defined(_di_f_limit_sets_decrease_) || !defined(_di_f_limit_sets_decrease_by_) || !defined(_di_f_limit_sets_increase_) || !defined(_di_f_limit_sets_increase_by_)
- extern f_return_status private_f_limit_sets_resize(const f_array_length_t length, f_limit_sets_t *sets) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_limit_sets_decrease_) || !defined(_di_f_limit_sets_decrease_by_) || !defined(_di_f_limit_sets_increase_) || !defined(_di_f_limit_sets_increase_by_)
-
-/**
- * Private implementation of f_limit_values_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param values
- * The values to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_limit_values_t_delete().
- *
- * @see f_macro_limit_values_t_delete()
- * @see f_limit_values_decrease()
- * @see f_limit_values_decrease_by()
- * @see f_limit_values_delete()
- */
-#if !defined(_di_f_limit_values_decrease_) || !defined(_di_f_limit_values_decrease_by_) || !defined(_di_f_limit_values_delete_)
- extern f_return_status private_f_limit_values_delete(f_limit_values_t *values) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_limit_values_decrease_) || !defined(_di_f_limit_values_decrease_by_) || !defined(_di_f_limit_values_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param values
- * The values to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_limit_values_t_resize().
- *
- * @see f_macro_limit_values_t_resize()
- * @see f_limit_values_decrease()
- * @see f_limit_values_decrease_by()
- * @see f_limit_values_increase()
- * @see f_limit_values_increase_by()
- */
-#if !defined(_di_f_limit_values_decrease_) || !defined(_di_f_limit_values_decrease_by_) || !defined(_di_f_limit_values_increase_) || !defined(_di_f_limit_values_increase_by_)
- extern f_return_status private_f_limit_values_resize(const f_array_length_t length, f_limit_values_t *values) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_limit_values_decrease_) || !defined(_di_f_limit_values_decrease_by_) || !defined(_di_f_limit_values_increase_) || !defined(_di_f_limit_values_increase_by_)
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#endif // _PRIVATE_F_limit_h
build_language c
build_libraries -lc
build_libraries-individual -lf_memory
-build_sources_library limit.c private-limit.c
+build_sources_library limit.c
build_sources_program
build_sources_headers limit.h limit-common.h
build_sources_script
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Memory
+ * API Version: 0.5
+ * Licenses: lgplv2.1
+ *
+ * Defines iki common data.
+ *
+ * This is auto-included by memory.h and should not need to be explicitly included.
+ */
+#ifndef _F_memory_common_h
+#define _F_memory_common_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Provide defines to alter compile time uses of certain memory functions.
+ *
+ * These are not intended as macros but are instead intended as a tool to automatically replace one function call with another (via the macro).
+ *
+ * If _f_memory_FORCE_secure_memory_ is defined, then all to-be removed address spaces are set to 0 before freeing or resizing.
+ * If _f_memory_FORCE_fast_memory_ is defined, then all to-be removed address spaces remain unchanged before freeing or resizing.
+ */
+#ifdef _f_memory_FORCE_secure_memory_
+ #define f_memory_delete(the_pointer, the_size, the_length) f_memory_destroy(the_pointer, the_size, the_length)
+ #define f_memory_resize(the_pointer, the_size, the_old_length, the_new_length) f_memory_adjust(the_pointer, the_size, the_old_length, the_new_length)
+
+ #ifdef _f_memory_FORCE_fast_memory_
+ #error You cannot define both _f_memory_FORCE_fast_memory_ and _f_memory_FORCE_secure_memory_ at the same time
+ #endif // _f_memory_FORCE_fast_memory_
+#endif // _f_memory_FORCE_secure_memory_
+
+#ifdef _f_memory_FORCE_fast_memory_
+ #define f_memory_destroy(the_pointer, the_size, the_length) f_memory_delete(the_pointer, the_size, the_length)
+ #define f_memory_adjust(the_pointer, the_size, the_old_length, the_new_length) f_memory_resize(the_pointer, the_size, the_old_length, the_new_length)
+#endif // _f_memory_FORCE_fast_memory_
+
+/**
+ * Default allocation step.
+ *
+ * Everytime some array needs a single new element, reallocated by this amount.
+ *
+ * Normally, this should be small, but when a large number of singular allocations are made, the overhead can be reduced by not having to reallocate space as often.
+ * The problem then is that the more space allocated beyond what is initially needed will waste precious memory.
+ * Change this if you know your application can afford to reduce the allocation overhead at the cost of more memory.
+ *
+ * Other projects may provide their own values.
+ */
+#ifndef _di_f_memory_default_allocation_step_
+ #define f_memory_default_allocation_step 4
+#endif // _di_f_memory_default_allocation_step_
+
+/**
+ * Adjust a generic memory structure.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ * length: the new size of the array.
+ */
+#ifndef _di_f_macro_memory_structure_t_adjust_
+ #define f_macro_memory_structure_t_adjust(status, structure, type, length) \
+ status = f_memory_structure_adjust(length, sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_t_adjust_
+
+/**
+ * Reset a generic memory stucture to 0 (clear all values).
+ *
+ * This does not deallocate memory, be certain that memory is not allocated before calling this to avoid potential memory leaks.
+ *
+ * structure: the structure to operate on.
+ */
+#ifndef _di_f_macro_memory_structure_t_clear_
+ #define f_macro_memory_structure_t_clear(structure) \
+ structure.array = 0; \
+ structure.size = 0; \
+ structure.used = 0;
+#endif // _di_f_macro_memory_structure_t_clear_
+
+/**
+ * Decimate a generic memory structure.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ */
+#ifndef _di_f_macro_memory_structure_decimate_
+ #define f_macro_memory_structure_decimate(status, structure, type) \
+ status = f_memory_structure_decimate(sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_decimate_
+
+/**
+ * Decimate a generic memory structure by some amount.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ * amount: the amount to decimate the size of the array by.
+ */
+#ifndef _di_f_macro_memory_structure_decimate_by_
+ #define f_macro_memory_structure_decimate_by(status, structure, type, amount) \
+ status = f_memory_structure_decimate_by(amount, sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_decimate_by_
+
+/**
+ * Decrease a generic memory structure.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ */
+#ifndef _di_f_macro_memory_structure_decrease_
+ #define f_macro_memory_structure_decrease(status, structure, type) \
+ status = f_memory_structure_decrease(sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_decrease_
+
+/**
+ * Decrease a generic memory structure by some amount.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ * amount: the amount to decrease the size of the array by.
+ */
+#ifndef _di_f_macro_memory_structure_decrease_by_
+ #define f_macro_memory_structure_decrease_by(status, structure, type, amount) \
+ status = f_memory_structure_decrease_by(amount, sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_decrease_by_
+
+/**
+ * Delete a generic memory structure.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ */
+#ifndef _di_f_macro_memory_structure_t_delete_
+ #define f_macro_memory_structure_t_delete(status, structure, type) \
+ status = f_memory_structure_delete(sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_t_delete_
+
+/**
+ * Delete a generic memory structure.
+ *
+ * structure: the structure to operate on.
+ * type: the structure type.
+ */
+#ifndef _di_f_macro_memory_structure_t_delete_simple_
+ #define f_macro_memory_structure_t_delete_simple(structure, type) \
+ f_memory_structure_delete(sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_t_delete_simple_
+
+/**
+ * Destroy a generic memory structure.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ */
+#ifndef _di_f_macro_memory_structure_destroy_
+ #define f_macro_memory_structure_t_destroy(status, structure, type) \
+ status = f_memory_structure_destroy(sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_destroy_
+
+/**
+ * Destroy a generic memory structure.
+ *
+ * structure: the structure to operate on.
+ * type: the structure type.
+ */
+#ifndef _di_f_macro_memory_structure_t_destroy_simple_
+ #define f_macro_memory_structure_t_destroy_simple(structure, type) \
+ f_memory_structure_destroy(sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_t_destroy_simple_
+
+/**
+ * Increase a generic memory structure.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ */
+#ifndef _di_f_macro_memory_structure_increase_
+ #define f_macro_memory_structure_increase(status, structure, type) \
+ status = f_memory_structure_increase(sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_increase_
+
+/**
+ * Increase a generic memory structure by some amount.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ * amount: the amount to increase the size of the array by.
+ */
+#ifndef _di_f_macro_memory_structure_increase_by_
+ #define f_macro_memory_structure_increase_by(status, structure, type, amount) \
+ status = f_memory_structure_increase_by(amount, sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_increase_by_
+
+/**
+ * Create a new generic memory structure.
+ *
+ * This does not deallocate memory, be certain that memory is not allocated before calling this to avoid potential memory leaks.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ * length: the new size of the array.
+ */
+#ifndef _di_f_macro_memory_structure_t_new_
+ #define f_macro_memory_structure_t_new(status, structure, type, length) \
+ status = f_memory_structure_new(length, sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_t_new_
+
+/**
+ * Resize a generic memory structure.
+ *
+ * status: the status to return.
+ * structure: the structure to operate on.
+ * type: the structure type.
+ * length: the new size of the array.
+ */
+#ifndef _di_f_macro_memory_structure_t_resize_
+ #define f_macro_memory_structure_t_resize(status, structure, type, length) \
+ status = f_memory_structure_resize(length, sizeof(type), (void **) &structure.array, &structure.used, &structure.size);
+#endif // _di_f_macro_memory_structure_t_resize_
+
+/**
+ * Reset a generic memory stuctures to 0 (clear all values).
+ *
+ * This does not deallocate memory, be certain that memory is not allocated before calling this to avoid potential memory leaks.
+ *
+ * structures: the structures to operate on.
+ */
+#ifndef _di_f_macro_memory_structures_clear_
+ #define f_macro_memory_structures_t_clear(structures) \
+ structures.array = 0; \
+ structures.size = 0; \
+ structures.used = 0;
+#endif // _di_f_macro_memory_structures_clear_
+
+/**
+ * Create a new generic memory structures.
+ *
+ * This does not deallocate memory, be certain that memory is not allocated before calling this to avoid potential memory leaks.
+ *
+ * status: the status to return.
+ * structures: the structures to operate on.
+ * type_stuctures: the structures type.
+ * length: the new size of the array.
+ */
+#ifndef _di_f_macro_memory_structures_new_
+ #define f_macro_memory_structures_t_new(status, structures, type_structures, length) \
+ f_macro_memory_structures_t_clear(structures) \
+ status = f_memory_new((void **) & structures.array, sizeof(type_structures), length); \
+ if (status == F_none) { \
+ structures.size = length; \
+ structures.used = 0; \
+ }
+#endif // _di_f_macro_memory_structures_new_
+
+/**
+ * Delete a generic memory structures.
+ *
+ * status: the status to return.
+ * structures: the structures to operate on.
+ * type_stucture: the structure type.
+ * type_stuctures: the structures type.
+ */
+#ifndef _di_f_macro_memory_structures_delete_
+ #define f_macro_memory_structures_t_delete(status, structures, type_structure, type_structures) \
+ status = F_none; \
+ structures.used = structures.size; \
+ while (structures.used) { \
+ structures.used--; \
+ f_macro_memory_structure_t_delete(status, structures.array[structures.used], type_structure); \
+ if (status != F_none) break; \
+ } \
+ if (status == F_none) status = f_memory_delete((void **) & structures.array, sizeof(type_structures), structures.size); \
+ if (status == F_none) structures.size = 0;
+#endif // _di_f_macro_memory_structures_delete_
+
+/**
+ * Destroy a generic memory structures.
+ *
+ * status: the status to return.
+ * structures: the structures to operate on.
+ * type_stucture: the structure type.
+ * type_stuctures: the structures type.
+ */
+#ifndef _di_f_macro_memory_structures_destroy_
+ #define f_macro_memory_structures_t_destroy(status, structures, type_structure, type_structures) \
+ status = F_none; \
+ structures.used = structures.size; \
+ while (structures.used) { \
+ structures.used--; \
+ f_macro_memory_structure_t_destroy(status, structures.array[structures.used], type_structure); \
+ if (status != F_none) break; \
+ } \
+ if (status == F_none) status = f_memory_destroy((void **) & structures.array, sizeof(type_structures), structures.size); \
+ if (status == F_none) structures.size = 0;
+#endif // _di_f_macro_memory_structures_destroy_
+
+/**
+ * Delete a generic memory structures.
+ *
+ * structures: the structures to operate on.
+ * type_stucture: the structure type.
+ * type_stuctures: the structures type.
+ */
+#ifndef _di_f_macro_memory_structures_delete_simple_
+ #define f_macro_memory_structures_t_delete_simple(structures, type_structure, type_structures) \
+ structures.used = structures.size; \
+ while (structures.used) { \
+ structures.used--; \
+ f_macro_memory_structure_t_delete_simple(structures.array[structures.used], type_structure); \
+ } \
+ f_memory_delete((void **) & structures.array, sizeof(type_structures), structures.size); \
+ structures.size = 0;
+#endif // _di_f_macro_memory_structures_delete_simple_
+
+/**
+ * Destroy a generic memory structures.
+ *
+ * structures: the structures to operate on.
+ * type_stucture: the structure type.
+ * type_stuctures: the structures type.
+ */
+#ifndef _di_f_macro_memory_structures_destroy_simple_
+ #define f_macro_memory_structures_t_destroy_simple(structures, type_structure, type_structures) \
+ structures.used = structures.size; \
+ while (structures.used) { \
+ structures.used--; \
+ f_macro_memory_structure_t_destroy_simple(structures.array[structures.used], type_structure); \
+ } \
+ f_memory_destroy((void **) & structures.array, sizeof(type_structures), structures.size); \
+ structures.size = 0;
+#endif // _di_f_macro_memory_structures_destroy_simple_
+
+/**
+ * Resize a generic memory structures.
+ *
+ * status: the status to return.
+ * structures: the structures to operate on.
+ * type_stucture: the structure type.
+ * type_stuctures: the structures type.
+ * new_length: the new size of the array.
+ * length_variable: the data type of the length variable.
+ */
+#ifndef _di_f_macro_memory_structures_resize_
+ #define f_macro_memory_structures_t_resize(status, structures, type_structure, type_structures, new_length, length_variable) \
+ status = F_none; \
+ if (new_length < structures.size) { \
+ for (length_variable _macro__i = structures.size - new_length; _macro__i < structures.size; _macro__i++) { \
+ f_macro_memory_structure_t_delete(status, structures.array[_macro__i], type_structure); \
+ if (status != F_none) break; \
+ } \
+ } \
+ if (status == F_none) status = f_memory_resize((void **) & structures.array, sizeof(type_structures), structures.size, new_length); \
+ if (status == F_none) { \
+ structures.size = new_length; \
+ if (structures.used > structures.size) structures.used = new_length; \
+ }
+#endif // _di_f_macro_memory_structures_resize_
+
+/**
+ * Adjust a generic memory structures.
+ *
+ * status: the status to return.
+ * structures: the structures to operate on.
+ * type_stucture: the structure type.
+ * type_stuctures: the structures type.
+ * new_length: the new size of the array.
+ * length_variable: the data type of the length variable.
+ */
+#ifndef _di_f_macro_memory_structures_adjust_
+ #define f_macro_memory_structures_t_adjust(status, structures, type_structure, type_structures, new_length, length_variable) \
+ status = F_none; \
+ if (new_length < structures.size) { \
+ for (length_variable _macro__i = structures.size - new_length; _macro__i < structures.size; _macro__i++) { \
+ f_macro_memory_structure_t_destroy(status, structures.array[_macro__i], type_structure); \
+ if (status != F_none) break; \
+ } \
+ } \
+ if (status == F_none) status = f_memory_adjust((void **) & structures.array, sizeof(type_structures), structures.size, new_length); \
+ if (status == F_none) { \
+ structures.size = new_length; \
+ if (structures.used > structures.size) structures.used = new_length; \
+ }
+#endif // _di_f_macro_memory_structures_adjust_
+
+/**
+ * Provide a macro for calling other macros for incrementing a buffer.
+ *
+ * If the used + step is greater than size, then increase by step_default.
+ * If step_default exceeds f_array_length_t_size, then attempt to increment by step.
+ * If step exceeds f_array_length_t_size, set status to error_too_large.
+ *
+ * Be sure to check size for error after calling this.
+ *
+ * status: the status to return.
+ * structures: the structures to operate on.
+ * step: the step to increase by, must be less than or equal to step_default.
+ * step_default: the default step to increase by if memory allows.
+ * macro_resize: the resize structure macro to call that excepts the exact arguments: (status, structure, new_length).
+ * error_too_large: the error status to return when f_array_length_t_size would be exceeded.
+ */
+#ifndef _di_f_macro_memory_structure_macro_increment_
+ #define f_macro_memory_structure_macro_increment(status, structure, step, step_default, macro_resize, error_too_large) \
+ if (structure.used + step > structure.size) { \
+ if (structure.used + step_default > f_array_length_t_size) { \
+ if (structure.used + step > f_array_length_t_size) { \
+ status = F_status_set_error(error_too_large); \
+ } \
+ else { \
+ macro_resize(status, structure, structure.used + step); \
+ } \
+ } \
+ else { \
+ macro_resize(status, structure, structure.size + step_default); \
+ } \
+ }
+#endif // _di_f_macro_memory_structure_macro_increment_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _F_memory_common_h
#include "memory.h"
+#include "private-memory.h"
#ifdef __cplusplus
extern "C" {
#endif
-#ifndef _di_f_memory_new_
- f_return_status f_memory_new(void **pointer, const size_t size, const size_t length) {
+#ifndef _di_f_memory_adjust_
+ f_status_t f_memory_adjust(void **pointer, const size_t size, const size_t old_length, const size_t new_length) {
#ifndef _di_level_0_parameter_checking_
if (size <= 0) return F_status_set_error(F_parameter);
- if (length <= 0) return F_status_set_error(F_parameter);
+ if (old_length < 0) return F_status_set_error(F_parameter);
+ if (new_length < 0) return F_status_set_error(F_parameter);
if (!pointer) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- // prevent double-allocations.
- if (*pointer || length == 0) return F_none;
-
- // Some people use malloc(size * length) to produce the same results.
- // This has been observed to sometimes causes an increase in L1/L2 cache misses (0.02% L1 increase, 0.01% L2 increase).
- *pointer = calloc(length, size);
-
- if (*pointer) {
-
- // uint8_t * is of a data size size of 1, casting it to uint8_t should result in a single-length increment.
- // this is done to avoid problems with (void *) having arithmetic issues.
- memset(((uint8_t *) *pointer), 0, size * length);
-
- return F_none;
- }
-
- return F_status_set_error(F_memory_allocation);
+ #ifdef _f_memory_FORCE_fast_memory_
+ return private_f_memory_resize(old_length, new_length, size, pointer);
+ #else // _f_memory_FORCE_fast_memory_
+ return private_f_memory_adjust(old_length, new_length, size, pointer);
+ #endif // _f_memory_FORCE_fast_memory_
}
-#endif // _di_f_memory_new_
+#endif // _di_f_memory_adjust_
#ifndef _di_f_memory_new_aligned_
- f_return_status f_memory_new_aligned(void **pointer, const size_t alignment, const size_t length) {
+ f_status_t f_memory_new_aligned(void **pointer, const size_t alignment, const size_t length) {
#ifndef _di_level_0_parameter_checking_
if (alignment <= 0) return F_status_set_error(F_parameter);
if (length <= 0) return F_status_set_error(F_parameter);
}
#endif // _di_f_memory_new_aligned_
-#if !(defined(_di_f_memory_delete_) || defined(_f_memory_FORCE_secure_memory_))
- f_return_status f_memory_delete(void **pointer, const size_t size, const size_t length) {
+#ifndef _di_f_memory_delete_
+ f_status_t f_memory_delete(void **pointer, const size_t size, const size_t length) {
#ifndef _di_level_0_parameter_checking_
if (!pointer) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
// prevent double-frees.
if (!*pointer || !size || !length) return F_none;
+ #ifdef _f_memory_FORCE_secure_memory_
+ if (length > 0) {
+ memset(*pointer, 0, size * length);
+ }
+ #endif // _f_memory_FORCE_secure_memory_
+
free(*pointer);
// it has been deallocated, so reset the pointer.
return F_none;
}
-#endif // !(defined(_di_f_memory_delete_) || defined(_f_memory_FORCE_secure_memory_))
+#endif // _di_f_memory_delete_
-#if !(defined(_di_f_memory_destroy_) || defined(_f_memory_FORCE_fast_memory_))
- f_return_status f_memory_destroy(void **pointer, const size_t size, const size_t length) {
+#ifndef _di_f_memory_destroy_
+ f_status_t f_memory_destroy(void **pointer, const size_t size, const size_t length) {
#ifndef _di_level_0_parameter_checking_
if (length < 0) return F_status_set_error(F_parameter);
if (size <= 0) return F_status_set_error(F_parameter);
// prevent double-frees.
if (!*pointer || !length) return F_none;
- if (length > 0) {
- memset(*pointer, 0, size * length);
- }
+ #ifndef _f_memory_FORCE_fast_memory_
+ if (length > 0) {
+ memset(*pointer, 0, size * length);
+ }
+ #endif // _f_memory_FORCE_fast_memory_
free(*pointer);
return F_none;
}
-#endif // !(defined(_di_f_memory_destroy_) || defined(_f_memory_FORCE_fast_memory_))
+#endif // _di_f_memory_destroy_
-#if !(defined(_di_f_memory_resize_) || defined(_f_memory_FORCE_secure_memory_))
- f_return_status f_memory_resize(void **pointer, const size_t size, const size_t old_length, const size_t new_length) {
+#ifndef _di_f_memory_new_
+ f_status_t f_memory_new(void **pointer, const size_t size, const size_t length) {
#ifndef _di_level_0_parameter_checking_
if (size <= 0) return F_status_set_error(F_parameter);
- if (old_length < 0) return F_status_set_error(F_parameter);
- if (new_length < 0) return F_status_set_error(F_parameter);
+ if (length <= 0) return F_status_set_error(F_parameter);
if (!pointer) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- // don't be wasteful.
- if (old_length == new_length) return F_none;
-
- if (*pointer) {
- void *new_pointer = 0;
-
- // allocate new space
- if (new_length > 0) {
- new_pointer = realloc(*pointer, size * new_length);
- }
- else {
- free(*pointer);
-
- // it has been deallocated, so reset the pointer
- *pointer = 0;
-
- return F_none;
- }
+ // prevent double-allocations.
+ if (*pointer || length == 0) return F_none;
- if (new_pointer) {
- if (new_pointer != *pointer) {
- if (new_length > old_length) {
- // uint8_t * is of a data size size of 1, casting it to uint8_t should result in a single-length increment.
- // this is done to avoid problems with (void *) having arithmetic issues.
- memset(((uint8_t *) new_pointer) + (size * old_length), 0, size * (new_length - old_length));
- }
+ // Some people use malloc(size * length) to produce the same results.
+ // This has been observed to sometimes causes an increase in L1/L2 cache misses (0.02% L1 increase, 0.01% L2 increase).
+ *pointer = calloc(length, size);
- *pointer = new_pointer;
- }
+ if (*pointer) {
- return F_none;
- }
- }
- else if (new_length > 0) {
- *pointer = calloc(size, new_length);
+ // uint8_t * is of a data size size of 1, casting it to uint8_t should result in a single-length increment.
+ // this is done to avoid problems with (void *) having arithmetic issues.
+ memset(((uint8_t *) *pointer), 0, size * length);
- if (*pointer) {
- return F_none;
- }
- }
- else {
return F_none;
}
- return F_status_set_error(F_memory_reallocation);
+ return F_status_set_error(F_memory_allocation);
}
-#endif // !(defined(_di_f_memory_resize_) || defined(_f_memory_FORCE_secure_memory_))
+#endif // _di_f_memory_new_
-#if !(defined(_di_f_memory_adjust_) || defined(_f_memory_FORCE_fast_memory_))
- f_return_status f_memory_adjust(void **pointer, const size_t size, const size_t old_length, const size_t new_length) {
+#ifndef _di_f_memory_resize_
+ f_status_t f_memory_resize(void **pointer, const size_t size, const size_t old_length, const size_t new_length) {
#ifndef _di_level_0_parameter_checking_
if (size <= 0) return F_status_set_error(F_parameter);
if (old_length < 0) return F_status_set_error(F_parameter);
if (!pointer) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
- // don't be wasteful
- if (old_length == new_length) return F_none;
-
- if (*pointer) {
- void *new_pointer = 0;
-
- if (old_length > 0) {
- if (new_length < old_length) {
- // uint8_t * is of a data size size of 1, casting it to uint8_t should result in a single-length increment.
- // this is done to avoid problems with (void *) having arithmetic issues.
- memset(((uint8_t *) *pointer) + new_length, 0, size * (old_length - new_length));
- }
- }
-
- // allocate new space.
- if (new_length > 0) {
- new_pointer = realloc(*pointer, size * new_length);
- }
- else {
- free(*pointer);
-
- // it has been deallocated, so reset the pointer
- *pointer = 0;
-
- return F_none;
- }
-
- if (new_pointer) {
- if (new_pointer != *pointer) {
- if (new_length > old_length) {
- // uint8_t * is of a data size size of 1, casting it to bool should result in a single-length increment.
- // this is done to avoid problems with (void *) having arithmetic issues.
- memset(((uint8_t *) new_pointer) + (size * old_length), 0, size * (new_length - old_length));
- }
-
- *pointer = new_pointer;
- }
-
- return F_none;
- }
- }
- else if (new_length > 0) {
- *pointer = calloc(size, new_length);
-
- if (*pointer) {
- return F_none;
- }
- }
- else {
- return F_none;
- }
-
- return F_status_set_error(F_memory_reallocation);
+ #ifdef _f_memory_FORCE_secure_memory_
+ return private_f_memory_adjust(old_length, new_length, size, pointer);
+ #else // _f_memory_FORCE_secure_memory_
+ return private_f_memory_resize(old_length, new_length, size, pointer);
+ #endif // _f_memory_FORCE_secure_memory_
}
-#endif // !(defined(_di_f_memory_adjust_) || defined(_f_memory_FORCE_fast_memory_))
+#endif // _di_f_memory_resize_
#ifdef __cplusplus
} // extern "C"
// fll-0 includes
#include <level_0/type.h>
+#include <level_0/type_array.h>
#include <level_0/status.h>
// fll-0 memory includes
+#include <level_0/memory-common.h>
#include <level_0/memory_structure.h>
#ifdef __cplusplus
#endif
/**
- * Provide defines to alter compile time uses of certain memory functions.
- *
- * These are not intended as macros but are instead intended as a tool to automatically replace one function call with another (via the macro).
- *
- * If _f_memory_FORCE_secure_memory_ is defined, then memory operations are all set to be removed address spaces to 0 before freeing or resizing.
- * If _f_memory_FORCE_fast_memory_ is defined, then memory operations are all set to not set to be removed address spaces to 0 before freeing or resizing.
- */
-#ifdef _f_memory_FORCE_secure_memory_
- #define f_memory_delete(the_pointer, the_type, the_length) f_memory_destroy(the_pointer, the_type, the_length)
- #define f_memory_resize(the_pointer, the_type, the_old_length, the_new_length) f_memory_adjust(the_pointer, the_type, the_old_length, the_new_length)
-
- #ifdef _f_memory_FORCE_fast_memory_
- #error You cannot define both _f_memory_FORCE_fast_memory_ and _f_memory_FORCE_secure_memory_ at the same time
- #endif // _f_memory_FORCE_fast_memory_
-#endif // _f_memory_FORCE_secure_memory_
-
-#ifdef _f_memory_FORCE_fast_memory_
- #define f_memory_destroy(the_pointer, the_type, the_length) f_memory_delete(the_pointer, the_type, the_length)
- #define f_memory_adjust(the_pointer, the_type, the_old_length, the_new_length) f_memory_resize(the_pointer, the_type, the_old_length, the_new_length)
-#endif // _f_memory_FORCE_fast_memory_
-
-/**
- * Default allocation step.
- *
- * Everytime some array needs a single new element, reallocated by this amount.
- *
- * Normally, this should be small, but when a large number of singular allocations are made, the overhead can be reduced by not having to reallocate space as often.
- * The problem then is that the more space allocated beyond what is initially needed will waste precious memory.
- * Change this if you know your application can afford to reduce the allocation overhead at the cost of more memory.
+ * Securely resize dynamically allocated data.
*
- * Other projects may provide their own values.
- */
-#ifndef _di_f_memory_default_allocation_step_
- #define f_memory_default_allocation_step 4
-#endif // _di_f_memory_default_allocation_step_
-
-/**
- * Create some dynamically allocated array of some length.
+ * Will change all data to 0 prior to deallocation.
*
* @param pointer
- * A pointer that will be updated to the address of the newly allocated memory.
+ * A pointer to the address that will be resized.
* @param size
* The block size, in bytes (size * length = allocated size).
- * Must be greater than 0.
- * @param length
- * The total number of blocks to be allocated.
- * Must be greater than 0.
+ * @param old_length
+ * The total number of blocks representing the length to be resized from.
+ * @param new_length
+ * The total number of blocks representing the length to be resized to.
*
* @return
* F_none on success.
- * F_memory_allocation (with error bit) on allocation error.
+ * F_memory_reallocation (with error bit) on reallocation error.
* F_parameter (with error bit) if a parameter is invalid.
*
* @see calloc()
* @see memset()
+ * @see realloc()
*/
-#ifndef _di_f_memory_new_
- extern f_return_status f_memory_new(void **pointer, const size_t size, const size_t length);
-#endif // _di_f_memory_new_
+#ifndef _di_f_memory_adjust_
+ extern f_status_t f_memory_adjust(void **pointer, const size_t size, const size_t old_length, const size_t new_length);
+#endif // _di_f_memory_adjust_
/**
* Create some dynamically allocated array of some length, guaranteeing aligned memory.
* @see memset()
*/
#ifndef _di_f_memory_new_aligned_
- extern f_return_status f_memory_new_aligned(void **pointer, const size_t alignment, const size_t length);
+ extern f_status_t f_memory_new_aligned(void **pointer, const size_t alignment, const size_t length);
#endif // _di_f_memory_new_aligned_
/**
*
* @see free()
*/
-#if !(defined(_di_f_memory_delete_) || defined(_f_memory_FORCE_secure_memory_))
- extern f_return_status f_memory_delete(void **pointer, const size_t size, const size_t length);
-#endif // !(defined(_di_f_memory_delete_) || defined(_f_memory_FORCE_secure_memory_))
+#ifndef _di_f_memory_delete_
+ extern f_status_t f_memory_delete(void **pointer, const size_t size, const size_t length);
+#endif // _di_f_memory_delete_
/**
* Securely deletes some dynamically allocated data.
* @see free()
* @see memset()
*/
-#if !(defined(_di_f_memory_destroy_) || defined(_f_memory_FORCE_fast_memory_))
- extern f_return_status f_memory_destroy(void **pointer, const size_t size, const size_t length);
-#endif // !(defined(_di_f_memory_destroy_) || defined(_f_memory_FORCE_fast_memory_))
+#ifndef _di_f_memory_destroy_
+ extern f_status_t f_memory_destroy(void **pointer, const size_t size, const size_t length);
+#endif // _di_f_memory_destroy_
/**
- * Resize dynamically allocated data.
- *
- * Will not change any of the data prior to deallocation.
+ * Create some dynamically allocated array of some length.
*
* @param pointer
- * A pointer to the address that will be resized.
+ * A pointer that will be updated to the address of the newly allocated memory.
* @param size
* The block size, in bytes (size * length = allocated size).
- * @param old_length
- * The total number of blocks representing the length to be resized from.
- * @param new_length
- * The total number of blocks representing the length to be resized to.
+ * Must be greater than 0.
+ * @param length
+ * The total number of blocks to be allocated.
+ * Must be greater than 0.
*
* @return
* F_none on success.
- * F_memory_reallocation (with error bit) on reallocation error.
+ * F_memory_allocation (with error bit) on allocation error.
* F_parameter (with error bit) if a parameter is invalid.
*
* @see calloc()
* @see memset()
- * @see realloc()
*/
-#if !(defined(_di_f_memory_resize_) || defined(_f_memory_FORCE_secure_memory_))
- extern f_return_status f_memory_resize(void **pointer, const size_t size, const size_t old_length, const size_t new_length);
-#endif // !(defined(_di_f_memory_resize_) || defined(_f_memory_FORCE_secure_memory_))
+#ifndef _di_f_memory_new_
+ extern f_status_t f_memory_new(void **pointer, const size_t size, const size_t length);
+#endif // _di_f_memory_new_
/**
- * Securely resize dynamically allocated data.
+ * Resize dynamically allocated data.
*
- * Will change all data to 0 prior to deallocation.
+ * Will not change any of the data prior to deallocation.
*
* @param pointer
* A pointer to the address that will be resized.
* @see memset()
* @see realloc()
*/
-#if !(defined(_di_f_memory_adjust_) || defined(_f_memory_FORCE_fast_memory_))
- extern f_return_status f_memory_adjust(void **pointer, const size_t size, const size_t old_length, const size_t new_length);
-#endif // _di_f_memory_adjust_
+#ifndef _di_f_memory_resize_
+ extern f_status_t f_memory_resize(void **pointer, const size_t size, const size_t old_length, const size_t new_length);
+#endif // _di_f_memory_resize_
#ifdef __cplusplus
} // extern "C"
--- /dev/null
+#include "memory.h"
+#include "private-memory.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef _di_f_memory_structure_adjust_
+ f_status_t f_memory_structure_adjust(const size_t length_new, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ return private_f_memory_structure_adjust(length_new, type_size, structure, used, size);
+ }
+#endif // _di_f_memory_structure_adjust_
+
+#ifndef _di_f_memory_structure_decimate_
+ f_status_t f_memory_structure_decimate(const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ if (*size) {
+ return private_f_memory_structure_adjust(*size - 1, type_size, structure, used, size);
+ }
+
+ return F_data_not;
+ }
+#endif // _di_f_memory_structure_decimate_
+
+#ifndef _di_f_memory_structure_decimate_by_
+ f_status_t f_memory_structure_decimate_by(const f_array_length_t amount, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ if (amount) {
+ return private_f_memory_structure_adjust(amount <= *size ? *size - amount : 0, type_size, structure, used, size);
+ }
+
+ return F_data_not;
+ }
+#endif // _di_f_memory_structure_decimate_by_
+
+#ifndef _di_f_memory_structure_decrease_
+ f_status_t f_memory_structure_decrease(const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ if (*size) {
+ return private_f_memory_structure_resize(*size - 1, type_size, structure, used, size);
+ }
+
+ return F_data_not;
+ }
+#endif // _di_f_memory_structure_decrease_
+
+#ifndef _di_f_memory_structure_decrease_by_
+ f_status_t f_memory_structure_decrease_by(const f_array_length_t amount, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ if (amount) {
+ return private_f_memory_structure_resize(amount <= *size ? *size - amount : 0, type_size, structure, used, size);
+ }
+
+ return F_data_not;
+ }
+#endif // _di_f_memory_structure_decrease_by_
+
+#ifndef _di_f_memory_structure_delete_
+ f_status_t f_memory_structure_delete(const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ return private_f_memory_structure_resize(0, type_size, structure, used, size);
+ }
+#endif // _di_f_memory_structure_delete_
+
+#ifndef _di_f_memory_structure_destroy_
+ f_status_t f_memory_structure_destroy(const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ return private_f_memory_structure_adjust(0, type_size, structure, used, size);
+ }
+#endif // _di_f_memory_structure_destroy_
+
+#ifndef _di_f_memory_structure_increase_
+ f_status_t f_memory_structure_increase(const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ if (*used + 1 > *size) {
+ f_array_length_t length_new = *used + f_memory_default_allocation_step;
+
+ if (length_new > f_array_length_t_size) {
+ if (*used + 1 > f_array_length_t_size) {
+ return F_status_set_error(F_array_too_large);
+ }
+
+ length_new = f_array_length_t_size;
+ }
+
+ return private_f_memory_structure_resize(length_new, type_size, structure, used, size);
+ }
+
+ return F_none;
+ }
+#endif // _di_f_memory_structure_increase_
+
+#ifndef _di_f_memory_structure_increase_by_
+ f_status_t f_memory_structure_increase_by(const f_array_length_t amount, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ if (!amount) {
+ return F_data_not;
+ }
+
+ if (*used + amount > *size) {
+ if (*used + amount > f_array_length_t_size) {
+ return F_status_set_error(F_array_too_large);
+ }
+
+ return private_f_memory_structure_resize(*used + amount, type_size, structure, used, size);
+ }
+
+ return F_none;
+ }
+#endif // _di_f_memory_structure_increase_by_
+
+#ifndef _di_f_memory_structure_new_
+ f_status_t f_memory_structure_new(const size_t length_new, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!length_new) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ *structure = 0;
+ *size = 0;
+ *used = 0;
+
+ return private_f_memory_structure_resize(length_new, type_size, structure, used, size);
+ }
+#endif // _di_f_memory_structure_new_
+
+#ifndef _di_f_memory_structure_resize_
+ f_status_t f_memory_structure_resize(const size_t length_new, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+ #ifndef _di_level_0_parameter_checking_
+ if (!type_size) return F_status_set_error(F_parameter);
+ if (!structure) return F_status_set_error(F_parameter);
+ if (!used) return F_status_set_error(F_parameter);
+ if (!size) return F_status_set_error(F_parameter);
+ #endif // _di_level_0_parameter_checking_
+
+ return private_f_memory_structure_resize(length_new, type_size, structure, used, size);
+ }
+#endif // _di_f_memory_structure_resize_
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
#endif
/**
- * Reset a generic memory stucture to 0 (clear all values).
+ * Resize the structure.
*
- * This does not deallocate memory, be certain that memory is not allocated before calling this to avoid potential memory leaks.
+ * Memory being deleted will be wiped.
*
- * structure: the structure to operate on.
- */
-#ifndef _di_f_macro_memory_structure_clear_
- #define f_macro_memory_structure_t_clear(structure) \
- structure.array = 0; \
- structure.size = 0; \
- structure.used = 0;
-#endif // _di_f_macro_memory_structure_clear_
-
-/**
- * Create a new generic memory structure.
+ * @param length_new
+ * The new size of the structure array.
+ * Setting a length of 0 will result in the deletion (freeing) of the structure.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * Must be greater than 0.
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
*
- * This does not deallocate memory, be certain that memory is not allocated before calling this to avoid potential memory leaks.
+ * @return
+ * F_none on success.
*
- * status: the status to return.
- * structure: the structure to operate on.
- * type: the structure type.
- * length: the new size of the array.
- */
-#ifndef _di_f_macro_memory_structure_new_
- #define f_macro_memory_structure_t_new(status, structure, type, length) \
- f_macro_memory_structure_t_clear(structure) \
- status = f_memory_new((void **) & structure.array, sizeof(type), length); \
- if (status == F_none) { \
- structure.size = length; \
- structure.used = 0; \
- }
-#endif // _di_f_macro_memory_structure_new_
-
-/**
- * Delete a generic memory structure.
+ * F_memory_not (with error bit) on allocation error.
*
- * status: the status to return.
- * structure: the structure to operate on.
- * type: the structure type.
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structure_delete_
- #define f_macro_memory_structure_t_delete(status, structure, type) \
- status = f_memory_delete((void **) & structure.array, sizeof(type), structure.size); \
- if (status == F_none) { \
- structure.size = 0; \
- structure.used = 0; \
- }
-#endif // _di_f_macro_memory_structure_delete_
+#ifndef _di_f_memory_structure_adjust_
+ extern f_status_t f_memory_structure_adjust(const size_t length_new, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_adjust_
/**
- * Destroy a generic memory structure.
+ * Resize the structure to a smaller size, by 1.
*
- * status: the status to return.
- * structure: the structure to operate on.
- * type: the structure type.
- */
-#ifndef _di_f_macro_memory_structure_destroy_
- #define f_macro_memory_structure_t_destroy(status, structure, type) \
- status = f_memory_destroy((void **) & structure.array, sizeof(type), structure.size); \
- if (status == F_none) { \
- structure.size = 0; \
- structure.used = 0; \
- }
-#endif // _di_f_macro_memory_structure_destroy_
-
-/**
- * Delete a generic memory structure.
+ * This will not shrink the size to less than 0.
+ * Memory being deleted will be wiped.
*
- * structure: the structure to operate on.
- * type: the structure type.
- */
-#ifndef _di_f_macro_memory_structure_delete_simple_
- #define f_macro_memory_structure_t_delete_simple(structure, type) \
- f_memory_delete((void **) & structure.array, sizeof(type), structure.size); \
- structure.size = 0; \
- structure.used = 0;
-#endif // _di_f_macro_memory_structure_delete_simple_
-
-/**
- * Destroy a generic memory structure.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * Must be greater than 0.
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
*
- * structure: the structure to operate on.
- * type: the structure type.
- */
-#ifndef _di_f_macro_memory_structure_destroy_simple_
- #define f_macro_memory_structure_t_destroy_simple(structure, type) \
- f_memory_destroy((void **) & structure.array, sizeof(type), structure.size); \
- structure.size = 0; \
- structure.used = 0;
-#endif // _di_f_macro_memory_structure_destroy_simple_
-
-/**
- * Resize a generic memory structure.
+ * @return
+ * F_none on success.
+ * F_data_not on success, but size is already 0 so there is nothing to do.
*
- * status: the status to return.
- * structure: the structure to operate on.
- * type: the structure type.
- * new_length: the new size of the array.
- */
-#ifndef _di_f_macro_memory_structure_resize_
- #define f_macro_memory_structure_t_resize(status, structure, type, new_length) \
- status = f_memory_resize((void **) & structure.array, sizeof(type), structure.size, new_length); \
- if (status == F_none) { \
- structure.size = new_length; \
- if (structure.used > structure.size) structure.used = new_length; \
- }
-#endif // _di_f_macro_memory_structure_resize_
-
-/**
- * Adjust a generic memory structure.
+ * F_memory_reallocation (with error bit) on allocation error.
*
- * status: the status to return.
- * structure: the structure to operate on.
- * type: the structure type.
- * new_length: the new size of the array.
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structure_adjust_
- #define f_macro_memory_structure_t_adjust(status, structure, type, new_length) \
- status = f_memory_adjust((void **) & structure.array, sizeof(type), structure.size, new_length); \
- if (status == F_none) { \
- structure.size = new_length; \
- if (structure.used > structure.size) structure.used = new_length; \
- }
-#endif // _di_f_macro_memory_structure_adjust_
+#ifndef _di_f_memory_structure_decimate_
+ extern f_status_t f_memory_structure_decimate(const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_decimate_
/**
- * Reset a generic memory stuctures to 0 (clear all values).
+ * Resize the structure to a smaller size, by the given amount.
+ *
+ * This will not shrink the size to less than 0.
+ * Memory being deleted will be wiped.
+ *
+ * @param amount
+ * A positive number representing how much to decimate the size by.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * Must be greater than 0.
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
*
- * This does not deallocate memory, be certain that memory is not allocated before calling this to avoid potential memory leaks.
+ * @return
+ * F_none on success.
+ * F_data_not on success, but amount is 0 so there is nothing to do.
*
- * structures: the structures to operate on.
+ * F_memory_reallocation (with error bit) on allocation error.
+ *
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structures_clear_
- #define f_macro_memory_structures_t_clear(structures) \
- structures.array = 0; \
- structures.size = 0; \
- structures.used = 0;
-#endif // _di_f_macro_memory_structures_clear_
+#ifndef _di_f_memory_structure_decimate_by_
+ extern f_status_t f_memory_structure_decimate_by(const f_array_length_t amount, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_decimate_by_
/**
- * Create a new generic memory structures.
+ * Resize the structure to a smaller size, by 1.
+ *
+ * This will not shrink the size to less than 0.
+ * Memory being deleted will not be wiped.
+ *
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * Must be greater than 0.
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
*
- * This does not deallocate memory, be certain that memory is not allocated before calling this to avoid potential memory leaks.
+ * @return
+ * F_none on success.
+ * F_data_not on success, but size is already 0 so there is nothing to do.
*
- * status: the status to return.
- * structures: the structures to operate on.
- * type_stuctures: the structures type.
- * new_length: the new size of the array.
+ * F_memory_not (with error bit) on allocation error.
+ *
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structures_new_
- #define f_macro_memory_structures_t_new(status, structures, type_structures, new_length) \
- f_macro_memory_structures_t_clear(structures) \
- status = f_memory_new((void **) & structures.array, sizeof(type_structures), new_length); \
- if (status == F_none) { \
- structures.size = new_length; \
- structures.used = 0; \
- }
-#endif // _di_f_macro_memory_structures_new_
+#ifndef _di_f_memory_structure_decrease_
+ extern f_status_t f_memory_structure_decrease(const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_decrease_
/**
- * Delete a generic memory structures.
+ * Resize the structure to a smaller size, by the given amount.
+ *
+ * This will not shrink the size to less than 0.
+ * Memory being deleted will not be wiped.
+ *
+ * @param amount
+ * A positive number representing how much to decrease by.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * Must be greater than 0.
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
*
- * status: the status to return.
- * structures: the structures to operate on.
- * type_stucture: the structure type.
- * type_stuctures: the structures type.
+ * @return
+ * F_none on success.
+ * F_data_not on success, but amount is 0 so there is nothing to do.
+ *
+ * F_memory_not (with error bit) on allocation error.
+ *
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structures_delete_
- #define f_macro_memory_structures_t_delete(status, structures, type_structure, type_structures) \
- status = F_none; \
- structures.used = structures.size; \
- while (structures.used) { \
- structures.used--; \
- f_macro_memory_structure_t_delete(status, structures.array[structures.used], type_structure); \
- if (status != F_none) break; \
- } \
- if (status == F_none) status = f_memory_delete((void **) & structures.array, sizeof(type_structures), structures.size); \
- if (status == F_none) structures.size = 0;
-#endif // _di_f_macro_memory_structures_delete_
+#ifndef _di_f_memory_structure_decrease_by_
+ extern f_status_t f_memory_structure_decrease_by(const f_array_length_t amount, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_decrease_by_
/**
- * Destroy a generic memory structures.
+ * Delete the structure.
+ *
+ * Memory being deleted will not be wiped.
+ *
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * Must be greater than 0.
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
*
- * status: the status to return.
- * structures: the structures to operate on.
- * type_stucture: the structure type.
- * type_stuctures: the structures type.
+ * @return
+ * F_none on success.
+ * F_data_not on success, but amount is 0 so there is nothing to do.
+ *
+ * F_memory_not (with error bit) on allocation error.
+ *
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structures_destroy_
- #define f_macro_memory_structures_t_destroy(status, structures, type_structure, type_structures) \
- status = F_none; \
- structures.used = structures.size; \
- while (structures.used) { \
- structures.used--; \
- f_macro_memory_structure_t_destroy(status, structures.array[structures.used], type_structure); \
- if (status != F_none) break; \
- } \
- if (status == F_none) status = f_memory_destroy((void **) & structures.array, sizeof(type_structures), structures.size); \
- if (status == F_none) structures.size = 0;
-#endif // _di_f_macro_memory_structures_destroy_
+#ifndef _di_f_memory_structure_delete_
+ extern f_status_t f_memory_structure_delete(const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_delete_
/**
- * Delete a generic memory structures.
+ * Destroy the structure.
+ *
+ * Memory being deleted will be wiped.
*
- * structures: the structures to operate on.
- * type_stucture: the structure type.
- * type_stuctures: the structures type.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * Must be greater than 0.
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
+ *
+ * @return
+ * F_none on success.
+ * F_data_not on success, but amount is 0 so there is nothing to do.
+ *
+ * F_memory_not (with error bit) on allocation error.
+ *
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structures_delete_simple_
- #define f_macro_memory_structures_t_delete_simple(structures, type_structure, type_structures) \
- structures.used = structures.size; \
- while (structures.used) { \
- structures.used--; \
- f_macro_memory_structure_t_delete_simple(structures.array[structures.used], type_structure); \
- } \
- f_memory_delete((void **) & structures.array, sizeof(type_structures), structures.size); \
- structures.size = 0;
-#endif // _di_f_macro_memory_structures_delete_simple_
+#ifndef _di_f_memory_structure_destroy_
+ extern f_status_t f_memory_structure_destroy(const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_destroy_
/**
- * Destroy a generic memory structures.
+ * Increase the size of the structure, but only if necessary.
+ *
+ * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
+ * If already set to the maximum buffer size, then the resize will fail.
+ *
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * Must be greater than 0.
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
+ *
+ * @return
+ * F_none on success.
*
- * structures: the structures to operate on.
- * type_stucture: the structure type.
- * type_stuctures: the structures type.
+ * F_memory_not (with error bit) on allocation error.
+ *
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structures_destroy_simple_
- #define f_macro_memory_structures_t_destroy_simple(structures, type_structure, type_structures) \
- structures.used = structures.size; \
- while (structures.used) { \
- structures.used--; \
- f_macro_memory_structure_t_destroy_simple(structures.array[structures.used], type_structure); \
- } \
- f_memory_destroy((void **) & structures.array, sizeof(type_structures), structures.size); \
- structures.size = 0;
-#endif // _di_f_macro_memory_structures_destroy_simple_
+#ifndef _di_f_memory_structure_increase_
+ extern f_status_t f_memory_structure_increase(const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_increase_
/**
- * Resize a generic memory structures.
- *
- * status: the status to return.
- * structures: the structures to operate on.
- * type_stucture: the structure type.
- * type_stuctures: the structures type.
- * new_length: the new size of the array.
- * length_variable: the data type of the length variable.
+ * Resize the structure to a larger size.
+ *
+ * This will resize making the array larger based on the given length.
+ * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
+ * If already set to the maximum buffer size, then the resize will fail.
+ *
+ * @param amount
+ * A positive number representing how much to increase the size by.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * Must be greater than 0.
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
+ *
+ * @return
+ * F_none on success.
+ * F_data_not on success, but amount is 0 so there is nothing to do.
+ *
+ * F_memory_not (with error bit) on allocation error.
+ *
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structures_resize_
- #define f_macro_memory_structures_t_resize(status, structures, type_structure, type_structures, new_length, length_variable) \
- status = F_none; \
- if (new_length < structures.size) { \
- for (length_variable _macro__i = structures.size - new_length; _macro__i < structures.size; _macro__i++) { \
- f_macro_memory_structure_t_delete(status, structures.array[_macro__i], type_structure); \
- if (status != F_none) break; \
- } \
- } \
- if (status == F_none) status = f_memory_resize((void **) & structures.array, sizeof(type_structures), structures.size, new_length); \
- if (status == F_none) { \
- structures.size = new_length; \
- if (structures.used > structures.size) structures.used = new_length; \
- }
-#endif // _di_f_macro_memory_structures_resize_
+#ifndef _di_f_memory_structure_increase_by_
+ extern f_status_t f_memory_structure_increase_by(const f_array_length_t amount, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_increase_by_
/**
- * Adjust a generic memory structures.
- *
- * status: the status to return.
- * structures: the structures to operate on.
- * type_stucture: the structure type.
- * type_stuctures: the structures type.
- * new_length: the new size of the array.
- * length_variable: the data type of the length variable.
+ * Initialize a new structure.
+ *
+ * The structure will be cleared before making changes.
+ * Be sure any existing data is deallocation as necessary.
+ *
+ * @param length_new
+ * The new size of the structure array.
+ * Must be greater than 0.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * Must be greater than 0.
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
+ *
+ * @return
+ * F_none on success.
+ *
+ * F_memory_not (with error bit) on allocation error.
+ *
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structures_adjust_
- #define f_macro_memory_structures_t_adjust(status, structures, type_structure, type_structures, new_length, length_variable) \
- status = F_none; \
- if (new_length < structures.size) { \
- for (length_variable _macro__i = structures.size - new_length; _macro__i < structures.size; _macro__i++) { \
- f_macro_memory_structure_t_destroy(status, structures.array[_macro__i], type_structure); \
- if (status != F_none) break; \
- } \
- } \
- if (status == F_none) status = f_memory_adjust((void **) & structures.array, sizeof(type_structures), structures.size, new_length); \
- if (status == F_none) { \
- structures.size = new_length; \
- if (structures.used > structures.size) structures.used = new_length; \
- }
-#endif // _di_f_macro_memory_structures_adjust_
+#ifndef _di_f_memory_structure_new_
+ extern f_status_t f_memory_structure_new(const size_t length_new, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_new_
/**
- * Provide a macro for calling other macros for incrementing a buffer.
+ * Resize the structure.
+ *
+ * Memory being deleted will not be wiped.
+ *
+ * @param length_new
+ * The new size of the structure array.
+ * Setting a length of 0 will result in the deletion (freeing) of the structure.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
*
- * If the used + step is greater than size, then increase by step_default.
- * If step_default exceeds f_array_length_t_size, then attempt to increment by step.
- * If step exceeds f_array_length_t_size, set status to error_too_large.
+ * @return
+ * F_none on success.
*
- * Be sure to check size for error after calling this.
+ * F_memory_not (with error bit) on allocation error.
*
- * status: the status to return.
- * structures: the structures to operate on.
- * step: the step to increase by, must be less than or equal to step_default.
- * step_default: the default step to increase by if memory allows.
- * macro_resize: the resize structure macro to call that excepts the exact arguments: (status, structure, new_length).
- * error_too_large: the error status to return when f_array_length_t_size would be exceeded.
+ * @see calloc()
+ * @see free()
+ * @see memset()
*/
-#ifndef _di_f_macro_memory_structure_macro_increment_
- #define f_macro_memory_structure_macro_increment(status, structure, step, step_default, macro_resize, error_too_large) \
- if (structure.used + step > structure.size) { \
- if (structure.used + step_default > f_array_length_t_size) { \
- if (structure.used + step > f_array_length_t_size) { \
- status = F_status_set_error(error_too_large); \
- } \
- else { \
- macro_resize(status, structure, structure.used + step); \
- } \
- } \
- else { \
- macro_resize(status, structure, structure.size + step_default); \
- } \
- }
-#endif // _di_f_macro_memory_structure_macro_increment_
+#ifndef _di_f_memory_structure_resize_
+ extern f_status_t f_memory_structure_resize(const size_t length_new, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size);
+#endif // _di_f_memory_structure_resize_
#ifdef __cplusplus
} // extern "C"
--- /dev/null
+#include "memory.h"
+#include "private-memory.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#if !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_) || !defined(_di_f_memory_structure_decimate_by_) || !defined(_di_f_memory_structure_destroy_)
+ f_status_t private_f_memory_adjust(const size_t length_old, const size_t length_new, const size_t type_size, void **pointer) {
+
+ if (length_old == length_new) {
+ return F_none;
+ }
+
+ if (*pointer) {
+ void *new_pointer = 0;
+
+ if (length_old > 0) {
+ if (length_new < length_old) {
+
+ // uint8_t * is of a data size size of 1, casting it to uint8_t should result in a single-length increment.
+ // this is done to avoid problems with (void *) having arithmetic issues.
+ memset(((uint8_t *) *pointer) + length_new, 0, type_size * (length_old - length_new));
+ }
+ }
+
+ if (length_new) {
+ new_pointer = realloc(*pointer, type_size * length_new);
+ }
+ else {
+ free(*pointer);
+
+ // assure that the pointer is always 0 after deallocation.
+ *pointer = 0;
+
+ return F_none;
+ }
+
+ if (new_pointer) {
+ if (new_pointer != *pointer) {
+ if (length_new > length_old) {
+
+ // uint8_t * is of a data size size of 1, casting it to bool should result in a single-length increment.
+ // this is done to avoid problems with (void *) having arithmetic issues.
+ memset(((uint8_t *) new_pointer) + (type_size * length_old), 0, type_size * (length_new - length_old));
+ }
+
+ *pointer = new_pointer;
+ }
+
+ return F_none;
+ }
+ }
+ else if (length_new > 0) {
+ *pointer = calloc(type_size, length_new);
+
+ if (*pointer) {
+ return F_none;
+ }
+ }
+ else {
+ return F_none;
+ }
+
+ return F_status_set_error(F_memory_not);
+ }
+#endif // !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_) || !defined(_di_f_memory_structure_decimate_by_) || !defined(_di_f_memory_structure_destroy_)
+
+#if !defined(_di_memory_structure_decrease_) || !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_delete_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_new_) || !defined(_di_f_memory_structure_resize_)
+ f_status_t private_f_memory_resize(const size_t length_old, const size_t length_new, const size_t type_size, void **pointer) {
+
+ if (length_old == length_new) {
+ return F_none;
+ }
+
+ if (*pointer) {
+ void *new_pointer = 0;
+
+ if (length_new) {
+ new_pointer = realloc(*pointer, type_size * length_new);
+ }
+ else {
+ free(*pointer);
+
+ // assure that the pointer is always 0 after deallocation.
+ *pointer = 0;
+
+ return F_none;
+ }
+
+ if (new_pointer) {
+ if (new_pointer != *pointer) {
+ if (length_new > length_old) {
+
+ // uint8_t * is of a data size size of 1, casting it to bool should result in a single-length increment.
+ // this is done to avoid problems with (void *) having arithmetic issues.
+ memset(((uint8_t *) new_pointer) + (type_size * length_old), 0, type_size * (length_new - length_old));
+ }
+
+ *pointer = new_pointer;
+ }
+
+ return F_none;
+ }
+ }
+ else if (length_new > 0) {
+ *pointer = calloc(type_size, length_new);
+
+ if (*pointer) {
+ return F_none;
+ }
+ }
+ else {
+ return F_none;
+ }
+
+ return F_status_set_error(F_memory_not);
+ }
+#endif // !defined(_di_memory_structure_decrease_) || !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_delete_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_new_) || !defined(_di_f_memory_structure_resize_)
+
+#if !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_) || !defined(_di_f_memory_structure_decimate_by_) || !defined(_di_f_memory_structure_destroy_)
+ f_status_t private_f_memory_structure_adjust(const size_t length_new, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+
+ const f_status_t status = private_f_memory_adjust(*size, length_new, type_size, structure);
+
+ if (status == F_none) {
+ *size = length_new;
+
+ if (*used > *size) {
+ *used = *size;
+ }
+ }
+
+ return status;
+ }
+#endif // !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_) || !defined(_di_f_memory_structure_decimate_by_) || !defined(_di_f_memory_structure_destroy_)
+
+#if !defined(_di_memory_structure_decrease_) || !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_delete_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_new_) || !defined(_di_f_memory_structure_resize_)
+ f_status_t private_f_memory_structure_resize(const size_t length_new, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) {
+
+ const f_status_t status = private_f_memory_resize(*size, length_new, type_size, structure);
+
+ if (status == F_none) {
+ *size = length_new;
+
+ if (*used > *size) {
+ *used = *size;
+ }
+ }
+
+ return status;
+ }
+#endif // !defined(_di_memory_structure_decrease_) || !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_delete_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_new_) || !defined(_di_f_memory_structure_resize_)
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
--- /dev/null
+/**
+ * FLL - Level 0
+ *
+ * Project: Memory
+ * API Version: 0.5
+ * Licenses: lgplv2.1
+ *
+ * These are provided for internal reduction in redundant code.
+ * These should not be exposed/used outside of this project.
+ */
+#ifndef _PRIVATE_F_memory_h
+#define _PRIVATE_F_memory_h
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Private implementation for adjusting.
+ *
+ * Intended to be shared to each of the different implementation variations.
+ *
+ * @param length_old
+ * The old size of the structure array.
+ * This is used to determine if and when to call memset().
+ * @param length_new
+ * The new size of the structure array.
+ * Setting a length of 0 will result in the deletion (freeing) of the structure.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * @param pointer
+ * The pointer to the memory to delete.
+ *
+ * @return
+ * F_none on success.
+ *
+ * F_memory_not (with error bit) on allocation error.
+ *
+ * @see calloc()
+ * @see free()
+ * @see memset()
+ *
+ * @see f_memory_structure_adjust()
+ * @see f_memory_structure_decimate()
+ * @see f_memory_structure_decimate_by()
+ * @see f_memory_structure_destroy()
+ */
+#if !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_) || !defined(_di_f_memory_structure_decimate_by_) || !defined(_di_f_memory_structure_destroy_)
+ extern f_status_t private_f_memory_adjust(const size_t length_old, const size_t length_new, const size_t type_size, void **pointer) f_gcc_attribute_visibility_internal;
+#endif // !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_) || !defined(_di_f_memory_structure_decimate_by_) || !defined(_di_f_memory_structure_destroy_)
+
+/**
+ * Private implementation for resizing.
+ *
+ * Intended to be shared to each of the different implementation variations.
+ *
+ * @param length_old
+ * The old size of the structure array.
+ * This is used to determine if and when to call memset().
+ * @param length_new
+ * The new size of the structure array.
+ * Setting a length of 0 will result in the deletion (freeing) of the structure.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * @param pointer
+ * The pointer to the memory to delete.
+ *
+ * @return
+ * F_none on success.
+ *
+ * F_memory_not (with error bit) on allocation error.
+ *
+ * @see calloc()
+ * @see free()
+ * @see memset()
+ *
+ * @see f_memory_structure_decrease()
+ * @see f_memory_structure_decrease_by()
+ * @see f_memory_structure_delete()
+ * @see f_memory_structure_increase()
+ * @see f_memory_structure_increase_by()
+ * @see f_memory_structure_new()
+ * @see f_memory_structure_resize()
+ *
+ * @see private_f_memory_structure_resize()
+ */
+#if !defined(_di_memory_structure_decrease_) || !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_delete_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_new_) || !defined(_di_f_memory_structure_resize_)
+ extern f_status_t private_f_memory_resize(const size_t length_old, const size_t length_new, const size_t type_size, void **pointer) f_gcc_attribute_visibility_internal;
+#endif // !defined(_di_memory_structure_decrease_) || !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_delete_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_new_) || !defined(_di_f_memory_structure_resize_)
+
+/**
+ * Private implementation for resizing a structure.
+ *
+ * Intended to be shared to each of the different implementation variations.
+ *
+ * @param length_new
+ * The new size of the structure array.
+ * Setting a length of 0 will result in the deletion (freeing) of the structure.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
+ *
+ * @return
+ * Return from: private_f_memory_adjust().
+ *
+ * Errors (with error bit) from: private_f_memory_adjust().
+ *
+ * @see f_memory_structure_adjust()
+ * @see f_memory_structure_decimate()
+ * @see f_memory_structure_decimate_by()
+ * @see f_memory_structure_destroy()
+ *
+ * @see private_f_memory_adjust()
+ */
+#if !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_) || !defined(_di_f_memory_structure_decimate_by_) || !defined(_di_f_memory_structure_destroy_)
+ f_status_t private_f_memory_structure_adjust(const size_t length_new, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) f_gcc_attribute_visibility_internal;
+#endif // !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_) || !defined(_di_f_memory_structure_decimate_by_) || !defined(_di_f_memory_structure_destroy_)
+
+/**
+ * Private implementation for resizing a structure.
+ *
+ * Intended to be shared to each of the different implementation variations.
+ *
+ * @param length_new
+ * The new size of the structure array.
+ * Setting a length of 0 will result in the deletion (freeing) of the structure.
+ * @param type_size
+ * The size of the structure type (such as: sizeof(structure_size)).
+ * @param structure
+ * The structure to delete.
+ * @param used
+ * The amount of data used by the structure.
+ * @param size
+ * The amount of data allocated to the structure.
+ *
+ * @return
+ * Return from: private_f_memory_resize().
+ *
+ * Errors (with error bit) from: private_f_memory_structure_resize().
+ *
+ * @see f_memory_structure_decrease()
+ * @see f_memory_structure_decrease_by()
+ * @see f_memory_structure_delete()
+ * @see f_memory_structure_increase()
+ * @see f_memory_structure_increase_by()
+ * @see f_memory_structure_new()
+ * @see f_memory_structure_resize()
+ *
+ * @see private_f_memory_resize()
+ */
+#if !defined(_di_memory_structure_decrease_) || !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_delete_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_new_) || !defined(_di_f_memory_structure_resize_)
+ f_status_t private_f_memory_structure_resize(const size_t length_new, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) f_gcc_attribute_visibility_internal;
+#endif // !defined(_di_memory_structure_decrease_) || !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_delete_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_new_) || !defined(_di_f_memory_structure_resize_)
+
+#ifdef __cplusplus
+} // extern "C"
+#endif
+
+#endif // _PRIVATE_F_memory_h
# fss-0000
-
+_f_memory_FORCE_secure_memory_ all to-be removed address spaces are set to 0 before freeing or resizing.
+_f_memory_FORCE_fast_memory_ all to-be removed address spaces remain unchanged before freeing or resizing.
build_language c
build_libraries -lc
build_libraries-individual
-build_sources_library memory.c
+build_sources_library memory.c memory_structure.c private-memory.c
build_sources_program
-build_sources_headers memory.h memory_structure.h
+build_sources_headers memory.h memory_structure.h memory-common.h
build_sources_script
build_sources_setting
build_script yes
#endif
#ifndef _di_f_path_change_
- f_return_status f_path_change(const f_string_t path) {
+ f_status_t f_path_change(const f_string_t path) {
if (chdir(path) < 0) {
if (errno == EACCES) return F_status_set_error(F_access_denied);
#endif // _di_f_path_change_
#ifndef _di_f_path_change_at_
- f_return_status f_path_change_at(const int at_id) {
+ f_status_t f_path_change_at(const int at_id) {
#ifndef _di_level_0_parameter_checking_
if (at_id <= 0) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_path_change_at_
#ifndef _di_f_path_current_
- f_return_status f_path_current(const bool real, f_string_dynamic_t *path) {
+ f_status_t f_path_current(const bool real, f_string_dynamic_t *path) {
#ifndef _di_level_0_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_path_current_
#ifndef _di_f_path_is_
- f_return_status f_path_is(const f_string_t path, const f_string_length_t length) {
+ f_status_t f_path_is(const f_string_t path, const f_string_length_t length) {
if (!path || !length) {
return F_false;
}
#endif // _di_f_path_is_
#ifndef _di_f_path_real_
- f_return_status f_path_real(const f_string_t path, f_string_dynamic_t *real) {
+ f_status_t f_path_real(const f_string_t path, f_string_dynamic_t *real) {
#ifndef _di_level_0_parameter_checking_
if (!real) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
* @see chdir()
*/
#ifndef _di_f_path_change_
- extern f_return_status f_path_change(const f_string_t path);
+ extern f_status_t f_path_change(const f_string_t path);
#endif // _di_f_path_change_
/**
* @see fchdir()
*/
#ifndef _di_f_path_change_at_
- extern f_return_status f_path_change_at(const int at_id);
+ extern f_status_t f_path_change_at(const int at_id);
#endif // _di_f_path_change_at_
/**
* @see getcwd()
*/
#ifndef _di_f_path_current_
- extern f_return_status f_path_current(const bool real, f_string_dynamic_t *path);
+ extern f_status_t f_path_current(const bool real, f_string_dynamic_t *path);
#endif // _di_f_path_current_
/**
* F_false if this string is not a path string.
*/
#ifndef _di_f_path_is_
- extern f_return_status f_path_is(const f_string_t path, const f_string_length_t length);
+ extern f_status_t f_path_is(const f_string_t path, const f_string_length_t length);
#endif // _di_f_path_is_
/**
* @see realpath()
*/
#ifndef _di_f_path_real_
- extern f_return_status f_path_real(const f_string_t path, f_string_dynamic_t *real);
+ extern f_status_t f_path_real(const f_string_t path, f_string_dynamic_t *real);
#endif // _di_f_path_real_
#ifdef __cplusplus
#endif
#if !defined(_di_f_path_current_) || !defined(_di_f_path_real_)
- f_return_status private_f_path_real(const f_string_t path, f_string_dynamic_t *real) {
+ f_status_t private_f_path_real(const f_string_t path, f_string_dynamic_t *real) {
char buffer[f_path_max];
if (!realpath(path, buffer)) {
* @see f_path_real()
*/
#if !defined(_di_f_path_current_) || !defined(_di_f_path_real_)
- extern f_return_status private_f_path_real(const f_string_t path, f_string_dynamic_t *real) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_path_real(const f_string_t path, f_string_dynamic_t *real) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_path_current_) || !defined(_di_f_path_real_)
#ifdef __cplusplus
#endif
#ifndef _di_f_pipe_input_exists_
- f_return_status f_pipe_input_exists() {
+ f_status_t f_pipe_input_exists() {
struct stat st_info;
if (fstat(f_type_descriptor_input, &st_info) != 0) {
#endif // _di_f_pipe_input_exists_
#ifndef _di_f_pipe_warning_exists_
- f_return_status f_pipe_warning_exists() {
+ f_status_t f_pipe_warning_exists() {
struct stat st_info;
if (fstat(f_type_descriptor_warning, &st_info) != 0) {
#endif // _di_f_pipe_warning_exists_
#ifndef _di_f_pipe_error_exists_
- f_return_status f_pipe_error_exists() {
+ f_status_t f_pipe_error_exists() {
struct stat st_info;
if (fstat(f_type_descriptor_error, &st_info) != 0) {
#endif // _di_f_pipe_error_exists_
#ifndef _di_f_pipe_debug_exists_
- f_return_status f_pipe_debug_exists() {
+ f_status_t f_pipe_debug_exists() {
struct stat st_info;
if (fstat(f_type_descriptor_debug, &st_info) != 0) {
* @see fstat()
*/
#ifndef _di_f_pipe_input_exists_
- extern f_return_status f_pipe_input_exists();
+ extern f_status_t f_pipe_input_exists();
#endif // _di_f_pipe_input_exists_
/**
* @see fstat()
*/
#ifndef _di_f_pipe_warning_exists_
- extern f_return_status f_pipe_warning_exists();
+ extern f_status_t f_pipe_warning_exists();
#endif // _di_f_pipe_warning_exists_
/**
* @see fstat()
*/
#ifndef _di_f_pipe_error_exists_
- extern f_return_status f_pipe_error_exists();
+ extern f_status_t f_pipe_error_exists();
#endif // _di_f_pipe_error_exists_
/**
* @see fstat()
*/
#ifndef _di_f_pipe_debug_exists_
- extern f_return_status f_pipe_debug_exists();
+ extern f_status_t f_pipe_debug_exists();
#endif // _di_f_pipe_debug_exists_
#ifdef __cplusplus
#endif
#ifndef _di_f_print_
- f_return_status f_print(FILE *output, const f_string_t string, const f_string_length_t length) {
+ f_status_t f_print(FILE *output, const f_string_t string, const f_string_length_t length) {
#ifndef _di_level_0_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_
#ifndef _di_f_print_dynamic_
- f_return_status f_print_dynamic(FILE *output, const f_string_static_t buffer) {
+ f_status_t f_print_dynamic(FILE *output, const f_string_static_t buffer) {
#ifndef _di_level_0_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_dynamic_
#ifndef _di_f_print_dynamic_partial_
- f_return_status f_print_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range) {
+ f_status_t f_print_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range) {
#ifndef _di_level_0_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_dynamic_partial_
#ifndef _di_f_print_except_
- f_return_status f_print_except(FILE *output, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except) {
+ f_status_t f_print_except(FILE *output, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except) {
#ifndef _di_level_0_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_except_
#ifndef _di_f_print_except_dynamic_
- f_return_status f_print_except_dynamic(FILE *output, const f_string_static_t buffer, const f_string_lengths_t except) {
+ f_status_t f_print_except_dynamic(FILE *output, const f_string_static_t buffer, const f_string_lengths_t except) {
#ifndef _di_level_0_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_except_dynamic_
#ifndef _di_f_print_except_dynamic_partial_
- f_return_status f_print_except_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except) {
+ f_status_t f_print_except_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except) {
#ifndef _di_level_0_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_except_dynamic_partial_
#ifndef _di_f_print_to_
- f_return_status f_print_to(const int id, const f_string_t string, const f_string_length_t length) {
+ f_status_t f_print_to(const int id, const f_string_t string, const f_string_length_t length) {
#ifndef _di_level_0_parameter_checking_
if (id == -1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_to_
#ifndef _di_f_print_to_dynamic_
- f_return_status f_print_to_dynamic(const int id, const f_string_static_t buffer) {
+ f_status_t f_print_to_dynamic(const int id, const f_string_static_t buffer) {
#ifndef _di_level_0_parameter_checking_
if (id == -1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_to_dynamic_
#ifndef _di_f_print_to_dynamic_partial_
- f_return_status f_print_to_dynamic_partial(const int id, const f_string_static_t buffer, const f_string_range_t range) {
+ f_status_t f_print_to_dynamic_partial(const int id, const f_string_static_t buffer, const f_string_range_t range) {
#ifndef _di_level_0_parameter_checking_
if (id == -1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_to_dynamic_partial_
#ifndef _di_f_print_to_except_
- f_return_status f_print_to_except(const int id, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except) {
+ f_status_t f_print_to_except(const int id, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except) {
#ifndef _di_level_0_parameter_checking_
if (id == -1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_to_except_
#ifndef _di_f_print_to_except_dynamic_
- f_return_status f_print_to_except_dynamic(const int id, const f_string_static_t buffer, const f_string_lengths_t except) {
+ f_status_t f_print_to_except_dynamic(const int id, const f_string_static_t buffer, const f_string_lengths_t except) {
#ifndef _di_level_0_parameter_checking_
if (id == -1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_print_to_except_dynamic_
#ifndef _di_f_print_to_except_dynamic_partial_
- f_return_status f_print_to_except_dynamic_partial(const int id, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except) {
+ f_status_t f_print_to_except_dynamic_partial(const int id, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except) {
#ifndef _di_level_0_parameter_checking_
if (id == -1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
* @see fputc()
*/
#ifndef _di_f_print_
- extern f_return_status f_print(FILE *output, const f_string_t string, const f_string_length_t length);
+ extern f_status_t f_print(FILE *output, const f_string_t string, const f_string_length_t length);
#endif // _di_f_print_
/**
* @see fputc()
*/
#ifndef _di_f_print_dynamic_
- extern f_return_status f_print_dynamic(FILE *output, const f_string_static_t buffer);
+ extern f_status_t f_print_dynamic(FILE *output, const f_string_static_t buffer);
#endif // _di_f_print_dynamic_
/**
* @see fputc()
*/
#ifndef _di_f_print_dynamic_partial_
- extern f_return_status f_print_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range);
+ extern f_status_t f_print_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range);
#endif // _di_f_print_dynamic_partial_
/**
* @see fputc()
*/
#ifndef _di_f_print_except_
- extern f_return_status f_print_except(FILE *output, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except);
+ extern f_status_t f_print_except(FILE *output, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except);
#endif // _di_f_print_except_
/**
* @see fputc()
*/
#ifndef _di_f_print_except_dynamic_
- extern f_return_status f_print_except_dynamic(FILE *output, const f_string_static_t buffer, const f_string_lengths_t except);
+ extern f_status_t f_print_except_dynamic(FILE *output, const f_string_static_t buffer, const f_string_lengths_t except);
#endif // _di_f_print_except_dynamic_
/**
* @see fputc()
*/
#ifndef _di_f_print_dynamic_except_partial_
- extern f_return_status f_print_except_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except);
+ extern f_status_t f_print_except_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except);
#endif // _di_f_print_except_dynamic_partial_
* @see write()
*/
#ifndef _di_f_print_to_
- extern f_return_status f_print_to(const int id, const f_string_t string, const f_string_length_t length);
+ extern f_status_t f_print_to(const int id, const f_string_t string, const f_string_length_t length);
#endif // _di_f_print_to_
/**
* @see write()
*/
#ifndef _di_f_print_to_dynamic_
- extern f_return_status f_print_to_dynamic(const int id, const f_string_static_t buffer);
+ extern f_status_t f_print_to_dynamic(const int id, const f_string_static_t buffer);
#endif // _di_f_print_to_dynamic_
/**
* @see write()
*/
#ifndef _di_f_print_to_dynamic_partial_
- extern f_return_status f_print_to_dynamic_partial(const int id, const f_string_static_t buffer, const f_string_range_t range);
+ extern f_status_t f_print_to_dynamic_partial(const int id, const f_string_static_t buffer, const f_string_range_t range);
#endif // _di_f_print_to_dynamic_partial_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_
- extern f_return_status f_print_to_except(const int id, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except);
+ extern f_status_t f_print_to_except(const int id, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except);
#endif // _di_f_print_to_except_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_dynamic_
- extern f_return_status f_print_to_except_dynamic(const int id, const f_string_static_t buffer, const f_string_lengths_t except);
+ extern f_status_t f_print_to_except_dynamic(const int id, const f_string_static_t buffer, const f_string_lengths_t except);
#endif // _di_f_print_to_except_dynamic_
/**
* @see write()
*/
#ifndef _di_f_print_to_except_dynamic_partial_
- extern f_return_status f_print_to_except_dynamic_partial(const int id, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except);
+ extern f_status_t f_print_to_except_dynamic_partial(const int id, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except);
#endif // _di_f_print_to_except_dynamic_partial_
#ifdef __cplusplus
#endif
#if !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_)
- f_return_status private_f_print(FILE *output, const f_string_t string, const f_string_length_t length) {
+ f_status_t private_f_print(FILE *output, const f_string_t string, const f_string_length_t length) {
for (register f_string_length_t i = 0; i < length; ++i) {
if (string[i]) {
#endif // !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_)
#if !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_)
- f_return_status private_f_print_except(FILE *output, const f_string_t string, const f_string_length_t offset, const f_string_length_t stop, const f_string_lengths_t except) {
+ f_status_t private_f_print_except(FILE *output, const f_string_t string, const f_string_length_t offset, const f_string_length_t stop, const f_string_lengths_t except) {
f_string_length_t j = 0;
for (register f_string_length_t i = offset; i < stop; ++i) {
#endif // !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_)
#if !defined(_di_f_print_to_) || !defined(_di_f_print_dynamic_to_) || !defined(_di_f_print_dynamic_partial_to_)
- f_return_status private_f_print_to(const int id, const f_string_t string, const f_string_length_t length) {
+ f_status_t private_f_print_to(const int id, const f_string_t string, const f_string_length_t length) {
register f_string_length_t i = 0;
f_string_length_t start = 0;
#endif // !defined(_di_f_print_to_) || !defined(_di_f_print_dynamic_to_) || !defined(_di_f_print_dynamic_partial_to_)
#if !defined(_di_f_print_to_except_) || !defined(_di_f_print_to_except_dynamic_) || !defined(_di_f_print_to_except_dynamic_partial_)
- f_return_status private_f_print_to_except(const int id, const f_string_t string, const f_string_length_t offset, const f_string_length_t stop, const f_string_lengths_t except) {
+ f_status_t private_f_print_to_except(const int id, const f_string_t string, const f_string_length_t offset, const f_string_length_t stop, const f_string_lengths_t except) {
register f_string_length_t i = offset;
f_string_length_t j = 0;
* @see f_print_dynamic_partial()
*/
#if !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_)
- extern f_return_status private_f_print(FILE *output, const f_string_t string, const f_string_length_t length) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_print(FILE *output, const f_string_t string, const f_string_length_t length) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_)
/**
* @see f_print_except_dynamic_partial()
*/
#if !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_)
- extern f_return_status private_f_print_except(FILE *output, const f_string_t string, const f_string_length_t offset, const f_string_length_t stop, const f_string_lengths_t except) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_print_except(FILE *output, const f_string_t string, const f_string_length_t offset, const f_string_length_t stop, const f_string_lengths_t except) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_)
/**
* @see f_print_to_dynamic_partial()
*/
#if !defined(_di_f_print_to_) || !defined(_di_f_print_to_dynamic_) || !defined(_di_f_print_to_dynamic_partial_)
- extern f_return_status private_f_print_to(const int id, const f_string_t string, const f_string_length_t length) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_print_to(const int id, const f_string_t string, const f_string_length_t length) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_print_to_) || !defined(_di_f_print_to_dynamic_) || !defined(_di_f_print_to_dynamic_partial_)
/**
* @see f_print_to_except_dynamic_partial()
*/
#if !defined(_di_f_print_to_except_) || !defined(_di_f_print_to_except_dynamic_) || !defined(_di_f_print_to_except_dynamic_partial_)
- extern f_return_status private_f_print_to_except(const int id, const f_string_t string, const f_string_length_t offset, const f_string_length_t stop, const f_string_lengths_t except) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_print_to_except(const int id, const f_string_t string, const f_string_length_t offset, const f_string_length_t stop, const f_string_lengths_t except) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_print_to_except_) || !defined(_di_f_print_to_except_dynamic_) || !defined(_di_f_print_to_except_dynamic_partial_)
#ifdef __cplusplus
#endif
#if !defined(_di_f_serialize_un_simple_find_) || !defined(_di_f_serialize_un_simple_get_)
- f_return_status private_f_serialize_un_simple_find(const f_string_static_t serialize, const f_array_length_t index, f_string_range_t *location) {
+ f_status_t private_f_serialize_un_simple_find(const f_string_static_t serialize, const f_array_length_t index, f_string_range_t *location) {
f_status_t status = F_none;
f_array_length_t i = 0;
* F_parameter (with error bit) if a parameter is invalid.
*/
#if !defined(_di_f_serialize_un_simple_find_) || !defined(_di_f_serialize_un_simple_get_)
- extern f_return_status private_f_serialize_un_simple_find(const f_string_static_t serialize, const f_array_length_t index, f_string_range_t *location) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_serialize_un_simple_find(const f_string_static_t serialize, const f_array_length_t index, f_string_range_t *location) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_serialize_un_simple_find_) || !defined(_di_f_serialize_un_simple_get_)
#ifdef __cplusplus
#endif
#ifndef _di_f_serialize_simple_
- f_return_status f_serialize_simple(const f_string_static_t value, f_string_dynamic_t *serialize) {
+ f_status_t f_serialize_simple(const f_string_static_t value, f_string_dynamic_t *serialize) {
#ifndef _di_level_0_parameter_checking_
if (!serialize) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_serialize_simple_
#ifndef _di_f_serialize_un_simple_
- f_return_status f_serialize_un_simple(const f_string_static_t serialize, f_string_dynamics_t *strings) {
+ f_status_t f_serialize_un_simple(const f_string_static_t serialize, f_string_dynamics_t *strings) {
#ifndef _di_level_0_parameter_checking_
if (!serialize.used) return F_status_set_error(F_parameter);
if (!strings) return F_status_set_error(F_parameter);
#endif // _di_f_serialize_un_simple_
#ifndef _di_f_serialize_un_simple_map_
- f_return_status f_serialize_un_simple_map(const f_string_static_t serialize, f_string_ranges_t *locations) {
+ f_status_t f_serialize_un_simple_map(const f_string_static_t serialize, f_string_ranges_t *locations) {
#ifndef _di_level_0_parameter_checking_
if (!serialize.used) return F_status_set_error(F_parameter);
if (!locations) return F_status_set_error(F_parameter);
#endif // _di_f_serialize_un_simple_map_
#ifndef _di_f_serialize_un_simple_find_
- f_return_status f_serialize_un_simple_find(const f_string_static_t serialize, const f_array_length_t index, f_string_range_t *range) {
+ f_status_t f_serialize_un_simple_find(const f_string_static_t serialize, const f_array_length_t index, f_string_range_t *range) {
#ifndef _di_level_0_parameter_checking_
if (!serialize.used) return F_status_set_error(F_parameter);
if (!range) return F_status_set_error(F_parameter);
#endif // _di_f_serialize_un_simple_find_
#ifndef _di_f_serialize_un_simple_get_
- f_return_status f_serialize_un_simple_get(const f_string_static_t serialize, const f_array_length_t index, f_string_dynamic_t *dynamic) {
+ f_status_t f_serialize_un_simple_get(const f_string_static_t serialize, const f_array_length_t index, f_string_dynamic_t *dynamic) {
#ifndef _di_level_0_parameter_checking_
if (!serialize.used) return F_status_set_error(F_parameter);
if (!dynamic) return F_status_set_error(F_parameter);
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_serialize_simple_
- extern f_return_status f_serialize_simple(const f_string_static_t value, f_string_dynamic_t *serialize);
+ extern f_status_t f_serialize_simple(const f_string_static_t value, f_string_dynamic_t *serialize);
#endif // _di_f_serialize_simple_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_serialize_un_simple_
- extern f_return_status f_serialize_un_simple(const f_string_static_t serialize, f_string_dynamics_t *strings);
+ extern f_status_t f_serialize_un_simple(const f_string_static_t serialize, f_string_dynamics_t *strings);
#endif // _di_f_serialize_un_simple_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_serialize_un_simple_map_
- extern f_return_status f_serialize_un_simple_map(const f_string_static_t serialize, f_string_ranges_t *locations);
+ extern f_status_t f_serialize_un_simple_map(const f_string_static_t serialize, f_string_ranges_t *locations);
#endif // _di_f_serialize_un_simple_map_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_serialize_un_simple_find_
- extern f_return_status f_serialize_un_simple_find(const f_string_static_t serialize, const f_array_length_t index, f_string_range_t *location);
+ extern f_status_t f_serialize_un_simple_find(const f_string_static_t serialize, const f_array_length_t index, f_string_range_t *location);
#endif // _di_f_serialize_un_simple_find_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_serialize_un_simple_get_
- extern f_return_status f_serialize_un_simple_get(const f_string_static_t serialize, const f_array_length_t index, f_string_dynamic_t *dynamic);
+ extern f_status_t f_serialize_un_simple_get(const f_string_static_t serialize, const f_array_length_t index, f_string_dynamic_t *dynamic);
#endif // _di_f_serialize_un_simple_get_
#ifdef __cplusplus
#endif
#ifndef _di_f_signal_close_
- f_return_status f_signal_close(f_signal_t *signal) {
+ f_status_t f_signal_close(f_signal_t *signal) {
#ifndef _di_level_0_parameter_checking_
if (!signal) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_signal_close_
#ifndef _di_f_signal_open_
- f_return_status f_signal_open(f_signal_t *signal) {
+ f_status_t f_signal_open(f_signal_t *signal) {
#ifndef _di_level_0_parameter_checking_
if (!signal) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_signal_open_
#ifndef _di_f_signal_read_
- f_return_status f_signal_read(const f_signal_t signal, struct signalfd_siginfo *information) {
+ f_status_t f_signal_read(const f_signal_t signal, struct signalfd_siginfo *information) {
if (!signal.id) {
return F_data_not;
#endif // _di_f_signal_read_
#ifndef _di_f_signal_set_add_
- f_return_status f_signal_set_add(const int signal, sigset_t *set) {
+ f_status_t f_signal_set_add(const int signal, sigset_t *set) {
#ifndef _di_level_0_parameter_checking_
if (!set) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_signal_set_add_
#ifndef _di_f_signal_set_delete_
- f_return_status f_signal_set_delete(const int signal, sigset_t *set) {
+ f_status_t f_signal_set_delete(const int signal, sigset_t *set) {
#ifndef _di_level_0_parameter_checking_
if (!set) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_signal_set_delete_
#ifndef _di_f_signal_set_empty_
- f_return_status f_signal_set_empty(sigset_t *set) {
+ f_status_t f_signal_set_empty(sigset_t *set) {
#ifndef _di_level_0_parameter_checking_
if (!set) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_signal_set_empty_
#ifndef _di_f_signal_set_fill_
- f_return_status f_signal_set_fill(sigset_t *set) {
+ f_status_t f_signal_set_fill(sigset_t *set) {
#ifndef _di_level_0_parameter_checking_
if (!set) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_signal_set_fill_
#ifndef _di_f_signal_mask_
- f_return_status f_signal_mask(const int how, const sigset_t *next, sigset_t *current) {
+ f_status_t f_signal_mask(const int how, const sigset_t *next, sigset_t *current) {
#ifndef _di_level_0_parameter_checking_
if (!next && !current) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_signal_mask_
#ifndef _di_f_signal_queue_
- f_return_status f_signal_queue(const pid_t id, const int signal, const union sigval value) {
+ f_status_t f_signal_queue(const pid_t id, const int signal, const union sigval value) {
if (sigqueue(id, signal, value) < 0) {
if (errno == EAGAIN) return F_status_set_error(F_resource_not);
#endif // _di_f_signal_queue_
#ifndef _di_f_signal_set_has_
- f_return_status f_signal_set_has(const int signal, const sigset_t *set) {
+ f_status_t f_signal_set_has(const int signal, const sigset_t *set) {
#ifndef _di_level_0_parameter_checking_
if (!set) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
* @see close()
*/
#ifndef _di_f_signal_close_
- extern f_return_status f_signal_close(f_signal_t *signal);
+ extern f_status_t f_signal_close(f_signal_t *signal);
#endif // _di_f_signal_close_
/**
* @see signalfd()
*/
#ifndef _di_f_signal_open_
- extern f_return_status f_signal_open(f_signal_t *signal);
+ extern f_status_t f_signal_open(f_signal_t *signal);
#endif // _di_f_signal_open_
/**
* @see read()
*/
#ifndef _di_f_signal_read_
- extern f_return_status f_signal_read(const f_signal_t signal, struct signalfd_siginfo *information);
+ extern f_status_t f_signal_read(const f_signal_t signal, struct signalfd_siginfo *information);
#endif // _di_f_signal_read_
/**
* @see sigaddset()
*/
#ifndef _di_f_signal_set_add_
- extern f_return_status f_signal_set_add(const int signal, sigset_t *set);
+ extern f_status_t f_signal_set_add(const int signal, sigset_t *set);
#endif // _di_f_signal_set_add_
/**
* @see sigdelset()
*/
#ifndef _di_f_signal_set_delete_
- extern f_return_status f_signal_set_delete(const int signal, sigset_t *set);
+ extern f_status_t f_signal_set_delete(const int signal, sigset_t *set);
#endif // _di_f_signal_set_delete_
/**
* @see sigemptyset()
*/
#ifndef _di_f_signal_set_empty_
- extern f_return_status f_signal_set_empty(sigset_t *set);
+ extern f_status_t f_signal_set_empty(sigset_t *set);
#endif // _di_f_signal_set_empty_
/**
* @see sigfillset()
*/
#ifndef _di_f_signal_set_fill_
- extern f_return_status f_signal_set_fill(sigset_t *set);
+ extern f_status_t f_signal_set_fill(sigset_t *set);
#endif // _di_f_signal_set_fill_
/**
* @see sigprocmask()
*/
#ifndef _di_f_signal_mask_
- extern f_return_status f_signal_mask(const int how, const sigset_t *next, sigset_t *current);
+ extern f_status_t f_signal_mask(const int how, const sigset_t *next, sigset_t *current);
#endif // _di_f_signal_mask_
/**
* @see sigqueue()
*/
#ifndef _di_f_signal_queue_
- extern f_return_status f_signal_queue(const pid_t id, const int signal, const union sigval value);
+ extern f_status_t f_signal_queue(const pid_t id, const int signal, const union sigval value);
#endif // _di_f_signal_queue_
/**
* @see sigismember()
*/
#ifndef _di_f_signal_set_has_
- extern f_return_status f_signal_set_has(const int signal, const sigset_t *set);
+ extern f_status_t f_signal_set_has(const int signal, const sigset_t *set);
#endif // _di_f_signal_set_has_
#ifdef __cplusplus
#endif
#ifndef _di_f_socket_file_bind_
- f_return_status f_socket_file_bind(const f_string_t path, const int id, struct sockaddr_un *address) {
+ f_status_t f_socket_file_bind(const f_string_t path, const int id, struct sockaddr_un *address) {
memset(&address, 0, sizeof(struct sockaddr_un));
address->sun_family = AF_UNIX;
#endif // _di_f_socket_file_bind_
#ifndef _di_f_socket_listen_
- f_return_status f_socket_listen(const int id, const unsigned int max_backlog) {
+ f_status_t f_socket_listen(const int id, const unsigned int max_backlog) {
if (listen(id, max_backlog) < 0) {
if (errno == EADDRINUSE) return F_status_set_error(F_busy_address);
#endif // _di_f_socket_listen_
#ifndef _di_f_socket_close_client_
- f_return_status f_socket_close_client(const int id, const unsigned short action) {
+ f_status_t f_socket_close_client(const int id, const unsigned short action) {
int result = 0;
if (action == f_socket_close_fast) {
* @see bind()
*/
#ifndef _di_f_socket_file_bind_
- extern f_return_status f_socket_file_bind(const f_string_t path, const int id, struct sockaddr_un *address);
+ extern f_status_t f_socket_file_bind(const f_string_t path, const int id, struct sockaddr_un *address);
#endif // _di_f_socket_file_bind_
/**
* @see listen()
*/
#ifndef _di_f_socket_listen_
- extern f_return_status f_socket_listen(const int id, const unsigned int max_backlog);
+ extern f_status_t f_socket_listen(const int id, const unsigned int max_backlog);
#endif // _di_f_socket_listen_
/**
* @see shutdown()
*/
#ifndef _di_f_socket_close_client_
- extern f_return_status f_socket_close_client(const int id, const unsigned short action);
+ extern f_status_t f_socket_close_client(const int id, const unsigned short action);
#endif // _di_f_socket_close_client_
#ifdef __cplusplus
#define f_string_lengths_t_initialize { 0, 0, 0 }
+ #define f_macro_string_lengths_t_adjust(status, lengths, length) f_macro_memory_structure_t_adjust(status, lengths, f_string_length_t, length)
+
#define f_macro_string_lengths_t_clear(lengths) f_macro_memory_structure_t_clear(lengths)
- #define f_macro_string_lengths_t_new(status, lengths, length) f_macro_memory_structure_t_new(status, lengths, f_string_length_t, length)
+ #define f_macro_string_lengths_t_decimate(status, lengths) f_macro_memory_structure_decimate(status, lengths, f_string_length_t);
+ #define f_macro_string_lengths_t_decimate_by(status, lengths, amount) f_macro_memory_structure_decimate_by(status, lengths, f_string_length_t, amount);
- #define f_macro_string_lengths_t_delete(status, lengths) f_macro_memory_structure_t_delete(status, lengths, f_string_length_t)
- #define f_macro_string_lengths_t_destroy(status, lengths) f_macro_memory_structure_t_destroy(status, lengths, f_string_length_t)
+ #define f_macro_string_lengths_t_decrease(status, lengths) f_macro_memory_structure_decrease(status, lengths, f_string_length_t);
+ #define f_macro_string_lengths_t_decrease_by(status, lengths, amount) f_macro_memory_structure_decrease_by(status, lengths, f_string_length_t, amount);
+ #define f_macro_string_lengths_t_delete(status, lengths) f_macro_memory_structure_t_delete(status, lengths, f_string_length_t)
#define f_macro_string_lengths_t_delete_simple(lengths) f_macro_memory_structure_t_delete_simple(lengths, f_string_length_t)
- #define f_macro_string_lengths_t_destroy_simple(lengths) f_macro_memory_structure_t_destroy_simple(lengths, f_string_length_t)
+
+ #define f_macro_string_lengths_t_destroy(status, lengths) f_macro_memory_structure_t_destroy(status, lengths, f_string_length_t)
+ #define f_macro_string_lengths_t_destroy_simple(lengths) f_macro_memory_structure_t_destroy_simple(lengths, f_string_length_t)
+
+ #define f_macro_string_lengths_t_increase(status, lengths) f_macro_memory_structure_increase(status, lengths, f_string_length_t);
+ #define f_macro_string_lengths_t_increase_by(status, lengths, amount) f_macro_memory_structure_increase_by(status, lengths, f_string_length_t, amount);
+
+ #define f_macro_string_lengths_t_new(status, lengths, length) f_macro_memory_structure_t_new(status, lengths, f_string_length_t, length)
#define f_macro_string_lengths_t_resize(status, lengths, new_length) f_macro_memory_structure_t_resize(status, lengths, f_string_length_t, new_length)
- #define f_macro_string_lengths_t_adjust(status, lengths, new_length) f_macro_memory_structure_t_adjust(status, lengths, f_string_length_t, new_length)
#endif // _di_f_string_lengths_t_
/**
#define f_string_quantitys_t_initialize {0, 0, 0}
+ #define f_macro_string_quantitys_t_adjust(status, quantitys, length) f_macro_memory_structure_t_adjust(status, quantitys, f_string_quantity_t, length)
+
#define f_macro_string_quantitys_t_clear(quantitys) f_macro_memory_structure_t_clear(quantitys)
- #define f_macro_string_quantitys_t_new(status, quantitys, length) f_macro_memory_structure_t_new(status, quantitys, f_string_quantity_t, length)
+ #define f_macro_string_quantitys_t_decimate(status, quantitys) f_macro_memory_structure_decimate(status, quantitys, f_string_quantity_t);
+ #define f_macro_string_quantitys_t_decimate_by(status, quantitys, amount) f_macro_memory_structure_decimate_by(status, quantitys, f_string_quantity_t, amount);
- #define f_macro_string_quantitys_t_delete(status, quantitys) f_macro_memory_structure_t_delete(status, quantitys, f_string_quantity_t)
- #define f_macro_string_quantitys_t_destroy(status, quantitys) f_macro_memory_structure_t_destroy(status, quantitys, f_string_quantity_t)
+ #define f_macro_string_quantitys_t_decrease(status, quantitys) f_macro_memory_structure_decrease(status, quantitys, f_string_quantity_t);
+ #define f_macro_string_quantitys_t_decrease_by(status, quantitys, amount) f_macro_memory_structure_decrease_by(status, quantitys, f_string_quantity_t, amount);
+ #define f_macro_string_quantitys_t_delete(status, quantitys) f_macro_memory_structure_t_delete(status, quantitys, f_string_quantity_t)
#define f_macro_string_quantitys_t_delete_simple(quantitys) f_macro_memory_structure_t_delete_simple(quantitys, f_string_quantity_t)
- #define f_macro_string_quantitys_t_destroy_simple(quantitys) f_macro_memory_structure_t_destroy_simple(quantitys, f_string_quantity_t)
+
+ #define f_macro_string_quantitys_t_destroy(status, quantitys) f_macro_memory_structure_t_destroy(status, quantitys, f_string_quantity_t)
+ #define f_macro_string_quantitys_t_destroy_simple(quantitys) f_macro_memory_structure_t_destroy_simple(quantitys, f_string_quantity_t)
+
+ #define f_macro_string_quantitys_t_increase(status, quantitys) f_macro_memory_structure_increase(status, quantitys, f_string_quantity_t);
+ #define f_macro_string_quantitys_t_increase_by(status, quantitys, amount) f_macro_memory_structure_increase_by(status, quantitys, f_string_quantity_t, amount);
+
+ #define f_macro_string_quantitys_t_new(status, quantitys, length) f_macro_memory_structure_t_new(status, quantitys, f_string_quantity_t, length)
#define f_macro_string_quantitys_t_resize(status, quantitys, new_length) f_macro_memory_structure_t_resize(status, quantitys, f_string_quantity_t, new_length)
- #define f_macro_string_quantitys_t_adjust(status, quantitys, new_length) f_macro_memory_structure_t_adjust(status, quantitys, f_string_quantity_t, new_length)
#endif // _di_f_string_quantitys_t_
/**
#define f_string_ranges_t_initialize {0, 0, 0}
+ #define f_macro_string_ranges_t_adjust(status, ranges, length) f_macro_memory_structure_t_adjust(status, ranges, f_string_range_t, length)
+
#define f_macro_string_ranges_t_clear(ranges) f_macro_memory_structure_t_clear(ranges)
- #define f_macro_string_ranges_t_new(status, ranges, length) f_macro_memory_structure_t_new(status, ranges, f_string_range_t, length)
+ #define f_macro_string_ranges_t_decimate(status, ranges) f_macro_memory_structure_decimate(status, ranges, f_string_range_t);
+ #define f_macro_string_ranges_t_decimate_by(status, ranges, amount) f_macro_memory_structure_decimate_by(status, ranges, f_string_range_t, amount);
- #define f_macro_string_ranges_t_delete(status, ranges) f_macro_memory_structure_t_delete(status, ranges, f_string_range_t)
- #define f_macro_string_ranges_t_destroy(status, ranges) f_macro_memory_structure_t_destroy(status, ranges, f_string_range_t)
+ #define f_macro_string_ranges_t_decrease(status, ranges) f_macro_memory_structure_decrease(status, ranges, f_string_range_t);
+ #define f_macro_string_ranges_t_decrease_by(status, ranges, amount) f_macro_memory_structure_decrease_by(status, ranges, f_string_range_t, amount);
+ #define f_macro_string_ranges_t_delete(status, ranges) f_macro_memory_structure_t_delete(status, ranges, f_string_range_t)
#define f_macro_string_ranges_t_delete_simple(ranges) f_macro_memory_structure_t_delete_simple(ranges, f_string_range_t)
- #define f_macro_string_ranges_t_destroy_simple(ranges) f_macro_memory_structure_t_destroy_simple(ranges, f_string_range_t)
+
+ #define f_macro_string_ranges_t_destroy(status, ranges) f_macro_memory_structure_t_destroy(status, ranges, f_string_range_t)
+ #define f_macro_string_ranges_t_destroy_simple(ranges) f_macro_memory_structure_t_destroy_simple(ranges, f_string_range_t)
+
+ #define f_macro_string_ranges_t_increase(status, ranges) f_macro_memory_structure_increase(status, ranges, f_string_range_t);
+ #define f_macro_string_ranges_t_increase_by(status, ranges, amount) f_macro_memory_structure_increase_by(status, ranges, f_string_range_t, amount);
+
+ #define f_macro_string_ranges_t_new(status, ranges, length) f_macro_memory_structure_t_new(status, ranges, f_string_range_t, length)
#define f_macro_string_ranges_t_resize(status, ranges, new_length) f_macro_memory_structure_t_resize(status, ranges, f_string_range_t, new_length)
- #define f_macro_string_ranges_t_adjust(status, ranges, new_length) f_macro_memory_structure_t_adjust(status, ranges, f_string_range_t, new_length)
#endif // _di_f_string_ranges_t_
/**
+++ /dev/null
-#include "thread.h"
-#include "private-thread.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#if !defined(_di_f_thread_attributes_decrease_) || !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_delete_)
- f_return_status private_f_thread_attributes_delete(f_thread_attributes_t *attributes) {
- f_status_t status = F_none;
-
- f_macro_thread_attributes_t_delete(status, (*attributes));
-
- return status;
- }
-#endif // !defined(_di_f_thread_attributes_decrease_) || !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_delete_)
-
-#if !defined(_di_f_thread_attributes_decrease_) || !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_increase_) || !defined(_di_f_thread_attributes_increase_by_)
- f_return_status private_f_thread_attributes_resize(const f_array_length_t length, f_thread_attributes_t *attributes) {
- f_status_t status = F_none;
-
- f_macro_thread_attributes_t_resize(status, (*attributes), length);
-
- return status;
- }
-#endif // !defined(_di_f_thread_attributes_decrease_) || !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_increase_) || !defined(_di_f_thread_attributes_increase_by_)
-
-#if !defined(_di_f_thread_conditions_decrease_) || !defined(_di_f_thread_conditions_decrease_by_) || !defined(_di_f_thread_conditions_delete_)
- f_return_status private_f_thread_conditions_delete(f_thread_conditions_t *conditions) {
- f_status_t status = F_none;
-
- f_macro_thread_conditions_t_delete(status, (*conditions));
-
- return status;
- }
-#endif // !defined(_di_f_thread_conditions_decrease_) || !defined(_di_f_thread_conditions_decrease_by_) || !defined(_di_f_thread_conditions_delete_)
-
-#if !defined(_di_f_thread_conditions_decrease_) || !defined(_di_f_thread_conditions_decrease_by_) || !defined(_di_f_thread_conditions_increase_) || !defined(_di_f_thread_conditions_increase_by_)
- f_return_status private_f_thread_conditions_resize(const f_array_length_t length, f_thread_conditions_t *conditions) {
- f_status_t status = F_none;
-
- f_macro_thread_conditions_t_resize(status, (*conditions), length);
-
- return status;
- }
-#endif // !defined(_di_f_thread_conditions_decrease_) || !defined(_di_f_thread_conditions_decrease_by_) || !defined(_di_f_thread_conditions_increase_) || !defined(_di_f_thread_conditions_increase_by_)
-
-#if !defined(_di_f_thread_ids_decrease_) || !defined(_di_f_thread_ids_decrease_by_) || !defined(_di_f_thread_ids_delete_)
- f_return_status private_f_thread_ids_delete(f_thread_ids_t *ids) {
- f_status_t status = F_none;
-
- f_macro_thread_ids_t_delete(status, (*ids));
-
- return status;
- }
-#endif // !defined(_di_f_thread_ids_decrease_) || !defined(_di_f_thread_ids_decrease_by_) || !defined(_di_f_thread_ids_delete_)
-
-#if !defined(_di_f_thread_ids_decrease_) || !defined(_di_f_thread_ids_decrease_by_) || !defined(_di_f_thread_ids_increase_) || !defined(_di_f_thread_ids_increase_by_)
- f_return_status private_f_thread_ids_resize(const f_array_length_t length, f_thread_ids_t *ids) {
- f_status_t status = F_none;
-
- f_macro_thread_ids_t_resize(status, (*ids), length);
-
- return status;
- }
-#endif // !defined(_di_f_thread_ids_decrease_) || !defined(_di_f_thread_ids_decrease_by_) || !defined(_di_f_thread_ids_increase_) || !defined(_di_f_thread_ids_increase_by_)
-
-#if !defined(_di_f_thread_keys_decrease_) || !defined(_di_f_thread_keys_decrease_by_) || !defined(_di_f_thread_keys_delete_)
- f_return_status private_f_thread_keys_delete(f_thread_keys_t *keys) {
- f_status_t status = F_none;
-
- f_macro_thread_keys_t_delete(status, (*keys));
-
- return status;
- }
-#endif // !defined(_di_f_thread_keys_decrease_) || !defined(_di_f_thread_keys_decrease_by_) || !defined(_di_f_thread_keys_delete_)
-
-#if !defined(_di_f_thread_keys_decrease_) || !defined(_di_f_thread_keys_decrease_by_) || !defined(_di_f_thread_keys_increase_) || !defined(_di_f_thread_keys_increase_by_)
- f_return_status private_f_thread_keys_resize(const f_array_length_t length, f_thread_keys_t *keys) {
- f_status_t status = F_none;
-
- f_macro_thread_keys_t_resize(status, (*keys), length);
-
- return status;
- }
-#endif // !defined(_di_f_thread_keys_decrease_) || !defined(_di_f_thread_keys_decrease_by_) || !defined(_di_f_thread_keys_increase_) || !defined(_di_f_thread_keys_increase_by_)
-
-#if !defined(_di_f_thread_locks_decrease_) || !defined(_di_f_thread_locks_decrease_by_) || !defined(_di_f_thread_locks_delete_)
- f_return_status private_f_thread_locks_delete(f_thread_locks_t *locks) {
- f_status_t status = F_none;
-
- f_macro_thread_locks_t_delete(status, (*locks));
-
- return status;
- }
-#endif // !defined(_di_f_thread_locks_decrease_) || !defined(_di_f_thread_locks_decrease_by_) || !defined(_di_f_thread_locks_delete_)
-
-#if !defined(_di_f_thread_locks_decrease_) || !defined(_di_f_thread_locks_decrease_by_) || !defined(_di_f_thread_locks_increase_) || !defined(_di_f_thread_locks_increase_by_)
- f_return_status private_f_thread_locks_resize(const f_array_length_t length, f_thread_locks_t *locks) {
- f_status_t status = F_none;
-
- f_macro_thread_locks_t_resize(status, (*locks), length);
-
- return status;
- }
-#endif // !defined(_di_f_thread_locks_decrease_) || !defined(_di_f_thread_locks_decrease_by_) || !defined(_di_f_thread_locks_increase_) || !defined(_di_f_thread_locks_increase_by_)
-
-#if !defined(_di_f_thread_mutexs_decrease_) || !defined(_di_f_thread_mutexs_decrease_by_) || !defined(_di_f_thread_mutexs_delete_)
- f_return_status private_f_thread_mutexs_delete(f_thread_mutexs_t *mutexs) {
- f_status_t status = F_none;
-
- f_macro_thread_mutexs_t_delete(status, (*mutexs));
-
- return status;
- }
-#endif // !defined(_di_f_thread_mutexs_decrease_) || !defined(_di_f_thread_mutexs_decrease_by_) || !defined(_di_f_thread_mutexs_delete_)
-
-#if !defined(_di_f_thread_mutexs_decrease_) || !defined(_di_f_thread_mutexs_decrease_by_) || !defined(_di_f_thread_mutexs_increase_) || !defined(_di_f_thread_mutexs_increase_by_)
- f_return_status private_f_thread_mutexs_resize(const f_array_length_t length, f_thread_mutexs_t *mutexs) {
- f_status_t status = F_none;
-
- f_macro_thread_mutexs_t_resize(status, (*mutexs), length);
-
- return status;
- }
-#endif // !defined(_di_f_thread_mutexs_decrease_) || !defined(_di_f_thread_mutexs_decrease_by_) || !defined(_di_f_thread_mutexs_increase_) || !defined(_di_f_thread_mutexs_increase_by_)
-
-#if !defined(_di_f_thread_mutex_attributes_decrease_) || !defined(_di_f_thread_mutex_attributes_decrease_by_) || !defined(_di_f_thread_mutex_attributes_delete_)
- f_return_status private_f_thread_mutex_attributes_delete(f_thread_mutex_attributes_t *mutex_attributes) {
- f_status_t status = F_none;
-
- f_macro_thread_mutex_attributes_t_delete(status, (*mutex_attributes));
-
- return status;
- }
-#endif // !defined(_di_f_thread_mutex_attributes_decrease_) || !defined(_di_f_thread_mutex_attributes_decrease_by_) || !defined(_di_f_thread_mutex_attributes_delete_)
-
-#if !defined(_di_f_thread_mutex_attributes_decrease_) || !defined(_di_f_thread_mutex_attributes_decrease_by_) || !defined(_di_f_thread_mutex_attributes_increase_) || !defined(_di_f_thread_mutex_attributes_increase_by_)
- f_return_status private_f_thread_mutex_attributes_resize(const f_array_length_t length, f_thread_mutex_attributes_t *mutex_attributes) {
- f_status_t status = F_none;
-
- f_macro_thread_mutex_attributes_t_resize(status, (*mutex_attributes), length);
-
- return status;
- }
-#endif // !defined(_di_f_thread_mutex_attributes_decrease_) || !defined(_di_f_thread_mutex_attributes_decrease_by_) || !defined(_di_f_thread_mutex_attributes_increase_) || !defined(_di_f_thread_mutex_attributes_increase_by_)
-
-#if !defined(_di_f_thread_onces_decrease_) || !defined(_di_f_thread_onces_decrease_by_) || !defined(_di_f_thread_onces_delete_)
- f_return_status private_f_thread_onces_delete(f_thread_onces_t *onces) {
- f_status_t status = F_none;
-
- f_macro_thread_onces_t_delete(status, (*onces));
-
- return status;
- }
-#endif // !defined(_di_f_thread_onces_decrease_) || !defined(_di_f_thread_onces_decrease_by_) || !defined(_di_f_thread_onces_delete_)
-
-#if !defined(_di_f_thread_onces_decrease_) || !defined(_di_f_thread_onces_decrease_by_) || !defined(_di_f_thread_onces_increase_) || !defined(_di_f_thread_onces_increase_by_)
- f_return_status private_f_thread_onces_resize(const f_array_length_t length, f_thread_onces_t *onces) {
- f_status_t status = F_none;
-
- f_macro_thread_onces_t_resize(status, (*onces), length);
-
- return status;
- }
-#endif // !defined(_di_f_thread_onces_decrease_) || !defined(_di_f_thread_onces_decrease_by_) || !defined(_di_f_thread_onces_increase_) || !defined(_di_f_thread_onces_increase_by_)
-
-#if !defined(_di_f_thread_sets_decrease_) || !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_delete_)
- f_return_status private_f_thread_sets_delete(f_thread_sets_t *sets) {
- f_status_t status = F_none;
-
- f_macro_thread_sets_t_delete(status, (*sets));
-
- return status;
- }
-#endif // !defined(_di_f_thread_sets_decrease_) || !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_delete_)
-
-#if !defined(_di_f_thread_sets_decrease_) || !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_increase_) || !defined(_di_f_thread_sets_increase_by_)
- f_return_status private_f_thread_sets_resize(const f_array_length_t length, f_thread_sets_t *sets) {
- f_status_t status = F_none;
-
- f_macro_thread_sets_t_resize(status, (*sets), length);
-
- return status;
- }
-#endif // !defined(_di_f_thread_sets_decrease_) || !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_increase_) || !defined(_di_f_thread_sets_increase_by_)
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
+++ /dev/null
-/**
- * FLL - Level 1
- *
- * Project: String
- * API Version: 0.5
- * Licenses: lgplv2.1
- *
- * These are provided for internal reduction in redundant code.
- * These should not be exposed/used outside of this project.
- */
-#ifndef _PRIVATE_F_thread_h
-#define _PRIVATE_F_thread_h
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * Private implementation of f_thread_attributes_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param attributes
- * The attributes to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_attributes_t_delete().
- *
- * @see f_macro_thread_attributes_t_delete()
- * @see f_thread_attributes_decrease()
- * @see f_thread_attributes_decrease_by()
- * @see f_thread_attributes_delete()
- */
-#if !defined(_di_f_thread_attributes_decrease_) || !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_delete_)
- extern f_return_status private_f_thread_attributes_delete(f_thread_attributes_t *attributes) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_attributes_decrease_) || !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param attributes
- * The attributes to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_attributes_t_resize().
- *
- * @see f_macro_thread_attributes_t_resize()
- * @see f_thread_attributes_decrease()
- * @see f_thread_attributes_decrease_by()
- * @see f_thread_attributes_increase()
- * @see f_thread_attributes_increase_by()
- */
-#if !defined(_di_f_thread_attributes_decrease_) || !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_increase_) || !defined(_di_f_thread_attributes_increase_by_)
- extern f_return_status private_f_thread_attributes_resize(const f_array_length_t length, f_thread_attributes_t *attributes) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_attributes_decrease_) || !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_increase_) || !defined(_di_f_thread_attributes_increase_by_)
-
-/**
- * Private implementation of f_thread_conditions_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param conditions
- * The conditions to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_conditions_t_delete().
- *
- * @see f_macro_thread_conditions_t_delete()
- * @see f_thread_conditions_decrease()
- * @see f_thread_conditions_decrease_by()
- * @see f_thread_conditions_delete()
- */
-#if !defined(_di_f_thread_conditions_decrease_) || !defined(_di_f_thread_conditions_decrease_by_) || !defined(_di_f_thread_conditions_delete_)
- extern f_return_status private_f_thread_conditions_delete(f_thread_conditions_t *conditions) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_conditions_decrease_) || !defined(_di_f_thread_conditions_decrease_by_) || !defined(_di_f_thread_conditions_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param conditions
- * The conditions to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_conditions_t_resize().
- *
- * @see f_macro_thread_conditions_t_resize()
- * @see f_thread_conditions_decrease()
- * @see f_thread_conditions_decrease_by()
- * @see f_thread_conditions_increase()
- * @see f_thread_conditions_increase_by()
- */
-#if !defined(_di_f_thread_conditions_decrease_) || !defined(_di_f_thread_conditions_decrease_by_) || !defined(_di_f_thread_conditions_increase_) || !defined(_di_f_thread_conditions_increase_by_)
- extern f_return_status private_f_thread_conditions_resize(const f_array_length_t length, f_thread_conditions_t *conditions) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_conditions_decrease_) || !defined(_di_f_thread_conditions_decrease_by_) || !defined(_di_f_thread_conditions_increase_) || !defined(_di_f_thread_conditions_increase_by_)
-
-/**
- * Private implementation of f_thread_ids_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param ids
- * The ids to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_ids_t_delete().
- *
- * @see f_macro_thread_ids_t_delete()
- * @see f_thread_ids_decrease()
- * @see f_thread_ids_decrease_by()
- * @see f_thread_ids_delete()
- */
-#if !defined(_di_f_thread_ids_decrease_) || !defined(_di_f_thread_ids_decrease_by_) || !defined(_di_f_thread_ids_delete_)
- extern f_return_status private_f_thread_ids_delete(f_thread_ids_t *ids) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_ids_decrease_) || !defined(_di_f_thread_ids_decrease_by_) || !defined(_di_f_thread_ids_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param ids
- * The ids to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_ids_t_resize().
- *
- * @see f_macro_thread_ids_t_resize()
- * @see f_thread_ids_decrease()
- * @see f_thread_ids_decrease_by()
- * @see f_thread_ids_increase()
- * @see f_thread_ids_increase_by()
- */
-#if !defined(_di_f_thread_ids_decrease_) || !defined(_di_f_thread_ids_decrease_by_) || !defined(_di_f_thread_ids_increase_) || !defined(_di_f_thread_ids_increase_by_)
- extern f_return_status private_f_thread_ids_resize(const f_array_length_t length, f_thread_ids_t *ids) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_ids_decrease_) || !defined(_di_f_thread_ids_decrease_by_) || !defined(_di_f_thread_ids_increase_) || !defined(_di_f_thread_ids_increase_by_)
-
-/**
- * Private implementation of f_thread_keys_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param keys
- * The keys to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_keys_t_delete().
- *
- * @see f_macro_thread_keys_t_delete()
- * @see f_thread_keys_decrease()
- * @see f_thread_keys_decrease_by()
- * @see f_thread_keys_delete()
- */
-#if !defined(_di_f_thread_keys_decrease_) || !defined(_di_f_thread_keys_decrease_by_) || !defined(_di_f_thread_keys_delete_)
- extern f_return_status private_f_thread_keys_delete(f_thread_keys_t *keys) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_keys_decrease_) || !defined(_di_f_thread_keys_decrease_by_) || !defined(_di_f_thread_keys_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param keys
- * The keys to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_keys_t_resize().
- *
- * @see f_macro_thread_keys_t_resize()
- * @see f_thread_keys_decrease()
- * @see f_thread_keys_decrease_by()
- * @see f_thread_keys_increase()
- * @see f_thread_keys_increase_by()
- */
-#if !defined(_di_f_thread_keys_decrease_) || !defined(_di_f_thread_keys_decrease_by_) || !defined(_di_f_thread_keys_increase_) || !defined(_di_f_thread_keys_increase_by_)
- extern f_return_status private_f_thread_keys_resize(const f_array_length_t length, f_thread_keys_t *keys) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_keys_decrease_) || !defined(_di_f_thread_keys_decrease_by_) || !defined(_di_f_thread_keys_increase_) || !defined(_di_f_thread_keys_increase_by_)
-
-/**
- * Private implementation of f_thread_locks_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param locks
- * The locks to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_locks_t_delete().
- *
- * @see f_macro_thread_locks_t_delete()
- * @see f_thread_locks_decrease()
- * @see f_thread_locks_decrease_by()
- * @see f_thread_locks_delete()
- */
-#if !defined(_di_f_thread_locks_decrease_) || !defined(_di_f_thread_locks_decrease_by_) || !defined(_di_f_thread_locks_delete_)
- extern f_return_status private_f_thread_locks_delete(f_thread_locks_t *locks) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_locks_decrease_) || !defined(_di_f_thread_locks_decrease_by_) || !defined(_di_f_thread_locks_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param locks
- * The locks to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_locks_t_resize().
- *
- * @see f_macro_thread_locks_t_resize()
- * @see f_thread_locks_decrease()
- * @see f_thread_locks_decrease_by()
- * @see f_thread_locks_increase()
- * @see f_thread_locks_increase_by()
- */
-#if !defined(_di_f_thread_locks_decrease_) || !defined(_di_f_thread_locks_decrease_by_) || !defined(_di_f_thread_locks_increase_) || !defined(_di_f_thread_locks_increase_by_)
- extern f_return_status private_f_thread_locks_resize(const f_array_length_t length, f_thread_locks_t *locks) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_locks_decrease_) || !defined(_di_f_thread_locks_decrease_by_) || !defined(_di_f_thread_locks_increase_) || !defined(_di_f_thread_locks_increase_by_)
-
-/**
- * Private implementation of f_thread_mutexs_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param mutexs
- * The mutexs to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_mutexs_t_delete().
- *
- * @see f_macro_thread_mutexs_t_delete()
- * @see f_thread_mutexs_decrease()
- * @see f_thread_mutexs_decrease_by()
- * @see f_thread_mutexs_delete()
- */
-#if !defined(_di_f_thread_mutexs_decrease_) || !defined(_di_f_thread_mutexs_decrease_by_) || !defined(_di_f_thread_mutexs_delete_)
- extern f_return_status private_f_thread_mutexs_delete(f_thread_mutexs_t *mutexs) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_mutexs_decrease_) || !defined(_di_f_thread_mutexs_decrease_by_) || !defined(_di_f_thread_mutexs_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param mutexs
- * The mutexs to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_mutexs_t_resize().
- *
- * @see f_macro_thread_mutexs_t_resize()
- * @see f_thread_mutexs_decrease()
- * @see f_thread_mutexs_decrease_by()
- * @see f_thread_mutexs_increase()
- * @see f_thread_mutexs_increase_by()
- */
-#if !defined(_di_f_thread_mutexs_decrease_) || !defined(_di_f_thread_mutexs_decrease_by_) || !defined(_di_f_thread_mutexs_increase_) || !defined(_di_f_thread_mutexs_increase_by_)
- extern f_return_status private_f_thread_mutexs_resize(const f_array_length_t length, f_thread_mutexs_t *mutexs) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_mutexs_decrease_) || !defined(_di_f_thread_mutexs_decrease_by_) || !defined(_di_f_thread_mutexs_increase_) || !defined(_di_f_thread_mutexs_increase_by_)
-
-/**
- * Private implementation of f_thread_mutex_attributes_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param mutex_attributes
- * The mutex_attributes to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_mutex_attributes_t_delete().
- *
- * @see f_macro_thread_mutex_attributes_t_delete()
- * @see f_thread_mutex_attributes_decrease()
- * @see f_thread_mutex_attributes_decrease_by()
- * @see f_thread_mutex_attributes_delete()
- */
-#if !defined(_di_f_thread_mutex_attributes_decrease_) || !defined(_di_f_thread_mutex_attributes_decrease_by_) || !defined(_di_f_thread_mutex_attributes_delete_)
- extern f_return_status private_f_thread_mutex_attributes_delete(f_thread_mutex_attributes_t *mutex_attributes) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_mutex_attributes_decrease_) || !defined(_di_f_thread_mutex_attributes_decrease_by_) || !defined(_di_f_thread_mutex_attributes_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param mutex_attributes
- * The mutex_attributes to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_mutex_attributes_t_resize().
- *
- * @see f_macro_thread_mutex_attributes_t_resize()
- * @see f_thread_mutex_attributes_decrease()
- * @see f_thread_mutex_attributes_decrease_by()
- * @see f_thread_mutex_attributes_increase()
- * @see f_thread_mutex_attributes_increase_by()
- */
-#if !defined(_di_f_thread_mutex_attributes_decrease_) || !defined(_di_f_thread_mutex_attributes_decrease_by_) || !defined(_di_f_thread_mutex_attributes_increase_) || !defined(_di_f_thread_mutex_attributes_increase_by_)
- extern f_return_status private_f_thread_mutex_attributes_resize(const f_array_length_t length, f_thread_mutex_attributes_t *mutex_attributes) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_mutex_attributes_decrease_) || !defined(_di_f_thread_mutex_attributes_decrease_by_) || !defined(_di_f_thread_mutex_attributes_increase_) || !defined(_di_f_thread_mutex_attributes_increase_by_)
-
-/**
- * Private implementation of f_thread_onces_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param onces
- * The onces to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_onces_t_delete().
- *
- * @see f_macro_thread_onces_t_delete()
- * @see f_thread_onces_decrease()
- * @see f_thread_onces_decrease_by()
- * @see f_thread_onces_delete()
- */
-#if !defined(_di_f_thread_onces_decrease_) || !defined(_di_f_thread_onces_decrease_by_) || !defined(_di_f_thread_onces_delete_)
- extern f_return_status private_f_thread_onces_delete(f_thread_onces_t *onces) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_onces_decrease_) || !defined(_di_f_thread_onces_decrease_by_) || !defined(_di_f_thread_onces_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param onces
- * The onces to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_onces_t_resize().
- *
- * @see f_macro_thread_onces_t_resize()
- * @see f_thread_onces_decrease()
- * @see f_thread_onces_decrease_by()
- * @see f_thread_onces_increase()
- * @see f_thread_onces_increase_by()
- */
-#if !defined(_di_f_thread_onces_decrease_) || !defined(_di_f_thread_onces_decrease_by_) || !defined(_di_f_thread_onces_increase_) || !defined(_di_f_thread_onces_increase_by_)
- extern f_return_status private_f_thread_onces_resize(const f_array_length_t length, f_thread_onces_t *onces) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_onces_decrease_) || !defined(_di_f_thread_onces_decrease_by_) || !defined(_di_f_thread_onces_increase_) || !defined(_di_f_thread_onces_increase_by_)
-
-/**
- * Private implementation of f_thread_sets_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param sets
- * The sets to delete.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_sets_t_delete().
- *
- * @see f_macro_thread_sets_t_delete()
- * @see f_thread_sets_decrease()
- * @see f_thread_sets_decrease_by()
- * @see f_thread_sets_delete()
- */
-#if !defined(_di_f_thread_sets_decrease_) || !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_delete_)
- extern f_return_status private_f_thread_sets_delete(f_thread_sets_t *sets) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_sets_decrease_) || !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param sets
- * The sets to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_thread_sets_t_resize().
- *
- * @see f_macro_thread_sets_t_resize()
- * @see f_thread_sets_decrease()
- * @see f_thread_sets_decrease_by()
- * @see f_thread_sets_increase()
- * @see f_thread_sets_increase_by()
- */
-#if !defined(_di_f_thread_sets_decrease_) || !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_increase_) || !defined(_di_f_thread_sets_increase_by_)
- extern f_return_status private_f_thread_sets_resize(const f_array_length_t length, f_thread_sets_t *sets) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_f_thread_sets_decrease_) || !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_increase_) || !defined(_di_f_thread_sets_increase_by_)
-
-#ifdef __cplusplus
-} // extern "C"
-#endif
-
-#endif // _PRIVATE_F_thread_h
#define f_thread_attributes_t_initialize { 0, 0, 0 }
+ #define f_macro_thread_attributes_t_adjust(status, attributes, length) f_macro_memory_structure_t_adjust(status, attributes, f_thread_attribute_t, length)
+
#define f_macro_thread_attributes_t_clear(attributes) f_macro_memory_structure_t_clear(attributes)
- #define f_macro_thread_attributes_t_new(status, attributes, length) f_macro_memory_structure_t_new(status, attributes, f_thread_attribute_t, length)
+ #define f_macro_thread_attributes_t_decimate(status, attributes) f_macro_memory_structure_decimate(status, attributes, f_thread_attribute_t);
+ #define f_macro_thread_attributes_t_decimate_by(status, attributes, amount) f_macro_memory_structure_decimate_by(status, attributes, f_thread_attribute_t, amount);
- #define f_macro_thread_attributes_t_delete(status, attributes) f_macro_memory_structure_t_delete(status, attributes, f_thread_attribute_t)
- #define f_macro_thread_attributes_t_destroy(status, attributes) f_macro_memory_structure_t_destroy(status, attributes, f_thread_attribute_t)
+ #define f_macro_thread_attributes_t_decrease(status, attributes) f_macro_memory_structure_decrease(status, attributes, f_thread_attribute_t);
+ #define f_macro_thread_attributes_t_decrease_by(status, attributes, amount) f_macro_memory_structure_decrease_by(status, attributes, f_thread_attribute_t, amount);
+ #define f_macro_thread_attributes_t_delete(status, attributes) f_macro_memory_structure_t_delete(status, attributes, f_thread_attribute_t)
#define f_macro_thread_attributes_t_delete_simple(attributes) f_macro_memory_structure_t_delete_simple(attributes, f_thread_attribute_t)
- #define f_macro_thread_attributes_t_destroy_simple(attributes) f_macro_memory_structure_t_destroy_simple(attributes, f_thread_attribute_t)
+
+ #define f_macro_thread_attributes_t_destroy(status, attributes) f_macro_memory_structure_t_destroy(status, attributes, f_thread_attribute_t)
+ #define f_macro_thread_attributes_t_destroy_simple(attributes) f_macro_memory_structure_t_destroy_simple(attributes, f_thread_attribute_t)
+
+ #define f_macro_thread_attributes_t_increase(status, attributes) f_macro_memory_structure_increase(status, attributes, f_thread_attribute_t);
+ #define f_macro_thread_attributes_t_increase_by(status, attributes, amount) f_macro_memory_structure_increase_by(status, attributes, f_thread_attribute_t, amount);
+
+ #define f_macro_thread_attributes_t_new(status, attributes, length) f_macro_memory_structure_t_new(status, attributes, f_thread_attribute_t, length)
#define f_macro_thread_attributes_t_resize(status, attributes, new_length) f_macro_memory_structure_t_resize(status, attributes, f_thread_attribute_t, new_length)
- #define f_macro_thread_attributes_t_adjust(status, attributes, new_length) f_macro_memory_structure_t_adjust(status, attributes, f_thread_attribute_t, new_length)
#endif // _di_f_thread_attributes_t_
/**
#define f_thread_conditions_t_initialize { 0, 0, 0 }
+ #define f_macro_thread_conditions_t_adjust(status, conditions, length) f_macro_memory_structure_t_adjust(status, conditions, f_thread_condition_t, length)
+
#define f_macro_thread_conditions_t_clear(conditions) f_macro_memory_structure_t_clear(conditions)
- #define f_macro_thread_conditions_t_new(status, conditions, length) f_macro_memory_structure_t_new(status, conditions, f_thread_condition_t, length)
+ #define f_macro_thread_conditions_t_decimate(status, conditions) f_macro_memory_structure_decimate(status, conditions, f_thread_condition_t);
+ #define f_macro_thread_conditions_t_decimate_by(status, conditions, amount) f_macro_memory_structure_decimate_by(status, conditions, f_thread_condition_t, amount);
- #define f_macro_thread_conditions_t_delete(status, conditions) f_macro_memory_structure_t_delete(status, conditions, f_thread_condition_t)
- #define f_macro_thread_conditions_t_destroy(status, conditions) f_macro_memory_structure_t_destroy(status, conditions, f_thread_condition_t)
+ #define f_macro_thread_conditions_t_decrease(status, conditions) f_macro_memory_structure_decrease(status, conditions, f_thread_condition_t);
+ #define f_macro_thread_conditions_t_decrease_by(status, conditions, amount) f_macro_memory_structure_decrease_by(status, conditions, f_thread_condition_t, amount);
+ #define f_macro_thread_conditions_t_delete(status, conditions) f_macro_memory_structure_t_delete(status, conditions, f_thread_condition_t)
#define f_macro_thread_conditions_t_delete_simple(conditions) f_macro_memory_structure_t_delete_simple(conditions, f_thread_condition_t)
- #define f_macro_thread_conditions_t_destroy_simple(conditions) f_macro_memory_structure_t_destroy_simple(conditions, f_thread_condition_t)
+
+ #define f_macro_thread_conditions_t_destroy(status, conditions) f_macro_memory_structure_t_destroy(status, conditions, f_thread_condition_t)
+ #define f_macro_thread_conditions_t_destroy_simple(conditions) f_macro_memory_structure_t_destroy_simple(conditions, f_thread_condition_t)
+
+ #define f_macro_thread_conditions_t_increase(status, conditions) f_macro_memory_structure_increase(status, conditions, f_thread_condition_t);
+ #define f_macro_thread_conditions_t_increase_by(status, conditions, amount) f_macro_memory_structure_increase_by(status, conditions, f_thread_condition_t, amount);
+
+ #define f_macro_thread_conditions_t_new(status, conditions, length) f_macro_memory_structure_t_new(status, conditions, f_thread_condition_t, length)
#define f_macro_thread_conditions_t_resize(status, conditions, new_length) f_macro_memory_structure_t_resize(status, conditions, f_thread_condition_t, new_length)
- #define f_macro_thread_conditions_t_adjust(status, conditions, new_length) f_macro_memory_structure_t_adjust(status, conditions, f_thread_condition_t, new_length)
#endif // _di_f_thread_conditions_t_
/**
#define f_thread_ids_t_initialize { 0, 0, 0 }
+ #define f_macro_thread_ids_t_adjust(status, ids, length) f_macro_memory_structure_t_adjust(status, ids, f_thread_ids_t, length)
+
#define f_macro_thread_ids_t_clear(ids) f_macro_memory_structure_t_clear(ids)
- #define f_macro_thread_ids_t_new(status, ids, length) f_macro_memory_structure_t_new(status, ids, f_thread_ids_t, length)
+ #define f_macro_thread_ids_t_decimate(status, ids) f_macro_memory_structure_decimate(status, ids, f_thread_ids_t);
+ #define f_macro_thread_ids_t_decimate_by(status, ids, amount) f_macro_memory_structure_decimate_by(status, ids, f_thread_ids_t, amount);
- #define f_macro_thread_ids_t_delete(status, ids) f_macro_memory_structure_t_delete(status, ids, f_thread_ids_t)
- #define f_macro_thread_ids_t_destroy(status, ids) f_macro_memory_structure_t_destroy(status, ids, f_thread_ids_t)
+ #define f_macro_thread_ids_t_decrease(status, ids) f_macro_memory_structure_decrease(status, ids, f_thread_ids_t);
+ #define f_macro_thread_ids_t_decrease_by(status, ids, amount) f_macro_memory_structure_decrease_by(status, ids, f_thread_ids_t, amount);
+ #define f_macro_thread_ids_t_delete(status, ids) f_macro_memory_structure_t_delete(status, ids, f_thread_ids_t)
#define f_macro_thread_ids_t_delete_simple(ids) f_macro_memory_structure_t_delete_simple(ids, f_thread_ids_t)
- #define f_macro_thread_ids_t_destroy_simple(ids) f_macro_memory_structure_t_destroy_simple(ids, f_thread_ids_t)
+
+ #define f_macro_thread_ids_t_destroy(status, ids) f_macro_memory_structure_t_destroy(status, ids, f_thread_ids_t)
+ #define f_macro_thread_ids_t_destroy_simple(ids) f_macro_memory_structure_t_destroy_simple(ids, f_thread_ids_t)
+
+ #define f_macro_thread_ids_t_increase(status, ids) f_macro_memory_structure_increase(status, ids, f_thread_ids_t);
+ #define f_macro_thread_ids_t_increase_by(status, ids, amount) f_macro_memory_structure_increase_by(status, ids, f_thread_ids_t, amount);
+
+ #define f_macro_thread_ids_t_new(status, ids, length) f_macro_memory_structure_t_new(status, ids, f_thread_ids_t, length)
#define f_macro_thread_ids_t_resize(status, ids, new_length) f_macro_memory_structure_t_resize(status, ids, f_thread_ids_t, new_length)
- #define f_macro_thread_ids_t_adjust(status, ids, new_length) f_macro_memory_structure_t_adjust(status, ids, f_thread_ids_t, new_length)
#endif // _di_f_thread_ids_t_
/**
#define f_thread_keys_t_initialize { 0, 0, 0 }
+ #define f_macro_thread_keys_t_adjust(status, keys, length) f_macro_memory_structure_t_adjust(status, keys, f_thread_key_t, length)
+
#define f_macro_thread_keys_t_clear(keys) f_macro_memory_structure_t_clear(keys)
- #define f_macro_thread_keys_t_new(status, keys, length) f_macro_memory_structure_t_new(status, keys, f_thread_key_t, length)
+ #define f_macro_thread_keys_t_decimate(status, keys) f_macro_memory_structure_decimate(status, keys, f_thread_key_t);
+ #define f_macro_thread_keys_t_decimate_by(status, keys, amount) f_macro_memory_structure_decimate_by(status, keys, f_thread_key_t, amount);
- #define f_macro_thread_keys_t_delete(status, keys) f_macro_memory_structure_t_delete(status, keys, f_thread_key_t)
- #define f_macro_thread_keys_t_destroy(status, keys) f_macro_memory_structure_t_destroy(status, keys, f_thread_key_t)
+ #define f_macro_thread_keys_t_decrease(status, keys) f_macro_memory_structure_decrease(status, keys, f_thread_key_t);
+ #define f_macro_thread_keys_t_decrease_by(status, keys, amount) f_macro_memory_structure_decrease_by(status, keys, f_thread_key_t, amount);
+ #define f_macro_thread_keys_t_delete(status, keys) f_macro_memory_structure_t_delete(status, keys, f_thread_key_t)
#define f_macro_thread_keys_t_delete_simple(keys) f_macro_memory_structure_t_delete_simple(keys, f_thread_key_t)
- #define f_macro_thread_keys_t_destroy_simple(keys) f_macro_memory_structure_t_destroy_simple(keys, f_thread_key_t)
+
+ #define f_macro_thread_keys_t_destroy(status, keys) f_macro_memory_structure_t_destroy(status, keys, f_thread_key_t)
+ #define f_macro_thread_keys_t_destroy_simple(keys) f_macro_memory_structure_t_destroy_simple(keys, f_thread_key_t)
+
+ #define f_macro_thread_keys_t_increase(status, keys) f_macro_memory_structure_increase(status, keys, f_thread_key_t);
+ #define f_macro_thread_keys_t_increase_by(status, keys, amount) f_macro_memory_structure_increase_by(status, keys, f_thread_key_t, amount);
+
+ #define f_macro_thread_keys_t_new(status, keys, length) f_macro_memory_structure_t_new(status, keys, f_thread_key_t, length)
#define f_macro_thread_keys_t_resize(status, keys, new_length) f_macro_memory_structure_t_resize(status, keys, f_thread_key_t, new_length)
- #define f_macro_thread_keys_t_adjust(status, keys, new_length) f_macro_memory_structure_t_adjust(status, keys, f_thread_key_t, new_length)
#endif // _di_f_thread_keys_t_
/**
#define f_thread_locks_t_initialize { 0, 0, 0 }
+ #define f_macro_thread_locks_t_adjust(status, locks, length) f_macro_memory_structure_t_adjust(status, locks, f_thread_lock_t, length)
+
#define f_macro_thread_locks_t_clear(locks) f_macro_memory_structure_t_clear(locks)
- #define f_macro_thread_locks_t_new(status, locks, length) f_macro_memory_structure_t_new(status, locks, f_thread_lock_t, length)
+ #define f_macro_thread_locks_t_decimate(status, locks) f_macro_memory_structure_decimate(status, locks, f_thread_lock_t);
+ #define f_macro_thread_locks_t_decimate_by(status, locks, amount) f_macro_memory_structure_decimate_by(status, locks, f_thread_lock_t, amount);
- #define f_macro_thread_locks_t_delete(status, locks) f_macro_memory_structure_t_delete(status, locks, f_thread_lock_t)
- #define f_macro_thread_locks_t_destroy(status, locks) f_macro_memory_structure_t_destroy(status, locks, f_thread_lock_t)
+ #define f_macro_thread_locks_t_decrease(status, locks) f_macro_memory_structure_decrease(status, locks, f_thread_lock_t);
+ #define f_macro_thread_locks_t_decrease_by(status, locks, amount) f_macro_memory_structure_decrease_by(status, locks, f_thread_lock_t, amount);
+ #define f_macro_thread_locks_t_delete(status, locks) f_macro_memory_structure_t_delete(status, locks, f_thread_lock_t)
#define f_macro_thread_locks_t_delete_simple(locks) f_macro_memory_structure_t_delete_simple(locks, f_thread_lock_t)
- #define f_macro_thread_locks_t_destroy_simple(locks) f_macro_memory_structure_t_destroy_simple(locks, f_thread_lock_t)
+
+ #define f_macro_thread_locks_t_destroy(status, locks) f_macro_memory_structure_t_destroy(status, locks, f_thread_lock_t)
+ #define f_macro_thread_locks_t_destroy_simple(locks) f_macro_memory_structure_t_destroy_simple(locks, f_thread_lock_t)
+
+ #define f_macro_thread_locks_t_increase(status, locks) f_macro_memory_structure_increase(status, locks, f_thread_lock_t);
+ #define f_macro_thread_locks_t_increase_by(status, locks, amount) f_macro_memory_structure_increase_by(status, locks, f_thread_lock_t, amount);
+
+ #define f_macro_thread_locks_t_new(status, locks, length) f_macro_memory_structure_t_new(status, locks, f_thread_lock_t, length)
#define f_macro_thread_locks_t_resize(status, locks, new_length) f_macro_memory_structure_t_resize(status, locks, f_thread_lock_t, new_length)
- #define f_macro_thread_locks_t_adjust(status, locks, new_length) f_macro_memory_structure_t_adjust(status, locks, f_thread_lock_t, new_length)
#endif // _di_f_thread_locks_t_
/**
#define f_macro_thread_mutexs_t_clear(mutexs) f_macro_memory_structure_t_clear(mutexs)
- #define f_macro_thread_mutexs_t_new(status, mutexs, length) f_macro_memory_structure_t_new(status, mutexs, f_thread_mutex_t, length)
+ #define f_macro_thread_mutexs_t_adjust(status, mutexs, length) f_macro_memory_structure_t_adjust(status, mutexs, f_thread_mutex_t, length)
- #define f_macro_thread_mutexs_t_delete(status, mutexs) f_macro_memory_structure_t_delete(status, mutexs, f_thread_mutex_t)
- #define f_macro_thread_mutexs_t_destroy(status, mutexs) f_macro_memory_structure_t_destroy(status, mutexs, f_thread_mutex_t)
+ #define f_macro_thread_mutexs_t_clear(mutexs) f_macro_memory_structure_t_clear(mutexs)
+
+ #define f_macro_thread_mutexs_t_decimate(status, mutexs) f_macro_memory_structure_decimate(status, mutexs, f_thread_mutex_t);
+ #define f_macro_thread_mutexs_t_decimate_by(status, mutexs, amount) f_macro_memory_structure_decimate_by(status, mutexs, f_thread_mutex_t, amount);
+
+ #define f_macro_thread_mutexs_t_decrease(status, mutexs) f_macro_memory_structure_decrease(status, mutexs, f_thread_mutex_t);
+ #define f_macro_thread_mutexs_t_decrease_by(status, mutexs, amount) f_macro_memory_structure_decrease_by(status, mutexs, f_thread_mutex_t, amount);
+ #define f_macro_thread_mutexs_t_delete(status, mutexs) f_macro_memory_structure_t_delete(status, mutexs, f_thread_mutex_t)
#define f_macro_thread_mutexs_t_delete_simple(mutexs) f_macro_memory_structure_t_delete_simple(mutexs, f_thread_mutex_t)
- #define f_macro_thread_mutexs_t_destroy_simple(mutexs) f_macro_memory_structure_t_destroy_simple(mutexs, f_thread_mutex_t)
+
+ #define f_macro_thread_mutexs_t_destroy(status, mutexs) f_macro_memory_structure_t_destroy(status, mutexs, f_thread_mutex_t)
+ #define f_macro_thread_mutexs_t_destroy_simple(mutexs) f_macro_memory_structure_t_destroy_simple(mutexs, f_thread_mutex_t)
+
+ #define f_macro_thread_mutexs_t_increase(status, mutexs) f_macro_memory_structure_increase(status, mutexs, f_thread_mutex_t);
+ #define f_macro_thread_mutexs_t_increase_by(status, mutexs, amount) f_macro_memory_structure_increase_by(status, mutexs, f_thread_mutex_t, amount);
+
+ #define f_macro_thread_mutexs_t_new(status, mutexs, length) f_macro_memory_structure_t_new(status, mutexs, f_thread_mutex_t, length)
#define f_macro_thread_mutexs_t_resize(status, mutexs, new_length) f_macro_memory_structure_t_resize(status, mutexs, f_thread_mutex_t, new_length)
- #define f_macro_thread_mutexs_t_adjust(status, mutexs, new_length) f_macro_memory_structure_t_adjust(status, mutexs, f_thread_mutex_t, new_length)
#endif // _di_f_thread_mutexs_t_
/**
#define f_thread_mutex_attributes_t_initialize { 0, 0, 0 }
+ #define f_macro_thread_mutex_attributes_t_adjust(status, mutex_attributes, length) f_macro_memory_structure_t_adjust(status, mutex_attributes, f_thread_mutex_attribute_t, length)
+
#define f_macro_thread_mutex_attributes_t_clear(mutex_attributes) f_macro_memory_structure_t_clear(mutex_attributes)
- #define f_macro_thread_mutex_attributes_t_new(status, mutex_attributes, length) f_macro_memory_structure_t_new(status, mutex_attributes, f_thread_mutex_attribute_t, length)
+ #define f_macro_thread_mutex_attributes_t_decimate(status, mutex_attributes) f_macro_memory_structure_decimate(status, mutex_attributes, f_thread_mutex_attribute_t);
+ #define f_macro_thread_mutex_attributes_t_decimate_by(status, mutex_attributes, amount) f_macro_memory_structure_decimate_by(status, mutex_attributes, f_thread_mutex_attribute_t, amount);
- #define f_macro_thread_mutex_attributes_t_delete(status, mutex_attributes) f_macro_memory_structure_t_delete(status, mutex_attributes, f_thread_mutex_attribute_t)
- #define f_macro_thread_mutex_attributes_t_destroy(status, mutex_attributes) f_macro_memory_structure_t_destroy(status, mutex_attributes, f_thread_mutex_attribute_t)
+ #define f_macro_thread_mutex_attributes_t_decrease(status, mutex_attributes) f_macro_memory_structure_decrease(status, mutex_attributes, f_thread_mutex_attribute_t);
+ #define f_macro_thread_mutex_attributes_t_decrease_by(status, mutex_attributes, amount) f_macro_memory_structure_decrease_by(status, mutex_attributes, f_thread_mutex_attribute_t, amount);
+ #define f_macro_thread_mutex_attributes_t_delete(status, mutex_attributes) f_macro_memory_structure_t_delete(status, mutex_attributes, f_thread_mutex_attribute_t)
#define f_macro_thread_mutex_attributes_t_delete_simple(mutex_attributes) f_macro_memory_structure_t_delete_simple(mutex_attributes, f_thread_mutex_attribute_t)
- #define f_macro_thread_mutex_attributes_t_destroy_simple(mutex_attributes) f_macro_memory_structure_t_destroy_simple(mutex_attributes, f_thread_mutex_attribute_t)
+
+ #define f_macro_thread_mutex_attributes_t_destroy(status, mutex_attributes) f_macro_memory_structure_t_destroy(status, mutex_attributes, f_thread_mutex_attribute_t)
+ #define f_macro_thread_mutex_attributes_t_destroy_simple(mutex_attributes) f_macro_memory_structure_t_destroy_simple(mutex_attributes, f_thread_mutex_attribute_t)
+
+ #define f_macro_thread_mutex_attributes_t_increase(status, mutex_attributes) f_macro_memory_structure_increase(status, mutex_attributes, f_thread_mutex_attribute_t);
+ #define f_macro_thread_mutex_attributes_t_increase_by(status, mutex_attributes, amount) f_macro_memory_structure_increase_by(status, mutex_attributes, f_thread_mutex_attribute_t, amount);
+
+ #define f_macro_thread_mutex_attributes_t_new(status, mutex_attributes, length) f_macro_memory_structure_t_new(status, mutex_attributes, f_thread_mutex_attribute_t, length)
#define f_macro_thread_mutex_attributes_t_resize(status, mutex_attributes, new_length) f_macro_memory_structure_t_resize(status, mutex_attributes, f_thread_mutex_attribute_t, new_length)
- #define f_macro_thread_mutex_attributes_t_adjust(status, mutex_attributes, new_length) f_macro_memory_structure_t_adjust(status, mutex_attributes, f_thread_mutex_attribute_t, new_length)
#endif // _di_f_thread_mutex_attributes_t_
/**
#define f_thread_onces_t_initialize { 0, 0, 0 }
+ #define f_macro_thread_onces_t_adjust(status, onces, length) f_macro_memory_structure_t_adjust(status, onces, f_thread_once_t, length)
+
#define f_macro_thread_onces_t_clear(onces) f_macro_memory_structure_t_clear(onces)
- #define f_macro_thread_onces_t_new(status, onces, length) f_macro_memory_structure_t_new(status, onces, f_thread_once_t, length)
+ #define f_macro_thread_onces_t_decimate(status, onces) f_macro_memory_structure_decimate(status, onces, f_thread_once_t);
+ #define f_macro_thread_onces_t_decimate_by(status, onces, amount) f_macro_memory_structure_decimate_by(status, onces, f_thread_once_t, amount);
- #define f_macro_thread_onces_t_delete(status, onces) f_macro_memory_structure_t_delete(status, onces, f_thread_once_t)
- #define f_macro_thread_onces_t_destroy(status, onces) f_macro_memory_structure_t_destroy(status, onces, f_thread_once_t)
+ #define f_macro_thread_onces_t_decrease(status, onces) f_macro_memory_structure_decrease(status, onces, f_thread_once_t);
+ #define f_macro_thread_onces_t_decrease_by(status, onces, amount) f_macro_memory_structure_decrease_by(status, onces, f_thread_once_t, amount);
+ #define f_macro_thread_onces_t_delete(status, onces) f_macro_memory_structure_t_delete(status, onces, f_thread_once_t)
#define f_macro_thread_onces_t_delete_simple(onces) f_macro_memory_structure_t_delete_simple(onces, f_thread_once_t)
- #define f_macro_thread_onces_t_destroy_simple(onces) f_macro_memory_structure_t_destroy_simple(onces, f_thread_once_t)
+
+ #define f_macro_thread_onces_t_destroy(status, onces) f_macro_memory_structure_t_destroy(status, onces, f_thread_once_t)
+ #define f_macro_thread_onces_t_destroy_simple(onces) f_macro_memory_structure_t_destroy_simple(onces, f_thread_once_t)
+
+ #define f_macro_thread_onces_t_increase(status, onces) f_macro_memory_structure_increase(status, onces, f_thread_once_t);
+ #define f_macro_thread_onces_t_increase_by(status, onces, amount) f_macro_memory_structure_increase_by(status, onces, f_thread_once_t, amount);
+
+ #define f_macro_thread_onces_t_new(status, onces, length) f_macro_memory_structure_t_new(status, onces, f_thread_once_t, length)
#define f_macro_thread_onces_t_resize(status, onces, new_length) f_macro_memory_structure_t_resize(status, onces, f_thread_once_t, new_length)
- #define f_macro_thread_onces_t_adjust(status, onces, new_length) f_macro_memory_structure_t_adjust(status, onces, f_thread_once_t, new_length)
#endif // _di_f_thread_onces_t_
/**
#define f_thread_sets_t_initialize { 0, 0, 0 }
+ #define f_macro_thread_sets_t_adjust(status, sets, length) f_macro_memory_structure_t_adjust(status, sets, f_thread_set_t, length)
+
#define f_macro_thread_sets_t_clear(sets) f_macro_memory_structure_t_clear(sets)
- #define f_macro_thread_sets_t_new(status, sets, length) f_macro_memory_structure_t_new(status, sets, f_thread_set_t, length)
+ #define f_macro_thread_sets_t_decimate(status, sets) f_macro_memory_structure_decimate(status, sets, f_thread_set_t);
+ #define f_macro_thread_sets_t_decimate_by(status, sets, amount) f_macro_memory_structure_decimate_by(status, sets, f_thread_set_t, amount);
- #define f_macro_thread_sets_t_delete(status, sets) f_macro_memory_structure_t_delete(status, sets, f_thread_set_t)
- #define f_macro_thread_sets_t_destroy(status, sets) f_macro_memory_structure_t_destroy(status, sets, f_thread_set_t)
+ #define f_macro_thread_sets_t_decrease(status, sets) f_macro_memory_structure_decrease(status, sets, f_thread_set_t);
+ #define f_macro_thread_sets_t_decrease_by(status, sets, amount) f_macro_memory_structure_decrease_by(status, sets, f_thread_set_t, amount);
+ #define f_macro_thread_sets_t_delete(status, sets) f_macro_memory_structure_t_delete(status, sets, f_thread_set_t)
#define f_macro_thread_sets_t_delete_simple(sets) f_macro_memory_structure_t_delete_simple(sets, f_thread_set_t)
- #define f_macro_thread_sets_t_destroy_simple(sets) f_macro_memory_structure_t_destroy_simple(sets, f_thread_set_t)
+
+ #define f_macro_thread_sets_t_destroy(status, sets) f_macro_memory_structure_t_destroy(status, sets, f_thread_set_t)
+ #define f_macro_thread_sets_t_destroy_simple(sets) f_macro_memory_structure_t_destroy_simple(sets, f_thread_set_t)
+
+ #define f_macro_thread_sets_t_increase(status, sets) f_macro_memory_structure_increase(status, sets, f_thread_set_t);
+ #define f_macro_thread_sets_t_increase_by(status, sets, amount) f_macro_memory_structure_increase_by(status, sets, f_thread_set_t, amount);
+
+ #define f_macro_thread_sets_t_new(status, sets, length) f_macro_memory_structure_t_new(status, sets, f_thread_set_t, length)
#define f_macro_thread_sets_t_resize(status, sets, new_length) f_macro_memory_structure_t_resize(status, sets, f_thread_set_t, new_length)
- #define f_macro_thread_sets_t_adjust(status, sets, new_length) f_macro_memory_structure_t_adjust(status, sets, f_thread_set_t, new_length)
#endif // _di_f_thread_sets_t_
#ifdef __cplusplus
#include "thread.h"
-#include "private-thread.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef _di_f_thread_at_fork_
- f_return_status f_thread_at_fork(void (*before) (void), void (*after_parent) (void), void (*after_child) (void)) {
+ f_status_t f_thread_at_fork(void (*before) (void), void (*after_parent) (void), void (*after_child) (void)) {
#ifndef _di_level_0_parameter_checking_
if (!before) return F_status_set_error(F_parameter);
if (!after_parent) return F_status_set_error(F_parameter);
#endif // _di_f_thread_key_create_
#ifndef _di_f_thread_attribute_affinity_get_
- f_return_status f_thread_attribute_affinity_get(const f_thread_attribute_t attribute, const size_t affinity_size, cpu_set_t *affinity_set) {
+ f_status_t f_thread_attribute_affinity_get(const f_thread_attribute_t attribute, const size_t affinity_size, cpu_set_t *affinity_set) {
#ifndef _di_level_0_parameter_checking_
if (!affinity_set) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_affinity_get_
#ifndef _di_f_thread_attribute_affinity_set_
- f_return_status f_thread_attribute_affinity_set(const size_t affinity_size, const cpu_set_t *affinity_set, f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_affinity_set(const size_t affinity_size, const cpu_set_t *affinity_set, f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_affinity_set_
#ifndef _di_f_thread_attribute_create_
- f_return_status f_thread_attribute_create(f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_create(f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_create_
#ifndef _di_f_thread_attribute_default_get_
- f_return_status f_thread_attribute_default_get(f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_default_get(f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_default_get_
#ifndef _di_f_thread_attribute_default_set_
- f_return_status f_thread_attribute_default_set(f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_default_set(f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_default_set_
#ifndef _di_f_thread_attribute_delete_
- f_return_status f_thread_attribute_delete(f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_delete(f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_delete_
#ifndef _di_f_thread_attribute_detach_get_
- f_return_status f_thread_attribute_detach_get(const f_thread_attribute_t attribute, int *state) {
+ f_status_t f_thread_attribute_detach_get(const f_thread_attribute_t attribute, int *state) {
#ifndef _di_level_0_parameter_checking_
if (!state) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_detach_get_
#ifndef _di_f_thread_attribute_detach_set_
- f_return_status f_thread_attribute_detach_set(const int state, f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_detach_set(const int state, f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_detach_set_
#ifndef _di_f_thread_attribute_guard_get_
- f_return_status f_thread_attribute_guard_get(const f_thread_attribute_t attribute, size_t *guard) {
+ f_status_t f_thread_attribute_guard_get(const f_thread_attribute_t attribute, size_t *guard) {
#ifndef _di_level_0_parameter_checking_
if (!guard) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_guard_get_
#ifndef _di_f_thread_attribute_guard_set_
- f_return_status f_thread_attribute_guard_set(const size_t guard, f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_guard_set(const size_t guard, f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_guard_set_
#ifndef _di_f_thread_attribute_scheduler_inherit_get_
- f_return_status f_thread_attribute_scheduler_inherit_get(const f_thread_attribute_t attribute, int *inherit) {
+ f_status_t f_thread_attribute_scheduler_inherit_get(const f_thread_attribute_t attribute, int *inherit) {
#ifndef _di_level_0_parameter_checking_
if (!inherit) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_scheduler_inherit_get_
#ifndef _di_f_thread_attribute_scheduler_inherit_set_
- f_return_status f_thread_attribute_scheduler_inherit_set(const int inherit, f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_scheduler_inherit_set(const int inherit, f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_scheduler_inherit_set_
#ifndef _di_f_thread_attribute_scheduler_parameter_get_
- f_return_status f_thread_attribute_scheduler_parameter_get(const f_thread_attribute_t attribute, struct sched_param *parameter) {
+ f_status_t f_thread_attribute_scheduler_parameter_get(const f_thread_attribute_t attribute, struct sched_param *parameter) {
#ifndef _di_level_0_parameter_checking_
if (!parameter) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_scheduler_parameter_get_
#ifndef _di_f_thread_attribute_scheduler_parameter_set_
- f_return_status f_thread_attribute_scheduler_parameter_set(const struct sched_param parameter, f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_scheduler_parameter_set(const struct sched_param parameter, f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_scheduler_parameter_set_
#ifndef _di_f_thread_attribute_scheduler_policy_get_
- f_return_status f_thread_attribute_scheduler_policy_get(const f_thread_attribute_t attribute, int *policy) {
+ f_status_t f_thread_attribute_scheduler_policy_get(const f_thread_attribute_t attribute, int *policy) {
#ifndef _di_level_0_parameter_checking_
if (!policy) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_scheduler_policy_get_
#ifndef _di_f_thread_attribute_scheduler_policy_set_
- f_return_status f_thread_attribute_scheduler_policy_set(const int policy, f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_scheduler_policy_set(const int policy, f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_scheduler_policy_set_
#ifndef _di_f_thread_attribute_scope_get_
- f_return_status f_thread_attribute_scope_get(const f_thread_attribute_t attribute, int *scope) {
+ f_status_t f_thread_attribute_scope_get(const f_thread_attribute_t attribute, int *scope) {
#ifndef _di_level_0_parameter_checking_
if (!scope) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_scope_get_
#ifndef _di_f_thread_attribute_scope_set_
- f_return_status f_thread_attribute_scope_set(const int scope, f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_scope_set(const int scope, f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_scope_set_
#ifndef _di_f_thread_attribute_stack_get_
- f_return_status f_thread_attribute_stack_get(const f_thread_attribute_t attribute, size_t *stack_size, void **stack) {
+ f_status_t f_thread_attribute_stack_get(const f_thread_attribute_t attribute, size_t *stack_size, void **stack) {
#ifndef _di_level_0_parameter_checking_
if (!stack) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_attribute_stack_get_
#ifndef _di_f_thread_attribute_stack_set_
- f_return_status f_thread_attribute_stack_set(const size_t stack_size, void * const stack, f_thread_attribute_t *attribute) {
+ f_status_t f_thread_attribute_stack_set(const size_t stack_size, void * const stack, f_thread_attribute_t *attribute) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
}
#endif // _di_f_thread_attribute_stack_set_
-#ifndef _di_f_thread_attributes_decrease_
- f_return_status f_thread_attributes_decrease(f_thread_attributes_t *attributes) {
- #ifndef _di_level_0_parameter_checking_
- if (!attributes) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (attributes->size > 1) {
- return private_f_thread_attributes_resize(attributes->size - 1, attributes);
- }
-
- return private_f_thread_attributes_delete(attributes);
- }
-#endif // _di_f_thread_attributes_decrease_
-
-#ifndef _di_f_thread_attributes_decrease_by_
- f_return_status f_thread_attributes_decrease_by(const f_array_length_t amount, f_thread_attributes_t *attributes) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!attributes) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (attributes->size - amount > 0) {
- return private_f_thread_attributes_resize(attributes->size - amount, attributes);
- }
-
- return private_f_thread_attributes_delete(attributes);
- }
-#endif // _di_f_thread_attributes_decrease_by_
-
-#ifndef _di_f_thread_attributes_delete_
- f_return_status f_thread_attributes_delete(f_thread_attributes_t *attributes) {
- #ifndef _di_level_0_parameter_checking_
- if (!attributes) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_thread_attributes_delete(attributes);
- }
-#endif // _di_f_thread_attributes_delete_
-
-#ifndef _di_f_thread_attributes_increase_
- f_return_status f_thread_attributes_increase(f_thread_attributes_t *attributes) {
- #ifndef _di_level_0_parameter_checking_
- if (!attributes) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (attributes->used + 1 > attributes->size) {
- f_array_length_t size = attributes->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (attributes->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_thread_attributes_resize(size, attributes);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_attributes_increase_
-
-#ifndef _di_f_thread_attributes_increase_by_
- f_return_status f_thread_attributes_increase_by(const f_array_length_t amount, f_thread_attributes_t *attributes) {
- #ifndef _di_level_0_parameter_checking_
- if (!attributes) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (attributes->used + amount > attributes->size) {
- if (attributes->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_thread_attributes_resize(attributes->used + amount, attributes);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_attributes_increase_by_
-
#ifndef _di_f_thread_caller_
f_thread_id_t f_thread_caller() {
return pthread_self();
#endif // _di_f_thread_caller_
#ifndef _di_f_thread_cancel_
- f_return_status f_thread_cancel(const f_thread_id_t id) {
+ f_status_t f_thread_cancel(const f_thread_id_t id) {
const int error = pthread_cancel(id);
#endif // _di_f_thread_cancel_
#ifndef _di_f_thread_cancel_state_set_
- f_return_status f_thread_cancel_state_set(const int state, int *previous) {
+ f_status_t f_thread_cancel_state_set(const int state, int *previous) {
const int error = pthread_setcancelstate(state, previous);
#endif // _di_f_thread_cancel_state_set_
#ifndef _di_f_thread_cancel_test_
- f_return_status f_thread_cancel_test() {
+ f_status_t f_thread_cancel_test() {
pthread_testcancel();
#endif // _di_f_thread_cancel_test_
#ifndef _di_f_thread_cancel_type_set_
- f_return_status f_thread_cancel_type_set(const int type, int *previous) {
+ f_status_t f_thread_cancel_type_set(const int type, int *previous) {
const int error = pthread_setcanceltype(type, previous);
#endif // _di_f_thread_cancel_type_set_
#ifndef _di_f_thread_clock_get_id_
- f_return_status f_thread_clock_get_id(const f_thread_id_t id_thread, clockid_t *id_clock) {
+ f_status_t f_thread_clock_get_id(const f_thread_id_t id_thread, clockid_t *id_clock) {
const int error = pthread_getcpuclockid(id_thread, id_clock);
#endif // _di_f_thread_clock_get_id_
#ifndef _di_f_thread_compare_
- f_return_status f_thread_compare(const f_thread_id_t id1, const f_thread_id_t id2) {
+ f_status_t f_thread_compare(const f_thread_id_t id1, const f_thread_id_t id2) {
if (pthread_equal(id1, id2)) {
return F_equal_to;
#endif // _di_f_thread_compare_
#ifndef _di_f_thread_condition_unblock_all_
- f_return_status f_thread_condition_unblock_all(f_thread_condition_t *condition) {
+ f_status_t f_thread_condition_unblock_all(f_thread_condition_t *condition) {
#ifndef _di_level_0_parameter_checking_
if (!condition) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_condition_unblock_all_
#ifndef _di_f_thread_condition_unblock_any_
- f_return_status f_thread_condition_unblock_any(f_thread_condition_t *condition) {
+ f_status_t f_thread_condition_unblock_any(f_thread_condition_t *condition) {
#ifndef _di_level_0_parameter_checking_
if (!condition) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_condition_unblock_any_
#ifndef _di_f_thread_condition_wait_
- f_return_status f_thread_condition_wait(f_thread_condition_t *condition, f_thread_mutex_t *mutex) {
+ f_status_t f_thread_condition_wait(f_thread_condition_t *condition, f_thread_mutex_t *mutex) {
#ifndef _di_level_0_parameter_checking_
if (!condition) return F_status_set_error(F_parameter);
if (!mutex) return F_status_set_error(F_parameter);
#endif // _di_f_thread_condition_wait_
#ifndef _di_f_thread_condition_wait_timed_
- f_return_status f_thread_condition_wait_timed(const struct timespec *wait, f_thread_condition_t *condition, f_thread_mutex_t *mutex) {
+ f_status_t f_thread_condition_wait_timed(const struct timespec *wait, f_thread_condition_t *condition, f_thread_mutex_t *mutex) {
#ifndef _di_level_0_parameter_checking_
if (!condition) return F_status_set_error(F_parameter);
if (!mutex) return F_status_set_error(F_parameter);
}
#endif // _di_f_thread_condition_wait_timed_
-#ifndef _di_f_thread_conditions_decrease_
- f_return_status f_thread_conditions_decrease(f_thread_conditions_t *conditions) {
- #ifndef _di_level_0_parameter_checking_
- if (!conditions) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (conditions->size > 1) {
- return private_f_thread_conditions_resize(conditions->size - 1, conditions);
- }
-
- return private_f_thread_conditions_delete(conditions);
- }
-#endif // _di_f_thread_conditions_decrease_
-
-#ifndef _di_f_thread_conditions_decrease_by_
- f_return_status f_thread_conditions_decrease_by(const f_array_length_t amount, f_thread_conditions_t *conditions) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!conditions) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (conditions->size - amount > 0) {
- return private_f_thread_conditions_resize(conditions->size - amount, conditions);
- }
-
- return private_f_thread_conditions_delete(conditions);
- }
-#endif // _di_f_thread_conditions_decrease_by_
-
-#ifndef _di_f_thread_conditions_delete_
- f_return_status f_thread_conditions_delete(f_thread_conditions_t *conditions) {
- #ifndef _di_level_0_parameter_checking_
- if (!conditions) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_thread_conditions_delete(conditions);
- }
-#endif // _di_f_thread_conditions_delete_
-
-#ifndef _di_f_thread_conditions_increase_
- f_return_status f_thread_conditions_increase(f_thread_conditions_t *conditions) {
- #ifndef _di_level_0_parameter_checking_
- if (!conditions) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (conditions->used + 1 > conditions->size) {
- f_array_length_t size = conditions->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (conditions->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_thread_conditions_resize(size, conditions);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_conditions_increase_
-
-#ifndef _di_f_thread_conditions_increase_by_
- f_return_status f_thread_conditions_increase_by(const f_array_length_t amount, f_thread_conditions_t *conditions) {
- #ifndef _di_level_0_parameter_checking_
- if (!conditions) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (conditions->used + amount > conditions->size) {
- if (conditions->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_thread_conditions_resize(conditions->used + amount, conditions);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_conditions_increase_by_
-
#ifndef _di_f_thread_create_
- f_return_status f_thread_create(const f_thread_attribute_t *attribute, f_thread_id_t *id, void *(*routine) (void *), void *argument) {
+ f_status_t f_thread_create(const f_thread_attribute_t *attribute, f_thread_id_t *id, void *(*routine) (void *), void *argument) {
#ifndef _di_level_0_parameter_checking_
if (!attribute) return F_status_set_error(F_parameter);
if (!id) return F_status_set_error(F_parameter);
#endif // _di_f_thread_create_
#ifndef _di_f_thread_exit_
- f_return_status f_thread_exit(int *result) {
+ f_status_t f_thread_exit(int *result) {
#ifndef _di_level_0_parameter_checking_
if (!result) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
}
#endif // _di_f_thread_exit_
-#ifndef _di_f_thread_ids_decrease_
- f_return_status f_thread_ids_decrease(f_thread_ids_t *ids) {
- #ifndef _di_level_0_parameter_checking_
- if (!ids) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (ids->size > 1) {
- return private_f_thread_ids_resize(ids->size - 1, ids);
- }
-
- return private_f_thread_ids_delete(ids);
- }
-#endif // _di_f_thread_ids_decrease_
-
-#ifndef _di_f_thread_ids_decrease_by_
- f_return_status f_thread_ids_decrease_by(const f_array_length_t amount, f_thread_ids_t *ids) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!ids) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (ids->size - amount > 0) {
- return private_f_thread_ids_resize(ids->size - amount, ids);
- }
-
- return private_f_thread_ids_delete(ids);
- }
-#endif // _di_f_thread_ids_decrease_by_
-
-#ifndef _di_f_thread_ids_delete_
- f_return_status f_thread_ids_delete(f_thread_ids_t *ids) {
- #ifndef _di_level_0_parameter_checking_
- if (!ids) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_thread_ids_delete(ids);
- }
-#endif // _di_f_thread_ids_delete_
-
-#ifndef _di_f_thread_ids_increase_
- f_return_status f_thread_ids_increase(f_thread_ids_t *ids) {
- #ifndef _di_level_0_parameter_checking_
- if (!ids) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (ids->used + 1 > ids->size) {
- f_array_length_t size = ids->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (ids->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_thread_ids_resize(size, ids);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_ids_increase_
-
-#ifndef _di_f_thread_ids_increase_by_
- f_return_status f_thread_ids_increase_by(const f_array_length_t amount, f_thread_ids_t *ids) {
- #ifndef _di_level_0_parameter_checking_
- if (!ids) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (ids->used + amount > ids->size) {
- if (ids->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_thread_ids_resize(ids->used + amount, ids);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_ids_increase_by_
-
#ifndef _di_f_thread_join_
- f_return_status f_thread_join(const f_thread_id_t id, void **result) {
+ f_status_t f_thread_join(const f_thread_id_t id, void **result) {
const int error = pthread_join(id, result);
#endif // _di_f_thread_join_
#ifndef _di_f_thread_join_try_
- f_return_status f_thread_try(const f_thread_id_t id, void **result) {
+ f_status_t f_thread_try(const f_thread_id_t id, void **result) {
const int error = pthread_tryjoin_np(id, result);
#endif // _di_f_thread_join_try_
#ifndef _di_f_thread_join_timed_
- f_return_status f_thread_timed(const f_thread_id_t id, const struct timespec wait, void **result) {
+ f_status_t f_thread_timed(const f_thread_id_t id, const struct timespec wait, void **result) {
const int error = pthread_timedjoin_np(id, result, &wait);
#endif // _di_f_thread_join_timed_
#ifndef _di_f_thread_key_create_
- f_return_status f_thread_key_create(void (*routine) (void *), f_thread_key_t *key) {
+ f_status_t f_thread_key_create(void (*routine) (void *), f_thread_key_t *key) {
#ifndef _di_level_0_parameter_checking_
if (!routine) return F_status_set_error(F_parameter);
if (!key) return F_status_set_error(F_parameter);
#endif // _di_f_thread_key_create_
#ifndef _di_f_thread_key_get_
- f_return_status f_thread_key_get(const f_thread_key_t key, void **value) {
+ f_status_t f_thread_key_get(const f_thread_key_t key, void **value) {
#ifndef _di_level_0_parameter_checking_
if (!value) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_key_get_
#ifndef _di_f_thread_key_set_
- f_return_status f_thread_key_set(const f_thread_key_t key, const void *value) {
+ f_status_t f_thread_key_set(const f_thread_key_t key, const void *value) {
#ifndef _di_level_0_parameter_checking_
if (!value) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
}
#endif // _di_f_thread_key_set_
-#ifndef _di_f_thread_keys_decrease_
- f_return_status f_thread_keys_decrease(f_thread_keys_t *keys) {
- #ifndef _di_level_0_parameter_checking_
- if (!keys) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (keys->size > 1) {
- return private_f_thread_keys_resize(keys->size - 1, keys);
- }
-
- return private_f_thread_keys_delete(keys);
- }
-#endif // _di_f_thread_keys_decrease_
-
-#ifndef _di_f_thread_keys_decrease_by_
- f_return_status f_thread_keys_decrease_by(const f_array_length_t amount, f_thread_keys_t *keys) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!keys) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (keys->size - amount > 0) {
- return private_f_thread_keys_resize(keys->size - amount, keys);
- }
-
- return private_f_thread_keys_delete(keys);
- }
-#endif // _di_f_thread_keys_decrease_by_
-
-#ifndef _di_f_thread_keys_delete_
- f_return_status f_thread_keys_delete(f_thread_keys_t *keys) {
- #ifndef _di_level_0_parameter_checking_
- if (!keys) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_thread_keys_delete(keys);
- }
-#endif // _di_f_thread_keys_delete_
-
-#ifndef _di_f_thread_keys_increase_
- f_return_status f_thread_keys_increase(f_thread_keys_t *keys) {
- #ifndef _di_level_0_parameter_checking_
- if (!keys) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (keys->used + 1 > keys->size) {
- f_array_length_t size = keys->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (keys->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_thread_keys_resize(size, keys);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_keys_increase_
-
-#ifndef _di_f_thread_keys_increase_by_
- f_return_status f_thread_keys_increase_by(const f_array_length_t amount, f_thread_keys_t *keys) {
- #ifndef _di_level_0_parameter_checking_
- if (!keys) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (keys->used + amount > keys->size) {
- if (keys->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_thread_keys_resize(keys->used + amount, keys);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_keys_increase_by_
-
#ifndef _di_f_thread_lock_
- f_return_status f_thread_lock(f_thread_lock_t *lock) {
+ f_status_t f_thread_lock(f_thread_lock_t *lock) {
#ifndef _di_level_0_parameter_checking_
if (!lock) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_lock_
#ifndef _di_f_thread_lock_try_
- f_return_status f_thread_lock_try(f_thread_lock_t *lock) {
+ f_status_t f_thread_lock_try(f_thread_lock_t *lock) {
#ifndef _di_level_0_parameter_checking_
if (!lock) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
}
#endif // _di_f_thread_lock_try_
-#ifndef _di_f_thread_locks_decrease_
- f_return_status f_thread_locks_decrease(f_thread_locks_t *locks) {
- #ifndef _di_level_0_parameter_checking_
- if (!locks) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (locks->size > 1) {
- return private_f_thread_locks_resize(locks->size - 1, locks);
- }
-
- return private_f_thread_locks_delete(locks);
- }
-#endif // _di_f_thread_locks_decrease_
-
-#ifndef _di_f_thread_locks_decrease_by_
- f_return_status f_thread_locks_decrease_by(const f_array_length_t amount, f_thread_locks_t *locks) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!locks) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (locks->size - amount > 0) {
- return private_f_thread_locks_resize(locks->size - amount, locks);
- }
-
- return private_f_thread_locks_delete(locks);
- }
-#endif // _di_f_thread_locks_decrease_by_
-
-#ifndef _di_f_thread_locks_delete_
- f_return_status f_thread_locks_delete(f_thread_locks_t *locks) {
- #ifndef _di_level_0_parameter_checking_
- if (!locks) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_thread_locks_delete(locks);
- }
-#endif // _di_f_thread_locks_delete_
-
-#ifndef _di_f_thread_locks_increase_
- f_return_status f_thread_locks_increase(f_thread_locks_t *locks) {
- #ifndef _di_level_0_parameter_checking_
- if (!locks) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (locks->used + 1 > locks->size) {
- f_array_length_t size = locks->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (locks->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_thread_locks_resize(size, locks);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_locks_increase_
-
-#ifndef _di_f_thread_locks_increase_by_
- f_return_status f_thread_locks_increase_by(const f_array_length_t amount, f_thread_locks_t *locks) {
- #ifndef _di_level_0_parameter_checking_
- if (!locks) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (locks->used + amount > locks->size) {
- if (locks->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_thread_locks_resize(locks->used + amount, locks);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_locks_increase_by_
-
#ifndef _di_f_thread_mutex_create_
- f_return_status f_thread_mutex_create(f_thread_mutex_attribute_t * const attribute, f_thread_mutex_t *mutex) {
+ f_status_t f_thread_mutex_create(f_thread_mutex_attribute_t * const attribute, f_thread_mutex_t *mutex) {
#ifndef _di_level_0_parameter_checking_
if (!mutex) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_mutex_create_
#ifndef _di_f_thread_mutex_delete_
- f_return_status f_thread_mutex_delete(f_thread_mutex_t *mutex) {
+ f_status_t f_thread_mutex_delete(f_thread_mutex_t *mutex) {
#ifndef _di_level_0_parameter_checking_
if (!mutex) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_mutex_delete_
#ifndef _di_f_thread_mutex_lock_
- f_return_status f_thread_mutex_lock(f_thread_mutex_t *mutex) {
+ f_status_t f_thread_mutex_lock(f_thread_mutex_t *mutex) {
#ifndef _di_level_0_parameter_checking_
if (!mutex) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_mutex_lock_
#ifndef _di_f_thread_mutex_lock_try_
- f_return_status f_thread_mutex_lock_try(f_thread_mutex_t *mutex) {
+ f_status_t f_thread_mutex_lock_try(f_thread_mutex_t *mutex) {
#ifndef _di_level_0_parameter_checking_
if (!mutex) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_mutex_lock_try_
#ifndef _di_f_thread_mutex_unlock_
- f_return_status f_thread_mutex_unlock(f_thread_mutex_t *mutex) {
+ f_status_t f_thread_mutex_unlock(f_thread_mutex_t *mutex) {
#ifndef _di_level_0_parameter_checking_
if (!mutex) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
}
#endif // _di_f_thread_mutex_unlock_
-#ifndef _di_f_thread_mutexs_decrease_
- f_return_status f_thread_mutexs_decrease(f_thread_mutexs_t *mutexs) {
- #ifndef _di_level_0_parameter_checking_
- if (!mutexs) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (mutexs->size > 1) {
- return private_f_thread_mutexs_resize(mutexs->size - 1, mutexs);
- }
-
- return private_f_thread_mutexs_delete(mutexs);
- }
-#endif // _di_f_thread_mutexs_decrease_
-
-#ifndef _di_f_thread_mutexs_decrease_by_
- f_return_status f_thread_mutexs_decrease_by(const f_array_length_t amount, f_thread_mutexs_t *mutexs) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!mutexs) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (mutexs->size - amount > 0) {
- return private_f_thread_mutexs_resize(mutexs->size - amount, mutexs);
- }
-
- return private_f_thread_mutexs_delete(mutexs);
- }
-#endif // _di_f_thread_mutexs_decrease_by_
-
-#ifndef _di_f_thread_mutexs_delete_
- f_return_status f_thread_mutexs_delete(f_thread_mutexs_t *mutexs) {
- #ifndef _di_level_0_parameter_checking_
- if (!mutexs) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_thread_mutexs_delete(mutexs);
- }
-#endif // _di_f_thread_mutexs_delete_
-
-#ifndef _di_f_thread_mutexs_increase_
- f_return_status f_thread_mutexs_increase(f_thread_mutexs_t *mutexs) {
- #ifndef _di_level_0_parameter_checking_
- if (!mutexs) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (mutexs->used + 1 > mutexs->size) {
- f_array_length_t size = mutexs->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (mutexs->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_thread_mutexs_resize(size, mutexs);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_mutexs_increase_
-
-#ifndef _di_f_thread_mutexs_increase_by_
- f_return_status f_thread_mutexs_increase_by(const f_array_length_t amount, f_thread_mutexs_t *mutexs) {
- #ifndef _di_level_0_parameter_checking_
- if (!mutexs) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (mutexs->used + amount > mutexs->size) {
- if (mutexs->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_thread_mutexs_resize(mutexs->used + amount, mutexs);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_mutexs_increase_by_
-
-#ifndef _di_f_thread_mutex_attributes_decrease_
- f_return_status f_thread_mutex_attributes_decrease(f_thread_mutex_attributes_t *mutex_attributes) {
- #ifndef _di_level_0_parameter_checking_
- if (!mutex_attributes) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (mutex_attributes->size > 1) {
- return private_f_thread_mutex_attributes_resize(mutex_attributes->size - 1, mutex_attributes);
- }
-
- return private_f_thread_mutex_attributes_delete(mutex_attributes);
- }
-#endif // _di_f_thread_mutex_attributes_decrease_
-
-#ifndef _di_f_thread_mutex_attributes_decrease_by_
- f_return_status f_thread_mutex_attributes_decrease_by(const f_array_length_t amount, f_thread_mutex_attributes_t *mutex_attributes) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!mutex_attributes) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (mutex_attributes->size - amount > 0) {
- return private_f_thread_mutex_attributes_resize(mutex_attributes->size - amount, mutex_attributes);
- }
-
- return private_f_thread_mutex_attributes_delete(mutex_attributes);
- }
-#endif // _di_f_thread_mutex_attributes_decrease_by_
-
-#ifndef _di_f_thread_mutex_attributes_delete_
- f_return_status f_thread_mutex_attributes_delete(f_thread_mutex_attributes_t *mutex_attributes) {
- #ifndef _di_level_0_parameter_checking_
- if (!mutex_attributes) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_thread_mutex_attributes_delete(mutex_attributes);
- }
-#endif // _di_f_thread_mutex_attributes_delete_
-
-#ifndef _di_f_thread_mutex_attributes_increase_
- f_return_status f_thread_mutex_attributes_increase(f_thread_mutex_attributes_t *mutex_attributes) {
- #ifndef _di_level_0_parameter_checking_
- if (!mutex_attributes) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (mutex_attributes->used + 1 > mutex_attributes->size) {
- f_array_length_t size = mutex_attributes->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (mutex_attributes->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_thread_mutex_attributes_resize(size, mutex_attributes);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_mutex_attributes_increase_
-
-#ifndef _di_f_thread_mutex_attributes_increase_by_
- f_return_status f_thread_mutex_attributes_increase_by(const f_array_length_t amount, f_thread_mutex_attributes_t *mutex_attributes) {
- #ifndef _di_level_0_parameter_checking_
- if (!mutex_attributes) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (mutex_attributes->used + amount > mutex_attributes->size) {
- if (mutex_attributes->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_thread_mutex_attributes_resize(mutex_attributes->used + amount, mutex_attributes);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_mutex_attributes_increase_by_
-
#ifndef _di_f_thread_once_
- f_return_status f_thread_once(void (*routine) (void), f_thread_once_t *once) {
+ f_status_t f_thread_once(void (*routine) (void), f_thread_once_t *once) {
#ifndef _di_level_0_parameter_checking_
if (!routine) return F_status_set_error(F_parameter);
if (!once) return F_status_set_error(F_parameter);
}
#endif // _di_f_thread_once_
-#ifndef _di_f_thread_onces_decrease_
- f_return_status f_thread_onces_decrease(f_thread_onces_t *onces) {
- #ifndef _di_level_0_parameter_checking_
- if (!onces) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (onces->size > 1) {
- return private_f_thread_onces_resize(onces->size - 1, onces);
- }
-
- return private_f_thread_onces_delete(onces);
- }
-#endif // _di_f_thread_onces_decrease_
-
-#ifndef _di_f_thread_onces_decrease_by_
- f_return_status f_thread_onces_decrease_by(const f_array_length_t amount, f_thread_onces_t *onces) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!onces) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (onces->size - amount > 0) {
- return private_f_thread_onces_resize(onces->size - amount, onces);
- }
-
- return private_f_thread_onces_delete(onces);
- }
-#endif // _di_f_thread_onces_decrease_by_
-
-#ifndef _di_f_thread_onces_delete_
- f_return_status f_thread_onces_delete(f_thread_onces_t *onces) {
- #ifndef _di_level_0_parameter_checking_
- if (!onces) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_thread_onces_delete(onces);
- }
-#endif // _di_f_thread_onces_delete_
-
-#ifndef _di_f_thread_onces_increase_
- f_return_status f_thread_onces_increase(f_thread_onces_t *onces) {
- #ifndef _di_level_0_parameter_checking_
- if (!onces) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (onces->used + 1 > onces->size) {
- f_array_length_t size = onces->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (onces->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_thread_onces_resize(size, onces);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_onces_increase_
-
-#ifndef _di_f_thread_onces_increase_by_
- f_return_status f_thread_onces_increase_by(const f_array_length_t amount, f_thread_onces_t *onces) {
- #ifndef _di_level_0_parameter_checking_
- if (!onces) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (onces->used + amount > onces->size) {
- if (onces->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_thread_onces_resize(onces->used + amount, onces);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_onces_increase_by_
-
-#ifndef _di_f_thread_sets_decrease_
- f_return_status f_thread_sets_decrease(f_thread_sets_t *sets) {
- #ifndef _di_level_0_parameter_checking_
- if (!sets) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (sets->size > 1) {
- return private_f_thread_sets_resize(sets->size - 1, sets);
- }
-
- return private_f_thread_sets_delete(sets);
- }
-#endif // _di_f_thread_sets_decrease_
-
-#ifndef _di_f_thread_sets_decrease_by_
- f_return_status f_thread_sets_decrease_by(const f_array_length_t amount, f_thread_sets_t *sets) {
- #ifndef _di_level_0_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!sets) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (sets->size - amount > 0) {
- return private_f_thread_sets_resize(sets->size - amount, sets);
- }
-
- return private_f_thread_sets_delete(sets);
- }
-#endif // _di_f_thread_sets_decrease_by_
-
-#ifndef _di_f_thread_sets_delete_
- f_return_status f_thread_sets_delete(f_thread_sets_t *sets) {
- #ifndef _di_level_0_parameter_checking_
- if (!sets) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- return private_f_thread_sets_delete(sets);
- }
-#endif // _di_f_thread_sets_delete_
-
-#ifndef _di_f_thread_sets_increase_
- f_return_status f_thread_sets_increase(f_thread_sets_t *sets) {
- #ifndef _di_level_0_parameter_checking_
- if (!sets) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (sets->used + 1 > sets->size) {
- f_array_length_t size = sets->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (sets->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_f_thread_sets_resize(size, sets);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_sets_increase_
-
-#ifndef _di_f_thread_sets_increase_by_
- f_return_status f_thread_sets_increase_by(const f_array_length_t amount, f_thread_sets_t *sets) {
- #ifndef _di_level_0_parameter_checking_
- if (!sets) return F_status_set_error(F_parameter);
- #endif // _di_level_0_parameter_checking_
-
- if (sets->used + amount > sets->size) {
- if (sets->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_f_thread_sets_resize(sets->used + amount, sets);
- }
-
- return F_none;
- }
-#endif // _di_f_thread_sets_increase_by_
-
#ifndef _di_f_thread_signal_
- f_return_status f_thread_signal(const f_thread_id_t id, const int signal) {
+ f_status_t f_thread_signal(const f_thread_id_t id, const int signal) {
const int error = pthread_kill(id, signal);
#endif // _di_f_thread_signal_
#ifndef _di_f_thread_signal_mask_
- f_return_status f_thread_signal_mask(const int how, const sigset_t *next, sigset_t *current) {
+ f_status_t f_thread_signal_mask(const int how, const sigset_t *next, sigset_t *current) {
#ifndef _di_level_0_parameter_checking_
if (!next && !current) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_thread_signal_mask_
#ifndef _di_f_thread_signal_queue_
- f_return_status f_thread_signal_queue(const f_thread_id_t id, const int signal, const union sigval value) {
+ f_status_t f_thread_signal_queue(const f_thread_id_t id, const int signal, const union sigval value) {
const int error = pthread_sigqueue(id, signal, value);
* @see pthread_atfork()
*/
#ifndef _di_f_thread_at_fork_
- extern f_return_status f_thread_at_fork(void (*before) (void), void (*after_parent) (void), void (*after_child) (void));
+ extern f_status_t f_thread_at_fork(void (*before) (void), void (*after_parent) (void), void (*after_child) (void));
#endif // _di_f_thread_at_fork_
/**
* @see pthread_attr_getaffinity_np()
*/
#ifndef _di_f_thread_attribute_affinity_get_
- extern f_return_status f_thread_attribute_affinity_get(const f_thread_attribute_t attribute, const size_t affinity_size, cpu_set_t *affinity_set);
+ extern f_status_t f_thread_attribute_affinity_get(const f_thread_attribute_t attribute, const size_t affinity_size, cpu_set_t *affinity_set);
#endif // _di_f_thread_attribute_affinity_get_
/**
* @see pthread_attr_setaffinity_np()
*/
#ifndef _di_f_thread_attribute_affinity_set_
- extern f_return_status f_thread_attribute_affinity_set(const size_t affinity_size, const cpu_set_t *affinity_set, f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_affinity_set(const size_t affinity_size, const cpu_set_t *affinity_set, f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_affinity_set_
/**
* @see pthread_attr_init()
*/
#ifndef _di_f_thread_attribute_create_
- extern f_return_status f_thread_attribute_create(f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_create(f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_create_
/**
* @see pthread_getattr_default_np()
*/
#ifndef _di_f_thread_attribute_default_get_
- extern f_return_status f_thread_attribute_default_get(f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_default_get(f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_default_get_
/**
* @see pthread_setattr_default_np()
*/
#ifndef _di_f_thread_attribute_default_set_
- extern f_return_status f_thread_attribute_default_set(f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_default_set(f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_default_set_
/**
* @see pthread_attr_destroy()
*/
#ifndef _di_f_thread_attribute_delete_
- extern f_return_status f_thread_attribute_delete(f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_delete(f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_delete_
/**
* @see pthread_attr_getdetachstate()
*/
#ifndef _di_f_thread_attribute_detach_get_
- extern f_return_status f_thread_attribute_detach_get(const f_thread_attribute_t attribute, int *state);
+ extern f_status_t f_thread_attribute_detach_get(const f_thread_attribute_t attribute, int *state);
#endif // _di_f_thread_attribute_detach_get_
/**
* @see pthread_attr_setdetachstate()
*/
#ifndef _di_f_thread_attribute_detach_set_
- extern f_return_status f_thread_attribute_detach_set(const int state, f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_detach_set(const int state, f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_detach_set_
/**
* @see pthread_attr_getguardsize()
*/
#ifndef _di_f_thread_attribute_guard_get_
- extern f_return_status f_thread_attribute_guard_get(const f_thread_attribute_t attribute, size_t *guard);
+ extern f_status_t f_thread_attribute_guard_get(const f_thread_attribute_t attribute, size_t *guard);
#endif // _di_f_thread_attribute_guard_get_
/**
* @see pthread_attr_setguardsize()
*/
#ifndef _di_f_thread_attribute_guard_set_
- extern f_return_status f_thread_attribute_guard_set(const size_t guard, f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_guard_set(const size_t guard, f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_guard_set_
/**
* @see pthread_attr_getinheritsched()
*/
#ifndef _di_f_thread_attribute_scheduler_inherit_get_
- extern f_return_status f_thread_attribute_scheduler_inherit_get(const f_thread_attribute_t attribute, int *inherit);
+ extern f_status_t f_thread_attribute_scheduler_inherit_get(const f_thread_attribute_t attribute, int *inherit);
#endif // _di_f_thread_attribute_scheduler_inherit_get_
/**
* @see pthread_attr_setinheritsched()
*/
#ifndef _di_f_thread_attribute_scheduler_inherit_set_
- extern f_return_status f_thread_attribute_scheduler_inherit_set(const int inherit, f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_scheduler_inherit_set(const int inherit, f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_scheduler_inherit_set_
/**
* @see pthread_attr_getschedparam()
*/
#ifndef _di_f_thread_attribute_scheduler_parameter_get_
- extern f_return_status f_thread_attribute_scheduler_parameter_get(const f_thread_attribute_t attribute, struct sched_param *parameter);
+ extern f_status_t f_thread_attribute_scheduler_parameter_get(const f_thread_attribute_t attribute, struct sched_param *parameter);
#endif // _di_f_thread_attribute_scheduler_parameter_get_
/**
* @see pthread_attr_setschedparam()
*/
#ifndef _di_f_thread_attribute_scheduler_parameter_set_
- extern f_return_status f_thread_attribute_scheduler_parameter_set(const struct sched_param parameter, f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_scheduler_parameter_set(const struct sched_param parameter, f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_scheduler_parameter_set_
/**
* @see pthread_attr_getschedpolicy()
*/
#ifndef _di_f_thread_attribute_scheduler_policy_get_
- extern f_return_status f_thread_attribute_scheduler_policy_get(const f_thread_attribute_t attribute, int *policy);
+ extern f_status_t f_thread_attribute_scheduler_policy_get(const f_thread_attribute_t attribute, int *policy);
#endif // _di_f_thread_attribute_scheduler_policy_get_
/**
* @see pthread_attr_setschedpolicy()
*/
#ifndef _di_f_thread_attribute_scheduler_policy_set_
- extern f_return_status f_thread_attribute_scheduler_policy_set(const int policy, f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_scheduler_policy_set(const int policy, f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_scheduler_policy_set_
/**
* @see pthread_attr_getscope()
*/
#ifndef _di_f_thread_attribute_scope_get_
- extern f_return_status f_thread_attribute_scope_get(const f_thread_attribute_t attribute, int *scope);
+ extern f_status_t f_thread_attribute_scope_get(const f_thread_attribute_t attribute, int *scope);
#endif // _di_f_thread_attribute_scope_get_
/**
* @see pthread_attr_setscope()
*/
#ifndef _di_f_thread_attribute_scope_set_
- extern f_return_status f_thread_attribute_scope_set(const int scope, f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_scope_set(const int scope, f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_scope_set_
/**
* @see pthread_attr_getstack()
*/
#ifndef _di_f_thread_attribute_stack_get_
- extern f_return_status f_thread_attribute_stack_get(const f_thread_attribute_t attribute, size_t *stack_size, void **stack);
+ extern f_status_t f_thread_attribute_stack_get(const f_thread_attribute_t attribute, size_t *stack_size, void **stack);
#endif // _di_f_thread_attribute_stack_get_
/**
* @see pthread_attr_setstack()
*/
#ifndef _di_f_thread_attribute_stack_set_
- extern f_return_status f_thread_attribute_stack_set(const size_t stack_size, void * const stack, f_thread_attribute_t *attribute);
+ extern f_status_t f_thread_attribute_stack_set(const size_t stack_size, void * const stack, f_thread_attribute_t *attribute);
#endif // _di_f_thread_attribute_stack_set_
/**
- * Resize the attributes array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param attributes
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_attributes_decrease_
- extern f_return_status f_thread_attributes_decrease(f_thread_attributes_t *attributes);
-#endif // _di_f_thread_attributes_decrease_
-
-/**
- * Resize the attributes array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param attributes
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_attributes_decrease_by_
- extern f_return_status f_thread_attributes_decrease_by(const f_array_length_t amount, f_thread_attributes_t *attributes);
-#endif // _di_f_thread_attributes_decrease_by_
-
-/**
- * Delete the attributes array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_attributes_delete_
- extern f_return_status f_thread_attributes_delete(f_thread_attributes_t *attributes);
-#endif // _di_f_thread_attributes_delete_
-
-/**
- * Increase the size of the attributes array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param attributes
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_attributes_increase_
- extern f_return_status f_thread_attributes_increase(f_thread_attributes_t *attributes);
-#endif // _di_f_thread_attributes_increase_
-
-/**
- * Resize the attributes array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param attributes
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_attributes_increase_by_
- extern f_return_status f_thread_attributes_increase_by(const f_array_length_t amount, f_thread_attributes_t *attributes);
-#endif // _di_f_thread_attributes_increase_by_
-
-/**
* Get the ID of the calling thread.
*
* @return
* @see pthread_cancel()
*/
#ifndef _di_f_thread_cancel_
- extern f_return_status f_thread_cancel(const f_thread_id_t id);
+ extern f_status_t f_thread_cancel(const f_thread_id_t id);
#endif // _di_f_thread_cancel_
/**
* @see pthread_setcancelstate()
*/
#ifndef _di_f_thread_cancel_state_set_
- extern f_return_status f_thread_cancel_state_set(const int state, int *previous);
+ extern f_status_t f_thread_cancel_state_set(const int state, int *previous);
#endif // _di_f_thread_cancel_state_set_
/**
* @see pthread_testcancel()
*/
#ifndef _di_f_thread_cancel_test_
- extern f_return_status f_thread_cancel_test();
+ extern f_status_t f_thread_cancel_test();
#endif // _di_f_thread_cancel_test_
/**
* @see pthread_setcanceltype()
*/
#ifndef _di_f_thread_cancel_type_set_
- extern f_return_status f_thread_cancel_type_set(const int type, int *previous);
+ extern f_status_t f_thread_cancel_type_set(const int type, int *previous);
#endif // _di_f_thread_cancel_type_set_
/**
* @see pthread_equal()
*/
#ifndef _di_f_thread_clock_get_id_
- extern f_return_status f_thread_clock_get_id(const f_thread_id_t id_thread, clockid_t *id_clock);
+ extern f_status_t f_thread_clock_get_id(const f_thread_id_t id_thread, clockid_t *id_clock);
#endif // _di_f_thread_clock_get_id_
/**
* @see pthread_equal()
*/
#ifndef _di_f_thread_compare_
- extern f_return_status f_thread_compare(const f_thread_id_t id1, const f_thread_id_t id2);
+ extern f_status_t f_thread_compare(const f_thread_id_t id1, const f_thread_id_t id2);
#endif // _di_f_thread_compare_
/**
* @see pthread_cond_broadcast()
*/
#ifndef _di_f_thread_condition_unblock_all_
- extern f_return_status f_thread_condition_unblock_all(f_thread_condition_t *condition);
+ extern f_status_t f_thread_condition_unblock_all(f_thread_condition_t *condition);
#endif // _di_f_thread_condition_unblock_all_
/**
* @see pthread_cond_signal()
*/
#ifndef _di_f_thread_condition_unblock_any_
- extern f_return_status f_thread_condition_unblock_any(f_thread_condition_t *condition);
+ extern f_status_t f_thread_condition_unblock_any(f_thread_condition_t *condition);
#endif // _di_f_thread_condition_unblock_any_
/**
* @see pthread_cond_wait()
*/
#ifndef _di_f_thread_condition_wait_
- extern f_return_status f_thread_condition_wait(f_thread_condition_t *condition, f_thread_mutex_t *mutex);
+ extern f_status_t f_thread_condition_wait(f_thread_condition_t *condition, f_thread_mutex_t *mutex);
#endif // _di_f_thread_condition_wait_
/**
* @see pthread_cond_timedwait()
*/
#ifndef _di_f_thread_condition_wait_timed_
- extern f_return_status f_thread_condition_wait_timed(const struct timespec *wait, f_thread_condition_t *condition, f_thread_mutex_t *mutex);
+ extern f_status_t f_thread_condition_wait_timed(const struct timespec *wait, f_thread_condition_t *condition, f_thread_mutex_t *mutex);
#endif // _di_f_thread_condition_wait_timed_
/**
- * Resize the conditions array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param conditions
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_conditions_decrease_
- extern f_return_status f_thread_conditions_decrease(f_thread_conditions_t *conditions);
-#endif // _di_f_thread_conditions_decrease_
-
-/**
- * Resize the conditions array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param conditions
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_conditions_decrease_by_
- extern f_return_status f_thread_conditions_decrease_by(const f_array_length_t amount, f_thread_conditions_t *conditions);
-#endif // _di_f_thread_conditions_decrease_by_
-
-/**
- * Delete the conditions array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_conditions_delete_
- extern f_return_status f_thread_conditions_delete(f_thread_conditions_t *conditions);
-#endif // _di_f_thread_conditions_delete_
-
-/**
- * Increase the size of the conditions array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param conditions
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_conditions_increase_
- extern f_return_status f_thread_conditions_increase(f_thread_conditions_t *conditions);
-#endif // _di_f_thread_conditions_increase_
-
-/**
- * Resize the conditions array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param conditions
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_conditions_increase_by_
- extern f_return_status f_thread_conditions_increase_by(const f_array_length_t amount, f_thread_conditions_t *conditions);
-#endif // _di_f_thread_conditions_increase_by_
-
-/**
* Get the user account by the user id.
*
* @param attribute
* @see pthread_create()
*/
#ifndef _di_f_thread_create_
- extern f_return_status f_thread_create(const f_thread_attribute_t *attribute, f_thread_id_t *id, void *(*routine) (void *), void *argument);
+ extern f_status_t f_thread_create(const f_thread_attribute_t *attribute, f_thread_id_t *id, void *(*routine) (void *), void *argument);
#endif // _di_f_thread_create_
/**
* @see pthread_detach()
*/
#ifndef _di_f_thread_detach_
- extern f_return_status f_thread_detach(const f_thread_id_t id);
+ extern f_status_t f_thread_detach(const f_thread_id_t id);
#endif // _di_f_thread_detach_
/**
* @see pthread_exit()
*/
#ifndef _di_f_thread_exit_
- extern f_return_status f_thread_exit(int *result);
+ extern f_status_t f_thread_exit(int *result);
#endif // _di_f_thread_exit_
/**
- * Resize the ids array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param ids
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_ids_decrease_
- extern f_return_status f_thread_ids_decrease(f_thread_ids_t *ids);
-#endif // _di_f_thread_ids_decrease_
-
-/**
- * Resize the ids array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param ids
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_ids_decrease_by_
- extern f_return_status f_thread_ids_decrease_by(const f_array_length_t amount, f_thread_ids_t *ids);
-#endif // _di_f_thread_ids_decrease_by_
-
-/**
- * Delete the ids array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_ids_delete_
- extern f_return_status f_thread_ids_delete(f_thread_ids_t *ids);
-#endif // _di_f_thread_ids_delete_
-
-/**
- * Increase the size of the ids array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param ids
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_ids_increase_
- extern f_return_status f_thread_ids_increase(f_thread_ids_t *ids);
-#endif // _di_f_thread_ids_increase_
-
-/**
- * Resize the ids array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param ids
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_ids_increase_by_
- extern f_return_status f_thread_ids_increase_by(const f_array_length_t amount, f_thread_ids_t *ids);
-#endif // _di_f_thread_ids_increase_by_
-
-/**
* Wait until the given thread exits and then join it to the current thread.
*
* This is a blocking operation.
* @see pthread_join()
*/
#ifndef _di_f_thread_join_
- extern f_return_status f_thread_join(const f_thread_id_t id, void **result);
+ extern f_status_t f_thread_join(const f_thread_id_t id, void **result);
#endif // _di_f_thread_join_
/**
* @see pthread_tryjoin_np()
*/
#ifndef _di_f_thread_join_try_
- extern f_return_status f_thread_try(const f_thread_id_t id, void **result);
+ extern f_status_t f_thread_try(const f_thread_id_t id, void **result);
#endif // _di_f_thread_join_try_
/**
* @see pthread_timedjoin_np()
*/
#ifndef _di_f_thread_join_timed_
- extern f_return_status f_thread_timed(const f_thread_id_t id, const struct timespec wait, void **result);
+ extern f_status_t f_thread_timed(const f_thread_id_t id, const struct timespec wait, void **result);
#endif // _di_f_thread_join_timed_
/**
* @see pthread_key_create()
*/
#ifndef _di_f_thread_key_create_
- extern f_return_status f_thread_key_create(void (*routine) (void *), f_thread_key_t *key);
+ extern f_status_t f_thread_key_create(void (*routine) (void *), f_thread_key_t *key);
#endif // _di_f_thread_key_create_
/**
* @see pthread_getspecific()
*/
#ifndef _di_f_thread_key_get_
- extern f_return_status f_thread_key_get(const f_thread_key_t key, void **value);
+ extern f_status_t f_thread_key_get(const f_thread_key_t key, void **value);
#endif // _di_f_thread_key_get_
/**
* @see pthread_setspecific()
*/
#ifndef _di_f_thread_key_set_
- extern f_return_status f_thread_key_set(const f_thread_key_t key, const void *value);
+ extern f_status_t f_thread_key_set(const f_thread_key_t key, const void *value);
#endif // _di_f_thread_key_set_
/**
- * Resize the keys array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param keys
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_keys_decrease_
- extern f_return_status f_thread_keys_decrease(f_thread_keys_t *keys);
-#endif // _di_f_thread_keys_decrease_
-
-/**
- * Resize the keys array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param keys
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_keys_decrease_by_
- extern f_return_status f_thread_keys_decrease_by(const f_array_length_t amount, f_thread_keys_t *keys);
-#endif // _di_f_thread_keys_decrease_by_
-
-/**
- * Delete the keys array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_keys_delete_
- extern f_return_status f_thread_keys_delete(f_thread_keys_t *keys);
-#endif // _di_f_thread_keys_delete_
-
-/**
- * Increase the size of the keys array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param keys
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_keys_increase_
- extern f_return_status f_thread_keys_increase(f_thread_keys_t *keys);
-#endif // _di_f_thread_keys_increase_
-
-/**
- * Resize the keys array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param keys
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_keys_increase_by_
- extern f_return_status f_thread_keys_increase_by(const f_array_length_t amount, f_thread_keys_t *keys);
-#endif // _di_f_thread_keys_increase_by_
-
-/**
* Make a read lock on the read/write lock.
*
* @param lock
* @see pthread_rwlock_rdlock()
*/
#ifndef _di_f_thread_lock_
- extern f_return_status f_thread_lock(f_thread_lock_t *lock);
+ extern f_status_t f_thread_lock(f_thread_lock_t *lock);
#endif // _di_f_thread_lock_
/**
* @see pthread_rwlock_tryrdlock()
*/
#ifndef _di_f_thread_lock_try_
- extern f_return_status f_thread_lock_try(f_thread_lock_t *lock);
+ extern f_status_t f_thread_lock_try(f_thread_lock_t *lock);
#endif // _di_f_thread_lock_try_
/**
- * Resize the locks array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param locks
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_locks_decrease_
- extern f_return_status f_thread_locks_decrease(f_thread_locks_t *locks);
-#endif // _di_f_thread_locks_decrease_
-
-/**
- * Resize the locks array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param locks
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_locks_decrease_by_
- extern f_return_status f_thread_locks_decrease_by(const f_array_length_t amount, f_thread_locks_t *locks);
-#endif // _di_f_thread_locks_decrease_by_
-
-/**
- * Delete the locks array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_locks_delete_
- extern f_return_status f_thread_locks_delete(f_thread_locks_t *locks);
-#endif // _di_f_thread_locks_delete_
-
-/**
- * Increase the size of the locks array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param locks
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_locks_increase_
- extern f_return_status f_thread_locks_increase(f_thread_locks_t *locks);
-#endif // _di_f_thread_locks_increase_
-
-/**
- * Resize the locks array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param locks
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_locks_increase_by_
- extern f_return_status f_thread_locks_increase_by(const f_array_length_t amount, f_thread_locks_t *locks);
-#endif // _di_f_thread_locks_increase_by_
-
-/**
* Create a thread mutex.
*
* @param attribute
* @see pthread_mutex_init()
*/
#ifndef _di_f_thread_mutex_create_
- extern f_return_status f_thread_mutex_create(f_thread_mutex_attribute_t * const attribute, f_thread_mutex_t *mutex);
+ extern f_status_t f_thread_mutex_create(f_thread_mutex_attribute_t * const attribute, f_thread_mutex_t *mutex);
#endif // _di_f_thread_mutex_create_
/**
* @see pthread_mutex_destroy()
*/
#ifndef _di_f_thread_mutex_delete_
- extern f_return_status f_thread_mutex_delete(f_thread_mutex_t *mutex);
+ extern f_status_t f_thread_mutex_delete(f_thread_mutex_t *mutex);
#endif // _di_f_thread_mutex_delete_
/**
* @see pthread_mutex_lock()
*/
#ifndef _di_f_thread_mutex_lock_
- extern f_return_status f_thread_mutex_lock(f_thread_mutex_t *mutex);
+ extern f_status_t f_thread_mutex_lock(f_thread_mutex_t *mutex);
#endif // _di_f_thread_mutex_lock_
/**
* @see pthread_mutex_trylock()
*/
#ifndef _di_f_thread_mutex_lock_try_
- extern f_return_status f_thread_mutex_lock_try(f_thread_mutex_t *mutex);
+ extern f_status_t f_thread_mutex_lock_try(f_thread_mutex_t *mutex);
#endif // _di_f_thread_mutex_lock_try_
/**
* @see pthread_mutex_unlock()
*/
#ifndef _di_f_thread_mutex_unlock_
- extern f_return_status f_thread_mutex_unlock(f_thread_mutex_t *mutex);
+ extern f_status_t f_thread_mutex_unlock(f_thread_mutex_t *mutex);
#endif // _di_f_thread_mutex_unlock_
/**
- * Resize the mutexs array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param mutexs
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_mutexs_decrease_
- extern f_return_status f_thread_mutexs_decrease(f_thread_mutexs_t *mutexs);
-#endif // _di_f_thread_mutexs_decrease_
-
-/**
- * Resize the mutexs array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param mutexs
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_mutexs_decrease_by_
- extern f_return_status f_thread_mutexs_decrease_by(const f_array_length_t amount, f_thread_mutexs_t *mutexs);
-#endif // _di_f_thread_mutexs_decrease_by_
-
-/**
- * Delete the mutexs array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_mutexs_delete_
- extern f_return_status f_thread_mutexs_delete(f_thread_mutexs_t *mutexs);
-#endif // _di_f_thread_mutexs_delete_
-
-/**
- * Increase the size of the mutexs array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param mutexs
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_mutexs_increase_
- extern f_return_status f_thread_mutexs_increase(f_thread_mutexs_t *mutexs);
-#endif // _di_f_thread_mutexs_increase_
-
-/**
- * Resize the mutexs array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param mutexs
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_mutexs_increase_by_
- extern f_return_status f_thread_mutexs_increase_by(const f_array_length_t amount, f_thread_mutexs_t *mutexs);
-#endif // _di_f_thread_mutexs_increase_by_
-
-/**
- * Resize the mutex_attributes array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param mutex_attributes
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_mutex_attributes_decrease_
- extern f_return_status f_thread_mutex_attributes_decrease(f_thread_mutex_attributes_t *mutex_attributes);
-#endif // _di_f_thread_mutex_attributes_decrease_
-
-/**
- * Resize the mutex_attributes array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param mutex_attributes
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_mutex_attributes_decrease_by_
- extern f_return_status f_thread_mutex_attributes_decrease_by(const f_array_length_t amount, f_thread_mutex_attributes_t *mutex_attributes);
-#endif // _di_f_thread_mutex_attributes_decrease_by_
-
-/**
- * Delete the mutex_attributes array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_mutex_attributes_delete_
- extern f_return_status f_thread_mutex_attributes_delete(f_thread_mutex_attributes_t *mutex_attributes);
-#endif // _di_f_thread_mutex_attributes_delete_
-
-/**
- * Increase the size of the mutex_attributes array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param mutex_attributes
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_mutex_attributes_increase_
- extern f_return_status f_thread_mutex_attributes_increase(f_thread_mutex_attributes_t *mutex_attributes);
-#endif // _di_f_thread_mutex_attributes_increase_
-
-/**
- * Resize the mutex_attributes array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param mutex_attributes
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_mutex_attributes_increase_by_
- extern f_return_status f_thread_mutex_attributes_increase_by(const f_array_length_t amount, f_thread_mutex_attributes_t *mutex_attributes);
-#endif // _di_f_thread_mutex_attributes_increase_by_
-
-/**
* Call the given routine only one time and never again.
*
* Subsequent calls will not call the given routine.
* @see pthread_once()
*/
#ifndef _di_f_thread_once_
- extern f_return_status f_thread_once(void (*routine) (void), f_thread_once_t *once);
+ extern f_status_t f_thread_once(void (*routine) (void), f_thread_once_t *once);
#endif // _di_f_thread_once_
/**
- * Resize the onces array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param onces
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_onces_decrease_
- extern f_return_status f_thread_onces_decrease(f_thread_onces_t *onces);
-#endif // _di_f_thread_onces_decrease_
-
-/**
- * Resize the onces array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param onces
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_onces_decrease_by_
- extern f_return_status f_thread_onces_decrease_by(const f_array_length_t amount, f_thread_onces_t *onces);
-#endif // _di_f_thread_onces_decrease_by_
-
-/**
- * Delete the onces array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_onces_delete_
- extern f_return_status f_thread_onces_delete(f_thread_onces_t *onces);
-#endif // _di_f_thread_onces_delete_
-
-/**
- * Increase the size of the onces array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param onces
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_onces_increase_
- extern f_return_status f_thread_onces_increase(f_thread_onces_t *onces);
-#endif // _di_f_thread_onces_increase_
-
-/**
- * Resize the onces array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param onces
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_onces_increase_by_
- extern f_return_status f_thread_onces_increase_by(const f_array_length_t amount, f_thread_onces_t *onces);
-#endif // _di_f_thread_onces_increase_by_
-
-/**
- * Resize the thread set array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param sets
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_sets_decrease_
- extern f_return_status f_thread_sets_decrease(f_thread_sets_t *sets);
-#endif // _di_f_thread_sets_decrease_
-
-/**
- * Resize the thread set array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param sets
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_sets_decrease_by_
- extern f_return_status f_thread_sets_decrease_by(const f_array_length_t amount, f_thread_sets_t *sets);
-#endif // _di_f_thread_sets_decrease_by_
-
-/**
- * Delete the thread set array.
- *
- * @param string
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_f_thread_sets_delete_
- extern f_return_status f_thread_sets_delete(f_thread_sets_t *sets);
-#endif // _di_f_thread_sets_delete_
-
-/**
- * Increase the size of the thread set array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param sets
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_sets_increase_
- extern f_return_status f_thread_sets_increase(f_thread_sets_t *sets);
-#endif // _di_f_thread_sets_increase_
-
-/**
- * Resize the thread set array to a larger size.
- *
- * This will resize making the array larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param sets
- * The string array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_f_thread_sets_increase_by_
- extern f_return_status f_thread_sets_increase_by(const f_array_length_t amount, f_thread_sets_t *sets);
-#endif // _di_f_thread_sets_increase_by_
-
-/**
* Send a signal to the given thread.
*
* @param id
* @see pthread_kill()
*/
#ifndef _di_f_thread_signal_
- extern f_return_status f_thread_signal(const f_thread_id_t id, const int signal);
+ extern f_status_t f_thread_signal(const f_thread_id_t id, const int signal);
#endif // _di_f_thread_signal_
/**
* @see pthread_sigmask()
*/
#ifndef _di_f_thread_signal_mask_
- extern f_return_status f_thread_signal_mask(const int how, const sigset_t *next, sigset_t *current);
+ extern f_status_t f_thread_signal_mask(const int how, const sigset_t *next, sigset_t *current);
#endif // _di_f_thread_signal_mask_
/**
* @see pthread_sigqueue()
*/
#ifndef _di_f_thread_signal_queue_
- extern f_return_status f_thread_signal_queue(const f_thread_id_t id, const int signal, const union sigval value);
+ extern f_status_t f_thread_signal_queue(const f_thread_id_t id, const int signal, const union sigval value);
#endif // _di_f_thread_signal_queue_
#ifdef __cplusplus
build_language c
build_libraries -pthread -lc
build_libraries-individual -lf_memory
-build_sources_library thread.c private-thread.c
+build_sources_library thread.c
build_sources_program
build_sources_headers thread.h thread-common.h
build_sources_script
#ifndef _F_type_h
#define _F_type_h
+// include pre-requirements
+#ifndef _GNU_SOURCE
+ #define _GNU_SOURCE
+#endif // _GNU_SOURCE
+
// libc includes
#include <stdbool.h>
#include <stdint.h>
*/
#ifndef _di_f_type_status_t_
typedef uint16_t f_status_t;
-
- /**
- * The c language gives warnings about return types of constants.
- * Remove the const for c, but keep it for c++, which is only for function call declarations & prototypes.
- * Do not declare these for the return data types themselves, instead use f_status_t; only use these for function prototypes and declarations.
- */
- #ifdef __cplusplus
- #define f_return_status const f_status_t
- #else
- #define f_return_status f_status_t
- #endif // __cplusplus
#endif // _di_f_type_status_t_
/**
*
* Provides datatypes that require memory operations.
*
- * Because memory requires status.h, this is moved to a separate file to reduce potential circular dependency issues.
+ * Because memory requires status.h, this is moved to a separate file to prevent circular dependency issues.
*/
#ifndef _F_type_array_h
#define _F_type_array_h
#define f_array_lengths_t_initialize { 0, 0, 0 }
+ #define f_macro_array_lengths_t_adjust(status, lengths, length) f_macro_memory_structure_t_adjust(status, lengths, f_array_length_t, length)
+
#define f_macro_array_lengths_t_clear(lengths) f_macro_memory_structure_t_clear(lengths)
- #define f_macro_array_lengths_t_new(status, lengths, length) f_macro_memory_structure_t_new(status, lengths, f_array_length_t, length)
+ #define f_macro_array_lengths_t_decimate(status, lengths) f_macro_memory_structure_decimate(status, lengths, f_array_length_t);
+ #define f_macro_array_lengths_t_decimate_by(status, lengths, amount) f_macro_memory_structure_decimate_by(status, lengths, f_array_length_t, amount);
- #define f_macro_array_lengths_t_delete(status, lengths) f_macro_memory_structure_t_delete(status, lengths, f_array_length_t)
- #define f_macro_array_lengths_t_destroy(status, lengths) f_macro_memory_structure_t_destroy(status, lengths, f_array_length_t)
+ #define f_macro_array_lengths_t_decrease(status, lengths) f_macro_memory_structure_decrease(status, lengths, f_array_length_t);
+ #define f_macro_array_lengths_t_decrease_by(status, lengths, amount) f_macro_memory_structure_decrease_by(status, lengths, f_array_length_t, amount);
+ #define f_macro_array_lengths_t_delete(status, lengths) f_macro_memory_structure_t_delete(status, lengths, f_array_length_t)
#define f_macro_array_lengths_t_delete_simple(lengths) f_macro_memory_structure_t_delete_simple(lengths, f_array_length_t)
- #define f_macro_array_lengths_t_destroy_simple(lengths) f_macro_memory_structure_t_destroy_simple(lengths, f_array_length_t)
+
+ #define f_macro_array_lengths_t_destroy(status, lengths) f_macro_memory_structure_t_destroy(status, lengths, f_array_length_t)
+ #define f_macro_array_lengths_t_destroy_simple(lengths) f_macro_memory_structure_t_destroy_simple(lengths, f_array_length_t)
+
+ #define f_macro_array_lengths_t_increase(status, lengths) f_macro_memory_structure_increase(status, lengths, f_array_length_t);
+ #define f_macro_array_lengths_t_increase_by(status, lengths, amount) f_macro_memory_structure_increase_by(status, lengths, f_array_length_t, amount);
+
+ #define f_macro_array_lengths_t_new(status, lengths, length) f_macro_memory_structure_t_new(status, lengths, f_array_length_t, length)
#define f_macro_array_lengths_t_resize(status, lengths, new_length) f_macro_memory_structure_t_resize(status, lengths, f_array_length_t, new_length)
- #define f_macro_array_lengths_t_adjust(status, lengths, new_length) f_macro_memory_structure_t_adjust(status, lengths, f_array_length_t, new_length)
#endif // _di_f_array_lengths_t_
/**
#define f_cells_t_initialize {0, 0, 0}
+ #define f_macro_cells_t_adjust(status, cells, length) f_macro_memory_structure_t_adjust(status, cells, f_cell_t, length)
+
#define f_macro_cells_t_clear(cells) f_macro_memory_structure_t_clear(cells)
- #define f_macro_cells_t_new(status, cells, length) f_macro_memory_structure_t_new(status, cells, f_cell_t, length)
+ #define f_macro_cells_t_decimate(status, cells) f_macro_memory_structure_decimate(status, cells, f_cell_t);
+ #define f_macro_cells_t_decimate_by(status, cells, amount) f_macro_memory_structure_decimate_by(status, cells, f_cell_t, amount);
- #define f_macro_cells_t_delete(status, cells) f_macro_memory_structure_t_delete(status, cells, f_cell_t)
- #define f_macro_cells_t_destroy(status, cells) f_macro_memory_structure_t_destroy(status, cells, f_cell_t)
+ #define f_macro_cells_t_decrease(status, cells) f_macro_memory_structure_decrease(status, cells, f_cell_t);
+ #define f_macro_cells_t_decrease_by(status, cells, amount) f_macro_memory_structure_decrease_by(status, cells, f_cell_t, amount);
+ #define f_macro_cells_t_delete(status, cells) f_macro_memory_structure_t_delete(status, cells, f_cell_t)
#define f_macro_cells_t_delete_simple(cells) f_macro_memory_structure_t_delete_simple(cells, f_cell_t)
- #define f_macro_cells_t_destroy_simple(cells) f_macro_memory_structure_t_destroy_simple(cells, f_cell_t)
+
+ #define f_macro_cells_t_destroy(status, cells) f_macro_memory_structure_t_destroy(status, cells, f_cell_t)
+ #define f_macro_cells_t_destroy_simple(cells) f_macro_memory_structure_t_destroy_simple(cells, f_cell_t)
+
+ #define f_macro_cells_t_increase(status, cells) f_macro_memory_structure_increase(status, cells, f_cell_t);
+ #define f_macro_cells_t_increase_by(status, cells, amount) f_macro_memory_structure_increase_by(status, cells, f_cell_t, amount);
+
+ #define f_macro_cells_t_new(status, cells, length) f_macro_memory_structure_t_new(status, cells, f_cell_t, length)
#define f_macro_cells_t_resize(status, cells, new_length) f_macro_memory_structure_t_resize(status, cells, f_cell_t, new_length)
- #define f_macro_cells_t_adjust(status, cells, new_length) f_macro_memory_structure_t_adjust(status, cells, f_cell_t, new_length)
#endif // _di_f_cells_t_
/**
#define f_int8s_t_initialize { 0, 0, 0 }
- #define f_macro_int8s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_int8s_t_adjust(status, int8s, length) f_macro_memory_structure_t_adjust(status, int8s, int8_t, length)
- #define f_macro_int8s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, int8_t, length)
+ #define f_macro_int8s_t_clear(int8s) f_macro_memory_structure_t_clear(int8s)
- #define f_macro_int8s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, int8_t)
- #define f_macro_int8s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, int8_t)
+ #define f_macro_int8s_t_decimate(status, int8s) f_macro_memory_structure_decimate(status, int8s, int8_t);
+ #define f_macro_int8s_t_decimate_by(status, int8s, amount) f_macro_memory_structure_decimate_by(status, int8s, int8_t, amount);
- #define f_macro_int8s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, int8_t)
- #define f_macro_int8s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, int8_t)
+ #define f_macro_int8s_t_decrease(status, int8s) f_macro_memory_structure_decrease(status, int8s, int8_t);
+ #define f_macro_int8s_t_decrease_by(status, int8s, amount) f_macro_memory_structure_decrease_by(status, int8s, int8_t, amount);
- #define f_macro_int8s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, int8_t, new_length)
- #define f_macro_int8s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, int8_t, new_length)
+ #define f_macro_int8s_t_delete(status, int8s) f_macro_memory_structure_t_delete(status, int8s, int8_t)
+ #define f_macro_int8s_t_delete_simple(int8s) f_macro_memory_structure_t_delete_simple(int8s, int8_t)
+
+ #define f_macro_int8s_t_destroy(status, int8s) f_macro_memory_structure_t_destroy(status, int8s, int8_t)
+ #define f_macro_int8s_t_destroy_simple(int8s) f_macro_memory_structure_t_destroy_simple(int8s, int8_t)
+
+ #define f_macro_int8s_t_increase(status, int8s) f_macro_memory_structure_increase(status, int8s, int8_t);
+ #define f_macro_int8s_t_increase_by(status, int8s, amount) f_macro_memory_structure_increase_by(status, int8s, int8_t, amount);
+
+ #define f_macro_int8s_t_new(status, int8s, length) f_macro_memory_structure_t_new(status, int8s, int8_t, length)
+
+ #define f_macro_int8s_t_resize(status, int8s, new_length) f_macro_memory_structure_t_resize(status, int8s, int8_t, new_length)
#endif // _di_int8s_t_
/**
#define f_uint8s_t_initialize { 0, 0, 0 }
- #define f_macro_uint8s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_uint8s_t_adjust(status, uint8s, length) f_macro_memory_structure_t_adjust(status, uint8s, uint8_t, length)
+
+ #define f_macro_uint8s_t_clear(uint8s) f_macro_memory_structure_t_clear(uint8s)
+
+ #define f_macro_uint8s_t_decimate(status, uint8s) f_macro_memory_structure_decimate(status, uint8s, uint8_t);
+ #define f_macro_uint8s_t_decimate_by(status, uint8s, amount) f_macro_memory_structure_decimate_by(status, uint8s, uint8_t, amount);
+
+ #define f_macro_uint8s_t_decrease(status, uint8s) f_macro_memory_structure_decrease(status, uint8s, uint8_t);
+ #define f_macro_uint8s_t_decrease_by(status, uint8s, amount) f_macro_memory_structure_decrease_by(status, uint8s, uint8_t, amount);
+
+ #define f_macro_uint8s_t_delete(status, uint8s) f_macro_memory_structure_t_delete(status, uint8s, uint8_t)
+ #define f_macro_uint8s_t_delete_simple(uint8s) f_macro_memory_structure_t_delete_simple(uint8s, uint8_t)
- #define f_macro_uint8s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, uint8_t, length)
+ #define f_macro_uint8s_t_destroy(status, uint8s) f_macro_memory_structure_t_destroy(status, uint8s, uint8_t)
+ #define f_macro_uint8s_t_destroy_simple(uint8s) f_macro_memory_structure_t_destroy_simple(uint8s, uint8_t)
- #define f_macro_uint8s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, uint8_t)
- #define f_macro_uint8s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, uint8_t)
+ #define f_macro_uint8s_t_increase(status, uint8s) f_macro_memory_structure_increase(status, uint8s, uint8_t);
+ #define f_macro_uint8s_t_increase_by(status, uint8s, amount) f_macro_memory_structure_increase_by(status, uint8s, uint8_t, amount);
- #define f_macro_uint8s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, uint8_t)
- #define f_macro_uint8s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, uint8_t)
+ #define f_macro_uint8s_t_new(status, uint8s, length) f_macro_memory_structure_t_new(status, uint8s, uint8_t, length)
- #define f_macro_uint8s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, uint8_t, new_length)
- #define f_macro_uint8s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, uint8_t, new_length)
+ #define f_macro_uint8s_t_resize(status, uint8s, new_length) f_macro_memory_structure_t_resize(status, uint8s, uint8_t, new_length)
#endif // _di_uint8s_t_
/**
#define f_int16s_t_initialize { 0, 0, 0 }
- #define f_macro_int16s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_int16s_t_adjust(status, int16s, length) f_macro_memory_structure_t_adjust(status, int16s, int16_t, length)
- #define f_macro_int16s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, int16_t, length)
+ #define f_macro_int16s_t_clear(int16s) f_macro_memory_structure_t_clear(int16s)
- #define f_macro_int16s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, int16_t)
- #define f_macro_int16s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, int16_t)
+ #define f_macro_int16s_t_decimate(status, int16s) f_macro_memory_structure_decimate(status, int16s, int16_t);
+ #define f_macro_int16s_t_decimate_by(status, int16s, amount) f_macro_memory_structure_decimate_by(status, int16s, int16_t, amount);
- #define f_macro_int16s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, int16_t)
- #define f_macro_int16s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, int16_t)
+ #define f_macro_int16s_t_decrease(status, int16s) f_macro_memory_structure_decrease(status, int16s, int16_t);
+ #define f_macro_int16s_t_decrease_by(status, int16s, amount) f_macro_memory_structure_decrease_by(status, int16s, int16_t, amount);
- #define f_macro_int16s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, int16_t, new_length)
- #define f_macro_int16s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, int16_t, new_length)
+ #define f_macro_int16s_t_delete(status, int16s) f_macro_memory_structure_t_delete(status, int16s, int16_t)
+ #define f_macro_int16s_t_delete_simple(int16s) f_macro_memory_structure_t_delete_simple(int16s, int16_t)
+
+ #define f_macro_int16s_t_destroy(status, int16s) f_macro_memory_structure_t_destroy(status, int16s, int16_t)
+ #define f_macro_int16s_t_destroy_simple(int16s) f_macro_memory_structure_t_destroy_simple(int16s, int16_t)
+
+ #define f_macro_int16s_t_increase(status, int16s) f_macro_memory_structure_increase(status, int16s, int16_t);
+ #define f_macro_int16s_t_increase_by(status, int16s, amount) f_macro_memory_structure_increase_by(status, int16s, int16_t, amount);
+
+ #define f_macro_int16s_t_new(status, int16s, length) f_macro_memory_structure_t_new(status, int16s, int16_t, length)
+
+ #define f_macro_int16s_t_resize(status, int16s, new_length) f_macro_memory_structure_t_resize(status, int16s, int16_t, new_length)
#endif // _di_int16s_t_
/**
#define f_uint16s_t_initialize { 0, 0, 0 }
- #define f_macro_uint16s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_uint16s_t_adjust(status, uint16s, length) f_macro_memory_structure_t_adjust(status, uint16s, uint16_t, length)
+
+ #define f_macro_uint16s_t_clear(uint16s) f_macro_memory_structure_t_clear(uint16s)
+
+ #define f_macro_uint16s_t_decimate(status, uint16s) f_macro_memory_structure_decimate(status, uint16s, uint16_t);
+ #define f_macro_uint16s_t_decimate_by(status, uint16s, amount) f_macro_memory_structure_decimate_by(status, uint16s, uint16_t, amount);
+
+ #define f_macro_uint16s_t_decrease(status, uint16s) f_macro_memory_structure_decrease(status, uint16s, uint16_t);
+ #define f_macro_uint16s_t_decrease_by(status, uint16s, amount) f_macro_memory_structure_decrease_by(status, uint16s, uint16_t, amount);
+
+ #define f_macro_uint16s_t_delete(status, uint16s) f_macro_memory_structure_t_delete(status, uint16s, uint16_t)
+ #define f_macro_uint16s_t_delete_simple(uint16s) f_macro_memory_structure_t_delete_simple(uint16s, uint16_t)
- #define f_macro_uint16s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, uint16_t, length)
+ #define f_macro_uint16s_t_destroy(status, uint16s) f_macro_memory_structure_t_destroy(status, uint16s, uint16_t)
+ #define f_macro_uint16s_t_destroy_simple(uint16s) f_macro_memory_structure_t_destroy_simple(uint16s, uint16_t)
- #define f_macro_uint16s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, uint16_t)
- #define f_macro_uint16s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, uint16_t)
+ #define f_macro_uint16s_t_increase(status, uint16s) f_macro_memory_structure_increase(status, uint16s, uint16_t);
+ #define f_macro_uint16s_t_increase_by(status, uint16s, amount) f_macro_memory_structure_increase_by(status, uint16s, uint16_t, amount);
- #define f_macro_uint16s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, uint16_t)
- #define f_macro_uint16s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, uint16_t)
+ #define f_macro_uint16s_t_new(status, uint16s, length) f_macro_memory_structure_t_new(status, uint16s, uint16_t, length)
- #define f_macro_uint16s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, uint16_t, new_length)
- #define f_macro_uint16s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, uint16_t, new_length)
+ #define f_macro_uint16s_t_resize(status, uint16s, new_length) f_macro_memory_structure_t_resize(status, uint16s, uint16_t, new_length)
#endif // _di_uint16s_t_
/**
#define f_int32s_t_initialize { 0, 0, 0 }
- #define f_macro_int32s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_int32s_t_adjust(status, int32s, length) f_macro_memory_structure_t_adjust(status, int32s, int32_t, length)
- #define f_macro_int32s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, int32_t, length)
+ #define f_macro_int32s_t_clear(int32s) f_macro_memory_structure_t_clear(int32s)
- #define f_macro_int32s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, int32_t)
- #define f_macro_int32s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, int32_t)
+ #define f_macro_int32s_t_decimate(status, int32s) f_macro_memory_structure_decimate(status, int32s, int32_t);
+ #define f_macro_int32s_t_decimate_by(status, int32s, amount) f_macro_memory_structure_decimate_by(status, int32s, int32_t, amount);
- #define f_macro_int32s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, int32_t)
- #define f_macro_int32s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, int32_t)
+ #define f_macro_int32s_t_decrease(status, int32s) f_macro_memory_structure_decrease(status, int32s, int32_t);
+ #define f_macro_int32s_t_decrease_by(status, int32s, amount) f_macro_memory_structure_decrease_by(status, int32s, int32_t, amount);
- #define f_macro_int32s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, int32_t, new_length)
- #define f_macro_int32s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, int32_t, new_length)
+ #define f_macro_int32s_t_delete(status, int32s) f_macro_memory_structure_t_delete(status, int32s, int32_t)
+ #define f_macro_int32s_t_delete_simple(int32s) f_macro_memory_structure_t_delete_simple(int32s, int32_t)
+
+ #define f_macro_int32s_t_destroy(status, int32s) f_macro_memory_structure_t_destroy(status, int32s, int32_t)
+ #define f_macro_int32s_t_destroy_simple(int32s) f_macro_memory_structure_t_destroy_simple(int32s, int32_t)
+
+ #define f_macro_int32s_t_increase(status, int32s) f_macro_memory_structure_increase(status, int32s, int32_t);
+ #define f_macro_int32s_t_increase_by(status, int32s, amount) f_macro_memory_structure_increase_by(status, int32s, int32_t, amount);
+
+ #define f_macro_int32s_t_new(status, int32s, length) f_macro_memory_structure_t_new(status, int32s, int32_t, length)
+
+ #define f_macro_int32s_t_resize(status, int32s, new_length) f_macro_memory_structure_t_resize(status, int32s, int32_t, new_length)
#endif // _di_int32s_t_
/**
#define f_uint32s_t_initialize { 0, 0, 0 }
- #define f_macro_uint32s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_uint32s_t_adjust(status, uint32s, length) f_macro_memory_structure_t_adjust(status, uint32s, uint32_t, length)
+
+ #define f_macro_uint32s_t_clear(uint32s) f_macro_memory_structure_t_clear(uint32s)
+
+ #define f_macro_uint32s_t_decimate(status, uint32s) f_macro_memory_structure_decimate(status, uint32s, uint32_t);
+ #define f_macro_uint32s_t_decimate_by(status, uint32s, amount) f_macro_memory_structure_decimate_by(status, uint32s, uint32_t, amount);
+
+ #define f_macro_uint32s_t_decrease(status, uint32s) f_macro_memory_structure_decrease(status, uint32s, uint32_t);
+ #define f_macro_uint32s_t_decrease_by(status, uint32s, amount) f_macro_memory_structure_decrease_by(status, uint32s, uint32_t, amount);
+
+ #define f_macro_uint32s_t_delete(status, uint32s) f_macro_memory_structure_t_delete(status, uint32s, uint32_t)
+ #define f_macro_uint32s_t_delete_simple(uint32s) f_macro_memory_structure_t_delete_simple(uint32s, uint32_t)
- #define f_macro_uint32s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, uint32_t, length)
+ #define f_macro_uint32s_t_destroy(status, uint32s) f_macro_memory_structure_t_destroy(status, uint32s, uint32_t)
+ #define f_macro_uint32s_t_destroy_simple(uint32s) f_macro_memory_structure_t_destroy_simple(uint32s, uint32_t)
- #define f_macro_uint32s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, uint32_t)
- #define f_macro_uint32s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, uint32_t)
+ #define f_macro_uint32s_t_increase(status, uint32s) f_macro_memory_structure_increase(status, uint32s, uint32_t);
+ #define f_macro_uint32s_t_increase_by(status, uint32s, amount) f_macro_memory_structure_increase_by(status, uint32s, uint32_t, amount);
- #define f_macro_uint32s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, uint32_t)
- #define f_macro_uint32s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, uint32_t)
+ #define f_macro_uint32s_t_new(status, uint32s, length) f_macro_memory_structure_t_new(status, uint32s, uint32_t, length)
- #define f_macro_uint32s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, uint32_t, new_length)
- #define f_macro_uint32s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, uint32_t, new_length)
+ #define f_macro_uint32s_t_resize(status, uint32s, new_length) f_macro_memory_structure_t_resize(status, uint32s, uint32_t, new_length)
#endif // _di_uint32s_t_
/**
#define f_int64s_t_initialize { 0, 0, 0 }
- #define f_macro_int64s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_int64s_t_adjust(status, int64s, length) f_macro_memory_structure_t_adjust(status, int64s, int64_t, length)
- #define f_macro_int64s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, int64_t, length)
+ #define f_macro_int64s_t_clear(int64s) f_macro_memory_structure_t_clear(int64s)
- #define f_macro_int64s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, int64_t)
- #define f_macro_int64s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, int64_t)
+ #define f_macro_int64s_t_decimate(status, int64s) f_macro_memory_structure_decimate(status, int64s, int64_t);
+ #define f_macro_int64s_t_decimate_by(status, int64s, amount) f_macro_memory_structure_decimate_by(status, int64s, int64_t, amount);
- #define f_macro_int64s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, int64_t)
- #define f_macro_int64s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, int64_t)
+ #define f_macro_int64s_t_decrease(status, int64s) f_macro_memory_structure_decrease(status, int64s, int64_t);
+ #define f_macro_int64s_t_decrease_by(status, int64s, amount) f_macro_memory_structure_decrease_by(status, int64s, int64_t, amount);
- #define f_macro_int64s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, int64_t, new_length)
- #define f_macro_int64s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, int64_t, new_length)
+ #define f_macro_int64s_t_delete(status, int64s) f_macro_memory_structure_t_delete(status, int64s, int64_t)
+ #define f_macro_int64s_t_delete_simple(int64s) f_macro_memory_structure_t_delete_simple(int64s, int64_t)
+
+ #define f_macro_int64s_t_destroy(status, int64s) f_macro_memory_structure_t_destroy(status, int64s, int64_t)
+ #define f_macro_int64s_t_destroy_simple(int64s) f_macro_memory_structure_t_destroy_simple(int64s, int64_t)
+
+ #define f_macro_int64s_t_increase(status, int64s) f_macro_memory_structure_increase(status, int64s, int64_t);
+ #define f_macro_int64s_t_increase_by(status, int64s, amount) f_macro_memory_structure_increase_by(status, int64s, int64_t, amount);
+
+ #define f_macro_int64s_t_new(status, int64s, length) f_macro_memory_structure_t_new(status, int64s, int64_t, length)
+
+ #define f_macro_int64s_t_resize(status, int64s, new_length) f_macro_memory_structure_t_resize(status, int64s, int64_t, new_length)
#endif // _di_int64s_t_
/**
#define f_uint64s_t_initialize { 0, 0, 0 }
- #define f_macro_uint64s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_uint64s_t_adjust(status, uint64s, length) f_macro_memory_structure_t_adjust(status, uint64s, uint64_t, length)
+
+ #define f_macro_uint64s_t_clear(uint64s) f_macro_memory_structure_t_clear(uint64s)
+
+ #define f_macro_uint64s_t_decimate(status, uint64s) f_macro_memory_structure_decimate(status, uint64s, uint64_t);
+ #define f_macro_uint64s_t_decimate_by(status, uint64s, amount) f_macro_memory_structure_decimate_by(status, uint64s, uint64_t, amount);
+
+ #define f_macro_uint64s_t_decrease(status, uint64s) f_macro_memory_structure_decrease(status, uint64s, uint64_t);
+ #define f_macro_uint64s_t_decrease_by(status, uint64s, amount) f_macro_memory_structure_decrease_by(status, uint64s, uint64_t, amount);
+
+ #define f_macro_uint64s_t_delete(status, uint64s) f_macro_memory_structure_t_delete(status, uint64s, uint64_t)
+ #define f_macro_uint64s_t_delete_simple(uint64s) f_macro_memory_structure_t_delete_simple(uint64s, uint64_t)
- #define f_macro_uint64s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, uint64_t, length)
+ #define f_macro_uint64s_t_destroy(status, uint64s) f_macro_memory_structure_t_destroy(status, uint64s, uint64_t)
+ #define f_macro_uint64s_t_destroy_simple(uint64s) f_macro_memory_structure_t_destroy_simple(uint64s, uint64_t)
- #define f_macro_uint64s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, uint64_t)
- #define f_macro_uint64s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, uint64_t)
+ #define f_macro_uint64s_t_increase(status, uint64s) f_macro_memory_structure_increase(status, uint64s, uint64_t);
+ #define f_macro_uint64s_t_increase_by(status, uint64s, amount) f_macro_memory_structure_increase_by(status, uint64s, uint64_t, amount);
- #define f_macro_uint64s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, uint64_t)
- #define f_macro_uint64s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, uint64_t)
+ #define f_macro_uint64s_t_new(status, uint64s, length) f_macro_memory_structure_t_new(status, uint64s, uint64_t, length)
- #define f_macro_uint64s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, uint64_t, new_length)
- #define f_macro_uint64s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, uint64_t, new_length)
+ #define f_macro_uint64s_t_resize(status, uint64s, new_length) f_macro_memory_structure_t_resize(status, uint64s, uint64_t, new_length)
#endif // _di_uint64s_t_
/**
#define f_int128s_t_initialize { 0, 0, 0 }
- #define f_macro_int128s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_int128s_t_adjust(status, int128s, length) f_macro_memory_structure_t_adjust(status, int128s, __int128_t, length)
- #define f_macro_int128s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, __int128_t, length)
+ #define f_macro_int128s_t_clear(int128s) f_macro_memory_structure_t_clear(int128s)
- #define f_macro_int128s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, __int128_t)
- #define f_macro_int128s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, __int128_t)
+ #define f_macro_int128s_t_decimate(status, int128s) f_macro_memory_structure_decimate(status, int128s, __int128_t);
+ #define f_macro_int128s_t_decimate_by(status, int128s, amount) f_macro_memory_structure_decimate_by(status, int128s, __int128_t, amount);
- #define f_macro_int128s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, __int128_t)
- #define f_macro_int128s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, __int128_t)
+ #define f_macro_int128s_t_decrease(status, int128s) f_macro_memory_structure_decrease(status, int128s, __int128_t);
+ #define f_macro_int128s_t_decrease_by(status, int128s, amount) f_macro_memory_structure_decrease_by(status, int128s, __int128_t, amount);
- #define f_macro_int128s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, __int128_t, new_length)
- #define f_macro_int128s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, __int128_t, new_length)
+ #define f_macro_int128s_t_delete(status, int128s) f_macro_memory_structure_t_delete(status, int128s, __int128_t)
+ #define f_macro_int128s_t_delete_simple(int128s) f_macro_memory_structure_t_delete_simple(int128s, __int128_t)
+
+ #define f_macro_int128s_t_destroy(status, int128s) f_macro_memory_structure_t_destroy(status, int128s, __int128_t)
+ #define f_macro_int128s_t_destroy_simple(int128s) f_macro_memory_structure_t_destroy_simple(int128s, __int128_t)
+
+ #define f_macro_int128s_t_increase(status, int128s) f_macro_memory_structure_increase(status, int128s, __int128_t);
+ #define f_macro_int128s_t_increase_by(status, int128s, amount) f_macro_memory_structure_increase_by(status, int128s, __int128_t, amount);
+
+ #define f_macro_int128s_t_new(status, int128s, length) f_macro_memory_structure_t_new(status, int128s, __int128_t, length)
+
+ #define f_macro_int128s_t_resize(status, int128s, new_length) f_macro_memory_structure_t_resize(status, int128s, __int128_t, new_length)
#endif // _di_int128s_t_
/**
#define f_uint128s_t_initialize { 0, 0, 0 }
- #define f_macro_uint128s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_uint128s_t_adjust(status, uint128s, length) f_macro_memory_structure_t_adjust(status, uint128s, __uint128_t, length)
+
+ #define f_macro_uint128s_t_clear(uint128s) f_macro_memory_structure_t_clear(uint128s)
+
+ #define f_macro_uint128s_t_decimate(status, uint128s) f_macro_memory_structure_decimate(status, uint128s, __uint128_t);
+ #define f_macro_uint128s_t_decimate_by(status, uint128s, amount) f_macro_memory_structure_decimate_by(status, uint128s, __uint128_t, amount);
+
+ #define f_macro_uint128s_t_decrease(status, uint128s) f_macro_memory_structure_decrease(status, uint128s, __uint128_t);
+ #define f_macro_uint128s_t_decrease_by(status, uint128s, amount) f_macro_memory_structure_decrease_by(status, uint128s, __uint128_t, amount);
+
+ #define f_macro_uint128s_t_delete(status, uint128s) f_macro_memory_structure_t_delete(status, uint128s, __uint128_t)
+ #define f_macro_uint128s_t_delete_simple(uint128s) f_macro_memory_structure_t_delete_simple(uint128s, __uint128_t)
- #define f_macro_uint128s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, __uint128_t, length)
+ #define f_macro_uint128s_t_destroy(status, uint128s) f_macro_memory_structure_t_destroy(status, uint128s, __uint128_t)
+ #define f_macro_uint128s_t_destroy_simple(uint128s) f_macro_memory_structure_t_destroy_simple(uint128s, __uint128_t)
- #define f_macro_uint128s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, __uint128_t)
- #define f_macro_uint128s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, __uint128_t)
+ #define f_macro_uint128s_t_increase(status, uint128s) f_macro_memory_structure_increase(status, uint128s, __uint128_t);
+ #define f_macro_uint128s_t_increase_by(status, uint128s, amount) f_macro_memory_structure_increase_by(status, uint128s, __uint128_t, amount);
- #define f_macro_uint128s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, __uint128_t)
- #define f_macro_uint128s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, __uint128_t)
+ #define f_macro_uint128s_t_new(status, uint128s, length) f_macro_memory_structure_t_new(status, uint128s, __uint128_t, length)
- #define f_macro_uint128s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, __uint128_t, new_length)
- #define f_macro_uint128s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, __uint128_t, new_length)
+ #define f_macro_uint128s_t_resize(status, uint128s, new_length) f_macro_memory_structure_t_resize(status, uint128s, __uint128_t, new_length)
#endif // _di_uint128s_t_
/**
#define f_int128s_t_initialize { 0, 0, 0 }
- #define f_macro_int128s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_int128s_t_adjust(status, int128s, length) f_macro_memory_structure_t_adjust(status, int128s, int64_t, length)
- #define f_macro_int128s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, int64_t, length)
+ #define f_macro_int128s_t_clear(int128s) f_macro_memory_structure_t_clear(int128s)
- #define f_macro_int128s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, int64_t)
- #define f_macro_int128s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, int64_t)
+ #define f_macro_int128s_t_decimate(status, int128s) f_macro_memory_structure_decimate(status, int128s, int64_t);
+ #define f_macro_int128s_t_decimate_by(status, int128s, amount) f_macro_memory_structure_decimate_by(status, int128s, int64_t, amount);
- #define f_macro_int128s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, int64_t)
- #define f_macro_int128s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, int64_t)
+ #define f_macro_int128s_t_decrease(status, int128s) f_macro_memory_structure_decrease(status, int128s, int64_t);
+ #define f_macro_int128s_t_decrease_by(status, int128s, amount) f_macro_memory_structure_decrease_by(status, int128s, int64_t, amount);
- #define f_macro_int128s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, int64_t, new_length)
- #define f_macro_int128s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, int64_t, new_length)
+ #define f_macro_int128s_t_delete(status, int128s) f_macro_memory_structure_t_delete(status, int128s, int64_t)
+ #define f_macro_int128s_t_delete_simple(int128s) f_macro_memory_structure_t_delete_simple(int128s, int64_t)
+
+ #define f_macro_int128s_t_destroy(status, int128s) f_macro_memory_structure_t_destroy(status, int128s, int64_t)
+ #define f_macro_int128s_t_destroy_simple(int128s) f_macro_memory_structure_t_destroy_simple(int128s, int64_t)
+
+ #define f_macro_int128s_t_increase(status, int128s) f_macro_memory_structure_increase(status, int128s, int64_t);
+ #define f_macro_int128s_t_increase_by(status, int128s, amount) f_macro_memory_structure_increase_by(status, int128s, int64_t, amount);
+
+ #define f_macro_int128s_t_new(status, int128s, length) f_macro_memory_structure_t_new(status, int128s, int64_t, length)
+
+ #define f_macro_int128s_t_resize(status, int128s, new_length) f_macro_memory_structure_t_resize(status, int128s, int64_t, new_length)
#endif // _di_int128s_t_
/**
#define f_uint128s_t_initialize { 0, 0, 0 }
- #define f_macro_uint128s_t_clear(numbers) f_macro_memory_structure_t_clear(numbers)
+ #define f_macro_uint128s_t_adjust(status, uint128s, length) f_macro_memory_structure_t_adjust(status, uint128s, uint64_t, length)
+
+ #define f_macro_uint128s_t_clear(uint128s) f_macro_memory_structure_t_clear(uint128s)
+
+ #define f_macro_uint128s_t_decimate(status, uint128s) f_macro_memory_structure_decimate(status, uint128s, uint64_t);
+ #define f_macro_uint128s_t_decimate_by(status, uint128s, amount) f_macro_memory_structure_decimate_by(status, uint128s, uint64_t, amount);
+
+ #define f_macro_uint128s_t_decrease(status, uint128s) f_macro_memory_structure_decrease(status, uint128s, uint64_t);
+ #define f_macro_uint128s_t_decrease_by(status, uint128s, amount) f_macro_memory_structure_decrease_by(status, uint128s, uint64_t, amount);
+
+ #define f_macro_uint128s_t_delete(status, uint128s) f_macro_memory_structure_t_delete(status, uint128s, uint64_t)
+ #define f_macro_uint128s_t_delete_simple(uint128s) f_macro_memory_structure_t_delete_simple(uint128s, uint64_t)
- #define f_macro_uint128s_t_new(status, numbers, length) f_macro_memory_structure_t_new(status, numbers, uint64_t, length)
+ #define f_macro_uint128s_t_destroy(status, uint128s) f_macro_memory_structure_t_destroy(status, uint128s, uint64_t)
+ #define f_macro_uint128s_t_destroy_simple(uint128s) f_macro_memory_structure_t_destroy_simple(uint128s, uint64_t)
- #define f_macro_uint128s_t_delete(status, numbers) f_macro_memory_structure_t_delete(status, numbers, uint64_t)
- #define f_macro_uint128s_t_destroy(status, numbers) f_macro_memory_structure_t_destroy(status, numbers, uint64_t)
+ #define f_macro_uint128s_t_increase(status, uint128s) f_macro_memory_structure_increase(status, uint128s, uint64_t);
+ #define f_macro_uint128s_t_increase_by(status, uint128s, amount) f_macro_memory_structure_increase_by(status, uint128s, uint64_t, amount);
- #define f_macro_uint128s_t_delete_simple(numbers) f_macro_memory_structure_t_delete_simple(numbers, uint64_t)
- #define f_macro_uint128s_t_destroy_simple(numbers) f_macro_memory_structure_t_destroy_simple(numbers, uint64_t)
+ #define f_macro_uint128s_t_new(status, uint128s, length) f_macro_memory_structure_t_new(status, uint128s, uint64_t, length)
- #define f_macro_uint128s_t_resize(status, numbers, new_length) f_macro_memory_structure_t_resize(status, numbers, uint64_t, new_length)
- #define f_macro_uint128s_t_adjust(status, numbers, new_length) f_macro_memory_structure_t_adjust(status, numbers, uint64_t, new_length)
+ #define f_macro_uint128s_t_resize(status, uint128s, new_length) f_macro_memory_structure_t_resize(status, uint128s, uint64_t, new_length)
#endif // _di_uint128s_t_
/**
#endif
#if !defined(_di_f_utf_character_is_alpha_) || !defined(_di_f_utf_is_alpha_)
- f_return_status private_f_utf_character_is_alpha(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_alpha(const f_utf_character_t character, const uint8_t width) {
if (private_f_utf_character_is_zero_width(character, width)) {
return F_false;
#endif // !defined(_di_f_utf_character_is_alpha_) || !defined(_di_f_utf_is_alpha_)
#if !defined(_di_f_utf_character_is_alpha_digit_) || !defined(_di_f_utf_is_alpha_digit_)
- f_return_status private_f_utf_character_is_alpha_digit(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_alpha_digit(const f_utf_character_t character, const uint8_t width) {
if (private_f_utf_character_is_digit(character, width)) {
return F_true;
#endif // !defined(_di_f_utf_character_is_alpha_digit_) || !defined(_di_f_utf_is_alpha_digit_)
#if !defined(_di_f_utf_character_is_alpha_numeric_) || !defined(_di_f_utf_is_alpha_numeric_)
- f_return_status private_f_utf_character_is_alpha_numeric(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_alpha_numeric(const f_utf_character_t character, const uint8_t width) {
if (private_f_utf_character_is_numeric(character, width)) {
return F_true;
#endif // !defined(_di_f_utf_character_is_alpha_numeric_) || !defined(_di_f_utf_is_alpha_numeric_)
#if !defined(_di_f_utf_character_is_ascii_) || !defined(_di_f_utf_is_ascii_)
- f_return_status private_f_utf_character_is_ascii(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_ascii(const f_utf_character_t character, const uint8_t width) {
if (!width) {
const uint8_t byte_first = f_macro_utf_character_t_to_char_1(character);
#endif // !defined(_di_f_utf_character_is_ascii_) || !defined(_di_f_utf_is_ascii_)
#if !defined(_di_f_utf_character_is_combining_) || !defined(_di_f_utf_is_combining_)
- f_return_status private_f_utf_character_is_combining(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_combining(const f_utf_character_t character, const uint8_t width) {
if (width == 2) {
#endif // !defined(_di_f_utf_character_is_combining_) || !defined(_di_f_utf_is_combining_)
#if !defined(_di_f_utf_character_is_control_) || !defined(_di_f_utf_is_control_)
- f_return_status private_f_utf_character_is_control(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_control(const f_utf_character_t character, const uint8_t width) {
if (width == 2) {
#endif // !defined(_di_f_utf_character_is_control_) || !defined(_di_f_utf_is_control_)
#if !defined(_di_f_utf_character_is_control_picture_) || !defined(_di_f_utf_is_control_picture_)
- f_return_status private_f_utf_character_is_control_picture(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_control_picture(const f_utf_character_t character, const uint8_t width) {
if (width == 3) {
// Control Pictures: U+2400 to U+2426.
#endif // !defined(_di_f_utf_character_is_control_picture_) || !defined(_di_f_utf_is_control_picture_)
#if !defined(_di_f_utf_character_is_digit_) || !defined(_di_f_utf_is_digit_)
- f_return_status private_f_utf_character_is_digit(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_digit(const f_utf_character_t character, const uint8_t width) {
if (width == 2) {
uint16_t bytes = (uint16_t) ((character & 0xffff0000) >> 16);
#endif // !defined(_di_f_utf_character_is_digit_) || !defined(_di_f_utf_is_digit_)
#if !defined(_di_f_utf_character_is_emoji_) || !defined(_di_f_utf_is_emoji_)
- f_return_status private_f_utf_character_is_emoji(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_emoji(const f_utf_character_t character, const uint8_t width) {
// reduce the number of checks by grouping checks by first byte.
const uint8_t byte_first = f_macro_utf_character_t_to_char_1(character);
#endif // !defined(_di_f_utf_character_is_emoji_) || !defined(_di_f_utf_is_emoji_)
#if !defined(_di_f_utf_character_is_numeric_) || !defined(_di_f_utf_is_numeric_)
- f_return_status private_f_utf_character_is_numeric(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_numeric(const f_utf_character_t character, const uint8_t width) {
if (private_f_utf_character_is_digit(character, width)) {
return F_true;
#endif // !defined(_di_f_utf_character_is_numeric_) || !defined(_di_f_utf_is_numeric_)
#if !defined(_di_f_utf_character_is_phonetic_) || !defined(_di_f_utf_is_phonetic_)
- f_return_status private_f_utf_character_is_phonetic(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_phonetic(const f_utf_character_t character, const uint8_t width) {
if (width == 3) {
#endif // !defined(_di_f_utf_character_is_phonetic_) || !defined(_di_f_utf_is_phonetic_)
#if !defined(_di_f_utf_character_is_private_) || !defined(_di_f_utf_is_private_)
- f_return_status private_f_utf_character_is_private(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_private(const f_utf_character_t character, const uint8_t width) {
if (width < 3) {
return F_false;
#endif // !defined(_di_f_utf_character_is_private_) || !defined(_di_f_utf_is_private_)
#if !defined(_di_f_utf_character_is_punctuation_) || !defined(_di_f_utf_is_punctuation_)
- f_return_status private_f_utf_character_is_punctuation(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_punctuation(const f_utf_character_t character, const uint8_t width) {
// reduce the number of checks by grouping checks by first byte.
const uint8_t byte_first = f_macro_utf_character_t_to_char_1(character);
#endif // !defined(_di_f_utf_character_is_punctuation_) || !defined(_di_f_utf_is_punctuation_)
#if !defined(_di_f_utf_character_is_symbol_) || !defined(_di_f_utf_is_symbol_)
- f_return_status private_f_utf_character_is_symbol(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_symbol(const f_utf_character_t character, const uint8_t width) {
// reduce the number of checks by grouping checks by first byte.
const uint8_t byte_first = f_macro_utf_character_t_to_char_1(character);
#endif // !defined(_di_f_utf_character_is_symbol_) || !defined(_di_f_utf_is_symbol_)
#if !defined(_di_f_utf_character_is_unassigned_) || !defined(_di_f_utf_is_unassigned_)
- f_return_status private_f_utf_character_is_unassigned(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_unassigned(const f_utf_character_t character, const uint8_t width) {
// reduce the number of checks by grouping checks by first byte.
const uint8_t byte_first = f_macro_utf_character_t_to_char_1(character);
#endif // !defined(_di_f_utf_character_is_unassigned_) || !defined(_di_f_utf_is_unassigned_)
#if !defined(_di_f_utf_character_is_valid_) || !defined(_di_f_utf_is_valid_)
- f_return_status private_f_utf_character_is_valid(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_valid(const f_utf_character_t character, const uint8_t width) {
// reduce the number of checks by grouping checks by byte.
const uint8_t byte_first = f_macro_utf_character_t_to_char_1(character);
#endif // !defined(_di_f_utf_character_is_valid_) || !defined(_di_f_utf_is_valid_)
#if !defined(_di_f_utf_character_is_whitespace_) || !defined(_di_f_utf_is_whitespace_)
- f_return_status private_f_utf_character_is_whitespace(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_whitespace(const f_utf_character_t character, const uint8_t width) {
if (width == 2) {
#endif // !defined(_di_f_utf_character_is_whitespace_) || !defined(_di_f_utf_is_whitespace_)
#if !defined(_di_f_utf_character_is_whitespace_modifier_) || !defined(_di_f_utf_is_whitespace_modifier_)
- f_return_status private_f_utf_character_is_whitespace_modifier(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_whitespace_modifier(const f_utf_character_t character, const uint8_t width) {
if (width == 2) {
#endif // !defined(_di_f_utf_character_is_whitespace_modifier_) || !defined(_di_f_utf_is_whitespace_modifier_)
#if !defined(_di_f_utf_character_is_whitespace_other_) || !defined(_di_f_utf_is_whitespace_other_)
- f_return_status private_f_utf_character_is_whitespace_other(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_whitespace_other(const f_utf_character_t character, const uint8_t width) {
// Ogham: U+1680 (isn't whitespace but is technically considered one: ( )).
if (character == 0xe19a8000) {
#endif // !defined(_di_f_utf_character_is_whitespace_other_) || !defined(_di_f_utf_is_whitespace_other_)
#if !defined(_di_f_utf_character_is_word_) || !defined(_di_f_utf_is_word_)
- f_return_status private_f_utf_character_is_word(const f_utf_character_t character, const uint8_t width, const bool strict) {
+ f_status_t private_f_utf_character_is_word(const f_utf_character_t character, const uint8_t width, const bool strict) {
if (private_f_utf_character_is_alpha_digit(character, width)) {
return F_true;
#endif // !defined(_di_f_utf_character_is_word_) || !defined(_di_f_utf_is_word_)
#if !defined(_di_f_utf_character_is_word_dash_) || !defined(_di_f_utf_is_word_dash_)
- f_return_status private_f_utf_character_is_word_dash(const f_utf_character_t character, const uint8_t width, const bool strict) {
+ f_status_t private_f_utf_character_is_word_dash(const f_utf_character_t character, const uint8_t width, const bool strict) {
if (private_f_utf_character_is_word(character, width, strict)) {
return F_true;
#endif // !defined(_di_f_utf_character_is_word_dash_) || !defined(_di_f_utf_is_word_dash_)
#if !defined(_di_f_utf_character_is_word_dash_plus_) || !defined(_di_f_utf_is_word_dash_plus_)
- f_return_status private_f_utf_character_is_word_dash_plus(const f_utf_character_t character, const uint8_t width, const bool strict) {
+ f_status_t private_f_utf_character_is_word_dash_plus(const f_utf_character_t character, const uint8_t width, const bool strict) {
if (private_f_utf_character_is_word_dash(character, width, strict)) {
return F_true;
#endif // !defined(_di_f_utf_character_is_word_dash_plus_) || !defined(_di_f_utf_is_word_dash_plus_)
#if !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_zero_width_)
- f_return_status private_f_utf_character_is_zero_width(const f_utf_character_t character, const uint8_t width) {
+ f_status_t private_f_utf_character_is_zero_width(const f_utf_character_t character, const uint8_t width) {
// reduce the number of checks by grouping checks by first byte.
const uint8_t byte_first = f_macro_utf_character_t_to_char_1(character);
* @see f_utf_is_alpha()
*/
#if !defined(_di_f_utf_character_is_alpha_) || !defined(_di_f_utf_is_alpha_)
- extern f_return_status private_f_utf_character_is_alpha(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_alpha(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_alpha_) || !defined(_di_f_utf_is_alpha_)
/**
* @see f_utf_is_alpha_digit()
*/
#if !defined(_di_f_utf_character_is_alpha_digit_) || !defined(_di_f_utf_is_alpha_digit_)
- extern f_return_status private_f_utf_character_is_alpha_digit(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_alpha_digit(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_alpha_digit_) || !defined(_di_f_utf_is_alpha_digit_)
/**
* @see f_utf_is_alpha_numeric()
*/
#if !defined(_di_f_utf_character_is_alpha_numeric_) || !defined(_di_f_utf_is_alpha_numeric_)
- extern f_return_status private_f_utf_character_is_alpha_numeric(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_alpha_numeric(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_alpha_numeric_) || !defined(_di_f_utf_is_alpha_numeric_)
/**
* @see f_utf_is_ascii()
*/
#if !defined(_di_f_utf_character_is_ascii_) || !defined(_di_f_utf_is_ascii_)
- extern f_return_status private_f_utf_character_is_ascii(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_ascii(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_ascii_) || !defined(_di_f_utf_is_ascii_)
/**
* @see f_utf_is_combining()
*/
#if !defined(_di_f_utf_character_is_combining_) || !defined(_di_f_utf_is_combining_)
- extern f_return_status private_f_utf_character_is_combining(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_combining(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_combining_) || !defined(_di_f_utf_is_combining_)
/**
* @see f_utf_is_control()
*/
#if !defined(_di_f_utf_character_is_control_) || !defined(_di_f_utf_is_control_)
- extern f_return_status private_f_utf_character_is_control(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_control(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_control_) || !defined(_di_f_utf_is_control_)
/**
* @see f_utf_is_control_picture()
*/
#if !defined(_di_f_utf_character_is_control_picture_) || !defined(_di_f_utf_is_control_picture_)
- extern f_return_status private_f_utf_character_is_control_picture(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_control_picture(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_control_picture_) || !defined(_di_f_utf_is_control_picture_)
/**
* @see f_utf_is_digit()
*/
#if !defined(_di_f_utf_character_is_digit_) || !defined(_di_f_utf_is_digit_)
- extern f_return_status private_f_utf_character_is_digit(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_digit(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_digit_) || !defined(_di_f_utf_is_digit_)
/**
* @see f_utf_is_emoji()
*/
#if !defined(_di_f_utf_character_is_emoji_) || !defined(_di_f_utf_is_emoji_)
- extern f_return_status private_f_utf_character_is_emoji(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_emoji(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_emoji_) || !defined(_di_f_utf_is_emoji_)
/**
* @see f_utf_is_numeric()
*/
#if !defined(_di_f_utf_character_is_numeric_) || !defined(_di_f_utf_is_numeric_)
- extern f_return_status private_f_utf_character_is_numeric(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_numeric(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_numeric_) || !defined(_di_f_utf_is_numeric_)
/**
* @see f_utf_is_phonetic()
*/
#if !defined(_di_f_utf_character_is_phonetic_) || !defined(_di_f_utf_is_phonetic_)
- extern f_return_status private_f_utf_character_is_phonetic(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_phonetic(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_phonetic_) || !defined(_di_f_utf_is_phonetic_)
/**
* @see f_utf_is_private()
*/
#if !defined(_di_f_utf_character_is_private_) || !defined(_di_f_utf_is_private_)
- extern f_return_status private_f_utf_character_is_private(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_private(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_private_) || !defined(_di_f_utf_is_private_)
/**
* @see f_utf_is_punctuation()
*/
#if !defined(_di_f_utf_character_is_punctuation_) || !defined(_di_f_utf_is_punctuation_)
- extern f_return_status private_f_utf_character_is_punctuation(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_punctuation(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_punctuation_) || !defined(_di_f_utf_is_punctuation_)
/**
* @see f_utf_is_symbol()
*/
#if !defined(_di_f_utf_character_is_symbol_) || !defined(_di_f_utf_is_symbol_)
- extern f_return_status private_f_utf_character_is_symbol(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_symbol(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_symbol_) || !defined(_di_f_utf_is_symbol_)
/**
* @see f_utf_is_unassigned()
*/
#if !defined(_di_f_utf_character_is_unassigned_) || !defined(_di_f_utf_is_unassigned_)
- extern f_return_status private_f_utf_character_is_unassigned(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_unassigned(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_unassigned_) || !defined(_di_f_utf_is_unassigned_)
/**
* @see f_utf_is_valid()
*/
#if !defined(_di_f_utf_character_is_valid_) || !defined(_di_f_utf_is_valid_)
- extern f_return_status private_f_utf_character_is_valid(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_valid(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_valid_) || !defined(_di_f_utf_is_valid_)
/**
* @see f_utf_is_whitespace()
*/
#if !defined(_di_f_utf_character_is_whitespace_) || !defined(_di_f_utf_is_whitespace_)
- extern f_return_status private_f_utf_character_is_whitespace(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_whitespace(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_whitespace_) || !defined(_di_f_utf_is_whitespace_)
/**
* @see f_utf_is_whitespace_modifier()
*/
#if !defined(_di_f_utf_character_is_whitespace_modifier_) || !defined(_di_f_utf_is_whitespace_modifier_)
- extern f_return_status private_f_utf_character_is_whitespace_modifier(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_whitespace_modifier(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_whitespace_modifier_) || !defined(_di_f_utf_is_whitespace_modifier_)
/**
* @see f_utf_is_whitespace_other()
*/
#if !defined(_di_f_utf_character_is_whitespace_other_) || !defined(_di_f_utf_is_whitespace_other_)
- extern f_return_status private_f_utf_character_is_whitespace_other(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_whitespace_other(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_whitespace_other_) || !defined(_di_f_utf_is_whitespace_other_)
/**
* @see f_utf_is_word()
*/
#if !defined(_di_f_utf_character_is_word_) || !defined(_di_f_utf_is_word_)
- extern f_return_status private_f_utf_character_is_word(const f_utf_character_t character, const uint8_t width, const bool strict) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_word(const f_utf_character_t character, const uint8_t width, const bool strict) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_word_) || !defined(_di_f_utf_is_word_)
/**
* @see f_utf_is_word_dash()
*/
#if !defined(_di_f_utf_character_is_word_dash_) || !defined(_di_f_utf_is_word_dash_)
- extern f_return_status private_f_utf_character_is_word_dash(const f_utf_character_t character, const uint8_t width, const bool strict) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_word_dash(const f_utf_character_t character, const uint8_t width, const bool strict) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_word_dash_) || !defined(_di_f_utf_is_word_dash_)
/**
* @see f_utf_is_word_dash_plus()
*/
#if !defined(_di_f_utf_character_is_word_dash_plus_) || !defined(_di_f_utf_is_word_dash_plus_)
- extern f_return_status private_f_utf_character_is_word_dash_plus(const f_utf_character_t character, const uint8_t width, const bool strict) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_word_dash_plus(const f_utf_character_t character, const uint8_t width, const bool strict) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_word_dash_plus_) || !defined(_di_f_utf_is_word_dash_plus_)
/**
* @see f_utf_is_zero_width()
*/
#if !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_zero_width_)
- extern f_return_status private_f_utf_character_is_zero_width(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_f_utf_character_is_zero_width(const f_utf_character_t character, const uint8_t width) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_zero_width_)
#ifdef __cplusplus
#endif
#ifndef _di_f_utf_buffer_decrement_
- f_return_status f_utf_buffer_decrement(const f_string_static_t buffer, f_string_range_t *range, const f_string_length_t step) {
+ f_status_t f_utf_buffer_decrement(const f_string_static_t buffer, f_string_range_t *range, const f_string_length_t step) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (step < 1) return F_status_set_error(F_parameter);
#endif // _di_f_utf_buffer_decrement_
#ifndef _di_f_utf_buffer_increment_
- f_return_status f_utf_buffer_increment(const f_string_static_t buffer, f_string_range_t *range, const f_string_length_t step) {
+ f_status_t f_utf_buffer_increment(const f_string_static_t buffer, f_string_range_t *range, const f_string_length_t step) {
#ifndef _di_level_0_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (step < 1) return F_status_set_error(F_parameter);
#endif // _di_f_utf_buffer_increment_
#ifndef _di_f_utf_character_is_
- f_return_status f_utf_character_is(const f_utf_character_t character) {
+ f_status_t f_utf_character_is(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_
#ifndef _di_f_utf_character_is_alpha_
- f_return_status f_utf_character_is_alpha(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_alpha(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_alpha_
#ifndef _di_f_utf_character_is_alpha_digit_
- f_return_status f_utf_character_is_alpha_digit(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_alpha_digit(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_alpha_digit_
#ifndef _di_f_utf_character_is_alpha_numeric_
- f_return_status f_utf_character_is_alpha_numeric(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_alpha_numeric(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_alpha_numeric_
#ifndef _di_f_utf_character_is_ascii_
- f_return_status f_utf_character_is_ascii(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_ascii(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (width == 1) {
#endif // _di_f_utf_character_is_ascii_
#ifndef _di_f_utf_character_is_combining_
- f_return_status f_utf_character_is_combining(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_combining(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_combining_
#ifndef _di_f_utf_character_is_control_
- f_return_status f_utf_character_is_control(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_control(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_control_
#ifndef _di_f_utf_character_is_control_picture_
- f_return_status f_utf_character_is_control_picture(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_control_picture(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_control_picture_
#ifndef _di_f_utf_character_is_digit_
- f_return_status f_utf_character_is_digit(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_digit(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_digit_
#ifndef _di_f_utf_character_is_emoji_
- f_return_status f_utf_character_is_emoji(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_emoji(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_emoji_
#ifndef _di_f_utf_character_is_fragment_
- f_return_status f_utf_character_is_fragment(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_fragment(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (width == 1) return F_true;
#endif // _di_f_utf_character_is_fragment_
#ifndef _di_f_utf_character_is_graph_
- f_return_status f_utf_character_is_graph(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_graph(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_graph_
#ifndef _di_f_utf_character_is_numeric_
- f_return_status f_utf_character_is_numeric(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_numeric(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_numeric_
#ifndef _di_f_utf_character_is_phonetic_
- f_return_status f_utf_character_is_phonetic(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_phonetic(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_phonetic_
#ifndef _di_f_utf_character_is_private_
- f_return_status f_utf_character_is_private(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_private(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_phonetic_
#ifndef _di_f_utf_character_is_punctuation_
- f_return_status f_utf_character_is_punctuation(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_punctuation(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_punctuation_
#ifndef _di_f_utf_character_is_symbol_
- f_return_status f_utf_character_is_symbol(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_symbol(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_symbol_
#ifndef _di_f_utf_character_is_unassigned_
- f_return_status f_utf_character_is_unassigned(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_unassigned(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width || width == 1) {
#endif // _di_f_utf_character_is_unassigned_
#ifndef _di_f_utf_character_is_valid_
- f_return_status f_utf_character_is_valid(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_valid(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (width == 1) {
#endif // _di_f_utf_character_is_valid_
#ifndef _di_f_utf_character_is_whitespace_
- f_return_status f_utf_character_is_whitespace(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_whitespace(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_whitespace_
#ifndef _di_f_utf_character_is_whitespace_modifier_
- f_return_status f_utf_character_is_whitespace_modifier(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_whitespace_modifier(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_whitespace_modifier_
#ifndef _di_f_utf_character_is_whitespace_other_
- f_return_status f_utf_character_is_whitespace_other(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_whitespace_other(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_whitespace_other_
#ifndef _di_f_utf_character_is_word_
- f_return_status f_utf_character_is_word(const f_utf_character_t character, const bool strict) {
+ f_status_t f_utf_character_is_word(const f_utf_character_t character, const bool strict) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_word_
#ifndef _di_f_utf_character_is_word_dash_
- f_return_status f_utf_character_is_word_dash(const f_utf_character_t character, const bool strict) {
+ f_status_t f_utf_character_is_word_dash(const f_utf_character_t character, const bool strict) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_word_dash_
#ifndef _di_f_utf_character_is_word_dash_plus_
- f_return_status f_utf_character_is_word_dash_plus(const f_utf_character_t character, const bool strict) {
+ f_status_t f_utf_character_is_word_dash_plus(const f_utf_character_t character, const bool strict) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_word_dash_plus_
#ifndef _di_f_utf_character_is_zero_width_
- f_return_status f_utf_character_is_zero_width(const f_utf_character_t character) {
+ f_status_t f_utf_character_is_zero_width(const f_utf_character_t character) {
const uint8_t width = f_macro_utf_character_t_width_is(character);
if (!width) {
#endif // _di_f_utf_character_is_zero_width_
#ifndef _di_f_utf_character_to_char_
- f_return_status f_utf_character_to_char(const f_utf_character_t utf_character, f_string_t *character, f_string_length_t *width_max) {
+ f_status_t f_utf_character_to_char(const f_utf_character_t utf_character, f_string_t *character, f_string_length_t *width_max) {
#ifndef _di_level_0_parameter_checking_
if (!utf_character) return F_status_set_error(F_parameter);
if (!width_max && *character) return F_status_set_error(F_parameter);
#endif // _di_f_utf_character_to_char_
#ifndef _di_f_utf_is_big_endian_
- f_return_status f_utf_is_big_endian() {
+ f_status_t f_utf_is_big_endian() {
uint16_t test_int = (0x01 << 8) | 0x02;
int8_t test_char[2] = {0x01, 0x02};
#endif // _di_f_utf_is_big_endian_
#ifndef _di_f_utf_is_
- f_return_status f_utf_is(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_
#ifndef _di_f_utf_is_alpha_
- f_return_status f_utf_is_alpha(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_alpha(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_alpha_
#ifndef _di_f_utf_is_alpha_digit_
- f_return_status f_utf_is_alpha_digit(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_alpha_digit(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_alpha_digit_
#ifndef _di_f_utf_is_alpha_numeric_
- f_return_status f_utf_is_alpha_numeric(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_alpha_numeric(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_alpha_numeric_
#ifndef _di_f_utf_is_ascii_
- f_return_status f_utf_is_ascii(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_ascii(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_ascii_
#ifndef _di_f_utf_is_combining_
- f_return_status f_utf_is_combining(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_combining(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_combining_
#ifndef _di_f_utf_is_control_
- f_return_status f_utf_is_control(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_control(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_control_
#ifndef _di_f_utf_is_control_picture_
- f_return_status f_utf_is_control_picture(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_control_picture(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_control_picture_
#ifndef _di_f_utf_is_digit_
- f_return_status f_utf_is_digit(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_digit(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_digit_
#ifndef _di_f_utf_is_emoji_
- f_return_status f_utf_is_emoji(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_emoji(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_emoji_
#ifndef _di_f_utf_is_fragment_
- f_return_status f_utf_is_fragment(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_fragment(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_fragment_
#ifndef _di_f_utf_is_graph_
- f_return_status f_utf_is_graph(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_graph(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_graph_
#ifndef _di_f_utf_is_numeric_
- f_return_status f_utf_is_numeric(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_numeric(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_numeric_
#ifndef _di_f_utf_is_phonetic_
- f_return_status f_utf_is_phonetic(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_phonetic(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_phonetic_
#ifndef _di_f_utf_is_private_
- f_return_status f_utf_is_private(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_private(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_private_
#ifndef _di_f_utf_is_punctuation_
- f_return_status f_utf_is_punctuation(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_punctuation(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_punctuation_
#ifndef _di_f_utf_is_symbol_
- f_return_status f_utf_is_symbol(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_symbol(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_symbol_
#ifndef _di_f_utf_is_unassigned_
- f_return_status f_utf_is_unassigned(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_unassigned(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_unassigned_
#ifndef _di_f_utf_is_valid_
- f_return_status f_utf_is_valid(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_valid(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_valid_
#ifndef _di_f_utf_is_whitespace_
- f_return_status f_utf_is_whitespace(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_whitespace(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_whitespace_
#ifndef _di_f_utf_is_whitespace_modifier_
- f_return_status f_utf_is_whitespace_modifier(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_whitespace_modifier(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_whitespace_modifier_
#ifndef _di_f_utf_is_whitespace_other_
- f_return_status f_utf_is_whitespace_other(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_whitespace_other(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_whitespace_other_
#ifndef _di_f_utf_is_word_
- f_return_status f_utf_is_word(const f_string_t character, const f_string_length_t width_max, const bool strict) {
+ f_status_t f_utf_is_word(const f_string_t character, const f_string_length_t width_max, const bool strict) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_word_
#ifndef _di_f_utf_is_word_dash_
- f_return_status f_utf_is_word_dash(const f_string_t character, const f_string_length_t width_max, const bool strict) {
+ f_status_t f_utf_is_word_dash(const f_string_t character, const f_string_length_t width_max, const bool strict) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_word_dash_
#ifndef _di_f_utf_is_word_dash_plus_
- f_return_status f_utf_is_word_dash_plus(const f_string_t character, const f_string_length_t width_max, const bool strict) {
+ f_status_t f_utf_is_word_dash_plus(const f_string_t character, const f_string_length_t width_max, const bool strict) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_word_dash_plus_
#ifndef _di_f_utf_is_zero_width_
- f_return_status f_utf_is_zero_width(const f_string_t character, const f_string_length_t width_max) {
+ f_status_t f_utf_is_zero_width(const f_string_t character, const f_string_length_t width_max) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
#endif // _di_level_0_parameter_checking_
#endif // _di_f_utf_is_zero_width_
#ifndef _di_f_utf_char_to_character_
- f_return_status f_utf_char_to_character(const f_string_t character, const f_string_length_t width_max, f_utf_character_t *character_utf) {
+ f_status_t f_utf_char_to_character(const f_string_t character, const f_string_length_t width_max, f_utf_character_t *character_utf) {
#ifndef _di_level_0_parameter_checking_
if (width_max < 1) return F_status_set_error(F_parameter);
if (!character_utf) return F_status_set_error(F_parameter);
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_buffer_decrement_
- extern f_return_status f_utf_buffer_decrement(const f_string_static_t buffer, f_string_range_t *range, const f_string_length_t step);
+ extern f_status_t f_utf_buffer_decrement(const f_string_static_t buffer, f_string_range_t *range, const f_string_length_t step);
#endif // _di_f_utf_buffer_decrement_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_buffer_increment_
- extern f_return_status f_utf_buffer_increment(const f_string_static_t buffer, f_string_range_t *range, const f_string_length_t step);
+ extern f_status_t f_utf_buffer_increment(const f_string_static_t buffer, f_string_range_t *range, const f_string_length_t step);
#endif // _di_f_utf_buffer_increment_
/**
* @see f_utf_character_is_valid()
*/
#ifndef _di_f_utf_character_is_
- extern f_return_status f_utf_character_is(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is(const f_utf_character_t character);
#endif // _di_f_utf_character_is_
/**
* @see isalpha()
*/
#ifndef _di_f_utf_character_is_alpha_
- extern f_return_status f_utf_character_is_alpha(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_alpha(const f_utf_character_t character);
#endif // _di_f_utf_character_is_alpha_
/**
* @see isalnum()
*/
#ifndef _di_f_utf_character_is_alpha_digit_
- extern f_return_status f_utf_character_is_alpha_digit(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_alpha_digit(const f_utf_character_t character);
#endif // _di_f_utf_character_is_alpha_digit_
/**
* @see isalnum()
*/
#ifndef _di_f_utf_character_is_alpha_numeric_
- extern f_return_status f_utf_character_is_alpha_numeric(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_alpha_numeric(const f_utf_character_t character);
#endif // _di_f_utf_character_is_alpha_numeric_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_character_is_ascii_
- extern f_return_status f_utf_character_is_ascii(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_ascii(const f_utf_character_t character);
#endif // _di_f_utf_character_is_ascii_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_character_is_combining_
- extern f_return_status f_utf_character_is_combining(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_combining(const f_utf_character_t character);
#endif // _di_f_utf_character_is_combining_
/**
* @see iscntrl()
*/
#ifndef _di_f_utf_character_is_control_
- extern f_return_status f_utf_character_is_control(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_control(const f_utf_character_t character);
#endif // _di_f_utf_character_is_control_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_character_is_control_picture_
- extern f_return_status f_utf_character_is_control_picture(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_control_picture(const f_utf_character_t character);
#endif // _di_f_utf_character_is_control_picture_
/**
* @see isdigit()
*/
#ifndef _di_f_utf_character_is_digit_
- extern f_return_status f_utf_character_is_digit(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_digit(const f_utf_character_t character);
#endif // _di_f_utf_character_is_digit_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_character_is_emoji_
- extern f_return_status f_utf_character_is_emoji(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_emoji(const f_utf_character_t character);
#endif // _di_f_utf_character_is_emoji_
/**
* @see f_utf_character_is_valid()
*/
#ifndef _di_f_utf_character_is_fragment_
- extern f_return_status f_utf_character_is_fragment(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_fragment(const f_utf_character_t character);
#endif // _di_f_utf_character_is_fragment_
/**
* @see isgraph()
*/
#ifndef _di_f_utf_character_is_graph_
- extern f_return_status f_utf_character_is_graph(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_graph(const f_utf_character_t character);
#endif // _di_f_utf_character_is_graph_
/**
* @see isdigit()
*/
#ifndef _di_f_utf_character_is_numeric_
- extern f_return_status f_utf_character_is_numeric(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_numeric(const f_utf_character_t character);
#endif // _di_f_utf_character_is_numeric_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_character_is_phonetic_
- extern f_return_status f_utf_character_is_phonetic(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_phonetic(const f_utf_character_t character);
#endif // _di_f_utf_character_is_phonetic_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_character_is_private_
- extern f_return_status f_utf_character_is_private(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_private(const f_utf_character_t character);
#endif // _di_f_utf_character_is_private_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_character_is_punctuation_
- extern f_return_status f_utf_character_is_punctuation(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_punctuation(const f_utf_character_t character);
#endif // _di_f_utf_character_is_punctuation_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_character_is_symbol_
- extern f_return_status f_utf_character_is_symbol(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_symbol(const f_utf_character_t character);
#endif // _di_f_utf_character_is_symbol_
/**
* @see f_utf_character_is_fragment()
*/
#ifndef _di_f_utf_character_is_unassigned_
- extern f_return_status f_utf_character_is_unassigned(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_unassigned(const f_utf_character_t character);
#endif // _di_f_utf_character_is_value_
/**
* @see f_utf_character_is_fragment()
*/
#ifndef _di_f_utf_character_is_valid_
- extern f_return_status f_utf_character_is_valid(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_valid(const f_utf_character_t character);
#endif // _di_f_utf_character_is_value_
/**
* @see isspace()
*/
#ifndef _di_f_utf_character_is_whitespace_
- extern f_return_status f_utf_character_is_whitespace(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_whitespace(const f_utf_character_t character);
#endif // _di_f_utf_character_is_whitespace_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_character_is_whitespace_modifier_
- extern f_return_status f_utf_character_is_whitespace_modifier(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_whitespace_modifier(const f_utf_character_t character);
#endif // _di_f_utf_character_is_whitespace_modifier_
/**
* @see isspace()
*/
#ifndef _di_f_utf_character_is_whitespace_other_
- extern f_return_status f_utf_character_is_whitespace_other(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_whitespace_other(const f_utf_character_t character);
#endif // _di_f_utf_character_is_whitespace_other_
/**
* @see isalnum()
*/
#ifndef _di_f_utf_character_is_word_
- extern f_return_status f_utf_character_is_word(const f_utf_character_t character, const bool strict);
+ extern f_status_t f_utf_character_is_word(const f_utf_character_t character, const bool strict);
#endif // _di_f_utf_character_is_word_
/**
* @see isalnum()
*/
#ifndef _di_f_utf_character_is_word_dash_
- extern f_return_status f_utf_character_is_word_dash(const f_utf_character_t character, const bool strict);
+ extern f_status_t f_utf_character_is_word_dash(const f_utf_character_t character, const bool strict);
#endif // _di_f_utf_character_is_word_dash_
/**
* @see isalnum()
*/
#ifndef _di_f_utf_character_is_word_dash_plus_
- extern f_return_status f_utf_character_is_word_dash_plus(const f_utf_character_t character, const bool strict);
+ extern f_status_t f_utf_character_is_word_dash_plus(const f_utf_character_t character, const bool strict);
#endif // _di_f_utf_character_is_word_dash_plus_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_character_is_zero_width_
- extern f_return_status f_utf_character_is_zero_width(const f_utf_character_t character);
+ extern f_status_t f_utf_character_is_zero_width(const f_utf_character_t character);
#endif // _di_f_utf_character_is_zero_width_
/**
* F_failure (with error bit) if width is not long enough to convert.
*/
#ifndef _di_f_utf_character_to_char_
- extern f_return_status f_utf_character_to_char(const f_utf_character_t utf_character, f_string_t *character, f_string_length_t *width_max);
+ extern f_status_t f_utf_character_to_char(const f_utf_character_t utf_character, f_string_t *character, f_string_length_t *width_max);
#endif // _di_f_utf_character_to_char_
/**
* F_false if the system is little-endian.
*/
#ifndef _di_f_utf_is_big_endian_
- extern f_return_status f_utf_is_big_endian();
+ extern f_status_t f_utf_is_big_endian();
#endif // _di_f_utf_is_big_endian_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_is_
- extern f_return_status f_utf_is(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_
/**
* @see isalpha()
*/
#ifndef _di_f_utf_is_alpha_
- extern f_return_status f_utf_is_alpha(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_alpha(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_alpha_
/**
* @see isalnum()
*/
#ifndef _di_f_utf_is_alpha_digit_
- extern f_return_status f_utf_is_alpha_digit(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_alpha_digit(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_alpha_digit_
/**
* @see isalnum()
*/
#ifndef _di_f_utf_is_alpha_numeric_
- extern f_return_status f_utf_is_alpha_numeric(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_alpha_numeric(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_alpha_numeric_
/**
* F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment.
*/
#ifndef _di_f_utf_is_ascii_
- extern f_return_status f_utf_is_ascii(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_ascii(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_ascii_
/**
* F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment.
*/
#ifndef _di_f_utf_is_combining_
- extern f_return_status f_utf_is_combining(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_combining(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_combining_
/**
* @see iscntrl()
*/
#ifndef _di_f_utf_is_control_
- extern f_return_status f_utf_is_control(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_control(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_control_
/**
* F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment.
*/
#ifndef _di_f_utf_is_control_picture_
- extern f_return_status f_utf_is_control_picture(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_control_picture(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_control_picture_
/**
* @see isdigit()
*/
#ifndef _di_f_utf_is_digit_
- extern f_return_status f_utf_is_digit(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_digit(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_digit_
/**
* F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment.
*/
#ifndef _di_f_utf_is_emoji_
- extern f_return_status f_utf_is_emoji(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_emoji(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_emoji_
/**
* F_false if not a UTF-8 character.
*/
#ifndef _di_f_utf_is_fragment_
- extern f_return_status f_utf_is_fragment(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_fragment(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_fragment_
/**
* @see isgraph()
*/
#ifndef _di_f_utf_is_graph_
- extern f_return_status f_utf_is_graph(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_graph(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_graph_
/**
* @see isdigit()
*/
#ifndef _di_f_utf_is_numeric_
- extern f_return_status f_utf_is_numeric(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_numeric(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_numeric_
/**
* F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment.
*/
#ifndef _di_f_utf_is_phonetic_
- extern f_return_status f_utf_is_phonetic(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_phonetic(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_phonetic_
/**
* F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment.
*/
#ifndef _di_f_utf_is_private_
- extern f_return_status f_utf_is_private(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_private(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_private_
/**
* F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment.
*/
#ifndef _di_f_utf_is_punctuation_
- extern f_return_status f_utf_is_punctuation(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_punctuation(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_punctuation_
/**
* F_complete_not_utf (with error bit) if character is an incomplete UTF-8 fragment.
*/
#ifndef _di_f_utf_is_symbol_
- extern f_return_status f_utf_is_symbol(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_symbol(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_symbol_
/**
* F_parameter (with error bit) if a parameter is inunassigned.
*/
#ifndef _di_f_utf_is_unassigned_
- extern f_return_status f_utf_is_unassigned(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_unassigned(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_unassigned_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_is_valid_
- extern f_return_status f_utf_is_valid(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_valid(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_valid_
/**
* @see isspace()
*/
#ifndef _di_f_utf_is_whitespace_
- extern f_return_status f_utf_is_whitespace(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_whitespace(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_whitespace_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_is_whitespace_modifier_
- extern f_return_status f_utf_is_whitespace_modifier(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_whitespace_modifier(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_whitespace_modifier_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_is_whitespace_other_
- extern f_return_status f_utf_is_whitespace_other(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_whitespace_other(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_whitespace_other_
/**
* @see isalnum()
*/
#ifndef _di_f_utf_is_word_
- extern f_return_status f_utf_is_word(const f_string_t character, const f_string_length_t width_max, const bool strict);
+ extern f_status_t f_utf_is_word(const f_string_t character, const f_string_length_t width_max, const bool strict);
#endif // _di_f_utf_is_word_
/**
* @see isalnum()
*/
#ifndef _di_f_utf_is_word_dash_
- extern f_return_status f_utf_is_word_dash(const f_string_t character, const f_string_length_t width_max, const bool strict);
+ extern f_status_t f_utf_is_word_dash(const f_string_t character, const f_string_length_t width_max, const bool strict);
#endif // _di_f_utf_is_word_dash_
/**
* @see isalnum()
*/
#ifndef _di_f_utf_is_word_dash_plus_
- extern f_return_status f_utf_is_word_dash_plus(const f_string_t character, const f_string_length_t width_max, const bool strict);
+ extern f_status_t f_utf_is_word_dash_plus(const f_string_t character, const f_string_length_t width_max, const bool strict);
#endif // _di_f_utf_is_word_dash_plus_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_f_utf_is_zero_width_
- extern f_return_status f_utf_is_zero_width(const f_string_t character, const f_string_length_t width_max);
+ extern f_status_t f_utf_is_zero_width(const f_string_t character, const f_string_length_t width_max);
#endif // _di_f_utf_is_zero_width_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_f_utf_char_to_character_
- extern f_return_status f_utf_char_to_character(const f_string_t character, const f_string_length_t width_max, f_utf_character_t *character_utf);
+ extern f_status_t f_utf_char_to_character(const f_string_t character, const f_string_length_t width_max, f_utf_character_t *character_utf);
#endif // _di_f_utf_char_to_character_
#ifdef __cplusplus
#endif
#ifndef _di_fl_color_set_
- f_return_status fl_color_set(FILE *stream, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5) {
+ f_status_t fl_color_set(FILE *stream, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
if (!color1) return F_status_set_error(F_parameter);
#endif // _di_fl_color_set_
#ifndef _di_fl_color_set_to_
- f_return_status fl_color_set_to(const int id, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5) {
+ f_status_t fl_color_set_to(const int id, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5) {
#ifndef _di_level_1_parameter_checking_
if (id == -1) return F_status_set_error(F_parameter);
if (!color1) return F_status_set_error(F_parameter);
#endif // _di_fl_color_set_to_
#ifndef _di_fl_color_save_
- f_return_status fl_color_save(f_string_dynamic_t *buffer, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5) {
+ f_status_t fl_color_save(f_string_dynamic_t *buffer, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5) {
#ifndef _di_level_1_parameter_checking_
if (!buffer) return F_status_set_error(F_parameter);
if (!color1) return F_status_set_error(F_parameter);
#endif // _di_fl_color_save_
#ifndef _di_fl_color_print_
- f_return_status fl_color_print(FILE *stream, const f_color_set_t set, const f_string_t string, ...) {
+ f_status_t fl_color_print(FILE *stream, const f_color_set_t set, const f_string_t string, ...) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
if (!string) return F_status_set_error(F_parameter);
#endif // _di_fl_color_print_
#ifndef _di_fl_color_print2_
- f_return_status fl_color_print2(FILE *stream, const f_color_set_t set, const f_color_set_t extra, const f_string_t string, ...) {
+ f_status_t fl_color_print2(FILE *stream, const f_color_set_t set, const f_color_set_t extra, const f_string_t string, ...) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
if (!string) return F_status_set_error(F_parameter);
#endif // _di_fl_color_print2_
#ifndef _di_fl_color_print_code_
- f_return_status fl_color_print_code(FILE *stream, const f_string_static_t color) {
+ f_status_t fl_color_print_code(FILE *stream, const f_string_static_t color) {
#ifndef _di_level_1_parameter_checking_
if (!stream) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_color_print_code_
#ifndef _di_fl_color_print_code_to_
- f_return_status fl_color_print_code_to(const int id, const f_string_static_t color) {
+ f_status_t fl_color_print_code_to(const int id, const f_string_static_t color) {
#ifndef _di_level_1_parameter_checking_
if (id == -1) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_color_print_code_to_
#ifndef _di_fl_color_print_to_
- f_return_status fl_color_print_to(const int id, const f_color_set_t set, const f_string_t string, ...) {
+ f_status_t fl_color_print_to(const int id, const f_color_set_t set, const f_string_t string, ...) {
#ifndef _di_level_1_parameter_checking_
if (id == -1) return F_status_set_error(F_parameter);
if (!string) return F_status_set_error(F_parameter);
#endif // _di_fl_color_print_to_
#ifndef _di_fl_color_print2_to_
- f_return_status fl_color_print2_to(const int id, const f_color_set_t set, const f_color_set_t extra, const f_string_t string, ...) {
+ f_status_t fl_color_print2_to(const int id, const f_color_set_t set, const f_color_set_t extra, const f_string_t string, ...) {
#ifndef _di_level_1_parameter_checking_
if (id == -1) return F_status_set_error(F_parameter);
if (!string) return F_status_set_error(F_parameter);
#endif // _di_fl_color_print2_to_
#ifndef _di_fl_color_load_context_
- f_return_status fl_color_load_context(f_color_context_t *context, const bool use_light_colors) {
+ f_status_t fl_color_load_context(f_color_context_t *context, const bool use_light_colors) {
#ifndef _di_level_1_parameter_checking_
if (!context) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_color_set_
- extern f_return_status fl_color_set(FILE *stream, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5);
+ extern f_status_t fl_color_set(FILE *stream, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5);
#define fl_macro_color_set_1(stream, format, color1) fl_color_set(stream, format, color1, 0, 0, 0, 0)
#define fl_macro_color_set_2(stream, format, color1, color2) fl_color_set(stream, format, color1, color2, 0, 0, 0)
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_color_set_to_
- extern f_return_status fl_color_set_to(const int id, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5);
+ extern f_status_t fl_color_set_to(const int id, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5);
#define fl_macro_color_set_to_1(id, format, color1) fl_color_set_to(id, format, color1, 0, 0, 0, 0)
#define fl_macro_color_set_to_2(id, format, color1, color2) fl_color_set_to(id, format, color1, color2, 0, 0, 0)
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_color_save_
- extern f_return_status fl_color_save(f_string_dynamic_t *buffer, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5);
+ extern f_status_t fl_color_save(f_string_dynamic_t *buffer, const f_color_format_t format, const int8_t *color1, const int8_t *color2, const int8_t *color3, const int8_t *color4, const int8_t *color5);
#define fl_macro_color_save_1(buffer, format, color1) fl_color_save(buffer, format, color1, 0, 0, 0, 0)
#define fl_macro_color_save_2(buffer, format, color1, color2) fl_color_save(buffer, format, color1, color2, 0, 0, 0)
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_color_print_
- extern f_return_status fl_color_print(FILE *stream, const f_color_set_t set, const f_string_t string, ...);
+ extern f_status_t fl_color_print(FILE *stream, const f_color_set_t set, const f_string_t string, ...);
#endif // _di_fl_color_print_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_color_print2_
- extern f_return_status fl_color_print2(FILE *stream, const f_color_set_t set, const f_color_set_t extra, const f_string_t string, ...);
+ extern f_status_t fl_color_print2(FILE *stream, const f_color_set_t set, const f_color_set_t extra, const f_string_t string, ...);
#endif // _di_fl_color_print2_
/**
* Errors (with error bit) from: f_print_dynamic().
*/
#ifndef _di_fl_color_print_code_
- extern f_return_status fl_color_print_code(FILE *stream, const f_string_static_t color);
+ extern f_status_t fl_color_print_code(FILE *stream, const f_string_static_t color);
#endif // _di_fl_color_print_code_
/**
* Errors (with error bit) from: f_print_to_dynamic().
*/
#ifndef _di_fl_color_print_code_to_
- extern f_return_status fl_color_print_code_to(const int id, const f_string_static_t color);
+ extern f_status_t fl_color_print_code_to(const int id, const f_string_static_t color);
#endif // _di_fl_color_print_code_to_
/**
* Errors (with error bit) from: f_print_dynamic().
*/
#ifndef _di_fl_color_print_to_
- extern f_return_status fl_color_print_to(const int id, const f_color_set_t set, const f_string_t string, ...);
+ extern f_status_t fl_color_print_to(const int id, const f_color_set_t set, const f_string_t string, ...);
#endif // _di_fl_color_print_to_
/**
* Errors (with error bit) from: f_print_dynamic().
*/
#ifndef _di_fl_color_print2_to_
- extern f_return_status fl_color_print2_to(const int id, const f_color_set_t set, const f_color_set_t extra, const f_string_t string, ...);
+ extern f_status_t fl_color_print2_to(const int id, const f_color_set_t set, const f_color_set_t extra, const f_string_t string, ...);
#endif // _di_fl_color_print2_to_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_color_load_context_
- extern f_return_status fl_color_load_context(f_color_context_t *context, const bool use_light_colors);
+ extern f_status_t fl_color_load_context(f_color_context_t *context, const bool use_light_colors);
#endif // _di_fl_color_load_context_
#ifdef __cplusplus
#endif
#ifndef _fl_console_parameter_to_string_dynamic_directory_
- f_return_status fl_console_parameter_to_string_dynamic_directory(const f_string_t argument, f_string_dynamic_t *directory) {
+ f_status_t fl_console_parameter_to_string_dynamic_directory(const f_string_t argument, f_string_dynamic_t *directory) {
#ifndef _di_level_1_parameter_checking_
if (!argument) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _fl_console_parameter_to_string_dynamic_directory_
- extern f_return_status fl_console_parameter_to_string_dynamic_directory(const f_string_t argument, f_string_dynamic_t *directory);
+ extern f_status_t fl_console_parameter_to_string_dynamic_directory(const f_string_t argument, f_string_dynamic_t *directory);
#endif // _fl_console_parameter_to_string_dynamic_directory_
#ifdef __cplusplus
#endif
#ifndef _di_fl_control_group_apply_
- f_return_status fl_control_group_apply(const f_control_group_t control_group, const pid_t id) {
+ f_status_t fl_control_group_apply(const f_control_group_t control_group, const pid_t id) {
#ifndef _di_level_1_parameter_checking_
if (!id) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_control_group_apply_
#ifndef _di_fl_control_group_delete_
- f_return_status fl_control_group_delete(f_control_group_t *control_group) {
+ f_status_t fl_control_group_delete(f_control_group_t *control_group) {
f_status_t status = F_none;
f_macro_control_group_t_delete(status, (*control_group));
* @see f_file_stream_open()
*/
#ifndef _di_fl_control_group_apply_
- extern f_return_status fl_control_group_apply(const f_control_group_t control_group, const pid_t id);
+ extern f_status_t fl_control_group_apply(const f_control_group_t control_group, const pid_t id);
#endif // _di_fl_control_group_apply_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_control_group_delete_
- extern f_return_status fl_control_group_delete(f_control_group_t *control_group);
+ extern f_status_t fl_control_group_delete(f_control_group_t *control_group);
#endif // _di_fl_control_group_delete_
#ifdef __cplusplus
#endif
#ifndef _di_fl_conversion_string_to_binary_signed_
- f_return_status fl_conversion_string_to_binary_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative) {
+ f_status_t fl_conversion_string_to_binary_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_binary_signed_
#ifndef _di_fl_conversion_string_to_binary_unsigned_
- f_return_status fl_conversion_string_to_binary_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
+ f_status_t fl_conversion_string_to_binary_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_binary_unsigned_
#ifndef _di_fl_conversion_string_to_decimal_signed_
- f_return_status fl_conversion_string_to_decimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative) {
+ f_status_t fl_conversion_string_to_decimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_decimal_signed_
#ifndef _di_fl_conversion_string_to_decimal_unsigned_
- f_return_status fl_conversion_string_to_decimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
+ f_status_t fl_conversion_string_to_decimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_decimal_unsigned_
#ifndef _di_fl_conversion_string_to_duodecimal_signed_
- f_return_status fl_conversion_string_to_duodecimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative) {
+ f_status_t fl_conversion_string_to_duodecimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_duodecimal_signed_
#ifndef _di_fl_conversion_string_to_duodecimal_unsigned_
- f_return_status fl_conversion_string_to_duodecimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
+ f_status_t fl_conversion_string_to_duodecimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_duodecimal_unsigned_
#ifndef _di_fl_conversion_string_to_hexidecimal_signed_
- f_return_status fl_conversion_string_to_hexidecimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative) {
+ f_status_t fl_conversion_string_to_hexidecimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_hexidecimal_signed_
#ifndef _di_fl_conversion_string_to_hexidecimal_unsigned_
- f_return_status fl_conversion_string_to_hexidecimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
+ f_status_t fl_conversion_string_to_hexidecimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_hexidecimal_unsigned_
#ifndef _di_fl_conversion_string_to_octal_signed_
- f_return_status fl_conversion_string_to_octal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative) {
+ f_status_t fl_conversion_string_to_octal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_octal_signed_
#ifndef _di_fl_conversion_string_to_octal_unsigned_
- f_return_status fl_conversion_string_to_octal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
+ f_status_t fl_conversion_string_to_octal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_octal_unsigned_
#ifndef _di_fl_conversion_string_to_number_signed_
- f_return_status fl_conversion_string_to_number_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range) {
+ f_status_t fl_conversion_string_to_number_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
#endif // _di_fl_conversion_string_to_number_signed_
#ifndef _di_fl_conversion_string_to_number_unsigned_
- f_return_status fl_conversion_string_to_number_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
+ f_status_t fl_conversion_string_to_number_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
if (!number) return F_status_set_error(F_parameter);
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_string_to_binary_signed_
- extern f_return_status fl_conversion_string_to_binary_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative);
+ extern f_status_t fl_conversion_string_to_binary_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative);
#endif // _di_fl_conversion_string_to_binary_signed_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_string_to_binary_unsigned_
- extern f_return_status fl_conversion_string_to_binary_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
+ extern f_status_t fl_conversion_string_to_binary_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
#endif // _di_fl_conversion_string_to_binary_unsigned_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_string_to_decimal_signed_
- extern f_return_status fl_conversion_string_to_decimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative);
+ extern f_status_t fl_conversion_string_to_decimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative);
#endif // _di_fl_conversion_string_to_decimal_signed_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_string_to_decimal_unsigned_
- extern f_return_status fl_conversion_string_to_decimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
+ extern f_status_t fl_conversion_string_to_decimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
#endif // _di_fl_conversion_string_to_decimal_unsigned_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_string_to_duodecimal_signed_
- extern f_return_status fl_conversion_string_to_duodecimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative);
+ extern f_status_t fl_conversion_string_to_duodecimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative);
#endif // _di_fl_conversion_string_to_duodecimal_signed_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_string_to_duodecimal_unsigned_
- extern f_return_status fl_conversion_string_to_duodecimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
+ extern f_status_t fl_conversion_string_to_duodecimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
#endif // _di_fl_conversion_string_to_duodecimal_unsigned_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_string_to_hexidecimal_signed_
- extern f_return_status fl_conversion_string_to_hexidecimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative);
+ extern f_status_t fl_conversion_string_to_hexidecimal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative);
#endif // _di_fl_conversion_string_to_hexidecimal_signed_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_string_to_hexidecimal_unsigned_
- extern f_return_status fl_conversion_string_to_hexidecimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
+ extern f_status_t fl_conversion_string_to_hexidecimal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
#endif // _di_fl_conversion_string_to_hexidecimal_unsigned_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_string_to_octal_signed_
- extern f_return_status fl_conversion_string_to_octal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative);
+ extern f_status_t fl_conversion_string_to_octal_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range, const bool negative);
#endif // _di_fl_conversion_string_to_octal_signed_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_conversion_string_to_octal_unsigned_
- extern f_return_status fl_conversion_string_to_octal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
+ extern f_status_t fl_conversion_string_to_octal_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
#endif // _di_fl_conversion_string_to_octal_unsigned_
/**
* @see strtoll()
*/
#ifndef _di_fl_conversion_string_to_number_signed_
- extern f_return_status fl_conversion_string_to_number_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range);
+ extern f_status_t fl_conversion_string_to_number_signed(const f_string_t string, f_number_signed_t *number, const f_string_range_t range);
#endif // _di_fl_conversion_string_to_number_signed_
/**
* @see strtoull()
*/
#ifndef _di_fl_conversion_string_to_number_unsigned_
- extern f_return_status fl_conversion_string_to_number_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
+ extern f_status_t fl_conversion_string_to_number_unsigned(const f_string_t string, f_number_unsigned_t *number, const f_string_range_t range);
#endif // _di_fl_conversion_string_to_number_unsigned_
#ifdef __cplusplus
#endif
#ifndef _di_fl_directory_create_
- f_return_status fl_directory_create(const f_string_t path, const f_string_length_t length, const mode_t mode) {
+ f_status_t fl_directory_create(const f_string_t path, const f_string_length_t length, const mode_t mode) {
#ifndef _di_level_1_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_directory_create_
#ifndef _di_fl_directory_clone_
- f_return_status fl_directory_clone(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const bool role, const fl_directory_recurse_t recurse) {
+ f_status_t fl_directory_clone(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const bool role, const fl_directory_recurse_t recurse) {
#ifndef _di_level_1_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_directory_clone_
#ifndef _di_fl_directory_clone_content_
- f_return_status fl_directory_clone_content(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const bool role, const fl_directory_recurse_t recurse) {
+ f_status_t fl_directory_clone_content(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const bool role, const fl_directory_recurse_t recurse) {
#ifndef _di_level_1_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_directory_clone_content_
#ifndef _di_fl_directory_copy_
- f_return_status fl_directory_copy(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const f_mode_t mode, const fl_directory_recurse_t recurse) {
+ f_status_t fl_directory_copy(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const f_mode_t mode, const fl_directory_recurse_t recurse) {
#ifndef _di_level_1_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_directory_copy_
#ifndef _di_fl_directory_copy_content_
- f_return_status fl_directory_copy_content(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const f_mode_t mode, const fl_directory_recurse_t recurse) {
+ f_status_t fl_directory_copy_content(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const f_mode_t mode, const fl_directory_recurse_t recurse) {
#ifndef _di_level_1_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_directory_copy_content_
#ifndef _di_fl_directory_list_
- f_return_status fl_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing) {
+ f_status_t fl_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing) {
#ifndef _di_level_1_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (!listing) return F_status_set_error(F_parameter);
#endif // _di_fl_directory_list_
#ifndef _di_fl_directory_path_pop_
- f_return_status fl_directory_path_pop(f_string_static_t *path) {
+ f_status_t fl_directory_path_pop(f_string_static_t *path) {
#ifndef _di_level_1_parameter_checking_
if (path->used > path->size) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_directory_path_pop_
#ifndef _di_fl_directory_path_push_
- f_return_status fl_directory_path_push(const f_string_t source, f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_directory_path_push(const f_string_t source, f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (destination->used > destination->size) return F_status_set_error(F_parameter);
#endif // _di_fl_directory_path_push_
#ifndef _di_fl_directory_path_push_dynamic_
- f_return_status fl_directory_path_push_dynamic(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_directory_path_push_dynamic(const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used > source.size) return F_status_set_error(F_parameter);
if (destination->used > destination->size) return F_status_set_error(F_parameter);
* @see f_directory_create()
*/
#ifndef _di_fl_directory_create_
- extern f_return_status fl_directory_create(const f_string_t path, const f_string_length_t length, const mode_t mode);
+ extern f_status_t fl_directory_create(const f_string_t path, const f_string_length_t length, const mode_t mode);
#endif // _di_fl_directory_create_
/**
* @see f_file_clone()
*/
#ifndef _di_fl_directory_clone_
- extern f_return_status fl_directory_clone(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const bool role, const fl_directory_recurse_t recurse);
+ extern f_status_t fl_directory_clone(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const bool role, const fl_directory_recurse_t recurse);
#endif // _di_fl_directory_clone_
/**
* @see f_file_clone()
*/
#ifndef _di_fl_directory_clone_content_
- extern f_return_status fl_directory_clone_content(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const bool role, const fl_directory_recurse_t recurse);
+ extern f_status_t fl_directory_clone_content(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const bool role, const fl_directory_recurse_t recurse);
#endif // _di_fl_directory_clone_content_
/**
* @see f_file_copy()
*/
#ifndef _di_fl_directory_copy_
- extern f_return_status fl_directory_copy(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const f_mode_t mode, const fl_directory_recurse_t recurse);
+ extern f_status_t fl_directory_copy(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const f_mode_t mode, const fl_directory_recurse_t recurse);
#endif // _di_fl_directory_copy_
/**
* @see f_file_copy()
*/
#ifndef _di_fl_directory_copy_content_
- extern f_return_status fl_directory_copy_content(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const f_mode_t mode, const fl_directory_recurse_t recurse);
+ extern f_status_t fl_directory_copy_content(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const f_mode_t mode, const fl_directory_recurse_t recurse);
#endif // _di_fl_directory_copy_content_
/**
* @see versionsort()
*/
#ifndef _di_fl_directory_list_
- extern f_return_status fl_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing);
+ extern f_status_t fl_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing);
#endif // _di_fl_directory_list_
/**
* Errors (with error bit) from: f_utf_is_control().
*/
#ifndef _di_fl_directory_path_pop_
- extern f_return_status fl_directory_path_pop(f_string_static_t *path);
+ extern f_status_t fl_directory_path_pop(f_string_static_t *path);
#endif // _di_fl_directory_path_pop_
/**
* Errors (with error bit) from: f_utf_is_control().
*/
#ifndef _di_fl_directory_path_push_
- extern f_return_status fl_directory_path_push(const f_string_t source, f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_directory_path_push(const f_string_t source, f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_directory_path_push_
/**
* Errors (with error bit) from: f_utf_is_control().
*/
#ifndef _di_fl_directory_path_push_dynamic_
- extern f_return_status fl_directory_path_push_dynamic(const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_directory_path_push_dynamic(const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_directory_path_push_dynamic_
#ifdef __cplusplus
#endif
#if !defined(_di_fl_directory_clone_)
- f_return_status private_fl_directory_clone(const f_string_static_t source, const f_string_static_t destination, const bool role, const fl_directory_recurse_t recurse, const f_number_unsigned_t depth) {
+ f_status_t private_fl_directory_clone(const f_string_static_t source, const f_string_static_t destination, const bool role, const fl_directory_recurse_t recurse, const f_number_unsigned_t depth) {
f_status_t status = F_none;
f_directory_listing_t listing = f_directory_listing_t_initialize;
#endif // !defined(_di_fl_directory_clone_)
#if !defined(_di_fl_directory_clone_file_)
- f_return_status private_fl_directory_clone_file(const f_string_static_t file, const f_string_static_t source, const f_string_static_t destination, const bool role, const fl_directory_recurse_t recurse) {
+ f_status_t private_fl_directory_clone_file(const f_string_static_t file, const f_string_static_t source, const f_string_static_t destination, const bool role, const fl_directory_recurse_t recurse) {
char path_source[source.used + file.used + 2];
char path_destination[destination.used + file.used + 2];
#endif // !defined(_di_fl_directory_clone_file_)
#if !defined(_di_fl_directory_copy_)
- f_return_status private_fl_directory_copy(const f_string_static_t source, const f_string_static_t destination, const f_mode_t mode, const fl_directory_recurse_t recurse, const f_number_unsigned_t depth) {
+ f_status_t private_fl_directory_copy(const f_string_static_t source, const f_string_static_t destination, const f_mode_t mode, const fl_directory_recurse_t recurse, const f_number_unsigned_t depth) {
f_status_t status = F_none;
f_directory_listing_t listing = f_directory_listing_t_initialize;
#endif // !defined(_di_fl_directory_copy_)
#if !defined(_di_fl_directory_copy_file_)
- f_return_status private_fl_directory_copy_file(const f_string_static_t file, const f_string_static_t source, const f_string_static_t destination, const f_mode_t mode, const fl_directory_recurse_t recurse) {
+ f_status_t private_fl_directory_copy_file(const f_string_static_t file, const f_string_static_t source, const f_string_static_t destination, const f_mode_t mode, const fl_directory_recurse_t recurse) {
char path_source[source.used + file.used + 2];
char path_destination[destination.used + file.used + 2];
#endif // !defined(_di_fl_directory_copy_file_)
#if !defined(_di_fl_directory_list_)
- f_return_status private_fl_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing) {
+ f_status_t private_fl_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing) {
struct dirent **entity = 0;
f_string_length_t size = 0;
#endif // !defined(_di_fl_directory_list_)
#if !defined(_di_fl_directory_path_push_) || !defined(_di_fl_directory_path_push_dynamic_)
- f_return_status private_fl_directory_path_push(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t private_fl_directory_path_push(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
bool terminated_null = F_false;
bool separator_prepend = F_false;
bool separator_append = F_false;
* @see fl_directory_clone()
*/
#if !defined(_di_fl_directory_clone_)
- extern f_return_status private_fl_directory_clone(const f_string_static_t source, const f_string_static_t destination, const bool role, const fl_directory_recurse_t recurse, const f_number_unsigned_t depth) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_directory_clone(const f_string_static_t source, const f_string_static_t destination, const bool role, const fl_directory_recurse_t recurse, const f_number_unsigned_t depth) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_directory_clone_)
/**
* @see fl_directory_clone()
*/
#if !defined(_di_fl_directory_clone_file_)
- extern f_return_status private_fl_directory_clone_file(const f_string_static_t file, const f_string_static_t source, const f_string_static_t destination, const bool role, const fl_directory_recurse_t recurse) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_directory_clone_file(const f_string_static_t file, const f_string_static_t source, const f_string_static_t destination, const bool role, const fl_directory_recurse_t recurse) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_directory_clone_file_)
/**
* @see fl_directory_copy()
*/
#if !defined(_di_fl_directory_copy_)
- extern f_return_status private_fl_directory_copy(const f_string_static_t source, const f_string_static_t destination, const f_mode_t mode, const fl_directory_recurse_t recurse, const f_number_unsigned_t depth) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_directory_copy(const f_string_static_t source, const f_string_static_t destination, const f_mode_t mode, const fl_directory_recurse_t recurse, const f_number_unsigned_t depth) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_directory_copy_)
/**
* @see fl_directory_copy()
*/
#if !defined(_di_fl_directory_copy_file_)
- extern f_return_status private_fl_directory_copy_file(const f_string_static_t file, const f_string_static_t source, const f_string_static_t destination, const f_mode_t mode, const fl_directory_recurse_t recurse) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_directory_copy_file(const f_string_static_t file, const f_string_static_t source, const f_string_static_t destination, const f_mode_t mode, const fl_directory_recurse_t recurse) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_directory_copy_file_)
/**
* @see fl_directory_list()
*/
#if !defined(_di_fl_directory_list_)
- extern f_return_status private_fl_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_directory_list(const f_string_t path, int (*filter)(const struct dirent *), int (*sort)(const struct dirent **, const struct dirent **), const bool dereference, f_directory_listing_t *listing) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_directory_list_)
/**
* @see fl_directory_path_push_dynamic()
*/
#if !defined(_di_fl_directory_path_push_) || !defined(_di_fl_directory_path_push_dynamic_)
- extern f_return_status private_fl_directory_path_push(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_directory_path_push(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_directory_path_push_) || !defined(_di_fl_directory_path_push_dynamic_)
#ifdef __cplusplus
#endif
#ifndef _di_fl_environment_path_explode_
- f_return_status fl_environment_path_explode(const f_string_t path, f_string_dynamics_t *paths) {
+ f_status_t fl_environment_path_explode(const f_string_t path, f_string_dynamics_t *paths) {
#ifndef _di_level_0_parameter_checking_
if (!paths) return F_status_set_error(F_parameter);
if (paths->used > paths->size) return F_status_set_error(F_parameter);
#endif // _di_fl_environment_path_explode_
#ifndef _di_fl_environment_path_explode_dynamic_
- f_return_status fl_environment_path_explode_dynamic(const f_string_static_t path, f_string_dynamics_t *paths) {
+ f_status_t fl_environment_path_explode_dynamic(const f_string_static_t path, f_string_dynamics_t *paths) {
#ifndef _di_level_0_parameter_checking_
if (path.used > path.size) return F_status_set_error(F_parameter);
if (!paths) return F_status_set_error(F_parameter);
#endif // _di_fl_environment_path_explode_dynamic_
#ifndef _di_fl_environment_path_explode_reverse_
- f_return_status fl_environment_path_explode_reverse(const f_string_t path, f_string_dynamics_t *paths) {
+ f_status_t fl_environment_path_explode_reverse(const f_string_t path, f_string_dynamics_t *paths) {
#ifndef _di_level_0_parameter_checking_
if (!paths) return F_status_set_error(F_parameter);
if (paths->used > paths->size) return F_status_set_error(F_parameter);
#endif // _di_fl_environment_path_explode_reverse_
#ifndef _di_fl_environment_path_explode_reverse_dynamic_
- f_return_status fl_environment_path_explode_reverse_dynamic(const f_string_static_t path, f_string_dynamics_t *paths) {
+ f_status_t fl_environment_path_explode_reverse_dynamic(const f_string_static_t path, f_string_dynamics_t *paths) {
#ifndef _di_level_0_parameter_checking_
if (path.used > path.size) return F_status_set_error(F_parameter);
if (!paths) return F_status_set_error(F_parameter);
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_environment_path_explode_
- extern f_return_status fl_environment_path_explode(const f_string_t path, f_string_dynamics_t *paths);
+ extern f_status_t fl_environment_path_explode(const f_string_t path, f_string_dynamics_t *paths);
#endif // _di_fl_environment_path_explode_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_environment_path_explode_dynamic_
- extern f_return_status fl_environment_path_explode_dynamic(const f_string_static_t path, f_string_dynamics_t *paths);
+ extern f_status_t fl_environment_path_explode_dynamic(const f_string_static_t path, f_string_dynamics_t *paths);
#endif // _di_fl_environment_path_explode_dynamic_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_environment_path_explode_reverse_
- extern f_return_status fl_environment_path_explode_reverse(const f_string_t path, f_string_dynamics_t *paths);
+ extern f_status_t fl_environment_path_explode_reverse(const f_string_t path, f_string_dynamics_t *paths);
#endif // _di_fl_environment_path_explode_reverse_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_environment_path_explode_reverse_dynamic_
- extern f_return_status fl_environment_path_explode_reverse_dynamic(const f_string_static_t path, f_string_dynamics_t *paths);
+ extern f_status_t fl_environment_path_explode_reverse_dynamic(const f_string_static_t path, f_string_dynamics_t *paths);
#endif // _di_fl_environment_path_explode_reverse_dynamic_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_basic_object_read_
- f_return_status fl_fss_basic_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quote, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_basic_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quote, f_fss_delimits_t *delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
#endif // _di_fl_fss_basic_object_read_
#ifndef _di_fl_fss_basic_content_read_
- f_return_status fl_fss_basic_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_basic_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
return F_data_not_stop;
}
- status = private_fl_fss_ranges_increase(found);
+ f_macro_string_ranges_t_increase(status, (*found));
if (F_status_is_error(status)) return status;
found->array[found->used].start = range->start;
#endif // _di_fl_fss_basic_content_read_
#ifndef _di_fl_fss_basic_object_write_string_
- f_return_status fl_fss_basic_object_write_string(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_basic_object_write_string(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_fss_basic_object_write_string_
#ifndef _di_fl_fss_basic_content_write_string_
- f_return_status fl_fss_basic_content_write_string(const f_string_static_t content, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_basic_content_write_string(const f_string_static_t content, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_basic_object_read_
- extern f_return_status fl_fss_basic_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quote, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_basic_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quote, f_fss_delimits_t *delimits);
#endif // _di_fl_fss_basic_object_read_
/**
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_basic_content_read_
- extern f_return_status fl_fss_basic_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_basic_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits);
#endif // _di_fl_fss_basic_content_read_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_basic_object_write_string_
- extern f_return_status fl_fss_basic_object_write_string(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_basic_object_write_string(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
#endif // _di_fl_fss_basic_object_write_string_
/**
* F_string_too_large (with error bit) if appended string length is too large to store in the destination.
*/
#ifndef _di_fl_fss_basic_content_write_string_
- extern f_return_status fl_fss_basic_content_write_string(const f_string_static_t content, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_basic_content_write_string(const f_string_static_t content, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
#endif // _di_fl_fss_basic_content_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_basic_list_object_read_
- f_return_status fl_fss_basic_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_basic_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
range->start = slash_first;
- status = private_fl_fss_delimits_increase_by((slash_count / 2) + 1, delimits);
+ f_macro_fss_delimits_t_increase_by(status, (*delimits), (slash_count / 2) + 1);
if (F_status_is_error(status)) break;
if (slash_count % 2 == 0) {
graph_first = F_false;
// comments may only have whitespace before the '#', therefore only the first slash needs to be delimited.
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = slash_first;
#endif // _di_fl_fss_basic_list_object_read_
#ifndef _di_fl_fss_basic_list_content_read_
- f_return_status fl_fss_basic_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
+ f_status_t fl_fss_basic_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
private_fl_macro_fss_content_with_comments_return_on_overflow((buffer), (*range), (*found), (*delimits), delimits_used, (*comments), comments_used, F_none_eos, F_none_stop);
- status = private_fl_fss_ranges_increase(found);
+ f_macro_string_ranges_t_increase(status, (*found));
if (F_status_is_error(status)) return status;
found->array[found->used].start = range->start;
if (buffer.string[range->start] == f_fss_eol) {
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
return FL_fss_found_content;
}
- status = private_fl_fss_delimits_increase_by((slash_count / 2) + 1, delimits);
+ f_macro_fss_delimits_t_increase_by(status, (*delimits), (slash_count / 2) + 1);
if (F_status_is_error(status)) break;
while (slash_count > 0) {
if (F_status_is_error(status)) break;
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
if (buffer.string[range->start] == f_fss_eol) {
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
status = f_fss_seek_to_eol(buffer, range);
if (F_status_is_error(status)) break;
- status = private_fl_fss_ranges_increase(comments);
+ f_macro_string_ranges_t_increase(status, (*comments));
if (F_status_is_error(status)) break;
if (range->start > range->stop || range->start >= buffer.used) {
#endif // _di_fl_fss_basic_list_content_read_
#ifndef _di_fl_fss_basic_list_object_write_string_
- f_return_status fl_fss_basic_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_basic_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_fss_basic_list_object_write_string_
#ifndef _di_fl_fss_basic_list_content_write_string_
- f_return_status fl_fss_basic_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_basic_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, f_string_range_t *range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_basic_list_object_read_
- extern f_return_status fl_fss_basic_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_basic_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits);
#endif // _di_fl_fss_basic_list_object_read_
/**
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_basic_list_content_read_
- extern f_return_status fl_fss_basic_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments);
+ extern f_status_t fl_fss_basic_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments);
#endif // _di_fl_fss_basic_list_content_read_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_basic_list_object_write_string_
- extern f_return_status fl_fss_basic_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_basic_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
#endif // _di_fl_fss_basic_list_object_write_string_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_basic_list_content_write_string_
- extern f_return_status fl_fss_basic_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_basic_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, f_string_range_t *range, f_string_dynamic_t *destination);
#endif // _di_fl_fss_basic_list_content_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_embedded_list_object_read_
- f_return_status fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
range->start = slash_first;
- status = private_fl_fss_delimits_increase_by((slash_count / 2) + 1, delimits);
+ f_macro_fss_delimits_t_increase_by(status, (*delimits), (slash_count / 2) + 1);
if (F_status_is_error(status)) break;
if (slash_count % 2 == 0) {
graph_first = F_false;
// comments may only have whitespace before the '#', therefore only the first slash needs to be delimited.
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = slash_first;
#endif // _di_fl_fss_embedded_list_object_read_
#ifndef _di_fl_fss_embedded_list_content_read_
- f_return_status fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_nest_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
+ f_status_t fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_nest_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
f_macro_fss_objects_t_new(status, objects, f_fss_default_allocation_step);
if (F_status_is_error(status)) {
- private_fl_fss_string_lengths_delete(&positions_start);
+ f_macro_string_lengths_t_delete_simple(positions_start);
return status;
}
if (buffer.string[range->start] == f_fss_eol) {
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
// When slash is odd and a (delimited) valid open/close is found, then save delimited positions and continue.
if (buffer.string[range->start] == f_fss_eol) {
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
if (buffer.string[range->start] == f_fss_eol) {
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
range->start = slash_first;
- status = private_fl_fss_delimits_increase_by((slash_count / 2) + 1, delimits);
+ f_macro_fss_delimits_t_increase_by(status, (*delimits), (slash_count / 2) + 1);
if (F_status_is_error(status)) break;
// apply slash delimits, only slashes and placeholders should be present.
}
}
else {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = slash_last;
objects.array[depth].stop = before_list_open;
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
if (F_status_is_error(status)) break;
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
}
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
private_fl_macro_fss_nest_return_on_overflow_delimited((buffer), (*range), (*found), positions_start, objects, F_none_eos, F_none_stop)
- private_fl_fss_string_lengths_delete(&positions_start);
+ f_macro_string_lengths_t_delete_simple(positions_start);
private_fl_fss_objects_delete(&objects);
return FL_fss_found_content;
if (buffer.string[range->start] == f_fss_eol) {
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
status = f_fss_seek_to_eol(buffer, range);
if (F_status_is_error(status)) break;
- status = private_fl_fss_ranges_increase(comments);
+ f_macro_string_ranges_t_increase(status, (*comments));
if (F_status_is_error(status)) break;
if (range->start > range->stop || range->start >= buffer.used) {
}
else {
if (graph_first == 0x2) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = comment_delimit;
if (F_status_is_error(status)) break;
} // while
- private_fl_fss_string_lengths_delete(&positions_start);
+ f_macro_string_lengths_t_delete_simple(positions_start);
private_fl_fss_objects_delete(&objects);
delimits->used = delimits_used;
#endif // _di_fl_fss_embedded_list_content_read_
#ifndef _di_fl_fss_embedded_list_object_write_string_
- f_return_status fl_fss_embedded_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_embedded_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_fss_embedded_list_object_write_string_
#ifndef _di_fl_fss_embedded_list_content_write_string_
- f_return_status fl_fss_embedded_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_embedded_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_string_range_t *range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_embedded_list_object_read_
- extern f_return_status fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_embedded_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits);
#endif // _di_fl_fss_embedded_list_object_read_
/**
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_embedded_list_content_read_
- extern f_return_status fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_nest_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments);
+ extern f_status_t fl_fss_embedded_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_nest_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments);
#endif // _di_fl_fss_embedded_list_content_read_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_embedded_list_object_write_string_
- extern f_return_status fl_fss_embedded_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_embedded_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
#endif // _di_fl_fss_embedded_list_object_write_string_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_embedded_list_content_write_string_
- extern f_return_status fl_fss_embedded_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_embedded_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_string_range_t *range, f_string_dynamic_t *destination);
#endif // _di_fl_fss_embedded_list_content_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_extended_object_read_
- f_return_status fl_fss_extended_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quoted, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_extended_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quoted, f_fss_delimits_t *delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
#endif // _di_fl_fss_extended_object_read_
#ifndef _di_fl_fss_extended_content_read_
- f_return_status fl_fss_extended_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_quotes_t *quotes, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_extended_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_quotes_t *quotes, f_fss_delimits_t *delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
if (status == FL_fss_found_object || status == FL_fss_found_object_content_not) {
if (found->used + 1 > found->size) {
- status_allocate = private_fl_fss_ranges_increase(found);
+ f_macro_string_ranges_t_increase(status_allocate, (*found));
if (F_status_is_fine(status_allocate) && quotes) {
f_macro_fss_quotes_t_resize(status_allocate, (*quotes), found->size);
#endif // _di_fl_fss_extended_content_read_
#ifndef _di_fl_fss_extended_object_write_string_
-f_return_status fl_fss_extended_object_write_string(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
+f_status_t fl_fss_extended_object_write_string(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_fss_extended_object_write_string_
#ifndef _di_fl_fss_extended_content_write_string_
- f_return_status fl_fss_extended_content_write_string(const f_string_static_t content, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_extended_content_write_string(const f_string_static_t content, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_extended_object_read_
- extern f_return_status fl_fss_extended_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quoted, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_extended_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quoted, f_fss_delimits_t *delimits);
#endif // _di_fl_fss_extended_object_read_
/**
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_extended_content_read_
- extern f_return_status fl_fss_extended_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_quotes_t *quotes, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_extended_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_quotes_t *quotes, f_fss_delimits_t *delimits);
#endif // _di_fl_fss_extended_content_read_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_extended_object_write_string_
- extern f_return_status fl_fss_extended_object_write_string(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_extended_object_write_string(const f_string_static_t object, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
#endif // _di_fl_fss_extended_object_write_string_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_extended_content_write_string_
- extern f_return_status fl_fss_extended_content_write_string(const f_string_static_t content, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_extended_content_write_string(const f_string_static_t content, const f_fss_quote_t quote, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
#endif // _di_fl_fss_extended_content_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fl_fss_extended_list_object_read_
- f_return_status fl_fss_extended_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits) {
+ f_status_t fl_fss_extended_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
range->start = slash_first;
- status = private_fl_fss_delimits_increase_by((slash_count / 2) + 1, delimits);
+ f_macro_fss_delimits_t_increase_by(status, (*delimits), (slash_count / 2) + 1);
if (F_status_is_error(status)) break;
if (slash_count % 2 == 0) {
graph_first = F_false;
// comments may only have whitespace before the '#', therefore only the first slash needs to be delimited.
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = slash_first;
#endif // _di_fl_fss_extended_list_object_read_
#ifndef _di_fl_fss_extended_list_content_read_
- f_return_status fl_fss_extended_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
+ f_status_t fl_fss_extended_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!found) return F_status_set_error(F_parameter);
private_fl_macro_fss_content_with_comments_return_on_overflow((buffer), (*range), (*found), (*delimits), delimits_used, (*comments), comments_used, F_none_eos, F_none_stop);
- status = private_fl_fss_ranges_increase(found);
+ f_macro_string_ranges_t_increase(status, (*found));
if (F_status_is_error(status)) return status;
found->array[found->used].start = range->start;
if (range->start > range->stop || range->start >= buffer.used) break;
if (buffer.string[range->start] == f_fss_eol) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = slash_first;
}
}
else if (buffer.string[range->start] == f_fss_comment) {
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) break;
delimits->array[delimits->used++] = slash_first;
status = f_fss_seek_to_eol(buffer, range);
if (F_status_is_error(status)) break;
- status = private_fl_fss_ranges_increase(comments);
+ f_macro_string_ranges_t_increase(status, (*comments));
if (F_status_is_error(status)) break;
if (range->start > range->stop || range->start >= buffer.used) {
#endif // _di_fl_fss_extended_list_content_read_
#ifndef _di_fl_fss_extended_list_object_write_string_
- f_return_status fl_fss_extended_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_extended_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_fss_extended_list_object_write_string_
#ifndef _di_fl_fss_extended_list_content_write_string_
- f_return_status fl_fss_extended_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t fl_fss_extended_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_string_range_t *range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_extended_list_object_read_
- extern f_return_status fl_fss_extended_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits);
+ extern f_status_t fl_fss_extended_list_object_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_object_t *found, f_fss_delimits_t *delimits);
#endif // _di_fl_fss_extended_list_object_read_
/**
* Errors (with error bit) from: f_fss_skip_past_space().
*/
#ifndef _di_fl_fss_extended_list_content_read_
- extern f_return_status fl_fss_extended_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments);
+ extern f_status_t fl_fss_extended_list_content_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_content_t *found, f_fss_delimits_t *delimits, f_fss_comments_t *comments);
#endif // _di_fl_fss_extended_list_content_read_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_extended_list_object_write_string_
- extern f_return_status fl_fss_extended_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_extended_list_object_write_string(const f_string_static_t object, const uint8_t complete, f_string_range_t *range, f_string_dynamic_t *destination);
#endif // _di_fl_fss_extended_list_object_write_string_
/**
* Errors (with error bit) from: f_utf_buffer_increment().
*/
#ifndef _di_fl_fss_extended_list_content_write_string_
- extern f_return_status fl_fss_extended_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_string_range_t *range, f_string_dynamic_t *destination);
+ extern f_status_t fl_fss_extended_list_content_write_string(const f_string_static_t content, const uint8_t complete, const f_string_static_t *prepend, const f_string_ranges_t *ignore, f_string_range_t *range, f_string_dynamic_t *destination);
#endif // _di_fl_fss_extended_list_content_write_string_
#ifdef __cplusplus
#endif
#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_extended_object_write_string_)
- f_return_status private_fl_fss_basic_write_object_trim(const f_fss_quote_t quote, const f_string_length_t used_start, f_string_dynamic_t *destination) {
+ f_status_t private_fl_fss_basic_write_object_trim(const f_fss_quote_t quote, const f_string_length_t used_start, f_string_dynamic_t *destination) {
f_status_t status = F_none;
f_string_range_t destination_range = f_macro_string_range_t_initialize(destination->used);
f_string_length_t i = 0;
#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_extended_object_write_string_)
#if !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_content_write_string_)
- f_return_status private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_string_range_t *range, f_string_dynamic_t *destination) {
f_status_t status = F_none;
for (; range->start <= range->stop && range->start < buffer.used; range->start++) {
#endif // !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_content_write_string_)
#if !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_)
- f_return_status private_fl_fss_basic_list_write_object_trim(const f_string_length_t used_start, f_string_dynamic_t *destination) {
+ f_status_t private_fl_fss_basic_list_write_object_trim(const f_string_length_t used_start, f_string_dynamic_t *destination) {
f_status_t status = F_none;
f_string_range_t destination_range = f_macro_string_range_t_initialize(destination->used);
f_string_length_t i = 0;
#endif // !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_)
#if !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_)
- f_return_status private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quote, f_fss_delimits_t *delimits) {
+ f_status_t private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quote, f_fss_delimits_t *delimits) {
f_status_t status = f_fss_skip_past_space(buffer, range);
if (F_status_is_error(status)) return status;
// only the first slash before a quoted needs to be escaped (or not) as once there is a slash before a quoted, this cannot ever be a quote object.
// this simplifies the number of slashes needed.
- status = private_fl_fss_delimits_increase(delimits);
+ f_macro_fss_delimits_t_increase(status, (*delimits));
if (F_status_is_error(status)) return status;
delimits->array[delimits->used] = first_slash;
range->start = first_slash;
if (slash_count % 2 == 0) {
- status = private_fl_fss_delimits_increase_by(slash_count / 2, delimits);
+ f_macro_fss_delimits_t_increase_by(status, (*delimits), slash_count / 2);
if (F_status_is_error(status)) return status;
while (slash_count > 0) {
return FL_fss_found_object;
}
else {
- status = private_fl_fss_delimits_increase_by((slash_count / 2) + 1, delimits);
+ f_macro_fss_delimits_t_increase_by(status, (*delimits), (slash_count / 2) + 1);
if (F_status_is_error(status)) return status;
while (slash_count > 0) {
#endif // !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_)
#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_)
- f_return_status private_fl_fss_basic_write(const bool object_as, const f_string_static_t object, const f_fss_quote_t quote, f_string_range_t *range, f_string_dynamic_t *destination) {
+ f_status_t private_fl_fss_basic_write(const bool object_as, const f_string_static_t object, const f_fss_quote_t quote, f_string_range_t *range, f_string_dynamic_t *destination) {
f_status_t status = f_fss_skip_past_space(object, range);
if (F_status_is_error(status)) return status;
#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_)
#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- f_return_status private_fl_fss_delimits_increase(f_fss_delimits_t *delimits) {
-
- if (delimits->used + 1 > delimits->size) {
- f_array_length_t size = delimits->used + f_fss_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (delimits->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_string_length_t_size;
- }
-
- f_status_t status = F_none;
-
- f_macro_fss_delimits_t_resize(status, (*delimits), size);
-
- return status;
- }
-
- return F_none;
- }
-#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
-
-#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- f_return_status private_fl_fss_delimits_increase_by(const f_array_length_t amount, f_fss_delimits_t *delimits) {
-
- if (delimits->used + amount > delimits->size) {
- if (delimits->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- f_status_t status = F_none;
-
- f_macro_fss_delimits_t_resize(status, (*delimits), delimits->used + amount);
-
- return status;
- }
-
- return F_none;
- }
-#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
-
-#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- f_return_status private_fl_fss_destination_increase(f_string_dynamic_t *destination) {
+ f_status_t private_fl_fss_destination_increase(f_string_dynamic_t *destination) {
if (destination->used + 1 > destination->size) {
f_array_length_t size = destination->used + f_fss_default_allocation_step;
#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- f_return_status private_fl_fss_destination_increase_by(const f_string_length_t amount, f_string_dynamic_t *destination) {
+ f_status_t private_fl_fss_destination_increase_by(const f_string_length_t amount, f_string_dynamic_t *destination) {
if (destination->used + amount > destination->size) {
if (destination->used + amount > f_string_length_t_size) {
#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
#if !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_)
- f_return_status private_fl_fss_destination_prepend(const f_string_static_t *prepend, f_string_dynamic_t *destination) {
+ f_status_t private_fl_fss_destination_prepend(const f_string_static_t *prepend, f_string_dynamic_t *destination) {
if (!prepend || !prepend->used) {
return F_none;
#endif // !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_)
#if !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- f_return_status private_fl_fss_nest_increase(f_fss_nest_t *nest) {
+ f_status_t private_fl_fss_nest_increase(f_fss_nest_t *nest) {
if (nest->used + 1 > nest->size) {
f_array_length_t size = nest->used + f_fss_default_allocation_step;
}
#endif // !defined(_di_fl_fss_embedded_list_content_read_)
-#if !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_basic_content_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_) || !defined(_di_fl_fss_basic_list_object_read_) || !defined(_di_fl_fss_basic_list_content_read_) || !defined(_di_fl_fss_extended_list_object_read_) || !defined(_di_fl_fss_extended_list_content_read_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- f_return_status private_fl_fss_ranges_increase(f_string_ranges_t *ranges) {
-
- if (ranges->used + 1 > ranges->size) {
- f_array_length_t size = ranges->used + f_fss_default_allocation_step;
-
- if (size > f_string_length_t_size) {
- if (ranges->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- f_status_t status = F_none;
-
- f_macro_string_ranges_t_resize(status, (*ranges), size);
-
- return status;
- }
-
- return F_none;
- }
-#endif // !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_basic_content_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_) || !defined(_di_fl_fss_basic_list_object_read_) || !defined(_di_fl_fss_basic_list_content_read_) || !defined(_di_fl_fss_extended_list_object_read_) || !defined(_di_fl_fss_extended_list_content_read_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
-
-#if !defined(_di_fl_fss_embedded_list_content_read_)
- void private_fl_fss_string_lengths_delete(f_string_lengths_t *lengths) {
- f_macro_string_lengths_t_delete_simple((*lengths));
- }
-#endif // !defined(_di_fl_fss_embedded_list_content_read_)
-
#ifdef __cplusplus
} // extern "C"
#endif
* @see fl_fss_extended_object_write_string()
*/
#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_extended_object_write_string_)
- extern f_return_status private_fl_fss_basic_write_object_trim(const f_fss_quote_t quote, const f_string_length_t used_start, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_fss_basic_write_object_trim(const f_fss_quote_t quote, const f_string_length_t used_start, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_extended_object_write_string_)
/**
* @see private_fl_fss_destination_increase()
*/
#if !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_content_write_string_)
- extern f_return_status private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_string_range_t *range, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_fss_basic_list_write_add_until_end(const f_string_static_t buffer, f_string_range_t *range, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_content_write_string_)
/**
* @see fl_fss_extended_list_object_write_string()
*/
#if !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_)
- extern f_return_status private_fl_fss_basic_list_write_object_trim(const f_string_length_t used_start, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_fss_basic_list_write_object_trim(const f_string_length_t used_start, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_)
/**
* @see fl_fss_extended_content_read()
*/
#if !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_)
- extern f_return_status private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quoted, f_fss_delimits_t *delimits) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_fss_basic_read(const f_string_static_t buffer, const bool object_as, f_string_range_t *range, f_fss_object_t *found, f_fss_quote_t *quoted, f_fss_delimits_t *delimits) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_)
/**
* @see fl_fss_extended_content_write_string()
*/
#if !defined(fl_fss_basic_object_write_string) || !defined(fl_fss_extended_object_write_string) || !defined(_di_fl_fss_extended_content_write_string_)
- extern f_return_status private_fl_fss_basic_write(const bool object_as, const f_string_static_t object, const f_fss_quote_t quoted, f_string_range_t *range, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_fss_basic_write(const bool object_as, const f_string_static_t object, const f_fss_quote_t quoted, f_string_range_t *range, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(fl_fss_basic_object_write_string) || !defined(fl_fss_extended_object_write_string) || !defined(_di_fl_fss_extended_content_write_string_)
/**
- * Increase the size of delimits array, but only if necessary.
- *
- * @param delimits
- * The delimits array to increment.
- *
- * @return
- * F_none on success.
- * F_memory_reallocation (with error bit) on reallocation error.
- * F_array_too_large (with error bit) if new length is larger than max array length.
- *
- * @see fl_fss_basic_content_write_string()
- * @see fl_fss_basic_object_write_string()
- * @see fl_fss_basic_list_content_write_string()
- * @see fl_fss_basic_list_object_write_string()
- * @see fl_fss_embedded_list_content_read()
- * @see fl_fss_embedded_list_object_read()
- * @see fl_fss_extended_content_write_string()
- * @see fl_fss_extended_list_content_write_string()
- * @see fl_fss_extended_list_object_write_string()
- * @see fl_fss_extended_object_write_string()
- */
-#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- extern f_return_status private_fl_fss_delimits_increase(f_fss_delimits_t *delimits) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
-
-/**
- * Increase the size of delimits array by the given amount, but only if necessary.
- *
- * @param amount
- * The amount to increase by.
- * @param delimits
- * The delimits array to increment.
- *
- * @return
- * F_none on success.
- * F_memory_reallocation (with error bit) on reallocation error.
- * F_array_too_large (with error bit) if new length is larger than max array length.
- *
- * @see fl_fss_basic_content_write_string()
- * @see fl_fss_basic_object_write_string()
- * @see fl_fss_basic_list_content_write_string()
- * @see fl_fss_basic_list_object_write_string()
- * @see fl_fss_embedded_list_content_read()
- * @see fl_fss_embedded_list_object_read()
- * @see fl_fss_extended_content_write_string()
- * @see fl_fss_extended_list_content_write_string()
- * @see fl_fss_extended_list_object_write_string()
- * @see fl_fss_extended_object_write_string()
- */
-#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- extern f_return_status private_fl_fss_delimits_increase_by(const f_array_length_t amount, f_fss_delimits_t *delimits) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
-
-/**
* Increase the size of destination buffer, but only if necessary.
*
* @param destination
* @see fl_fss_extended_object_write_string()
*/
#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- extern f_return_status private_fl_fss_destination_increase(f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_fss_destination_increase(f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
/**
* @see fl_fss_extended_object_write_string()
*/
#if !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- extern f_return_status private_fl_fss_destination_increase_by(const f_string_length_t amount, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_fss_destination_increase_by(const f_string_length_t amount, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_fss_basic_object_write_string_) || !defined(_di_fl_fss_basic_content_write_string_) || !defined(_di_fl_fss_basic_list_object_write_string_) || !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_object_write_string_) || !defined(_di_fl_fss_extended_content_write_string_) || !defined(_di_fl_fss_extended_list_object_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
/**
* @see fl_fss_extended_list_content_write_string()
*/
#if !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_)
- extern f_return_status private_fl_fss_destination_prepend(const f_string_static_t *prepend, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_fss_destination_prepend(const f_string_static_t *prepend, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_fss_basic_list_content_write_string_) || !defined(_di_fl_fss_extended_list_content_write_string_)
/**
* @see fl_fss_embedded_list_content_read()
*/
#if !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- extern f_return_status private_fl_fss_nest_increase(f_fss_nest_t *nest) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_fss_nest_increase(f_fss_nest_t *nest) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
/**
extern void private_fl_fss_objects_delete(f_fss_objects_t *objects) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_fss_embedded_list_content_read_)
-/**
- * Increase the size of a given range buffer, but only if necessary.
- *
- * @param ranges
- * The range buffer to increment.
- *
- * @return
- * F_none on success.
- * F_memory_reallocation (with error bit) on reallocation error.
- * F_array_too_large (with error bit) if new length is larger than max array length.
- *
- * @see fl_fss_basic_object_read()
- * @see fl_fss_basic_content_read()
- * @see fl_fss_basic_list_content_read()
- * @see fl_fss_basic_list_object_read
- * @see fl_fss_embedded_list_content_read()
- * @see fl_fss_embedded_list_object_read()
- * @see fl_fss_extended_content_read()
- * @see fl_fss_extended_list_content_read()
- * @see fl_fss_extended_list_object_read()
- * @see fl_fss_extended_object_read()
- */
-#if !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_basic_content_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_) || !defined(_di_fl_fss_basic_list_object_read_) || !defined(_di_fl_fss_basic_list_content_read_) || !defined(_di_fl_fss_extended_list_object_read_) || !defined(_di_fl_fss_extended_list_content_read_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
- extern f_return_status private_fl_fss_ranges_increase(f_string_ranges_t *ranges) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_fss_basic_object_read_) || !defined(_di_fl_fss_basic_content_read_) || !defined(_di_fl_fss_extended_object_read_) || !defined(_di_fl_fss_extended_content_read_) || !defined(_di_fl_fss_basic_list_object_read_) || !defined(_di_fl_fss_basic_list_content_read_) || !defined(_di_fl_fss_extended_list_object_read_) || !defined(_di_fl_fss_extended_list_content_read_) || !defined(_di_fl_fss_embedded_list_object_read_) || !defined(_di_fl_fss_embedded_list_content_read_)
-
-/**
- * Private implementation for deleting string lengths.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param lengths
- * The string lengths to delete.
- *
- * @see f_macro_string_lengths_t_delete_simple()
- * @see fl_fss_embedded_list_content_read()
- */
-#if !defined(_di_fl_fss_embedded_list_content_read_)
- extern void private_fl_fss_string_lengths_delete(f_string_lengths_t *lengths) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_fss_embedded_list_content_read_)
-
#ifdef __cplusplus
} // extern "C"
#endif
if (range.start >= buffer.used) { \
delimits.used = delimits_used; \
comments.used = comments_used; \
- private_fl_fss_string_lengths_delete(&positions); \
+ f_macro_string_lengths_t_delete_simple(positions); \
private_fl_fss_objects_delete(&objects); \
return eos_status; \
} \
else if (range.start > range.stop) { \
delimits.used = delimits_used; \
comments.used = comments_used; \
- private_fl_fss_string_lengths_delete(&positions); \
+ f_macro_string_lengths_t_delete_simple(positions); \
private_fl_fss_objects_delete(&objects); \
return stop_status; \
}
#ifndef _di_fl_macro_fss_nest_return_on_overflow_delimited_
#define private_fl_macro_fss_nest_return_on_overflow_delimited(buffer, range, found, positions, objects, eos_status, stop_status) \
if (range.start >= buffer.used) { \
- private_fl_fss_string_lengths_delete(&positions); \
+ f_macro_string_lengths_t_delete_simple(positions); \
private_fl_fss_objects_delete(&objects); \
return eos_status; \
} \
else if (range.start > range.stop) { \
- private_fl_fss_string_lengths_delete(&positions); \
+ f_macro_string_lengths_t_delete_simple(positions); \
private_fl_fss_objects_delete(&objects); \
return stop_status; \
}
#endif
#ifndef _di_fl_iki_read_
- f_return_status fl_iki_read(f_string_static_t *buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content) {
+ f_status_t fl_iki_read(f_string_static_t *buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content) {
f_status_t status = F_none;
do {
* Errors (with error bit) from: f_iki_read().
*/
#ifndef _di_fl_iki_read_
- extern f_return_status fl_iki_read(f_string_static_t *buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content);
+ extern f_status_t fl_iki_read(f_string_static_t *buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content);
#endif // _di_fl_iki_read_
#ifdef __cplusplus
#endif
#ifndef _di_fl_print_trim_except_
- f_return_status fl_print_trim_except(FILE *output, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except) {
+ f_status_t fl_print_trim_except(FILE *output, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_
#ifndef _di_fl_print_trim_except_dynamic_
- f_return_status fl_print_trim_except_dynamic(FILE *output, const f_string_static_t buffer, const f_string_lengths_t except) {
+ f_status_t fl_print_trim_except_dynamic(FILE *output, const f_string_static_t buffer, const f_string_lengths_t except) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_dynamic_
#ifndef _di_fl_print_trim_except_dynamic_partial_
- f_return_status fl_print_trim_except_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except) {
+ f_status_t fl_print_trim_except_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_dynamic_partial_
#ifndef _di_fl_print_trim_except_utf_
- f_return_status fl_print_trim_except_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length, const f_utf_string_lengths_t except) {
+ f_status_t fl_print_trim_except_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length, const f_utf_string_lengths_t except) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_utf_
#ifndef _di_fl_print_trim_except_utf_dynamic_
- f_return_status fl_print_trim_except_utf_dynamic(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_lengths_t except) {
+ f_status_t fl_print_trim_except_utf_dynamic(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_lengths_t except) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_utf_dynamic_
#ifndef _di_fl_print_trim_except_utf_dynamic_partial_
- f_return_status fl_print_trim_except_utf_dynamic_partial(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_range_t range, const f_utf_string_lengths_t except) {
+ f_status_t fl_print_trim_except_utf_dynamic_partial(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_range_t range, const f_utf_string_lengths_t except) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_except_utf_dynamic_partial_
#ifndef _di_fl_print_trim_
- f_return_status fl_print_trim(FILE *output, const f_string_t string, const f_string_length_t length) {
+ f_status_t fl_print_trim(FILE *output, const f_string_t string, const f_string_length_t length) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_
#ifndef _di_fl_print_trim_dynamic_
- f_return_status fl_print_trim_dynamic(FILE *output, const f_string_static_t buffer) {
+ f_status_t fl_print_trim_dynamic(FILE *output, const f_string_static_t buffer) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_dynamic_
#ifndef _di_fl_print_trim_dynamic_partial_
- f_return_status fl_print_trim_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range) {
+ f_status_t fl_print_trim_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_dynamic_partial_
#ifndef _di_fl_print_trim_utf_
- f_return_status fl_print_trim_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length) {
+ f_status_t fl_print_trim_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_utf_
#ifndef _di_fl_print_trim_utf_dynamic_
- f_return_status fl_print_trim_utf_dynamic(FILE *output, const f_utf_string_static_t buffer) {
+ f_status_t fl_print_trim_utf_dynamic(FILE *output, const f_utf_string_static_t buffer) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_print_trim_utf_dynamic_
#ifndef _di_fl_print_trim_utf_dynamic_partial_
- f_return_status fl_print_trim_utf_dynamic_partial(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_range_t range) {
+ f_status_t fl_print_trim_utf_dynamic_partial(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_range_t range) {
#ifndef _di_level_1_parameter_checking_
if (!output) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* Errors (with error bit) from: f_utf_is_whitespace().
*/
#ifndef _di_fl_print_trim_except_
- extern f_return_status fl_print_trim_except(FILE *output, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except);
+ extern f_status_t fl_print_trim_except(FILE *output, const f_string_t string, const f_string_length_t length, const f_string_lengths_t except);
#endif // _di_fl_print_trim_except_
/**
* Errors (with error bit) from: f_utf_is_whitespace().
*/
#ifndef _di_fl_print_trim_except_dynamic_
- extern f_return_status fl_print_trim_except_dynamic(FILE *output, const f_string_static_t buffer, const f_string_lengths_t except);
+ extern f_status_t fl_print_trim_except_dynamic(FILE *output, const f_string_static_t buffer, const f_string_lengths_t except);
#endif // _di_fl_print_trim_except_dynamic_
/**
* Errors (with error bit) from: f_utf_is_whitespace().
*/
#ifndef _di_fl_print_trim_except_dynamic_partial_
- extern f_return_status fl_print_trim_except_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except);
+ extern f_status_t fl_print_trim_except_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range, const f_string_lengths_t except);
#endif // _di_fl_print_trim_except_dynamic_partial_
/**
* Errors (with error bit) from: f_utf_character_is_whitespace().
*/
#ifndef _di_fl_print_trim_except_utf_
- extern f_return_status fl_print_trim_except_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length, const f_utf_string_lengths_t except);
+ extern f_status_t fl_print_trim_except_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length, const f_utf_string_lengths_t except);
#endif // _di_fl_print_trim_except_utf_
/**
* Errors (with error bit) from: f_utf_character_is_whitespace().
*/
#ifndef _di_fl_print_trim_except_utf_dynamic_
- extern f_return_status fl_print_trim_except_utf_dynamic(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_lengths_t except);
+ extern f_status_t fl_print_trim_except_utf_dynamic(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_lengths_t except);
#endif // _di_fl_print_trim_except_utf_dynamic_
/**
* Errors (with error bit) from: f_utf_character_is_whitespace().
*/
#ifndef _di_fl_print_trim_except_utf_dynamic_partial_
- extern f_return_status fl_print_trim_except_utf_dynamic_partial(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_range_t range, const f_utf_string_lengths_t except);
+ extern f_status_t fl_print_trim_except_utf_dynamic_partial(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_range_t range, const f_utf_string_lengths_t except);
#endif // _di_fl_print_trim_except_utf_dynamic_partial_
/**
* Errors (with error bit) from: f_utf_is_whitespace().
*/
#ifndef _di_fl_print_trim_
- extern f_return_status fl_print_trim(FILE *output, const f_string_t string, const f_string_length_t length);
+ extern f_status_t fl_print_trim(FILE *output, const f_string_t string, const f_string_length_t length);
#endif // _di_fl_print_trim_
/**
* Errors (with error bit) from: f_utf_is_whitespace().
*/
#ifndef _di_fl_print_trim_dynamic_
- extern f_return_status fl_print_trim_dynamic(FILE *output, const f_string_static_t buffer);
+ extern f_status_t fl_print_trim_dynamic(FILE *output, const f_string_static_t buffer);
#endif // _di_fl_print_trim_dynamic_
/**
* Errors (with error bit) from: f_utf_is_whitespace().
*/
#ifndef _di_fl_print_trim_dynamic_partial_
- extern f_return_status fl_print_trim_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range);
+ extern f_status_t fl_print_trim_dynamic_partial(FILE *output, const f_string_static_t buffer, const f_string_range_t range);
#endif // _di_fl_print_trim_dynamic_partial_
/**
* Errors (with error bit) from: f_utf_character_is_whitespace().
*/
#ifndef _di_fl_print_trim_utf_
- extern f_return_status fl_print_trim_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length);
+ extern f_status_t fl_print_trim_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length);
#endif // _di_fl_print_trim_utf_
/**
* Errors (with error bit) from: f_utf_character_is_whitespace().
*/
#ifndef _di_fl_print_trim_utf_dynamic_
- extern f_return_status fl_print_trim_utf_dynamic(FILE *output, const f_utf_string_static_t buffer);
+ extern f_status_t fl_print_trim_utf_dynamic(FILE *output, const f_utf_string_static_t buffer);
#endif // _di_fl_print_trim_utf_dynamic_
/**
* Errors (with error bit) from: f_utf_character_is_whitespace().
*/
#ifndef _di_fl_print_trim_utf_dynamic_partial_
- extern f_return_status fl_print_trim_utf_dynamic_partial(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_range_t range);
+ extern f_status_t fl_print_trim_utf_dynamic_partial(FILE *output, const f_utf_string_static_t buffer, const f_utf_string_range_t range);
#endif // _di_fl_print_trim_utf_dynamic_partial_
#ifdef __cplusplus
#endif
#if !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_)
- f_return_status private_fl_print_trim_except(FILE *output, const f_string_t string, const f_string_length_t start, const f_string_length_t stop, const f_string_lengths_t except) {
+ f_status_t private_fl_print_trim_except(FILE *output, const f_string_t string, const f_string_length_t start, const f_string_length_t stop, const f_string_lengths_t except) {
register f_string_length_t i = start;
f_string_length_t j = 0;
#endif // !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_)
#if !defined(_di_fl_print_trim_except_utf_) || !defined(_di_fl_print_trim_except_utf_dynamic_) || !defined(_di_fl_print_trim_except_utf_dynamic_partial_)
- f_return_status private_fl_print_trim_except_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t start, const f_utf_string_length_t stop, const f_utf_string_lengths_t except) {
+ f_status_t private_fl_print_trim_except_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t start, const f_utf_string_length_t stop, const f_utf_string_lengths_t except) {
register f_string_length_t i = start;
f_string_length_t j = 0;
#endif // !defined(_di_fl_print_trim_except_utf_) || !defined(_di_fl_print_trim_except_utf_dynamic_) || !defined(_di_fl_print_trim_except_utf_dynamic_partial_)
#if !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_)
- f_return_status private_fl_print_trim(FILE *output, const f_string_t string, const f_string_length_t length) {
+ f_status_t private_fl_print_trim(FILE *output, const f_string_t string, const f_string_length_t length) {
register f_string_length_t i = 0;
f_string_length_t j = 0;
#endif // !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_)
#if !defined(_di_fl_print_trim_utf_) || !defined(_di_fl_print_trim_utf_dynamic_) || !defined(_di_fl_print_trim_utf_dynamic_partial_)
- f_return_status private_fl_print_trim_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length) {
+ f_status_t private_fl_print_trim_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length) {
register f_string_length_t i = 0;
f_string_length_t j = 0;
* @see fl_print_trim_except_dynamic_partial()
*/
#if !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_)
- extern f_return_status private_fl_print_trim_except(FILE *output, const f_string_t string, const f_string_length_t start, const f_string_length_t stop, const f_string_lengths_t except) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_print_trim_except(FILE *output, const f_string_t string, const f_string_length_t start, const f_string_length_t stop, const f_string_lengths_t except) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_print_trim_except_) || !defined(_di_fl_print_trim_except_dynamic_) || !defined(_di_fl_print_trim_except_dynamic_partial_)
/**
* @see fl_print_trim_except_utf_dynamic_partial()
*/
#if !defined(_di_fl_print_trim_except_utf_) || !defined(_di_fl_print_trim_except_utf_dynamic_) || !defined(_di_fl_print_trim_except_utf_dynamic_partial_)
- extern f_return_status private_fl_print_trim_except_utf(FILE *output, const f_utf_string_t string, const f_string_length_t start, const f_utf_string_length_t stop, const f_utf_string_lengths_t except) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_print_trim_except_utf(FILE *output, const f_utf_string_t string, const f_string_length_t start, const f_utf_string_length_t stop, const f_utf_string_lengths_t except) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_print_trim_except_utf_) || !defined(_di_fl_print_trim_except_utf_dynamic_) || !defined(_di_fl_print_trim_except_utf_dynamic_partial_)
/**
* @see fl_print_trim_dynamic_partial()
*/
#if !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_)
- extern f_return_status private_fl_print_trim(FILE *output, const f_string_t string, const f_string_length_t length) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_print_trim(FILE *output, const f_string_t string, const f_string_length_t length) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_print_trim_) || !defined(_di_fl_print_trim_dynamic_) || !defined(_di_fl_print_trim_dynamic_partial_)
/**
* @see fl_print_trim_utf_dynamic_partial()
*/
#if !defined(_di_fl_print_trim_utf_) || !defined(_di_fl_print_trim_utf_dynamic_) || !defined(_di_fl_print_trim_utf_dynamic_partial_)
- extern f_return_status private_fl_print_trim_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_print_trim_utf(FILE *output, const f_utf_string_t string, const f_utf_string_length_t length) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_print_trim_utf_) || !defined(_di_fl_print_trim_utf_dynamic_) || !defined(_di_fl_print_trim_utf_dynamic_partial_)
#ifdef __cplusplus
#endif
#ifndef _di_fl_status_to_string_
- f_return_status fl_status_to_string(const f_status_t code, f_string_t *string) {
+ f_status_t fl_status_to_string(const f_status_t code, f_string_t *string) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_status_to_string_
- extern f_return_status fl_status_to_string(const f_status_t code, f_string_t *string);
+ extern f_status_t fl_status_to_string(const f_status_t code, f_string_t *string);
#endif // _di_fl_status_to_string_
#ifdef __cplusplus
#endif
#if !defined(_di_fl_string_append_) || !defined(_di_fl_string_dynamic_append_) || !defined(_di_fl_string_dynamic_mash_) || !defined(_di_fl_string_mash_)
- f_return_status private_fl_string_append(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t private_fl_string_append(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
f_status_t status = F_none;
if (destination->used + length > destination->size) {
#endif // !defined(_di_fl_string_append_) || !defined(_di_fl_string_dynamic_append_) || !defined(_di_fl_string_dynamic_mash_) || !defined(_di_fl_string_mash_)
#if !defined(_di_fl_string_append_nulless_) || !defined(_di_fl_string_dynamic_append_nulless_) || !defined(_di_fl_string_dynamic_mash_nulless_) || !defined(_di_fl_string_mash_nulless_)
- f_return_status private_fl_string_append_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t private_fl_string_append_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
if (destination->used + length > f_string_length_t_size) {
return F_status_set_error(F_string_too_large);
#endif // !defined(_di_fl_string_append_nulless_) || !defined(_di_fl_string_dynamic_append_nulless_) || !defined(_di_fl_string_dynamic_mash_nulless_) || !defined(_di_fl_string_mash_nulless_)
#if !defined(_di_fl_string_compare_) || !defined(_di_fl_string_dynamic_compare_) || !defined(_di_fl_string_dynamic_partial_compare_)
- f_return_status private_fl_string_compare(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2) {
+ f_status_t private_fl_string_compare(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2) {
f_string_length_t i1 = offset1;
f_string_length_t i2 = offset2;
#endif // !defined(_di_fl_string_compare_) || !defined(_di_fl_string_dynamic_compare_) || !defined(_di_fl_string_dynamic_partial_compare_)
#if !defined(_di_fl_string_compare_except_) || !defined(_di_fl_string_dynamic_compare_except_) || !defined(_di_fl_string_dynamic_partial_compare_except_)
- f_return_status private_fl_string_compare_except(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t private_fl_string_compare_except(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
f_string_length_t i1 = offset1;
f_string_length_t i2 = offset2;
#endif // !defined(_di_fl_string_compare_except_) || !defined(_di_fl_string_dynamic_compare_except_) || !defined(_di_fl_string_dynamic_partial_compare_except_)
#if !defined(_di_fl_string_compare_except_trim_) || !defined(_di_fl_string_dynamic_compare_except_trim_) || !defined(_di_fl_string_dynamic_partial_compare_except_trim_)
- f_return_status private_fl_string_compare_except_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t private_fl_string_compare_except_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
f_string_length_t i1 = offset1;
f_string_length_t i2 = offset2;
#endif // !defined(_di_fl_string_compare_except_trim_) || !defined(_di_fl_string_dynamic_compare_except_trim_) || !defined(_di_fl_string_dynamic_partial_compare_except_trim_)
#if !defined(_di_fl_string_compare_trim_) || !defined(_di_fl_string_dynamic_compare_trim_) || !defined(_di_fl_string_dynamic_partial_compare_trim_)
- f_return_status private_fl_string_compare_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2) {
+ f_status_t private_fl_string_compare_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2) {
f_string_length_t i1 = offset1;
f_string_length_t i2 = offset2;
#endif // !defined(_di_fl_string_dynamic_decrease_) || !defined(_di_fl_string_dynamic_decrease_by_) || !defined(_di_fl_string_dynamic_delete_)
#if !defined(_di_fl_string_dynamic_increase_by_) || !defined(_di_fl_string_append_) || !defined(_di_fl_string_dynamic_append_) || !defined(_di_fl_string_append_mash_) || !defined(_di_fl_string_dynamic_mash_) || !defined(_di_fl_string_append_nulless_) || !defined(_di_fl_string_dynamic_append_nulless_) || !defined(_di_fl_string_mash_nulless_) || !defined(_di_fl_string_dynamic_mash_nulless_) || !defined(_di_fl_string_prepend_) || !defined(_di_fl_string_dynamic_prepend_) || !defined(_di_fl_string_prepend_nulless_) || !defined(_di_fl_string_dynamic_prepend_nulless_)
- f_return_status private_fl_string_dynamic_increase_by(const f_string_length_t amount, f_string_dynamic_t *string) {
+ f_status_t private_fl_string_dynamic_increase_by(const f_string_length_t amount, f_string_dynamic_t *string) {
if (string->used + amount > string->size) {
if (string->used + amount > f_string_length_t_size) {
#endif // !defined(_di_fl_string_dynamic_increase_by_) || !defined(_di_fl_string_append_) || !defined(_di_fl_string_dynamic_append_) || !defined(_di_fl_string_append_mash_) || !defined(_di_fl_string_dynamic_mash_) || !defined(_di_fl_string_append_nulless_) || !defined(_di_fl_string_dynamic_append_nulless_) || !defined(_di_fl_string_mash_nulless_) || !defined(_di_fl_string_dynamic_mash_nulless_) || !defined(_di_fl_string_prepend_) || !defined(_di_fl_string_dynamic_prepend_) || !defined(_di_fl_string_prepend_nulless_) || !defined(_di_fl_string_dynamic_prepend_nulless_)
#if !defined(_di_fl_string_dynamic_decrease_) || !defined(_di_fl_string_dynamic_decrease_by_) || !defined(_di_fl_string_dynamic_increase_) || !defined(_di_fl_string_dynamic_increase_by_) || !defined(_di_fl_string_dynamic_terminate_) || !defined(_di_fl_string_dynamic_terminate_after_)
- f_return_status private_fl_string_dynamic_resize(const f_string_length_t length, f_string_dynamic_t *string) {
+ f_status_t private_fl_string_dynamic_resize(const f_string_length_t length, f_string_dynamic_t *string) {
f_status_t status = F_none;
f_macro_string_dynamic_t_resize(status, (*string), length);
#endif // !defined(_di_fl_string_dynamics_decrease_) || !defined(_di_fl_string_dynamics_decrease_by_) || !defined(_di_fl_string_dynamics_delete_)
#if !defined(_di_fl_string_dynamics_decrease_) || !defined(_di_fl_string_dynamics_decrease_by_) || !defined(_di_fl_string_dynamics_increase_) || !defined(_di_fl_string_dynamics_increase_by_) || !defined(_di_fl_string_dynamics_terminate_) || !defined(_di_fl_string_dynamics_terminate_after_)
- f_return_status private_fl_string_dynamics_resize(const f_string_length_t length, f_string_dynamics_t *strings) {
+ f_status_t private_fl_string_dynamics_resize(const f_string_length_t length, f_string_dynamics_t *strings) {
f_status_t status = F_none;
f_macro_string_dynamics_t_resize(status, (*strings), length);
}
#endif // !defined(_di_fl_string_dynamics_decrease_) || !defined(_di_fl_string_dynamics_decrease_by_) || !defined(_di_fl_string_dynamics_increase_) || !defined(_di_fl_string_dynamics_increase_by_) || !defined(_di_fl_string_dynamics_terminate_) || !defined(_di_fl_string_dynamics_terminate_after_)
-#if !defined(_di_fl_string_lengths_decrease_) || !defined(_di_fl_string_lengths_decrease_by_) || !defined(_di_fl_string_lengths_delete_)
- void private_fl_string_lengths_delete(f_string_lengths_t *lengths) {
- f_macro_string_lengths_t_delete_simple((*lengths));
- }
-#endif // !defined(_di_fl_string_lengths_decrease_) || !defined(_di_fl_string_lengths_decrease_by_) || !defined(_di_fl_string_lengths_delete_)
-
-#if !defined(_di_fl_string_lengths_decrease_) || !defined(_di_fl_string_lengths_decrease_by_) || !defined(_di_fl_string_lengths_increase_) || !defined(_di_fl_string_lengths_increase_by_) || !defined(_di_fl_string_lengths_terminate_) || !defined(_di_fl_string_lengths_terminate_after_)
- f_return_status private_fl_string_lengths_resize(const f_string_length_t length, f_string_lengths_t *lengths) {
- f_status_t status = F_none;
-
- f_macro_string_lengths_t_resize(status, (*lengths), length);
-
- return status;
- }
-#endif // !defined(_di_fl_string_lengths_decrease_) || !defined(_di_fl_string_lengths_decrease_by_) || !defined(_di_fl_string_lengths_increase_) || !defined(_di_fl_string_lengths_increase_by_) || !defined(_di_fl_string_lengths_terminate_) || !defined(_di_fl_string_lengths_terminate_after_)
-
#if !defined(fl_string_maps_decrease) || !defined(fl_string_maps_decrease_by) || !defined(_di_fl_string_maps_delete_)
void private_fl_string_maps_delete(f_string_maps_t *maps) {
f_macro_string_maps_t_delete_simple((*maps));
#endif // !defined(fl_string_maps_decrease) || !defined(fl_string_maps_decrease_by) || !defined(_di_fl_string_maps_delete_)
#if !defined(_di_fl_string_maps_decrease_) || !defined(_di_fl_string_maps_decrease_by_) || !defined(_di_fl_string_maps_increase_) || !defined(_di_fl_string_maps_increase_by_) || !defined(_di_fl_string_maps_terminate_) || !defined(_di_fl_string_maps_terminate_after_)
- f_return_status private_fl_string_maps_resize(const f_string_length_t length, f_string_maps_t *maps) {
+ f_status_t private_fl_string_maps_resize(const f_string_length_t length, f_string_maps_t *maps) {
f_status_t status = F_none;
f_macro_string_maps_t_resize(status, (*maps), length);
#endif // !defined(_di_fl_string_maps_decrease_) || !defined(_di_fl_string_maps_decrease_by_) || !defined(_di_fl_string_maps_increase_) || !defined(_di_fl_string_maps_increase_by_) || !defined(_di_fl_string_maps_terminate_) || !defined(_di_fl_string_maps_terminate_after_)
#if !defined(_di_fl_string_dynamic_mish_) || !defined(_di_fl_string_dynamic_partial_mish_) || !defined(_di_fl_string_dynamic_partial_prepend_assure_) || !defined(_di_fl_string_dynamic_partial_prepend_) || !defined(_di_fl_string_dynamic_prepend_assure_) || !defined(_di_fl_string_dynamic_prepend_) || !defined(_di_fl_string_mish_) || !defined(_di_fl_string_prepend_assure_) || !defined(_di_fl_string_prepend_)
- f_return_status private_fl_string_prepend(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t private_fl_string_prepend(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
if (destination->used + length > f_string_length_t_size) {
return F_status_set_error(F_string_too_large);
#endif // !defined(_di_fl_string_dynamic_mish_) || !defined(_di_fl_string_dynamic_partial_mish_) || !defined(_di_fl_string_dynamic_partial_prepend_assure_) || !defined(_di_fl_string_dynamic_partial_prepend_) || !defined(_di_fl_string_dynamic_prepend_assure_) || !defined(_di_fl_string_dynamic_prepend_) || !defined(_di_fl_string_mish_) || !defined(_di_fl_string_prepend_assure_) || !defined(_di_fl_string_prepend_)
#if !defined(_di_fl_string_dynamic_mish_nulless_) || !defined(_di_fl_string_dynamic_partial_mish_nulless_) || !defined(_di_fl_string_dynamic_partial_prepend_assure_nulless_) || !defined(_di_fl_string_dynamic_partial_prepend_nulless_) || !defined(_di_fl_string_dynamic_prepend_assure_nulless_) || !defined(_di_fl_string_dynamic_prepend_nulless_) || !defined(_di_fl_string_mish_nulless_) || !defined(_di_fl_string_prepend_assure_nulless_) || !defined(_di_fl_string_prepend_nulless_)
- f_return_status private_fl_string_prepend_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t private_fl_string_prepend_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
if (destination->used + length > f_string_length_t_size) {
return F_status_set_error(F_string_too_large);
#endif // !defined(_di_fl_string_dynamic_mish_nulless_) || !defined(_di_fl_string_dynamic_partial_mish_nulless_) || !defined(_di_fl_string_dynamic_partial_prepend_assure_nulless_) || !defined(_di_fl_string_dynamic_partial_prepend_nulless_) || !defined(_di_fl_string_dynamic_prepend_assure_nulless_) || !defined(_di_fl_string_dynamic_prepend_nulless_) || !defined(_di_fl_string_mish_nulless_) || !defined(_di_fl_string_prepend_assure_nulless_) || !defined(_di_fl_string_prepend_nulless_)
#if !defined(_di_fl_string_rip_) || !defined(_di_fl_string_dynamic_rip_) || !defined(_di_fl_string_rip_nulless_) || !defined(_di_fl_string_dynamic_rip_nulless_)
- f_return_status private_fl_string_rip_find_range(const f_string_t source, f_string_length_t *start, f_string_length_t *stop) {
+ f_status_t private_fl_string_rip_find_range(const f_string_t source, f_string_length_t *start, f_string_length_t *stop) {
const f_string_length_t stop_original = *stop;
f_status_t status = F_none;
* @see fl_string_mash()
*/
#if !defined(_di_fl_string_append_) || !defined(_di_fl_string_dynamic_append_) || !defined(_di_fl_string_dynamic_mash_) || !defined(_di_fl_string_mash_)
- extern f_return_status private_fl_string_append(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_append(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_append_) || !defined(_di_fl_string_dynamic_append_) || !defined(_di_fl_string_dynamic_mash_) || !defined(_di_fl_string_mash_)
/**
* @see fl_string_mash_nulless()
*/
#if !defined(_di_fl_string_append_nulless_) || !defined(_di_fl_string_dynamic_append_nulless_) || !defined(_di_fl_string_dynamic_mash_nulless_) || !defined(_di_fl_string_mash_nulless_)
- extern f_return_status private_fl_string_append_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_append_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_append_nulless_) || !defined(_di_fl_string_dynamic_append_nulless_) || !defined(_di_fl_string_dynamic_mash_nulless_) || !defined(_di_fl_string_mash_nulless_)
/**
* @see fl_string_dynamic_partial_compare()
*/
#if !defined(_di_fl_string_compare_) || !defined(_di_fl_string_dynamic_compare_) || !defined(_di_fl_string_dynamic_partial_compare_)
- extern f_return_status private_fl_string_compare(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_compare(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_compare_) || !defined(_di_fl_string_dynamic_compare_) || !defined(_di_fl_string_dynamic_partial_compare_)
/**
* @see fl_string_dynamic_partial_compare_except()
*/
#if !defined(_di_fl_string_compare_except_) || !defined(_di_fl_string_dynamic_compare_except_) || !defined(_di_fl_string_dynamic_partial_compare_except_)
- extern f_return_status private_fl_string_compare_except(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2, const f_string_lengths_t except1, const f_string_lengths_t except2) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_compare_except(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2, const f_string_lengths_t except1, const f_string_lengths_t except2) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_compare_except_) || !defined(_di_fl_string_dynamic_compare_except_) || !defined(_di_fl_string_dynamic_partial_compare_except_)
/**
* @see fl_string_dynamic_partial_compare_except_trim()
*/
#if !defined(_di_fl_string_compare_except_trim_) || !defined(_di_fl_string_dynamic_compare_except_trim_) || !defined(_di_fl_string_dynamic_partial_compare_except_trim_)
- extern f_return_status private_fl_string_compare_except_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2, const f_string_lengths_t except1, const f_string_lengths_t except2) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_compare_except_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2, const f_string_lengths_t except1, const f_string_lengths_t except2) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_compare_except_trim_) || !defined(_di_fl_string_dynamic_compare_except_trim_) || !defined(_di_fl_string_dynamic_partial_compare_except_trim_)
/**
* @see fl_string_dynamic_partial_compare_trim()
*/
#if !defined(_di_fl_string_compare_trim_) || !defined(_di_fl_string_dynamic_compare_trim_) || !defined(_di_fl_string_dynamic_partial_compare_trim_)
- extern f_return_status private_fl_string_compare_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_compare_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t offset1, const f_string_length_t offset2, const f_string_length_t stop1, const f_string_length_t stop2) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_compare_trim_) || !defined(_di_fl_string_dynamic_compare_trim_) || !defined(_di_fl_string_dynamic_partial_compare_trim_)
/**
* @see fl_string_prepend_nulless()
*/
#if !defined(_di_fl_string_dynamic_increase_by_) || !defined(_di_fl_string_append_) || !defined(_di_fl_string_dynamic_append_) || !defined(_di_fl_string_append_mash_) || !defined(_di_fl_string_dynamic_mash_) || !defined(_di_fl_string_append_nulless_) || !defined(_di_fl_string_dynamic_append_nulless_) || !defined(_di_fl_string_mash_nulless_) || !defined(_di_fl_string_dynamic_mash_nulless_) || !defined(_di_fl_string_prepend_) || !defined(_di_fl_string_dynamic_prepend_) || !defined(_di_fl_string_prepend_nulless_) || !defined(_di_fl_string_dynamic_prepend_nulless_)
- extern f_return_status private_fl_string_dynamic_increase_by(const f_string_length_t amount, f_string_dynamic_t *string) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_dynamic_increase_by(const f_string_length_t amount, f_string_dynamic_t *string) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_dynamic_increase_by_) || !defined(_di_fl_string_append_) || !defined(_di_fl_string_dynamic_append_) || !defined(_di_fl_string_append_mash_) || !defined(_di_fl_string_dynamic_mash_) || !defined(_di_fl_string_append_nulless_) || !defined(_di_fl_string_dynamic_append_nulless_) || !defined(_di_fl_string_mash_nulless_) || !defined(_di_fl_string_dynamic_mash_nulless_) || !defined(_di_fl_string_prepend_) || !defined(_di_fl_string_dynamic_prepend_) || !defined(_di_fl_string_prepend_nulless_) || !defined(_di_fl_string_dynamic_prepend_nulless_)
/**
* @see fl_string_dynamic_terminate_after()
*/
#if !defined(_di_fl_string_dynamic_decrease_) || !defined(_di_fl_string_dynamic_decrease_by_) || !defined(_di_fl_string_dynamic_increase_) || !defined(_di_fl_string_dynamic_increase_by_) || !defined(_di_fl_string_dynamic_terminate_) || !defined(_di_fl_string_dynamic_terminate_after_)
- extern f_return_status private_fl_string_dynamic_resize(const f_string_length_t length, f_string_dynamic_t *string) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_dynamic_resize(const f_string_length_t length, f_string_dynamic_t *string) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_dynamic_decrease_) || !defined(_di_fl_string_dynamic_decrease_by_) || !defined(_di_fl_string_dynamic_increase_) || !defined(_di_fl_string_dynamic_increase_by_) || !defined(_di_fl_string_dynamic_terminate_) || !defined(_di_fl_string_dynamic_terminate_after_)
/**
* @see fl_string_dynamics_terminate_after()
*/
#if !defined(_di_fl_string_dynamics_decrease_) || !defined(_di_fl_string_dynamics_decrease_by_) || !defined(_di_fl_string_dynamics_increase_) || !defined(_di_fl_string_dynamics_increase_by_) || !defined(_di_fl_string_dynamics_terminate_) || !defined(_di_fl_string_dynamics_terminate_after_)
- extern f_return_status private_fl_string_dynamics_resize(const f_string_length_t length, f_string_dynamics_t *strings) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_dynamics_resize(const f_string_length_t length, f_string_dynamics_t *strings) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_dynamics_decrease_) || !defined(_di_fl_string_dynamics_decrease_by_) || !defined(_di_fl_string_dynamics_increase_) || !defined(_di_fl_string_dynamics_increase_by_) || !defined(_di_fl_string_dynamics_terminate_) || !defined(_di_fl_string_dynamics_terminate_after_)
/**
- * Private implementation of fl_string_lengths_delete().
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param lengths
- * The lengths to delete.
- *
- * @see fl_string_lengths_decrease()
- * @see fl_string_lengths_decrease_by()
- * @see fl_string_lengths_delete()
- */
-#if !defined(_di_fl_string_lengths_decrease_) || !defined(_di_fl_string_lengths_decrease_by_) || !defined(_di_fl_string_lengths_delete_)
- extern void private_fl_string_lengths_delete(f_string_lengths_t *lengths) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_string_lengths_decrease_) || !defined(_di_fl_string_lengths_decrease_by_) || !defined(_di_fl_string_lengths_delete_)
-
-/**
- * Private implementation for resizing.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The new size to use.
- * @param lengths
- * The lengths to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_string_lengths_t_resize().
- *
- * @see f_macro_string_lengths_t_resize()
- * @see fl_string_lengths_decrease()
- * @see fl_string_lengths_decrease_by()
- * @see fl_string_lengths_increase()
- * @see fl_string_lengths_increase_by()
- * @see fl_string_lengths_terminate()
- * @see fl_string_lengths_terminate_after()
- */
-#if !defined(_di_fl_string_lengths_decrease_) || !defined(_di_fl_string_lengths_decrease_by_) || !defined(_di_fl_string_lengths_increase_) || !defined(_di_fl_string_lengths_increase_by_) || !defined(_di_fl_string_lengths_terminate_) || !defined(_di_fl_string_lengths_terminate_after_)
- extern f_return_status private_fl_string_lengths_resize(const f_string_length_t length, f_string_lengths_t *lengths) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_string_lengths_decrease_) || !defined(_di_fl_string_lengths_decrease_by_) || !defined(_di_fl_string_lengths_increase_) || !defined(_di_fl_string_lengths_increase_by_) || !defined(_di_fl_string_lengths_terminate_) || !defined(_di_fl_string_lengths_terminate_after_)
-
-/**
* Private implementation of fl_string_maps_delete().
*
* Intended to be shared to each of the different implementation variations.
* @see fl_string_maps_terminate_after()
*/
#if !defined(_di_fl_string_maps_decrease_) || !defined(_di_fl_string_maps_decrease_by_) || !defined(_di_fl_string_maps_increase_) || !defined(_di_fl_string_maps_increase_by_) || !defined(_di_fl_string_maps_terminate_) || !defined(_di_fl_string_maps_terminate_after_)
- extern f_return_status private_fl_string_maps_resize(const f_string_length_t length, f_string_maps_t *maps) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_maps_resize(const f_string_length_t length, f_string_maps_t *maps) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_maps_decrease_) || !defined(_di_fl_string_maps_decrease_by_) || !defined(_di_fl_string_maps_increase_) || !defined(_di_fl_string_maps_increase_by_) || !defined(_di_fl_string_maps_terminate_) || !defined(_di_fl_string_maps_terminate_after_)
/**
* @see fl_string_prepend()
*/
#if !defined(_di_fl_string_dynamic_mish_) || !defined(_di_fl_string_dynamic_partial_mish_) || !defined(_di_fl_string_dynamic_partial_prepend_assure_) || !defined(_di_fl_string_dynamic_partial_prepend_) || !defined(_di_fl_string_dynamic_prepend_assure_) || !defined(_di_fl_string_dynamic_prepend_) || !defined(_di_fl_string_mish_) || !defined(_di_fl_string_prepend_assure_) || !defined(_di_fl_string_prepend_)
- extern f_return_status private_fl_string_prepend(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_prepend(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_dynamic_mish_) || !defined(_di_fl_string_dynamic_partial_mish_) || !defined(_di_fl_string_dynamic_partial_prepend_assure_) || !defined(_di_fl_string_dynamic_partial_prepend_) || !defined(_di_fl_string_dynamic_prepend_assure_) || !defined(_di_fl_string_dynamic_prepend_) || !defined(_di_fl_string_mish_) || !defined(_di_fl_string_prepend_assure_) || !defined(_di_fl_string_prepend_)
/**
* @see fl_string_prepend_nulless()
*/
#if !defined(_di_fl_string_dynamic_mish_nulless_) || !defined(_di_fl_string_dynamic_partial_mish_nulless_) || !defined(_di_fl_string_dynamic_partial_prepend_assure_nulless_) || !defined(_di_fl_string_dynamic_partial_prepend_nulless_) || !defined(_di_fl_string_dynamic_prepend_assure_nulless_) || !defined(_di_fl_string_dynamic_prepend_nulless_) || !defined(_di_fl_string_mish_nulless_) || !defined(_di_fl_string_prepend_assure_nulless_) || !defined(_di_fl_string_prepend_nulless_)
- extern f_return_status private_fl_string_prepend_nulless(const f_string_t source, f_string_length_t length, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_prepend_nulless(const f_string_t source, f_string_length_t length, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_dynamic_mish_nulless_) || !defined(_di_fl_string_dynamic_partial_mish_nulless_) || !defined(_di_fl_string_dynamic_partial_prepend_assure_nulless_) || !defined(_di_fl_string_dynamic_partial_prepend_nulless_) || !defined(_di_fl_string_dynamic_prepend_assure_nulless_) || !defined(_di_fl_string_dynamic_prepend_nulless_) || !defined(_di_fl_string_mish_nulless_) || !defined(_di_fl_string_prepend_assure_nulless_) || !defined(_di_fl_string_prepend_nulless_)
/**
* @see fl_string_dynamic_rip_nulless()
*/
#if !defined(_di_fl_string_rip_) || !defined(_di_fl_string_dynamic_rip_) || !defined(_di_fl_string_rip_nulless_) || !defined(_di_fl_string_dynamic_rip_nulless_)
- extern f_return_status private_fl_string_rip_find_range(const f_string_t source, f_string_length_t *start, f_string_length_t *stop) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_string_rip_find_range(const f_string_t source, f_string_length_t *start, f_string_length_t *stop) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_string_rip_) || !defined(_di_fl_string_dynamic_rip_) || !defined(_di_fl_string_rip_nulless_) || !defined(_di_fl_string_dynamic_rip_nulless_)
#ifdef __cplusplus
#endif
#ifndef _di_fl_string_append_
- f_return_status fl_string_append(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_append(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_append_
#ifndef _di_fl_string_append_assure_
- f_return_status fl_string_append_assure(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_append_assure(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_append_assure_
#ifndef _di_fl_string_append_assure_nulless_
- f_return_status fl_string_append_assure_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_append_assure_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_append_assure_nulless_
#ifndef _di_fl_string_append_nulless_
- f_return_status fl_string_append_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_append_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_append_nulless_
#ifndef _di_fl_string_compare_
- f_return_status fl_string_compare(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2) {
+ f_status_t fl_string_compare(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2) {
return private_fl_string_compare(string1, string2, 0, 0, length1, length2);
}
#endif // _di_fl_string_compare_
#ifndef _di_fl_string_compare_except_
- f_return_status fl_string_compare_except(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_compare_except(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
return private_fl_string_compare_except(string1, string2, 0, 0, length1, length2, except1, except2);
}
#endif // _di_fl_string_compare_except_
#ifndef _di_fl_string_compare_except_trim_
- f_return_status fl_string_compare_except_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_compare_except_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
return private_fl_string_compare_except_trim(string1, string2, 0, 0, length1, length2, except1, except2);
}
#endif // _di_fl_string_compare_except_trim_
#ifndef _di_fl_string_compare_trim_
- f_return_status fl_string_compare_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2) {
+ f_status_t fl_string_compare_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2) {
return private_fl_string_compare_trim(string1, string2, 0, 0, length1, length2);
}
#endif // _di_fl_string_compare_trim_
#ifndef _di_fl_string_dynamic_append_
- f_return_status fl_string_dynamic_append(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_append(const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_append_
#ifndef _di_fl_string_dynamic_append_assure_
- f_return_status fl_string_dynamic_append_assure(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_append_assure(const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_append_assure_
#ifndef _di_fl_string_dynamic_append_assure_nulless_
- f_return_status fl_string_dynamic_append_assure_nulless(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_append_assure_nulless(const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_append_assure_nulless_
#ifndef _di_fl_string_dynamic_append_nulless_
- f_return_status fl_string_dynamic_append_nulless(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_append_nulless(const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_append_nulless_
#ifndef _di_fl_string_dynamic_compare_
- f_return_status fl_string_dynamic_compare(const f_string_static_t string1, const f_string_static_t string2) {
+ f_status_t fl_string_dynamic_compare(const f_string_static_t string1, const f_string_static_t string2) {
return private_fl_string_compare(string1.string, string2.string, 0, 0, string1.used, string2.used);
}
#endif // _di_fl_string_dynamic_compare_
#ifndef _di_fl_string_dynamic_compare_except_
- f_return_status fl_string_dynamic_compare_except(const f_string_static_t string1, const f_string_static_t string2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_dynamic_compare_except(const f_string_static_t string1, const f_string_static_t string2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
return private_fl_string_compare_except(string1.string, string2.string, 0, 0, string1.used, string2.used, except1, except2);
}
#endif // _di_fl_string_dynamic_compare_except_
#ifndef _di_fl_string_dynamic_compare_except_string_
- f_return_status fl_string_dynamic_compare_except_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_dynamic_compare_except_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_lengths_t except1, const f_string_lengths_t except2) {
return private_fl_string_compare_except(string1, string2.string, 0, 0, length1, string2.used, except1, except2);
}
#endif // _di_fl_string_dynamic_compare_except_string_
#ifndef _di_fl_string_dynamic_compare_except_trim_
- f_return_status fl_string_dynamic_compare_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_dynamic_compare_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
return private_fl_string_compare_except_trim(string1.string, string2.string, 0, 0, string1.used, string2.used, except1, except2);
}
#endif // _di_fl_string_dynamic_compare_except_trim_
#ifndef _di_fl_string_dynamic_compare_except_trim_string_
- f_return_status fl_string_dynamic_compare_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_dynamic_compare_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_lengths_t except1, const f_string_lengths_t except2) {
return private_fl_string_compare_except_trim(string1, string2.string, 0, 0, length1, string2.used, except1, except2);
}
#endif // _di_fl_string_dynamic_compare_except_trim_string_
#ifndef _di_fl_string_dynamic_compare_string_
- f_return_status fl_string_dynamic_compare_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1) {
+ f_status_t fl_string_dynamic_compare_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1) {
return private_fl_string_compare(string1, string2.string, 0, 0, length1, string2.used);
}
#endif // _di_fl_string_dynamic_compare_string_
#ifndef _di_fl_string_dynamic_compare_trim_
- f_return_status fl_string_dynamic_compare_trim(const f_string_static_t string1, const f_string_static_t string2) {
+ f_status_t fl_string_dynamic_compare_trim(const f_string_static_t string1, const f_string_static_t string2) {
return private_fl_string_compare_trim(string1.string, string2.string, 0, 0, string1.used, string2.used);
}
#endif // _di_fl_string_dynamic_compare_trim_
#ifndef _di_fl_string_dynamic_compare_trim_string_
- f_return_status fl_string_dynamic_compare_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1) {
+ f_status_t fl_string_dynamic_compare_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1) {
return private_fl_string_compare_trim(string1, string2.string, 0, 0, length1, string2.used);
}
#endif // _di_fl_string_dynamic_compare_trim_string_
#ifndef _di_fl_string_dynamic_decrease_
- f_return_status fl_string_dynamic_decrease(f_string_dynamic_t *string) {
+ f_status_t fl_string_dynamic_decrease(f_string_dynamic_t *string) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_decrease_
#ifndef _di_fl_string_dynamic_decrease_by_
- f_return_status fl_string_dynamic_decrease_by(const f_string_length_t amount, f_string_dynamic_t *string) {
+ f_status_t fl_string_dynamic_decrease_by(const f_string_length_t amount, f_string_dynamic_t *string) {
#ifndef _di_level_1_parameter_checking_
if (!amount) return F_status_set_error(F_parameter);
if (!string) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_decrease_by_
#ifndef _di_fl_string_dynamic_delete_
- f_return_status fl_string_dynamic_delete(f_string_dynamic_t *string) {
+ f_status_t fl_string_dynamic_delete(f_string_dynamic_t *string) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_delete_
#ifndef _di_fl_string_dynamic_mash_
- f_return_status fl_string_dynamic_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_mash_
#ifndef _di_fl_string_dynamic_mash_nulless_
- f_return_status fl_string_dynamic_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_mash_nulless_
#ifndef _di_fl_string_dynamic_mish_
- f_return_status fl_string_dynamic_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_mish_
#ifndef _di_fl_string_dynamic_mish_nulless_
- f_return_status fl_string_dynamic_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_mish_nulless_
#ifndef _di_fl_string_dynamic_partial_append_
- f_return_status fl_string_dynamic_partial_append(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_append(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_append_
#ifndef _di_fl_string_dynamic_partial_append_assure_
- f_return_status fl_string_dynamic_partial_append_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_append_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_append_assure_
#ifndef _di_fl_string_dynamic_partial_append_assure_nulless_
- f_return_status fl_string_dynamic_partial_append_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_append_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_append_assure_nulless_
#ifndef _di_fl_string_dynamic_partial_append_nulless_
- f_return_status fl_string_dynamic_partial_append_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_append_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_append_nulless_
#ifndef _di_fl_string_dynamic_partial_compare_
- f_return_status fl_string_dynamic_partial_compare(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2) {
+ f_status_t fl_string_dynamic_partial_compare(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2) {
#ifndef _di_level_1_parameter_checking_
if (string1.used <= range1.stop) return F_status_set_error(F_parameter);
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_compare_
#ifndef _di_fl_string_dynamic_partial_compare_dynamic_
- f_return_status fl_string_dynamic_partial_compare_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2) {
+ f_status_t fl_string_dynamic_partial_compare_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2) {
#ifndef _di_level_1_parameter_checking_
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_partial_compare_dynamic_
#ifndef _di_fl_string_dynamic_partial_compare_string_
- f_return_status fl_string_dynamic_partial_compare_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2) {
+ f_status_t fl_string_dynamic_partial_compare_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2) {
#ifndef _di_level_1_parameter_checking_
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_partial_compare_string_
#ifndef _di_fl_string_dynamic_partial_compare_except_
- f_return_status fl_string_dynamic_partial_compare_except(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_dynamic_partial_compare_except(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
#ifndef _di_level_1_parameter_checking_
if (string1.used <= range1.stop) return F_status_set_error(F_parameter);
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_compare_except_
#ifndef _di_fl_string_dynamic_partial_compare_except_dynamic_
- f_return_status fl_string_dynamic_partial_compare_except_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_dynamic_partial_compare_except_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
#ifndef _di_level_1_parameter_checking_
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_partial_compare_except_dynamic_
#ifndef _di_fl_string_dynamic_partial_compare_except_string_
- f_return_status fl_string_dynamic_partial_compare_except_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_dynamic_partial_compare_except_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
#ifndef _di_level_1_parameter_checking_
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_partial_compare_except_string_
#ifndef _di_fl_string_dynamic_partial_compare_except_trim_
- f_return_status fl_string_dynamic_partial_compare_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_dynamic_partial_compare_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
#ifndef _di_level_1_parameter_checking_
if (string1.used <= range1.stop) return F_status_set_error(F_parameter);
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_compare_except_trim_
#ifndef _di_fl_string_dynamic_partial_compare_except_trim_dynamic_
- f_return_status fl_string_dynamic_partial_compare_except_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_dynamic_partial_compare_except_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
#ifndef _di_level_1_parameter_checking_
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_partial_compare_except_trim_dynamic_
#ifndef _di_fl_string_dynamic_partial_compare_except_trim_string_
- f_return_status fl_string_dynamic_partial_compare_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
+ f_status_t fl_string_dynamic_partial_compare_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2) {
#ifndef _di_level_1_parameter_checking_
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_partial_compare_except_trim_string_
#ifndef _di_fl_string_dynamic_partial_compare_trim_
- f_return_status fl_string_dynamic_partial_compare_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2) {
+ f_status_t fl_string_dynamic_partial_compare_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2) {
#ifndef _di_level_1_parameter_checking_
if (string1.used <= range1.stop) return F_status_set_error(F_parameter);
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_compare_trim_
#ifndef _di_fl_string_dynamic_partial_compare_trim_dynamic_
- f_return_status fl_string_dynamic_partial_compare_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2) {
+ f_status_t fl_string_dynamic_partial_compare_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2) {
#ifndef _di_level_1_parameter_checking_
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_partial_compare_trim_dynamic_
#ifndef _di_fl_string_dynamic_partial_compare_trim_string_
- f_return_status fl_string_dynamic_partial_compare_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2) {
+ f_status_t fl_string_dynamic_partial_compare_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2) {
#ifndef _di_level_1_parameter_checking_
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_partial_compare_trim_string_
#ifndef _di_fl_string_dynamic_partial_mash_
- f_return_status fl_string_dynamic_partial_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_mash_
#ifndef _di_fl_string_dynamic_partial_mash_nulless_
- f_return_status fl_string_dynamic_partial_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_mash_nulless_
#ifndef _di_fl_string_dynamic_partial_mish_
- f_return_status fl_string_partial_dynamic_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_partial_dynamic_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_mish_
#ifndef _di_fl_string_dynamic_partial_mish_nulless_
- f_return_status fl_string_dynamic_partial_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_mish_nulless_
#ifndef _di_fl_string_dynamic_partial_prepend_
- f_return_status fl_string_dynamic_partial_prepend(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_prepend(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_prepend_
#ifndef _di_fl_string_dynamic_partial_prepend_assure_
- f_return_status fl_string_dynamic_partial_prepend_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_prepend_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_prepend_assure_
#ifndef _di_fl_string_dynamic_partial_prepend_assure_nulless_
- f_return_status fl_string_dynamic_partial_prepend_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_prepend_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_prepend_assure_nulless
#ifndef _di_fl_string_dynamic_partial_prepend_nulless_
- f_return_status fl_string_dynamic_partial_prepend_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_partial_prepend_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_partial_prepend_nulless
#ifndef _di_fl_string_dynamic_prepend_
- f_return_status fl_string_dynamic_prepend(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_prepend(const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_prepend_
#ifndef _di_fl_string_dynamic_prepend_assure_
- f_return_status fl_string_dynamic_prepend_assure(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_prepend_assure(const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_prepend_assure_
#ifndef _di_fl_string_dynamic_prepend_assure_nulless_
- f_return_status fl_string_dynamic_prepend_assure_nulless(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_prepend_assure_nulless(const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_prepend_assure_nulless_
#ifndef _di_fl_string_dynamic_prepend_nulless_
- f_return_status fl_string_dynamic_prepend_nulless(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_prepend_nulless(const f_string_static_t source, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_prepend_nulless_
#ifndef _di_fl_string_dynamic_rip_
- f_return_status fl_string_dynamic_rip(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_rip(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.start) return F_status_set_error(F_parameter);
if (source.used <= range.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_rip_
#ifndef _di_fl_string_dynamic_rip_nulless_
- f_return_status fl_string_dynamic_rip_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_rip_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.start) return F_status_set_error(F_parameter);
if (source.used <= range.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_rip_nulless_
#ifndef _di_fl_string_dynamic_increase_
- f_return_status fl_string_dynamic_increase(f_string_dynamic_t *string) {
+ f_status_t fl_string_dynamic_increase(f_string_dynamic_t *string) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_increase_
#ifndef _di_fl_string_dynamic_increase_by_
- f_return_status fl_string_dynamic_increase_by(const f_string_length_t amount, f_string_dynamic_t *string) {
+ f_status_t fl_string_dynamic_increase_by(const f_string_length_t amount, f_string_dynamic_t *string) {
#ifndef _di_level_1_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_increase_by_
#ifndef _di_fl_string_dynamic_seek_line_
- f_return_status fl_string_dynamic_seek_line(const f_string_t string, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_line(const f_string_t string, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_seek_line_
#ifndef _di_fl_string_dynamic_seek_line_to_
- f_return_status fl_string_dynamic_seek_line_to(const f_string_t string, const int8_t seek_to_this, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_line_to(const f_string_t string, const int8_t seek_to_this, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_seek_line_to_
#ifndef _di_fl_string_dynamic_seek_line_to_utf_character_
- f_return_status fl_string_dynamic_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_seek_line_to_utf_character_
#ifndef _di_fl_string_dynamic_seek_line_until_graph_
- f_return_status fl_string_dynamic_seek_line_until_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_line_until_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_seek_line_until_graph_
#ifndef _di_fl_string_dynamic_seek_line_until_non_graph_
- f_return_status fl_string_dynamic_seek_line_until_non_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_line_until_non_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_seek_line_until_non_graph_
#ifndef _di_fl_string_dynamic_seek_to_
- f_return_status fl_string_dynamic_seek_to(const f_string_t string, const int8_t seek_to_this, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_to(const f_string_t string, const int8_t seek_to_this, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_seek_to_
#ifndef _di_fl_string_dynamic_seek_to_utf_character_
- f_return_status fl_string_dynamic_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range) {
+ f_status_t fl_string_dynamic_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamic_seek_to_utf_character_
#ifndef _di_fl_string_dynamic_terminate_
- f_return_status fl_string_dynamic_terminate(f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_terminate(f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
if (destination->used > destination->size) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_terminate_
#ifndef _di_fl_string_dynamic_terminate_after_
- f_return_status fl_string_dynamic_terminate_after(f_string_dynamic_t *destination) {
+ f_status_t fl_string_dynamic_terminate_after(f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
if (destination->used > destination->size) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamic_terminate_after_
#ifndef _di_fl_string_dynamics_decrease_
- f_return_status fl_string_dynamics_decrease(f_string_dynamics_t *strings) {
+ f_status_t fl_string_dynamics_decrease(f_string_dynamics_t *strings) {
#ifndef _di_level_1_parameter_checking_
if (!strings) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamics_decrease_
#ifndef _di_fl_string_dynamics_decrease_by_
- f_return_status fl_string_dynamics_decrease_by(const f_array_length_t amount, f_string_dynamics_t *strings) {
+ f_status_t fl_string_dynamics_decrease_by(const f_array_length_t amount, f_string_dynamics_t *strings) {
#ifndef _di_level_1_parameter_checking_
if (!amount) return F_status_set_error(F_parameter);
if (!strings) return F_status_set_error(F_parameter);
#endif // _di_fl_string_dynamics_decrease_by_
#ifndef _di_fl_string_dynamics_delete_
- f_return_status fl_string_dynamics_delete(f_string_dynamics_t *strings) {
+ f_status_t fl_string_dynamics_delete(f_string_dynamics_t *strings) {
#ifndef _di_level_1_parameter_checking_
if (!strings) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamics_delete_
#ifndef _di_fl_string_dynamics_increase_
- f_return_status fl_string_dynamics_increase(f_string_dynamics_t *strings) {
+ f_status_t fl_string_dynamics_increase(f_string_dynamics_t *strings) {
#ifndef _di_level_1_parameter_checking_
if (!strings) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_dynamics_increase_
#ifndef _di_fl_string_dynamics_increase_by_
- f_return_status fl_string_dynamics_increase_by(const f_array_length_t amount, f_string_dynamics_t *strings) {
+ f_status_t fl_string_dynamics_increase_by(const f_array_length_t amount, f_string_dynamics_t *strings) {
#ifndef _di_level_1_parameter_checking_
if (!strings) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
}
#endif // _di_fl_string_dynamics_increase_by_
-#ifndef _di_fl_string_lengths_decrease_
- f_return_status fl_string_lengths_decrease(f_string_lengths_t *lengths) {
- #ifndef _di_level_1_parameter_checking_
- if (!lengths) return F_status_set_error(F_parameter);
- #endif // _di_level_1_parameter_checking_
-
- if (lengths->size > 1) {
- return private_fl_string_lengths_resize(lengths->size - 1, lengths);
- }
-
- private_fl_string_lengths_delete(lengths);
-
- return F_none;
- }
-#endif // _di_fl_string_lengths_decrease_
-
-#ifndef _di_fl_string_lengths_decrease_by_
- f_return_status fl_string_lengths_decrease_by(const f_array_length_t amount, f_string_lengths_t *lengths) {
- #ifndef _di_level_1_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!lengths) return F_status_set_error(F_parameter);
- #endif // _di_level_1_parameter_checking_
-
- if (lengths->size - amount > 0) {
- return private_fl_string_lengths_resize(lengths->size - amount, lengths);
- }
-
- private_fl_string_lengths_delete(lengths);
-
- return F_none;
- }
-#endif // _di_fl_string_lengths_decrease_by_
-
-#ifndef _di_fl_string_lengths_delete_
- f_return_status fl_string_lengths_delete(f_string_lengths_t *lengths) {
- #ifndef _di_level_1_parameter_checking_
- if (!lengths) return F_status_set_error(F_parameter);
- #endif // _di_level_1_parameter_checking_
-
- private_fl_string_lengths_delete(lengths);
-
- return F_none;
- }
-#endif // _di_fl_string_lengths_delete_
-
-#ifndef _di_fl_string_lengths_increase_
- f_return_status fl_string_lengths_increase(f_string_lengths_t *lengths) {
- #ifndef _di_level_1_parameter_checking_
- if (!lengths) return F_status_set_error(F_parameter);
- #endif // _di_level_1_parameter_checking_
-
- if (lengths->used + 1 > lengths->size) {
- f_array_length_t size = lengths->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (lengths->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
-
- return private_fl_string_lengths_resize(size, lengths);
- }
-
- return F_none;
- }
-#endif // _di_fl_string_lengths_increase_
-
-#ifndef _di_fl_string_lengths_increase_by_
- f_return_status fl_string_lengths_increase_by(const f_array_length_t amount, f_string_lengths_t *lengths) {
- #ifndef _di_level_1_parameter_checking_
- if (!amount) return F_status_set_error(F_parameter);
- if (!lengths) return F_status_set_error(F_parameter);
- #endif // _di_level_1_parameter_checking_
-
- if (lengths->used + amount > lengths->size) {
- if (lengths->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- return private_fl_string_lengths_resize(lengths->used + amount, lengths);
- }
-
- return F_none;
- }
-#endif // _di_fl_string_lengths_increase_by_
-
#ifndef _di_fl_string_maps_decrease_
- f_return_status fl_string_maps_decrease(f_string_maps_t *maps) {
+ f_status_t fl_string_maps_decrease(f_string_maps_t *maps) {
#ifndef _di_level_1_parameter_checking_
if (!maps) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_maps_decrease_
#ifndef _di_fl_string_maps_decrease_by_
- f_return_status fl_string_maps_decrease_by(const f_array_length_t amount, f_string_maps_t *maps) {
+ f_status_t fl_string_maps_decrease_by(const f_array_length_t amount, f_string_maps_t *maps) {
#ifndef _di_level_1_parameter_checking_
if (!amount) return F_status_set_error(F_parameter);
if (!maps) return F_status_set_error(F_parameter);
#endif // _di_fl_string_maps_decrease_by_
#ifndef _di_fl_string_maps_delete_
- f_return_status fl_string_maps_delete(f_string_maps_t *maps) {
+ f_status_t fl_string_maps_delete(f_string_maps_t *maps) {
#ifndef _di_level_1_parameter_checking_
if (!maps) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_maps_delete_
#ifndef _di_fl_string_maps_increase_
- f_return_status fl_string_maps_increase(f_string_maps_t *maps) {
+ f_status_t fl_string_maps_increase(f_string_maps_t *maps) {
#ifndef _di_level_1_parameter_checking_
if (!maps) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_maps_increase_
#ifndef _di_fl_string_maps_increase_by_
- f_return_status fl_string_maps_increase_by(const f_array_length_t amount, f_string_maps_t *maps) {
+ f_status_t fl_string_maps_increase_by(const f_array_length_t amount, f_string_maps_t *maps) {
#ifndef _di_level_1_parameter_checking_
if (!amount) return F_status_set_error(F_parameter);
if (!maps) return F_status_set_error(F_parameter);
#endif // _di_fl_string_maps_increase_by_
#ifndef _di_fl_string_mash_
- f_return_status fl_string_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_mash_
#ifndef _di_fl_string_mash_nulless_
- f_return_status fl_string_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_mash_nulless_
#ifndef _di_fl_string_mish_
- f_return_status fl_string_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_mish_
#ifndef _di_fl_string_mish_nulless_
- f_return_status fl_string_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_mish_nulless_
#ifndef _di_fl_string_prepend_
- f_return_status fl_string_prepend(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_prepend(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_prepend_
#ifndef _di_fl_string_prepend_assure_
- f_return_status fl_string_prepend_assure(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_prepend_assure(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_prepend_assure_
#ifndef _di_fl_string_prepend_assure_nulless_
- f_return_status fl_string_prepend_assure_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_prepend_assure_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_prepend_assure_nulless_
#ifndef _di_fl_string_prepend_nulless_
- f_return_status fl_string_prepend_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_prepend_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_prepend_nulless_
#ifndef _di_fl_string_rip_
- f_return_status fl_string_rip(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_rip(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_rip_
#ifndef _di_fl_string_rip_nulless_
- f_return_status fl_string_rip_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
+ f_status_t fl_string_rip_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_rip_nulless_
#ifndef _di_fl_string_seek_line_to_
- f_return_status fl_string_seek_line_to(const f_string_t string, const int8_t seek_to, f_string_range_t *range) {
+ f_status_t fl_string_seek_line_to(const f_string_t string, const int8_t seek_to, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_seek_line_to_
#ifndef _di_fl_string_seek_line_to_utf_character_
- f_return_status fl_string_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range) {
+ f_status_t fl_string_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_seek_line_to_utf_character_
#ifndef _di_fl_string_seek_line_until_graph_
- f_return_status fl_string_seek_line_until_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range) {
+ f_status_t fl_string_seek_line_until_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_seek_line_until_graph_
#ifndef _di_fl_string_seek_line_until_non_graph_
- f_return_status fl_string_seek_line_until_non_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range) {
+ f_status_t fl_string_seek_line_until_non_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_seek_line_until_non_graph_
#ifndef _di_fl_string_seek_to_
- f_return_status fl_string_seek_to(const f_string_t string, const int8_t seek_to, f_string_range_t *range) {
+ f_status_t fl_string_seek_to(const f_string_t string, const int8_t seek_to, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_string_seek_to_
#ifndef _di_fl_string_seek_to_utf_character_
- f_return_status fl_string_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range) {
+ f_status_t fl_string_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_append_
- extern f_return_status fl_string_append(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_append(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_append_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_append_assure_
- extern f_return_status fl_string_append_assure(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_append_assure(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_append_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_append_assure_nulless_
- extern f_return_status fl_string_append_assure_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_append_assure_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_append_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_append_nulless_
- extern f_return_status fl_string_append_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_append_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_append_nulless_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_compare_
- extern f_return_status fl_string_compare(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2);
+ extern f_status_t fl_string_compare(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2);
#endif // _di_fl_string_compare_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_compare_except_
- extern f_return_status fl_string_compare_except(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_compare_except(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_compare_except_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_compare_except_trim_
- extern f_return_status fl_string_compare_except_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_compare_except_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_compare_except_trim_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_compare_trim_
- extern f_return_status fl_string_compare_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2);
+ extern f_status_t fl_string_compare_trim(const f_string_t string1, const f_string_t string2, const f_string_length_t length1, const f_string_length_t length2);
#endif // _di_fl_string_compare_trim_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_append_
- extern f_return_status fl_string_dynamic_append(const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_append(const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_append_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_append_assure_
- extern f_return_status fl_string_dynamic_append_assure(const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_append_assure(const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_append_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_append_assure_nulless_
- extern f_return_status fl_string_dynamic_append_assure_nulless(const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_append_assure_nulless(const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_append_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_append_nulless_
- extern f_return_status fl_string_dynamic_append_nulless(const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_append_nulless(const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_append_nulless_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_compare_
- extern f_return_status fl_string_dynamic_compare(const f_string_static_t string1, const f_string_static_t string2);
+ extern f_status_t fl_string_dynamic_compare(const f_string_static_t string1, const f_string_static_t string2);
#endif // _di_fl_string_dynamic_compare_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_compare_except_
- extern f_return_status fl_string_dynamic_compare_except(const f_string_static_t string1, const f_string_static_t string2, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_dynamic_compare_except(const f_string_static_t string1, const f_string_static_t string2, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_dynamic_compare_except_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_compare_except_string_
- extern f_return_status fl_string_dynamic_compare_except_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_dynamic_compare_except_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_dynamic_compare_except_string_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_compare_except_trim_
- extern f_return_status fl_string_dynamic_compare_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_dynamic_compare_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_dynamic_compare_except_trim_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_compare_except_trim_string_
- extern f_return_status fl_string_dynamic_compare_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_dynamic_compare_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_dynamic_compare_except_trim_string_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_compare_string_
- extern f_return_status fl_string_dynamic_compare_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1);
+ extern f_status_t fl_string_dynamic_compare_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1);
#endif // _di_fl_string_dynamic_compare_string_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_compare_trim_
- extern f_return_status fl_string_dynamic_compare_trim(const f_string_static_t string1, const f_string_static_t string2);
+ extern f_status_t fl_string_dynamic_compare_trim(const f_string_static_t string1, const f_string_static_t string2);
#endif // _di_fl_string_dynamic_compare_trim_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_compare_trim_string_
- extern f_return_status fl_string_dynamic_compare_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1);
+ extern f_status_t fl_string_dynamic_compare_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1);
#endif // _di_fl_string_dynamic_compare_trim_string_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_decrease_
- extern f_return_status fl_string_dynamic_decrease(f_string_dynamic_t *string);
+ extern f_status_t fl_string_dynamic_decrease(f_string_dynamic_t *string);
#endif // _di_fl_string_dynamic_decrease_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_decrease_by_
- extern f_return_status fl_string_dynamic_decrease_by(const f_string_length_t amount, f_string_dynamic_t *string);
+ extern f_status_t fl_string_dynamic_decrease_by(const f_string_length_t amount, f_string_dynamic_t *string);
#endif // _di_fl_string_dynamic_decrease_by_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_delete_
- extern f_return_status fl_string_dynamic_delete(f_string_dynamic_t *string);
+ extern f_status_t fl_string_dynamic_delete(f_string_dynamic_t *string);
#endif // _di_fl_string_dynamic_delete_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_mash_
- extern f_return_status fl_string_dynamic_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_mash_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_mash_nulless_
- extern f_return_status fl_string_dynamic_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_mash_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_mish_
- extern f_return_status fl_string_dynamic_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_mish_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_mish_nulless_
- extern f_return_status fl_string_dynamic_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_mish_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_append_
- extern f_return_status fl_string_dynamic_partial_append(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_append(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_append_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_append_assure_
- extern f_return_status fl_string_dynamic_partial_append_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_append_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_append_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_append_assure_nulless_
- extern f_return_status fl_string_dynamic_partial_append_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_append_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_append_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_append_nulless_
- extern f_return_status fl_string_dynamic_partial_append_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_append_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_append_nulless_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_partial_compare_
- extern f_return_status fl_string_dynamic_partial_compare(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2);
+ extern f_status_t fl_string_dynamic_partial_compare(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2);
#endif // _di_fl_string_dynamic_partial_compare_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_partial_compare_except_
- extern f_return_status fl_string_dynamic_partial_compare_except(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_dynamic_partial_compare_except(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_dynamic_partial_compare_except_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_partial_compare_except_dynamic_
- extern f_return_status fl_string_dynamic_partial_compare_except_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_dynamic_partial_compare_except_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_dynamic_partial_compare_except_dynamic_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_partial_compare_except_string_
- extern f_return_status fl_string_dynamic_partial_compare_except_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_dynamic_partial_compare_except_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_dynamic_partial_compare_except_string_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_partial_compare_except_trim_dynamic_
- extern f_return_status fl_string_dynamic_partial_compare_except_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_dynamic_partial_compare_except_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_dynamic_partial_compare_except_trim_dynamic_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_partial_compare_except_trim_string_
- extern f_return_status fl_string_dynamic_partial_compare_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_dynamic_partial_compare_except_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_dynamic_partial_compare_except_trim_string_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_partial_compare_except_trim_
- extern f_return_status fl_string_dynamic_partial_compare_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
+ extern f_status_t fl_string_dynamic_partial_compare_except_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2, const f_string_lengths_t except1, const f_string_lengths_t except2);
#endif // _di_fl_string_dynamic_partial_compare_except_trim_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_partial_compare_dynamic_
- extern f_return_status fl_string_dynamic_partial_compare_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2);
+ extern f_status_t fl_string_dynamic_partial_compare_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2);
#endif // _di_fl_string_dynamic_partial_compare_dynamic_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_partial_compare_string_
- extern f_return_status fl_string_dynamic_partial_compare_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2);
+ extern f_status_t fl_string_dynamic_partial_compare_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2);
#endif // _di_fl_string_dynamic_partial_compare_string_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_partial_compare_trim_dynamic_
- extern f_return_status fl_string_dynamic_partial_compare_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2);
+ extern f_status_t fl_string_dynamic_partial_compare_trim_dynamic(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range2);
#endif // _di_fl_string_dynamic_partial_compare_trim_dynamic_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_partial_compare_trim_string_
- extern f_return_status fl_string_dynamic_partial_compare_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2);
+ extern f_status_t fl_string_dynamic_partial_compare_trim_string(const f_string_t string1, const f_string_static_t string2, const f_string_length_t length1, const f_string_range_t range2);
#endif // _di_fl_string_dynamic_partial_compare_trim_string_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_dynamic_partial_compare_trim_
- extern f_return_status fl_string_dynamic_partial_compare_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2);
+ extern f_status_t fl_string_dynamic_partial_compare_trim(const f_string_static_t string1, const f_string_static_t string2, const f_string_range_t range1, const f_string_range_t range2);
#endif // _di_fl_string_dynamic_partial_compare_trim_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_mash_
- extern f_return_status fl_string_dynamic_partial_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_mash_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_mash_nulless_
- extern f_return_status fl_string_dynamic_partial_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_mash_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_mish_
- extern f_return_status fl_string_dynamic_partial_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_mish_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_mish_nulless_
- extern f_return_status fl_string_dynamic_partial_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_mish_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_prepend_
- extern f_return_status fl_string_dynamic_partial_prepend(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_prepend(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_prepend_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_prepend_assure_
- extern f_return_status fl_string_dynamic_partial_prepend_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_prepend_assure(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_prepend_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_prepend_assure_nulless_
- extern f_return_status fl_string_dynamic_partial_prepend_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_prepend_assure_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_prepend_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_partial_prepend_nulless_
- extern f_return_status fl_string_dynamic_partial_prepend_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_partial_prepend_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_partial_prepend_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_prepend_
- extern f_return_status fl_string_dynamic_prepend(const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_prepend(const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_prepend_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_prepend_assure_
- extern f_return_status fl_string_dynamic_prepend_assure(const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_prepend_assure(const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_prepend_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_prepend_assure_nulless_
- extern f_return_status fl_string_dynamic_prepend_assure_nulless(const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_prepend_assure_nulless(const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_prepend_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_prepend_nulless_
- extern f_return_status fl_string_dynamic_prepend_nulless(const f_string_static_t source, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_prepend_nulless(const f_string_static_t source, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_prepend_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_rip_
- extern f_return_status fl_string_dynamic_rip(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_rip(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_rip_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_rip_nulless_
- extern f_return_status fl_string_dynamic_rip_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_rip_nulless(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_rip_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_increase_
- extern f_return_status fl_string_dynamic_increase(f_string_dynamic_t *string);
+ extern f_status_t fl_string_dynamic_increase(f_string_dynamic_t *string);
#endif // _di_fl_string_dynamic_increase_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_dynamic_increase_by_
- extern f_return_status fl_string_dynamic_increase_by(const f_string_length_t amount, f_string_dynamic_t *string);
+ extern f_status_t fl_string_dynamic_increase_by(const f_string_length_t amount, f_string_dynamic_t *string);
#endif // _di_fl_string_dynamic_increase_by_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_seek_line_
- extern f_return_status fl_string_dynamic_seek_line(const f_string_t string, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_line(const f_string_t string, f_string_range_t *range);
#endif // _di_fl_string_dynamic_seek_line_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_seek_line_to_
- extern f_return_status fl_string_dynamic_seek_line_to(const f_string_t string, const int8_t seek_to_this, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_line_to(const f_string_t string, const int8_t seek_to_this, f_string_range_t *range);
#endif // _di_fl_string_dynamic_seek_line_to_
/**
* @see f_utf_char_to_character()
*/
#ifndef _di_fl_string_dynamic_seek_line_to_utf_character_
- extern f_return_status fl_string_dynamic_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range);
#endif // _di_fl_string_dynamic_seek_line_to_utf_character_
/**
* @see f_utf_is_graph()
*/
#ifndef _di_fl_string_dynamic_seek_line_until_graph_
- extern f_return_status fl_string_dynamic_seek_line_until_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_line_until_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range);
#endif // _di_fl_string_dynamic_seek_line_until_graph_
/**
* @see f_utf_is_graph()
*/
#ifndef _di_fl_string_dynamic_seek_line_until_non_graph_
- extern f_return_status fl_string_dynamic_seek_line_until_non_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_line_until_non_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range);
#endif // _di_fl_string_dynamic_seek_line_until_non_graph_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamic_seek_to_
- extern f_return_status fl_string_dynamic_seek_to(const f_string_t string, const int8_t seek_to_this, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_to(const f_string_t string, const int8_t seek_to_this, f_string_range_t *range);
#endif // _di_fl_string_dynamic_seek_to_
/**
* @see f_utf_char_to_character()
*/
#ifndef _di_fl_string_dynamic_seek_to_utf_character_
- extern f_return_status fl_string_dynamic_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range);
+ extern f_status_t fl_string_dynamic_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to_this, f_string_range_t *range);
#endif // _di_fl_string_dynamic_seek_to_utf_character_
/**
* F_string_too_large (with error bit) if string is too large to fit into the buffer.
*/
#ifndef _di_fl_string_dynamic_terminate_
- extern f_return_status fl_string_dynamic_terminate(f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_terminate(f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_terminate_
/**
* F_string_too_large (with error bit) if string is too large to fit into the buffer.
*/
#ifndef _di_fl_string_dynamic_terminate_after_
- extern f_return_status fl_string_dynamic_terminate_after(f_string_dynamic_t *destination);
+ extern f_status_t fl_string_dynamic_terminate_after(f_string_dynamic_t *destination);
#endif // _di_fl_string_dynamic_terminate_after_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamics_decrease_
- extern f_return_status fl_string_dynamics_decrease(f_string_dynamics_t *strings);
+ extern f_status_t fl_string_dynamics_decrease(f_string_dynamics_t *strings);
#endif // _di_fl_string_dynamics_decrease_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamics_decrease_by_
- extern f_return_status fl_string_dynamics_decrease_by(const f_array_length_t amount, f_string_dynamics_t *strings);
+ extern f_status_t fl_string_dynamics_decrease_by(const f_array_length_t amount, f_string_dynamics_t *strings);
#endif // _di_fl_string_dynamics_decrease_by_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_dynamics_delete_
- extern f_return_status fl_string_dynamics_delete(f_string_dynamics_t *strings);
+ extern f_status_t fl_string_dynamics_delete(f_string_dynamics_t *strings);
#endif // _di_fl_string_dynamics_delete_
/**
* F_array_too_large (with error bit) if the new array length is too large.
*/
#ifndef _di_fl_string_dynamics_increase_
- extern f_return_status fl_string_dynamics_increase(f_string_dynamics_t *strings);
+ extern f_status_t fl_string_dynamics_increase(f_string_dynamics_t *strings);
#endif // _di_fl_string_dynamics_increase_
/**
* F_array_too_large (with error bit) if the new array length is too large.
*/
#ifndef _di_fl_string_dynamics_increase_by_
- extern f_return_status fl_string_dynamics_increase_by(const f_array_length_t amount, f_string_dynamics_t *strings);
+ extern f_status_t fl_string_dynamics_increase_by(const f_array_length_t amount, f_string_dynamics_t *strings);
#endif // _di_fl_string_dynamics_increase_by_
/**
- * Resize the string lengths array to a smaller size, by 1.
- *
- * This will shrink the size by size - 1.
- * This will not shrink the size to less than 0.
- *
- * @param lengths
- * The string lengths array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_fl_string_lengths_decrease_
- extern f_return_status fl_string_lengths_decrease(f_string_lengths_t *lengths);
-#endif // _di_fl_string_lengths_decrease_
-
-/**
- * Resize the string lengths array to a smaller size.
- *
- * This will resize making the array smaller based on (size - given length).
- * If the given length is too small, then the resize will fail.
- * This will not shrink the size to less than 0.
- *
- * @param amount
- * A positive number representing how much to decrease the size by.
- * @param lengths
- * The string lengths array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_fl_string_lengths_decrease_by_
- extern f_return_status fl_string_lengths_decrease_by(const f_array_length_t amount, f_string_lengths_t *lengths);
-#endif // _di_fl_string_lengths_decrease_by_
-
-/**
- * Delete the array of string lengths.
- *
- * @param lengths
- * The string to delete.
- *
- * @return
- * F_none on success.
- * F_parameter (with error bit) if a parameter is invalid.
- */
-#ifndef _di_fl_string_lengths_delete_
- extern f_return_status fl_string_lengths_delete(f_string_lengths_t *lengths);
-#endif // _di_fl_string_lengths_delete_
-
-/**
- * Increase the size of the string lengths array, but only if necessary.
- *
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param lengths
- * The string lengths array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_fl_string_lengths_increase_
- extern f_return_status fl_string_lengths_increase(f_string_lengths_t *lengths);
-#endif // _di_fl_string_lengths_increase_
-
-/**
- * Resize the string lengths array to a larger size.
- *
- * This will resize making the string larger based on the given length.
- * If the given length is too large for the buffer, then attempt to set max buffer size (f_array_length_t_size).
- * If already set to the maximum buffer size, then the resize will fail.
- *
- * @param amount
- * A positive number representing how much to increase the size by.
- * @param lengths
- * The string lengths array to resize.
- *
- * @return
- * F_none on success.
- * F_memory_allocation (with error bit) on memory allocation error.
- * F_memory_reallocation (with error bit) on memory reallocation error.
- * F_parameter (with error bit) if a parameter is invalid.
- * F_array_too_large (with error bit) if the new array length is too large.
- */
-#ifndef _di_fl_string_lengths_increase_by_
- extern f_return_status fl_string_lengths_increase_by(const f_array_length_t amount, f_string_lengths_t *lengths);
-#endif // _di_fl_string_lengths_increase_by_
-
-/**
* Resize the string maps array to a smaller size, by 1.
*
* This will shrink the size by size - 1.
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_maps_decrease_
- extern f_return_status fl_string_maps_decrease(f_string_maps_t *maps);
+ extern f_status_t fl_string_maps_decrease(f_string_maps_t *maps);
#endif // _di_fl_string_maps_decrease_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_maps_decrease_by_
- extern f_return_status fl_string_maps_decrease_by(const f_array_length_t amount, f_string_maps_t *maps);
+ extern f_status_t fl_string_maps_decrease_by(const f_array_length_t amount, f_string_maps_t *maps);
#endif // _di_fl_string_maps_decrease_by_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_maps_delete_
- extern f_return_status fl_string_maps_delete(f_string_maps_t *maps);
+ extern f_status_t fl_string_maps_delete(f_string_maps_t *maps);
#endif // _di_fl_string_maps_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_maps_increase_
- extern f_return_status fl_string_maps_increase(f_string_maps_t *maps);
+ extern f_status_t fl_string_maps_increase(f_string_maps_t *maps);
#endif // _di_fl_string_maps_increase_
/**
* F_array_too_large (with error bit) if the new array length is too large.
*/
#ifndef _di_fl_string_maps_increase_by_
- extern f_return_status fl_string_maps_increase_by(const f_array_length_t amount, f_string_maps_t *maps);
+ extern f_status_t fl_string_maps_increase_by(const f_array_length_t amount, f_string_maps_t *maps);
#endif // _di_fl_string_maps_increase_by_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_mash_
- extern f_return_status fl_string_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_mash_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_mash_nulless_
- extern f_return_status fl_string_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_mash_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_mash_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_mish_
- extern f_return_status fl_string_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_mish(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_mish_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_mish_nulless_
- extern f_return_status fl_string_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_mish_nulless(const f_string_t glue, const f_string_length_t glue_length, const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_mish_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_prepend_
- extern f_return_status fl_string_prepend(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_prepend(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_prepend_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_prepend_assure_
- extern f_return_status fl_string_prepend_assure(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_prepend_assure(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_prepend_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_prepend_assure_nulless_
- extern f_return_status fl_string_prepend_assure_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_prepend_assure_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_prepend_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_string_prepend_nulless_
- extern f_return_status fl_string_prepend_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_prepend_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_prepend_nulless_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_rip_
- extern f_return_status fl_string_rip(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_rip(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_rip_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_rip_nulless_
- extern f_return_status fl_string_rip_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
+ extern f_status_t fl_string_rip_nulless(const f_string_t source, const f_string_length_t length, f_string_dynamic_t *destination);
#endif // _di_fl_string_rip_nulless_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_seek_line_to_
- extern f_return_status fl_string_seek_line_to(const f_string_t string, const int8_t seek_to, f_string_range_t *range);
+ extern f_status_t fl_string_seek_line_to(const f_string_t string, const int8_t seek_to, f_string_range_t *range);
#endif // _di_fl_string_seek_line_to_
/**
* @see f_utf_char_to_character()
*/
#ifndef _di_fl_string_seek_line_to_utf_character_
- extern f_return_status fl_string_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range);
+ extern f_status_t fl_string_seek_line_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range);
#endif // _di_fl_string_seek_line_to_utf_character_
/**
* @see f_utf_is_graph()
*/
#ifndef _di_fl_string_seek_line_until_graph_
- extern f_return_status fl_string_seek_line_until_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range);
+ extern f_status_t fl_string_seek_line_until_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range);
#endif // _di_fl_string_seek_line_until_graph_
/**
* @see f_utf_is_whitespace()
*/
#ifndef _di_fl_string_seek_line_until_non_graph_
- extern f_return_status fl_string_seek_line_until_non_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range);
+ extern f_status_t fl_string_seek_line_until_non_graph(const f_string_t string, const int8_t placeholder, f_string_range_t *range);
#endif // _di_fl_string_seek_line_until_non_graph_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_string_seek_to_
- extern f_return_status fl_string_seek_to(const f_string_t string, const int8_t seek_to, f_string_range_t *range);
+ extern f_status_t fl_string_seek_to(const f_string_t string, const int8_t seek_to, f_string_range_t *range);
#endif // _di_fl_string_seek_to_
/**
* @see f_utf_char_to_character()
*/
#ifndef _di_fl_string_seek_to_utf_character_
- extern f_return_status fl_string_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range);
+ extern f_status_t fl_string_seek_to_utf_character(const f_string_t string, const f_utf_character_t seek_to, f_string_range_t *range);
#endif // _di_fl_string_seek_to_utf_character_
#ifdef __cplusplus
extern "C" {
#endif
-#if !defined(_di_fl_type_cells_delete_)
- void private_fl_type_cells_delete(f_cells_t *cells) {
- f_macro_cells_t_delete_simple((*cells));
- }
-#endif // !defined(_di_fl_type_cells_delete_)
-
-#if !defined(_di_fl_type_cells_increase_) || !defined(_di_fl_type_cells_increase_by_)
- f_return_status private_fl_type_cells_resize(const f_array_length_t length, f_cells_t *cells) {
- f_status_t status = F_none;
-
- f_macro_cells_t_resize(status, (*cells), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_cells_increase_) || !defined(_di_fl_type_cells_increase_by_)
-
#if !defined(_di_fl_type_cellss_delete_)
void private_fl_type_cellss_delete(f_cellss_t *cellss) {
f_macro_cellss_t_delete_simple((*cellss));
#endif // !defined(_di_fl_type_cellss_delete_)
#if !defined(_di_fl_type_cellss_increase_) || !defined(_di_fl_type_cellss_increase_by_)
- f_return_status private_fl_type_cellss_resize(const f_array_length_t length, f_cellss_t *cellss) {
+ f_status_t private_fl_type_cellss_resize(const f_array_length_t length, f_cellss_t *cellss) {
f_status_t status = F_none;
f_macro_cellss_t_resize(status, (*cellss), length);
}
#endif // !defined(_di_fl_type_cellss_increase_) || !defined(_di_fl_type_cellss_increase_by_)
-#if !defined(_di_fl_type_array_lengths_delete_)
- void private_fl_type_array_lengths_delete(f_array_lengths_t *lengths) {
- f_macro_array_lengths_t_delete_simple((*lengths));
- }
-#endif // !defined(_di_fl_type_array_lengths_delete_)
-
-#if !defined(_di_fl_type_array_lengths_increase_) || !defined(_di_fl_type_array_lengths_increase_by_)
- f_return_status private_fl_type_array_lengths_resize(const f_array_length_t length, f_array_lengths_t *array_lengths) {
- f_status_t status = F_none;
-
- f_macro_array_lengths_t_resize(status, (*array_lengths), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_array_lengths_increase_) || !defined(_di_fl_type_array_lengths_increase_by_)
-
#if !defined(_di_fl_type_array_lengthss_delete_)
void private_fl_type_array_lengthss_delete(f_array_lengthss_t *lengthss) {
f_macro_array_lengthss_t_delete_simple((*lengthss));
#endif // !defined(_di_fl_type_array_lengthss_delete_)
#if !defined(_di_fl_type_array_lengthss_increase_) || !defined(_di_fl_type_array_lengthss_increase_by_)
- f_return_status private_fl_type_array_lengthss_resize(const f_array_length_t length, f_array_lengthss_t *array_lengthss) {
+ f_status_t private_fl_type_array_lengthss_resize(const f_array_length_t length, f_array_lengthss_t *array_lengthss) {
f_status_t status = F_none;
f_macro_array_lengthss_t_resize(status, (*array_lengthss), length);
}
#endif // !defined(_di_fl_type_array_lengthss_increase_) || !defined(_di_fl_type_array_lengthss_increase_by_)
-#if !defined(_di_fl_type_int8s_delete_)
- void private_fl_type_int8s_delete(f_int8s_t *int8s) {
- f_macro_int8s_t_delete_simple((*int8s));
- }
-#endif // !defined(_di_fl_type_int8s_delete_)
-
-#if !defined(_di_fl_type_int8s_increase_) || !defined(_di_fl_type_int8s_increase_by_)
- f_return_status private_fl_type_int8s_resize(const f_array_length_t length, f_int8s_t *int8s) {
- f_status_t status = F_none;
-
- f_macro_int8s_t_resize(status, (*int8s), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_int8s_increase_) || !defined(_di_fl_type_int8s_increase_by_)
-
#if !defined(_di_fl_type_int8ss_delete_)
void private_fl_type_int8ss_delete(f_int8ss_t *int8ss) {
f_macro_int8ss_t_delete_simple((*int8ss));
#endif // !defined(_di_fl_type_int8ss_delete_)
#if !defined(_di_fl_type_int8ss_increase_) || !defined(_di_fl_type_int8ss_increase_by_)
- f_return_status private_fl_type_int8ss_resize(const f_array_length_t length, f_int8ss_t *int8ss) {
+ f_status_t private_fl_type_int8ss_resize(const f_array_length_t length, f_int8ss_t *int8ss) {
f_status_t status = F_none;
f_macro_int8ss_t_resize(status, (*int8ss), length);
}
#endif // !defined(_di_fl_type_int8ss_increase_) || !defined(_di_fl_type_int8ss_increase_by_)
-#if !defined(_di_fl_type_uint8s_delete_)
- void private_fl_type_uint8s_delete(f_uint8s_t *uint8s) {
- f_macro_uint8s_t_delete_simple((*uint8s));
- }
-#endif // !defined(_di_fl_type_uint8s_delete_)
-
-#if !defined(_di_fl_type_uint8s_increase_) || !defined(_di_fl_type_uint8s_increase_by_)
- f_return_status private_fl_type_uint8s_resize(const f_array_length_t length, f_uint8s_t *uint8s) {
- f_status_t status = F_none;
-
- f_macro_uint8s_t_resize(status, (*uint8s), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_uint8s_increase_) || !defined(_di_fl_type_uint8s_increase_by_)
-
#if !defined(_di_fl_type_uint8ss_delete_)
void private_fl_type_uint8ss_delete(f_uint8ss_t *uint8ss) {
f_macro_uint8ss_t_delete_simple((*uint8ss));
#endif // !defined(_di_fl_type_uint8ss_delete_)
#if !defined(_di_fl_type_uint8ss_increase_) || !defined(_di_fl_type_uint8ss_increase_by_)
- f_return_status private_fl_type_uint8ss_resize(const f_array_length_t length, f_uint8ss_t *uint8ss) {
+ f_status_t private_fl_type_uint8ss_resize(const f_array_length_t length, f_uint8ss_t *uint8ss) {
f_status_t status = F_none;
f_macro_uint8ss_t_resize(status, (*uint8ss), length);
}
#endif // !defined(_di_fl_type_uint8ss_increase_) || !defined(_di_fl_type_uint8ss_increase_by_)
-#if !defined(_di_fl_type_int16s_delete_)
- void private_fl_type_int16s_delete(f_int16s_t *int16s) {
- f_macro_int16s_t_delete_simple((*int16s));
- }
-#endif // !defined(_di_fl_type_int16s_delete_)
-
-#if !defined(_di_fl_type_int16s_increase_) || !defined(_di_fl_type_int16s_increase_by_)
- f_return_status private_fl_type_int16s_resize(const f_array_length_t length, f_int16s_t *int16s) {
- f_status_t status = F_none;
-
- f_macro_int16s_t_resize(status, (*int16s), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_int16s_increase_) || !defined(_di_fl_type_int16s_increase_by_)
-
#if !defined(_di_fl_type_int16ss_delete_)
void private_fl_type_int16ss_delete(f_int16ss_t *int16ss) {
f_macro_int16ss_t_delete_simple((*int16ss));
#endif // !defined(_di_fl_type_int16ss_delete_)
#if !defined(_di_fl_type_int16ss_increase_) || !defined(_di_fl_type_int16ss_increase_by_)
- f_return_status private_fl_type_int16ss_resize(const f_array_length_t length, f_int16ss_t *int16ss) {
+ f_status_t private_fl_type_int16ss_resize(const f_array_length_t length, f_int16ss_t *int16ss) {
f_status_t status = F_none;
f_macro_int16ss_t_resize(status, (*int16ss), length);
}
#endif // !defined(_di_fl_type_int16ss_increase_) || !defined(_di_fl_type_int16ss_increase_by_)
-#if !defined(_di_fl_type_uint16s_delete_)
- void private_fl_type_uint16s_delete(f_uint16s_t *uint16s) {
- f_macro_uint16s_t_delete_simple((*uint16s));
- }
-#endif // !defined(_di_fl_type_uint16s_delete_)
-
-#if !defined(_di_fl_type_uint16s_increase_) || !defined(_di_fl_type_uint16s_increase_by_)
- f_return_status private_fl_type_uint16s_resize(const f_array_length_t length, f_uint16s_t *uint16s) {
- f_status_t status = F_none;
-
- f_macro_uint16s_t_resize(status, (*uint16s), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_uint16s_increase_) || !defined(_di_fl_type_uint16s_increase_by_)
-
#if !defined(_di_fl_type_uint16ss_delete_)
void private_fl_type_uint16ss_delete(f_uint16ss_t *uint16ss) {
f_macro_uint16ss_t_delete_simple((*uint16ss));
#endif // !defined(_di_fl_type_uint16ss_delete_)
#if !defined(_di_fl_type_uint16ss_increase_) || !defined(_di_fl_type_uint16ss_increase_by_)
- f_return_status private_fl_type_uint16ss_resize(const f_array_length_t length, f_uint16ss_t *uint16ss) {
+ f_status_t private_fl_type_uint16ss_resize(const f_array_length_t length, f_uint16ss_t *uint16ss) {
f_status_t status = F_none;
f_macro_uint16ss_t_resize(status, (*uint16ss), length);
}
#endif // !defined(_di_fl_type_uint16ss_increase_) || !defined(_di_fl_type_uint16ss_increase_by_)
-#if !defined(_di_fl_type_int32s_delete_)
- void private_fl_type_int32s_delete(f_int32s_t *int32s) {
- f_macro_int32s_t_delete_simple((*int32s));
- }
-#endif // !defined(_di_fl_type_int32s_delete_)
-
-#if !defined(_di_fl_type_int32s_increase_) || !defined(_di_fl_type_int32s_increase_by_)
- f_return_status private_fl_type_int32s_resize(const f_array_length_t length, f_int32s_t *int32s) {
- f_status_t status = F_none;
-
- f_macro_int32s_t_resize(status, (*int32s), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_int32s_increase_) || !defined(_di_fl_type_int32s_increase_by_)
-
#if !defined(_di_fl_type_int32ss_delete_)
void private_fl_type_int32ss_delete(f_int32ss_t *int32ss) {
f_macro_int32ss_t_delete_simple((*int32ss));
#endif // !defined(_di_fl_type_int32ss_delete_)
#if !defined(_di_fl_type_int32ss_increase_) || !defined(_di_fl_type_int32ss_increase_by_)
- f_return_status private_fl_type_int32ss_resize(const f_array_length_t length, f_int32ss_t *int32ss) {
+ f_status_t private_fl_type_int32ss_resize(const f_array_length_t length, f_int32ss_t *int32ss) {
f_status_t status = F_none;
f_macro_int32ss_t_resize(status, (*int32ss), length);
}
#endif // !defined(_di_fl_type_int32ss_increase_) || !defined(_di_fl_type_int32ss_increase_by_)
-#if !defined(_di_fl_type_uint32s_delete_)
- void private_fl_type_uint32s_delete(f_uint32s_t *uint32s) {
- f_macro_uint32s_t_delete_simple((*uint32s));
- }
-#endif // !defined(_di_fl_type_uint32s_delete_)
-
-#if !defined(_di_fl_type_uint32s_increase_) || !defined(_di_fl_type_uint32s_increase_by_)
- f_return_status private_fl_type_uint32s_resize(const f_array_length_t length, f_uint32s_t *uint32s) {
- f_status_t status = F_none;
-
- f_macro_uint32s_t_resize(status, (*uint32s), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_uint32s_increase_) || !defined(_di_fl_type_uint32s_increase_by_)
-
#if !defined(_di_fl_type_uint32ss_delete_)
void private_fl_type_uint32ss_delete(f_uint32ss_t *uint32ss) {
f_macro_uint32ss_t_delete_simple((*uint32ss));
#endif // !defined(_di_fl_type_uint32ss_delete_)
#if !defined(_di_fl_type_uint32ss_increase_) || !defined(_di_fl_type_uint32ss_increase_by_)
- f_return_status private_fl_type_uint32ss_resize(const f_array_length_t length, f_uint32ss_t *uint32ss) {
+ f_status_t private_fl_type_uint32ss_resize(const f_array_length_t length, f_uint32ss_t *uint32ss) {
f_status_t status = F_none;
f_macro_uint32ss_t_resize(status, (*uint32ss), length);
}
#endif // !defined(_di_fl_type_uint32ss_increase_) || !defined(_di_fl_type_uint32ss_increase_by_)
-#if !defined(_di_fl_type_int64s_delete_)
- void private_fl_type_int64s_delete(f_int64s_t *int64s) {
- f_macro_int64s_t_delete_simple((*int64s));
- }
-#endif // !defined(_di_fl_type_int64s_delete_)
-
-#if !defined(_di_fl_type_int64s_increase_) || !defined(_di_fl_type_int64s_increase_by_)
- f_return_status private_fl_type_int64s_resize(const f_array_length_t length, f_int64s_t *int64s) {
- f_status_t status = F_none;
-
- f_macro_int64s_t_resize(status, (*int64s), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_int64s_increase_) || !defined(_di_fl_type_int64s_increase_by_)
-
#if !defined(_di_fl_type_int64ss_delete_)
void private_fl_type_int64ss_delete(f_int64ss_t *int64ss) {
f_macro_int64ss_t_delete_simple((*int64ss));
#endif // !defined(_di_fl_type_int64ss_delete_)
#if !defined(_di_fl_type_int64ss_increase_) || !defined(_di_fl_type_int64ss_increase_by_)
- f_return_status private_fl_type_int64ss_resize(const f_array_length_t length, f_int64ss_t *int64ss) {
+ f_status_t private_fl_type_int64ss_resize(const f_array_length_t length, f_int64ss_t *int64ss) {
f_status_t status = F_none;
f_macro_int64ss_t_resize(status, (*int64ss), length);
}
#endif // !defined(_di_fl_type_int64ss_increase_) || !defined(_di_fl_type_int64ss_increase_by_)
-#if !defined(_di_fl_type_uint64s_delete_)
- void private_fl_type_uint64s_delete(f_uint64s_t *uint64s) {
- f_macro_uint64s_t_delete_simple((*uint64s));
- }
-#endif // !defined(_di_fl_type_uint64s_delete_)
-
-#if !defined(_di_fl_type_uint64s_increase_) || !defined(_di_fl_type_uint64s_increase_by_)
- f_return_status private_fl_type_uint64s_resize(const f_array_length_t length, f_uint64s_t *uint64s) {
- f_status_t status = F_none;
-
- f_macro_uint64s_t_resize(status, (*uint64s), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_uint64s_increase_) || !defined(_di_fl_type_uint64s_increase_by_)
-
#if !defined(_di_fl_type_uint64ss_delete_)
void private_fl_type_uint64ss_delete(f_uint64ss_t *uint64ss) {
f_macro_uint64ss_t_delete_simple((*uint64ss));
#endif // !defined(_di_fl_type_uint64ss_delete_)
#if !defined(_di_fl_type_uint64ss_increase_) || !defined(_di_fl_type_uint64ss_increase_by_)
- f_return_status private_fl_type_uint64ss_resize(const f_array_length_t length, f_uint64ss_t *uint64ss) {
+ f_status_t private_fl_type_uint64ss_resize(const f_array_length_t length, f_uint64ss_t *uint64ss) {
f_status_t status = F_none;
f_macro_uint64ss_t_resize(status, (*uint64ss), length);
}
#endif // !defined(_di_fl_type_uint64ss_increase_) || !defined(_di_fl_type_uint64ss_increase_by_)
-#if !defined(_di_fl_type_int128s_delete_)
- void private_fl_type_int128s_delete(f_int128s_t *int128s) {
- f_macro_int128s_t_delete_simple((*int128s));
- }
-#endif // !defined(_di_fl_type_int128s_delete_)
-
-#if !defined(_di_fl_type_int128s_increase_) || !defined(_di_fl_type_int128s_increase_by_)
- f_return_status private_fl_type_int128s_resize(const f_array_length_t length, f_int128s_t *int128s) {
- f_status_t status = F_none;
-
- f_macro_int128s_t_resize(status, (*int128s), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_int128s_increase_) || !defined(_di_fl_type_int128s_increase_by_)
-
#if !defined(_di_fl_type_int128ss_delete_)
void private_fl_type_int128ss_delete(f_int128ss_t *int128ss) {
f_macro_int128ss_t_delete_simple((*int128ss));
#endif // !defined(_di_fl_type_int128ss_delete_)
#if !defined(_di_fl_type_int128ss_increase_) || !defined(_di_fl_type_int128ss_increase_by_)
- f_return_status private_fl_type_int128ss_resize(const f_array_length_t length, f_int128ss_t *int128ss) {
+ f_status_t private_fl_type_int128ss_resize(const f_array_length_t length, f_int128ss_t *int128ss) {
f_status_t status = F_none;
f_macro_int128ss_t_resize(status, (*int128ss), length);
}
#endif // !defined(_di_fl_type_int128ss_increase_) || !defined(_di_fl_type_int128ss_increase_by_)
-#if !defined(_di_fl_type_uint128s_delete_)
- void private_fl_type_uint128s_delete(f_uint128s_t *uint128s) {
- f_macro_uint128s_t_delete_simple((*uint128s));
- }
-#endif // !defined(_di_fl_type_uint128s_delete_)
-
-#if !defined(_di_fl_type_uint128s_increase_) || !defined(_di_fl_type_uint128s_increase_by_)
- f_return_status private_fl_type_uint128s_resize(const f_array_length_t length, f_uint128s_t *uint128s) {
- f_status_t status = F_none;
-
- f_macro_uint128s_t_resize(status, (*uint128s), length);
-
- return status;
- }
-#endif // !defined(_di_fl_type_uint128s_increase_) || !defined(_di_fl_type_uint128s_increase_by_)
-
#if !defined(_di_fl_type_uint128ss_delete_)
void private_fl_type_uint128ss_delete(f_uint128ss_t *uint128ss) {
f_macro_uint128ss_t_delete_simple((*uint128ss));
#endif // !defined(_di_fl_type_uint128ss_delete_)
#if !defined(_di_fl_type_uint128ss_increase_) || !defined(_di_fl_type_uint128ss_increase_by_)
- f_return_status private_fl_type_uint128ss_resize(const f_array_length_t length, f_uint128ss_t *uint128ss) {
+ f_status_t private_fl_type_uint128ss_resize(const f_array_length_t length, f_uint128ss_t *uint128ss) {
f_status_t status = F_none;
f_macro_uint128ss_t_resize(status, (*uint128ss), length);
#endif
/**
- * Private implementation for deleting the cells array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param cells
- * The cells array to delete.
- */
-#if !defined(_di_fl_type_cells_delete_)
- extern void private_fl_type_cells_delete(f_cells_t *cells) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_cells_delete_)
-
-/**
- * Private implementation for resizing the cells array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param cells
- * The cells array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_cells_t_resize().
- *
- * @see f_macro_cells_t_resize()
- */
-#if !defined(_di_fl_type_cells_increase_) || !defined(_di_fl_type_cells_increase_by_)
- extern f_return_status private_fl_type_cells_resize(const f_array_length_t length, f_cells_t *cells) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_cells_increase_) || !defined(_di_fl_type_cells_increase_by_)
-
-/**
* Private implementation for deleting the cellss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_cellss_t_resize()
*/
#if !defined(_di_fl_type_cellss_increase_) || !defined(_di_fl_type_cellss_increase_by_)
- extern f_return_status private_fl_type_cellss_resize(const f_array_length_t length, f_cellss_t *cellss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_cellss_resize(const f_array_length_t length, f_cellss_t *cellss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_cellss_increase_) || !defined(_di_fl_type_cellss_increase_by_)
/**
- * Private implementation for deleting the lengths array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param lengths
- * The lengths array to delete.
- */
-#if !defined(_di_fl_type_array_lengths_delete_)
- extern void private_fl_type_array_lengths_delete(f_array_lengths_t *lengths) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_array_lengths_delete_)
-
-/**
- * Private implementation for resizing the lengths array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param lengths
- * The lengths array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_array_lengths_t_resize().
- *
- * @see f_macro_array_lengths_t_resize()
- */
-#if !defined(_di_fl_type_array_lengths_increase_) || !defined(_di_fl_type_array_lengths_increase_by_)
- extern f_return_status private_fl_type_array_lengths_resize(const f_array_length_t length, f_array_lengths_t *lengths) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_array_lengths_increase_) || !defined(_di_fl_type_array_lengths_increase_by_)
-
-/**
* Private implementation for deleting the lengthss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_array_lengthss_t_resize()
*/
#if !defined(_di_fl_type_array_lengthss_increase_) || !defined(_di_fl_type_array_lengthss_increase_by_)
- extern f_return_status private_fl_type_array_lengthss_resize(const f_array_length_t length, f_array_lengthss_t *lengthss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_array_lengthss_resize(const f_array_length_t length, f_array_lengthss_t *lengthss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_array_lengthss_increase_) || !defined(_di_fl_type_array_lengthss_increase_by_)
/**
- * Private implementation for deleting the int8s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param int8s
- * The int8s array to delete.
- */
-#if !defined(_di_fl_type_int8s_delete_)
- extern void private_fl_type_int8s_delete(f_int8s_t *int8s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_int8s_delete_)
-
-/**
- * Private implementation for resizing the int8s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param int8s
- * The int8s array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_int8s_t_resize().
- *
- * @see f_macro_int8s_t_resize()
- */
-#if !defined(_di_fl_type_int8s_increase_) || !defined(_di_fl_type_int8s_increase_by_)
- extern f_return_status private_fl_type_int8s_resize(const f_array_length_t length, f_int8s_t *int8s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_int8s_increase_) || !defined(_di_fl_type_int8s_increase_by_)
-
-/**
* Private implementation for deleting the int8ss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_int8ss_t_resize()
*/
#if !defined(_di_fl_type_int8ss_increase_) || !defined(_di_fl_type_int8ss_increase_by_)
- extern f_return_status private_fl_type_int8ss_resize(const f_array_length_t length, f_int8ss_t *int8ss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_int8ss_resize(const f_array_length_t length, f_int8ss_t *int8ss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_int8ss_increase_) || !defined(_di_fl_type_int8ss_increase_by_)
/**
- * Private implementation for deleting the uint8s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param uint8s
- * The uint8s array to delete.
- */
-#if !defined(_di_fl_type_uint8s_delete_)
- extern void private_fl_type_uint8s_delete(f_uint8s_t *uint8s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_uint8s_delete_)
-
-/**
- * Private implementation for resizing the uint8s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param uint8s
- * The uint8s array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_uint8s_t_resize().
- *
- * @see f_macro_uint8s_t_resize()
- */
-#if !defined(_di_fl_type_uint8s_increase_) || !defined(_di_fl_type_uint8s_increase_by_)
- extern f_return_status private_fl_type_uint8s_resize(const f_array_length_t length, f_uint8s_t *uint8s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_uint8s_increase_) || !defined(_di_fl_type_uint8s_increase_by_)
-
-/**
* Private implementation for deleting the uint8ss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_uint8ss_t_resize()
*/
#if !defined(_di_fl_type_uint8ss_increase_) || !defined(_di_fl_type_uint8ss_increase_by_)
- extern f_return_status private_fl_type_uint8ss_resize(const f_array_length_t length, f_uint8ss_t *uint8ss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_uint8ss_resize(const f_array_length_t length, f_uint8ss_t *uint8ss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_uint8ss_increase_) || !defined(_di_fl_type_uint8ss_increase_by_)
/**
- * Private implementation for deleting the int16s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param int16s
- * The int16s array to delete.
- */
-#if !defined(_di_fl_type_int16s_delete_)
- extern void private_fl_type_int16s_delete(f_int16s_t *int16s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_int16s_delete_)
-
-/**
- * Private implementation for resizing the int16s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param int16s
- * The int16s array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_int16s_t_resize().
- *
- * @see f_macro_int16s_t_resize()
- */
-#if !defined(_di_fl_type_int16s_increase_) || !defined(_di_fl_type_int16s_increase_by_)
- extern f_return_status private_fl_type_int16s_resize(const f_array_length_t length, f_int16s_t *int16s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_int16s_increase_) || !defined(_di_fl_type_int16s_increase_by_)
-
-/**
* Private implementation for deleting the int16ss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_int16ss_t_resize()
*/
#if !defined(_di_fl_type_int16ss_increase_) || !defined(_di_fl_type_int16ss_increase_by_)
- extern f_return_status private_fl_type_int16ss_resize(const f_array_length_t length, f_int16ss_t *int16ss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_int16ss_resize(const f_array_length_t length, f_int16ss_t *int16ss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_int16ss_increase_) || !defined(_di_fl_type_int16ss_increase_by_)
/**
- * Private implementation for deleting the uint16s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param uint16s
- * The uint16s array to delete.
- */
-#if !defined(_di_fl_type_uint16s_delete_)
- extern void private_fl_type_uint16s_delete(f_uint16s_t *uint16s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_uint16s_delete_)
-
-/**
- * Private implementation for resizing the uint16s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param uint16s
- * The uint16s array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_uint16s_t_resize().
- *
- * @see f_macro_uint16s_t_resize()
- */
-#if !defined(_di_fl_type_uint16s_increase_) || !defined(_di_fl_type_uint16s_increase_by_)
- extern f_return_status private_fl_type_uint16s_resize(const f_array_length_t length, f_uint16s_t *uint16s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_uint16s_increase_) || !defined(_di_fl_type_uint16s_increase_by_)
-
-/**
* Private implementation for deleting the uint16ss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_uint16ss_t_resize()
*/
#if !defined(_di_fl_type_uint16ss_increase_) || !defined(_di_fl_type_uint16ss_increase_by_)
- extern f_return_status private_fl_type_uint16ss_resize(const f_array_length_t length, f_uint16ss_t *uint16ss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_uint16ss_resize(const f_array_length_t length, f_uint16ss_t *uint16ss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_uint16ss_increase_) || !defined(_di_fl_type_uint16ss_increase_by_)
/**
- * Private implementation for deleting the int32s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param int32s
- * The int32s array to delete.
- */
-#if !defined(_di_fl_type_int32s_delete_)
- extern void private_fl_type_int32s_delete(f_int32s_t *int32s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_int32s_delete_)
-
-/**
- * Private implementation for resizing the int32s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param int32s
- * The int32s array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_int32s_t_resize().
- *
- * @see f_macro_int32s_t_resize()
- */
-#if !defined(_di_fl_type_int32s_increase_) || !defined(_di_fl_type_int32s_increase_by_)
- extern f_return_status private_fl_type_int32s_resize(const f_array_length_t length, f_int32s_t *int32s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_int32s_increase_) || !defined(_di_fl_type_int32s_increase_by_)
-
-/**
* Private implementation for deleting the int32ss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_int32ss_t_resize()
*/
#if !defined(_di_fl_type_int32ss_increase_) || !defined(_di_fl_type_int32ss_increase_by_)
- extern f_return_status private_fl_type_int32ss_resize(const f_array_length_t length, f_int32ss_t *int32ss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_int32ss_resize(const f_array_length_t length, f_int32ss_t *int32ss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_int32ss_increase_) || !defined(_di_fl_type_int32ss_increase_by_)
/**
- * Private implementation for deleting the uint32s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param uint32s
- * The uint32s array to delete.
- */
-#if !defined(_di_fl_type_uint32s_delete_)
- extern void private_fl_type_uint32s_delete(f_uint32s_t *uint32s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_uint32s_delete_)
-
-/**
- * Private implementation for resizing the uint32s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param uint32s
- * The uint32s array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_uint32s_t_resize().
- *
- * @see f_macro_uint32s_t_resize()
- */
-#if !defined(_di_fl_type_uint32s_increase_) || !defined(_di_fl_type_uint32s_increase_by_)
- extern f_return_status private_fl_type_uint32s_resize(const f_array_length_t length, f_uint32s_t *uint32s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_uint32s_increase_) || !defined(_di_fl_type_uint32s_increase_by_)
-
-/**
* Private implementation for deleting the uint32ss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_uint32ss_t_resize()
*/
#if !defined(_di_fl_type_uint32ss_increase_) || !defined(_di_fl_type_uint32ss_increase_by_)
- extern f_return_status private_fl_type_uint32ss_resize(const f_array_length_t length, f_uint32ss_t *uint32ss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_uint32ss_resize(const f_array_length_t length, f_uint32ss_t *uint32ss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_uint32ss_increase_) || !defined(_di_fl_type_uint32ss_increase_by_)
/**
- * Private implementation for deleting the int64s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param int64s
- * The int64s array to delete.
- */
-#if !defined(_di_fl_type_int64s_delete_)
- extern void private_fl_type_int64s_delete(f_int64s_t *int64s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_int64s_delete_)
-
-/**
- * Private implementation for resizing the int64s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param int64s
- * The int64s array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_int64s_t_resize().
- *
- * @see f_macro_int64s_t_resize()
- */
-#if !defined(_di_fl_type_int64s_increase_) || !defined(_di_fl_type_int64s_increase_by_)
- extern f_return_status private_fl_type_int64s_resize(const f_array_length_t length, f_int64s_t *int64s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_int64s_increase_) || !defined(_di_fl_type_int64s_increase_by_)
-
-/**
* Private implementation for deleting the int64ss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_int64ss_t_resize()
*/
#if !defined(_di_fl_type_int64ss_increase_) || !defined(_di_fl_type_int64ss_increase_by_)
- extern f_return_status private_fl_type_int64ss_resize(const f_array_length_t length, f_int64ss_t *int64ss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_int64ss_resize(const f_array_length_t length, f_int64ss_t *int64ss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_int64ss_increase_) || !defined(_di_fl_type_int64ss_increase_by_)
/**
- * Private implementation for deleting the uint64s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param uint64s
- * The uint64s array to delete.
- */
-#if !defined(_di_fl_type_uint64s_delete_)
- extern void private_fl_type_uint64s_delete(f_uint64s_t *uint64s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_uint64s_delete_)
-
-/**
- * Private implementation for resizing the uint64s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param uint64s
- * The uint64s array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_uint64s_t_resize().
- *
- * @see f_macro_uint64s_t_resize()
- */
-#if !defined(_di_fl_type_uint64s_increase_) || !defined(_di_fl_type_uint64s_increase_by_)
- extern f_return_status private_fl_type_uint64s_resize(const f_array_length_t length, f_uint64s_t *uint64s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_uint64s_increase_) || !defined(_di_fl_type_uint64s_increase_by_)
-
-/**
* Private implementation for deleting the uint64ss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_uint64ss_t_resize()
*/
#if !defined(_di_fl_type_uint64ss_increase_) || !defined(_di_fl_type_uint64ss_increase_by_)
- extern f_return_status private_fl_type_uint64ss_resize(const f_array_length_t length, f_uint64ss_t *uint64ss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_uint64ss_resize(const f_array_length_t length, f_uint64ss_t *uint64ss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_uint64ss_increase_) || !defined(_di_fl_type_uint64ss_increase_by_)
/**
- * Private implementation for deleting the int128s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param int128s
- * The int128s array to delete.
- */
-#if !defined(_di_fl_type_int128s_delete_)
- extern void private_fl_type_int128s_delete(f_int128s_t *int128s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_int128s_delete_)
-
-/**
- * Private implementation for resizing the int128s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param int128s
- * The int128s array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_int128s_t_resize().
- *
- * @see f_macro_int128s_t_resize()
- */
-#if !defined(_di_fl_type_int128s_increase_) || !defined(_di_fl_type_int128s_increase_by_)
- extern f_return_status private_fl_type_int128s_resize(const f_array_length_t length, f_int128s_t *int128s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_int128s_increase_) || !defined(_di_fl_type_int128s_increase_by_)
-
-/**
* Private implementation for deleting the int128ss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_int128ss_t_resize()
*/
#if !defined(_di_fl_type_int128ss_increase_) || !defined(_di_fl_type_int128ss_increase_by_)
- extern f_return_status private_fl_type_int128ss_resize(const f_array_length_t length, f_int128ss_t *int128ss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_int128ss_resize(const f_array_length_t length, f_int128ss_t *int128ss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_int128ss_increase_) || !defined(_di_fl_type_int128ss_increase_by_)
/**
- * Private implementation for deleting the uint128s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param uint128s
- * The uint128s array to delete.
- */
-#if !defined(_di_fl_type_uint128s_delete_)
- extern void private_fl_type_uint128s_delete(f_uint128s_t *uint128s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_uint128s_delete_)
-
-/**
- * Private implementation for resizing the uint128s array.
- *
- * Intended to be shared to each of the different implementation variations.
- *
- * @param length
- * The length to resize to.
- * @param uint128s
- * The uint128s array to resize.
- *
- * @return
- * F_none on success.
- *
- * Errors (with error bit) from: f_macro_uint128s_t_resize().
- *
- * @see f_macro_uint128s_t_resize()
- */
-#if !defined(_di_fl_type_uint128s_increase_) || !defined(_di_fl_type_uint128s_increase_by_)
- extern f_return_status private_fl_type_uint128s_resize(const f_array_length_t length, f_uint128s_t *uint128s) f_gcc_attribute_visibility_internal;
-#endif // !defined(_di_fl_type_uint128s_increase_) || !defined(_di_fl_type_uint128s_increase_by_)
-
-/**
* Private implementation for deleting the uint128ss array.
*
* Intended to be shared to each of the different implementation variations.
* @see f_macro_uint128ss_t_resize()
*/
#if !defined(_di_fl_type_uint128ss_increase_) || !defined(_di_fl_type_uint128ss_increase_by_)
- extern f_return_status private_fl_type_uint128ss_resize(const f_array_length_t length, f_uint128ss_t *uint128ss) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_type_uint128ss_resize(const f_array_length_t length, f_uint128ss_t *uint128ss) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_type_uint128ss_increase_) || !defined(_di_fl_type_uint128ss_increase_by_)
#ifdef __cplusplus
#endif
#ifndef _di_fl_type_cells_delete_
- f_return_status fl_type_cells_delete(f_cells_t *cells) {
+ f_status_t fl_type_cells_delete(f_cells_t *cells) {
#ifndef _di_level_1_parameter_checking_
if (!cells) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_cells_delete(cells);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_cells_t_delete(status, (*cells));
+
+ return status;
}
#endif // _di_fl_type_cells_delete_
#ifndef _di_fl_type_cells_increase_
- f_return_status fl_type_cells_increase(f_cells_t *cells) {
+ f_status_t fl_type_cells_increase(f_cells_t *cells) {
#ifndef _di_level_1_parameter_checking_
if (!cells) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (cells->used + 1 > cells->size) {
- f_array_length_t size = cells->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (cells->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_status_t status = F_none;
- private_fl_type_cells_resize(size, cells);
- }
+ f_macro_cells_t_increase(status, (*cells));
- return F_none;
+ return status;
}
#endif // _di_fl_type_cells_increase_
#ifndef _di_fl_type_cells_increase_by_
- f_return_status fl_type_cells_increase_by(const f_array_length_t amount, f_cells_t *cells) {
+ f_status_t fl_type_cells_increase_by(const f_array_length_t amount, f_cells_t *cells) {
#ifndef _di_level_1_parameter_checking_
if (!cells) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (cells->used + amount > cells->size) {
- if (cells->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_cells_resize(cells->used + amount, cells);
- }
+ f_macro_cells_t_increase_by(status, (*cells), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_type_cells_increase_by_
#ifndef _di_fl_type_cellss_delete_
- f_return_status fl_type_cellss_delete(f_cellss_t *cellss) {
+ f_status_t fl_type_cellss_delete(f_cellss_t *cellss) {
#ifndef _di_level_1_parameter_checking_
if (!cellss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_cellss_delete_
#ifndef _di_fl_type_cellss_increase_
- f_return_status fl_type_cellss_increase(f_cellss_t *cellss) {
+ f_status_t fl_type_cellss_increase(f_cellss_t *cellss) {
#ifndef _di_level_1_parameter_checking_
if (!cellss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_cellss_increase_
#ifndef _di_fl_type_cellss_increase_by_
- f_return_status fl_type_cellss_increase_by(const f_array_length_t amount, f_cellss_t *cellss) {
+ f_status_t fl_type_cellss_increase_by(const f_array_length_t amount, f_cellss_t *cellss) {
#ifndef _di_level_1_parameter_checking_
if (!cellss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_cellss_increase_by_
#ifndef _di_fl_type_array_lengths_delete_
- f_return_status fl_type_array_lengths_delete(f_array_lengths_t *lengths) {
+ f_status_t fl_type_array_lengths_delete(f_array_lengths_t *lengths) {
#ifndef _di_level_1_parameter_checking_
if (!lengths) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_array_lengths_delete(lengths);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_array_lengths_t_delete(status, (*lengths));
+
+ return status;
}
#endif // _di_fl_type_array_lengths_delete_
#ifndef _di_fl_type_array_lengths_increase_
- f_return_status fl_type_array_lengths_increase(f_array_lengths_t *lengths) {
+ f_status_t fl_type_array_lengths_increase(f_array_lengths_t *lengths) {
#ifndef _di_level_1_parameter_checking_
if (!lengths) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (lengths->used + 1 > lengths->size) {
- f_array_length_t size = lengths->used + f_memory_default_allocation_step;
+ f_status_t status = F_none;
- if (size > f_array_length_t_size) {
- if (lengths->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_macro_array_lengths_t_increase(status, (*lengths));
- private_fl_type_array_lengths_resize(size, lengths);
- }
-
- return F_none;
+ return status;
}
#endif // _di_fl_type_array_lengths_increase_
#ifndef _di_fl_type_array_lengths_increase_by_
- f_return_status fl_type_array_lengths_increase_by(const f_array_length_t amount, f_array_lengths_t *lengths) {
+ f_status_t fl_type_array_lengths_increase_by(const f_array_length_t amount, f_array_lengths_t *lengths) {
#ifndef _di_level_1_parameter_checking_
if (!lengths) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (lengths->used + amount > lengths->size) {
- if (lengths->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_array_lengths_resize(lengths->used + amount, lengths);
- }
+ f_macro_array_lengths_t_increase_by(status, (*lengths), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_type_array_lengths_increase_by_
#ifndef _di_fl_type_array_lengthss_delete_
- f_return_status fl_type_array_lengthss_delete(f_array_lengthss_t *lengthss) {
+ f_status_t fl_type_array_lengthss_delete(f_array_lengthss_t *lengthss) {
#ifndef _di_level_1_parameter_checking_
if (!lengthss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_array_lengthss_delete_
#ifndef _di_fl_type_array_lengthss_increase_
- f_return_status fl_type_array_lengthss_increase(f_array_lengthss_t *lengthss) {
+ f_status_t fl_type_array_lengthss_increase(f_array_lengthss_t *lengthss) {
#ifndef _di_level_1_parameter_checking_
if (!lengthss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_array_lengthss_increase_
#ifndef _di_fl_type_array_lengthss_increase_by_
- f_return_status fl_type_array_lengthss_increase_by(const f_array_length_t amount, f_array_lengthss_t *lengthss) {
+ f_status_t fl_type_array_lengthss_increase_by(const f_array_length_t amount, f_array_lengthss_t *lengthss) {
#ifndef _di_level_1_parameter_checking_
if (!lengthss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_array_lengthss_increase_by_
#ifndef _di_fl_type_int8s_delete_
- f_return_status fl_type_int8s_delete(f_int8s_t *int8s) {
+ f_status_t fl_type_int8s_delete(f_int8s_t *int8s) {
#ifndef _di_level_1_parameter_checking_
if (!int8s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_int8s_delete(int8s);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_int8s_t_delete(status, (*int8s));
+
+ return status;
}
#endif // _di_fl_type_int8s_delete_
#ifndef _di_fl_type_int8s_increase_
- f_return_status fl_type_int8s_increase(f_int8s_t *int8s) {
+ f_status_t fl_type_int8s_increase(f_int8s_t *int8s) {
#ifndef _di_level_1_parameter_checking_
if (!int8s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (int8s->used + 1 > int8s->size) {
- f_array_length_t size = int8s->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (int8s->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_status_t status = F_none;
- private_fl_type_int8s_resize(size, int8s);
- }
+ f_macro_int8s_t_increase(status, (*int8s));
- return F_none;
+ return status;
}
#endif // _di_fl_type_int8s_increase_
#ifndef _di_fl_type_int8s_increase_by_
- f_return_status fl_type_int8s_increase_by(const f_array_length_t amount, f_int8s_t *int8s) {
+ f_status_t fl_type_int8s_increase_by(const f_array_length_t amount, f_int8s_t *int8s) {
#ifndef _di_level_1_parameter_checking_
if (!int8s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (int8s->used + amount > int8s->size) {
- if (int8s->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_int8s_resize(int8s->used + amount, int8s);
- }
+ f_macro_int8s_t_increase_by(status, (*int8s), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_type_int8s_increase_by_
#ifndef _di_fl_type_int8ss_delete_
- f_return_status fl_type_int8ss_delete(f_int8ss_t *int8ss) {
+ f_status_t fl_type_int8ss_delete(f_int8ss_t *int8ss) {
#ifndef _di_level_1_parameter_checking_
if (!int8ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int8ss_delete_
#ifndef _di_fl_type_int8ss_increase_
- f_return_status fl_type_int8ss_increase(f_int8ss_t *int8ss) {
+ f_status_t fl_type_int8ss_increase(f_int8ss_t *int8ss) {
#ifndef _di_level_1_parameter_checking_
if (!int8ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int8ss_increase_
#ifndef _di_fl_type_int8ss_increase_by_
- f_return_status fl_type_int8ss_increase_by(const f_array_length_t amount, f_int8ss_t *int8ss) {
+ f_status_t fl_type_int8ss_increase_by(const f_array_length_t amount, f_int8ss_t *int8ss) {
#ifndef _di_level_1_parameter_checking_
if (!int8ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int8ss_increase_by_
#ifndef _di_fl_type_uint8s_delete_
- f_return_status fl_type_uint8s_delete(f_uint8s_t *uint8s) {
+ f_status_t fl_type_uint8s_delete(f_uint8s_t *uint8s) {
#ifndef _di_level_1_parameter_checking_
if (!uint8s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_uint8s_delete(uint8s);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_uint8s_t_delete(status, (*uint8s));
+
+ return status;
}
#endif // _di_fl_type_uint8s_delete_
#ifndef _di_fl_type_uint8s_increase_
- f_return_status fl_type_uint8s_increase(f_uint8s_t *uint8s) {
+ f_status_t fl_type_uint8s_increase(f_uint8s_t *uint8s) {
#ifndef _di_level_1_parameter_checking_
if (!uint8s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (uint8s->used + 1 > uint8s->size) {
- f_array_length_t size = uint8s->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (uint8s->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_status_t status = F_none;
- private_fl_type_uint8s_resize(size, uint8s);
- }
+ f_macro_uint8s_t_increase(status, (*uint8s));
- return F_none;
+ return status;
}
#endif // _di_fl_type_uint8s_increase_
#ifndef _di_fl_type_uint8s_increase_by_
- f_return_status fl_type_uint8s_increase_by(const f_array_length_t amount, f_uint8s_t *uint8s) {
+ f_status_t fl_type_uint8s_increase_by(const f_array_length_t amount, f_uint8s_t *uint8s) {
#ifndef _di_level_1_parameter_checking_
if (!uint8s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (uint8s->used + amount > uint8s->size) {
- if (uint8s->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_uint8s_resize(uint8s->used + amount, uint8s);
- }
+ f_macro_uint8s_t_increase_by(status, (*uint8s), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_type_uint8s_increase_by_
#ifndef _di_fl_type_uint8ss_delete_
- f_return_status fl_type_uint8ss_delete(f_uint8ss_t *uint8ss) {
+ f_status_t fl_type_uint8ss_delete(f_uint8ss_t *uint8ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint8ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint8ss_delete_
#ifndef _di_fl_type_uint8ss_increase_
- f_return_status fl_type_uint8ss_increase(f_uint8ss_t *uint8ss) {
+ f_status_t fl_type_uint8ss_increase(f_uint8ss_t *uint8ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint8ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint8ss_increase_
#ifndef _di_fl_type_uint8ss_increase_by_
- f_return_status fl_type_uint8ss_increase_by(const f_array_length_t amount, f_uint8ss_t *uint8ss) {
+ f_status_t fl_type_uint8ss_increase_by(const f_array_length_t amount, f_uint8ss_t *uint8ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint8ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint8ss_increase_by_
#ifndef _di_fl_type_int16s_delete_
- f_return_status fl_type_int16s_delete(f_int16s_t *int16s) {
+ f_status_t fl_type_int16s_delete(f_int16s_t *int16s) {
#ifndef _di_level_1_parameter_checking_
if (!int16s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_int16s_delete(int16s);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_int16s_t_delete(status, (*int16s));
+
+ return status;
}
#endif // _di_fl_type_int16s_delete_
#ifndef _di_fl_type_int16s_increase_
- f_return_status fl_type_int16s_increase(f_int16s_t *int16s) {
+ f_status_t fl_type_int16s_increase(f_int16s_t *int16s) {
#ifndef _di_level_1_parameter_checking_
if (!int16s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (int16s->used + 1 > int16s->size) {
- f_array_length_t size = int16s->used + f_memory_default_allocation_step;
+ f_status_t status = F_none;
- if (size > f_array_length_t_size) {
- if (int16s->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_macro_int16s_t_increase(status, (*int16s));
- private_fl_type_int16s_resize(size, int16s);
- }
-
- return F_none;
+ return status;
}
#endif // _di_fl_type_int16s_increase_
#ifndef _di_fl_type_int16s_increase_by_
- f_return_status fl_type_int16s_increase_by(const f_array_length_t amount, f_int16s_t *int16s) {
+ f_status_t fl_type_int16s_increase_by(const f_array_length_t amount, f_int16s_t *int16s) {
#ifndef _di_level_1_parameter_checking_
if (!int16s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (int16s->used + amount > int16s->size) {
- if (int16s->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_int16s_resize(int16s->used + amount, int16s);
- }
+ f_macro_int16s_t_increase_by(status, (*int16s), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_type_int16s_increase_by_
#ifndef _di_fl_type_int16ss_delete_
- f_return_status fl_type_int16ss_delete(f_int16ss_t *int16ss) {
+ f_status_t fl_type_int16ss_delete(f_int16ss_t *int16ss) {
#ifndef _di_level_1_parameter_checking_
if (!int16ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int16ss_delete_
#ifndef _di_fl_type_int16ss_increase_
- f_return_status fl_type_int16ss_increase(f_int16ss_t *int16ss) {
+ f_status_t fl_type_int16ss_increase(f_int16ss_t *int16ss) {
#ifndef _di_level_1_parameter_checking_
if (!int16ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int16ss_increase_
#ifndef _di_fl_type_int16ss_increase_by_
- f_return_status fl_type_int16ss_increase_by(const f_array_length_t amount, f_int16ss_t *int16ss) {
+ f_status_t fl_type_int16ss_increase_by(const f_array_length_t amount, f_int16ss_t *int16ss) {
#ifndef _di_level_1_parameter_checking_
if (!int16ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int16ss_increase_by_
#ifndef _di_fl_type_uint16s_delete_
- f_return_status fl_type_uint16s_delete(f_uint16s_t *uint16s) {
+ f_status_t fl_type_uint16s_delete(f_uint16s_t *uint16s) {
#ifndef _di_level_1_parameter_checking_
if (!uint16s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_uint16s_delete(uint16s);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_uint16s_t_delete(status, (*uint16s));
+
+ return status;
}
#endif // _di_fl_type_uint16s_delete_
#ifndef _di_fl_type_uint16s_increase_
- f_return_status fl_type_uint16s_increase(f_uint16s_t *uint16s) {
+ f_status_t fl_type_uint16s_increase(f_uint16s_t *uint16s) {
#ifndef _di_level_1_parameter_checking_
if (!uint16s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (uint16s->used + 1 > uint16s->size) {
- f_array_length_t size = uint16s->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (uint16s->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_status_t status = F_none;
- private_fl_type_uint16s_resize(size, uint16s);
- }
+ f_macro_uint16s_t_increase(status, (*uint16s));
- return F_none;
+ return status;
}
#endif // _di_fl_type_uint16s_increase_
#ifndef _di_fl_type_uint16s_increase_by_
- f_return_status fl_type_uint16s_increase_by(const f_array_length_t amount, f_uint16s_t *uint16s) {
+ f_status_t fl_type_uint16s_increase_by(const f_array_length_t amount, f_uint16s_t *uint16s) {
#ifndef _di_level_1_parameter_checking_
if (!uint16s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (uint16s->used + amount > uint16s->size) {
- if (uint16s->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_uint16s_resize(uint16s->used + amount, uint16s);
- }
+ f_macro_uint16s_t_increase_by(status, (*uint16s), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_type_uint16s_increase_by_
#ifndef _di_fl_type_uint16ss_delete_
- f_return_status fl_type_uint16ss_delete(f_uint16ss_t *uint16ss) {
+ f_status_t fl_type_uint16ss_delete(f_uint16ss_t *uint16ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint16ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint16ss_delete_
#ifndef _di_fl_type_uint16ss_increase_
- f_return_status fl_type_uint16ss_increase(f_uint16ss_t *uint16ss) {
+ f_status_t fl_type_uint16ss_increase(f_uint16ss_t *uint16ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint16ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint16ss_increase_
#ifndef _di_fl_type_uint16ss_increase_by_
- f_return_status fl_type_uint16ss_increase_by(const f_array_length_t amount, f_uint16ss_t *uint16ss) {
+ f_status_t fl_type_uint16ss_increase_by(const f_array_length_t amount, f_uint16ss_t *uint16ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint16ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint16ss_increase_by_
#ifndef _di_fl_type_int32s_delete_
- f_return_status fl_type_int32s_delete(f_int32s_t *int32s) {
+ f_status_t fl_type_int32s_delete(f_int32s_t *int32s) {
#ifndef _di_level_1_parameter_checking_
if (!int32s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_int32s_delete(int32s);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_int32s_t_delete(status, (*int32s));
+
+ return status;
}
#endif // _di_fl_type_int32s_delete_
#ifndef _di_fl_type_int32s_increase_
- f_return_status fl_type_int32s_increase(f_int32s_t *int32s) {
+ f_status_t fl_type_int32s_increase(f_int32s_t *int32s) {
#ifndef _di_level_1_parameter_checking_
if (!int32s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (int32s->used + 1 > int32s->size) {
- f_array_length_t size = int32s->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (int32s->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_status_t status = F_none;
- private_fl_type_int32s_resize(size, int32s);
- }
+ f_macro_int32s_t_increase(status, (*int32s));
- return F_none;
+ return status;
}
#endif // _di_fl_type_int32s_increase_
#ifndef _di_fl_type_int32s_increase_by_
- f_return_status fl_type_int32s_increase_by(const f_array_length_t amount, f_int32s_t *int32s) {
+ f_status_t fl_type_int32s_increase_by(const f_array_length_t amount, f_int32s_t *int32s) {
#ifndef _di_level_1_parameter_checking_
if (!int32s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (int32s->used + amount > int32s->size) {
- if (int32s->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_int32s_resize(int32s->used + amount, int32s);
- }
+ f_macro_int32s_t_increase_by(status, (*int32s), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_type_int32s_increase_by_
#ifndef _di_fl_type_int32ss_delete_
- f_return_status fl_type_int32ss_delete(f_int32ss_t *int32ss) {
+ f_status_t fl_type_int32ss_delete(f_int32ss_t *int32ss) {
#ifndef _di_level_1_parameter_checking_
if (!int32ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int32ss_delete_
#ifndef _di_fl_type_int32ss_increase_
- f_return_status fl_type_int32ss_increase(f_int32ss_t *int32ss) {
+ f_status_t fl_type_int32ss_increase(f_int32ss_t *int32ss) {
#ifndef _di_level_1_parameter_checking_
if (!int32ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int32ss_increase_
#ifndef _di_fl_type_int32ss_increase_by_
- f_return_status fl_type_int32ss_increase_by(const f_array_length_t amount, f_int32ss_t *int32ss) {
+ f_status_t fl_type_int32ss_increase_by(const f_array_length_t amount, f_int32ss_t *int32ss) {
#ifndef _di_level_1_parameter_checking_
if (!int32ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int32ss_increase_by_
#ifndef _di_fl_type_uint32s_delete_
- f_return_status fl_type_uint32s_delete(f_uint32s_t *uint32s) {
+ f_status_t fl_type_uint32s_delete(f_uint32s_t *uint32s) {
#ifndef _di_level_1_parameter_checking_
if (!uint32s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_uint32s_delete(uint32s);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_uint32s_t_delete(status, (*uint32s));
+
+ return status;
}
#endif // _di_fl_type_uint32s_delete_
#ifndef _di_fl_type_uint32s_increase_
- f_return_status fl_type_uint32s_increase(f_uint32s_t *uint32s) {
+ f_status_t fl_type_uint32s_increase(f_uint32s_t *uint32s) {
#ifndef _di_level_1_parameter_checking_
if (!uint32s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (uint32s->used + 1 > uint32s->size) {
- f_array_length_t size = uint32s->used + f_memory_default_allocation_step;
+ f_status_t status = F_none;
- if (size > f_array_length_t_size) {
- if (uint32s->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_macro_uint32s_t_increase(status, (*uint32s));
- private_fl_type_uint32s_resize(size, uint32s);
- }
-
- return F_none;
+ return status;
}
#endif // _di_fl_type_uint32s_increase_
#ifndef _di_fl_type_uint32s_increase_by_
- f_return_status fl_type_uint32s_increase_by(const f_array_length_t amount, f_uint32s_t *uint32s) {
+ f_status_t fl_type_uint32s_increase_by(const f_array_length_t amount, f_uint32s_t *uint32s) {
#ifndef _di_level_1_parameter_checking_
if (!uint32s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (uint32s->used + amount > uint32s->size) {
- if (uint32s->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_uint32s_resize(uint32s->used + amount, uint32s);
- }
+ f_macro_uint32s_t_increase_by(status, (*uint32s), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_type_uint32s_increase_by_
#ifndef _di_fl_type_uint32ss_delete_
- f_return_status fl_type_uint32ss_delete(f_uint32ss_t *uint32ss) {
+ f_status_t fl_type_uint32ss_delete(f_uint32ss_t *uint32ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint32ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint32ss_delete_
#ifndef _di_fl_type_uint32ss_increase_
- f_return_status fl_type_uint32ss_increase(f_uint32ss_t *uint32ss) {
+ f_status_t fl_type_uint32ss_increase(f_uint32ss_t *uint32ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint32ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint32ss_increase_
#ifndef _di_fl_type_uint32ss_increase_by_
- f_return_status fl_type_uint32ss_increase_by(const f_array_length_t amount, f_uint32ss_t *uint32ss) {
+ f_status_t fl_type_uint32ss_increase_by(const f_array_length_t amount, f_uint32ss_t *uint32ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint32ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint32ss_increase_by_
#ifndef _di_fl_type_int64s_delete_
- f_return_status fl_type_int64s_delete(f_int64s_t *int64s) {
+ f_status_t fl_type_int64s_delete(f_int64s_t *int64s) {
#ifndef _di_level_1_parameter_checking_
if (!int64s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_int64s_delete(int64s);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_int64s_t_delete(status, (*int64s));
+
+ return status;
}
#endif // _di_fl_type_int64s_delete_
#ifndef _di_fl_int64s_increase_
- f_return_status fl_int64s_increase(f_int64s_t *int64s) {
+ f_status_t fl_int64s_increase(f_int64s_t *int64s) {
#ifndef _di_level_1_parameter_checking_
if (!int64s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (int64s->used + 1 > int64s->size) {
- f_array_length_t size = int64s->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (int64s->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_status_t status = F_none;
- private_fl_type_int64s_resize(size, int64s);
- }
+ f_macro_int64s_t_increase(status, (*int64s));
- return F_none;
+ return status;
}
#endif // _di_fl_int64s_increase_
#ifndef _di_fl_int64s_increase_by_
- f_return_status fl_int64s_increase_by(const f_array_length_t amount, f_int64s_t *int64s) {
+ f_status_t fl_int64s_increase_by(const f_array_length_t amount, f_int64s_t *int64s) {
#ifndef _di_level_1_parameter_checking_
if (!int64s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (int64s->used + amount > int64s->size) {
- if (int64s->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_int64s_resize(int64s->used + amount, int64s);
- }
+ f_macro_int64s_t_increase_by(status, (*int64s), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_int64s_increase_by_
#ifndef _di_fl_type_int64ss_delete_
- f_return_status fl_type_int64ss_delete(f_int64ss_t *int64ss) {
+ f_status_t fl_type_int64ss_delete(f_int64ss_t *int64ss) {
#ifndef _di_level_1_parameter_checking_
if (!int64ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int64ss_delete_
#ifndef _di_fl_int64ss_increase_
- f_return_status fl_int64ss_increase(f_int64ss_t *int64ss) {
+ f_status_t fl_int64ss_increase(f_int64ss_t *int64ss) {
#ifndef _di_level_1_parameter_checking_
if (!int64ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_int64ss_increase_
#ifndef _di_fl_int64ss_increase_by_
- f_return_status fl_int64ss_increase_by(const f_array_length_t amount, f_int64ss_t *int64ss) {
+ f_status_t fl_int64ss_increase_by(const f_array_length_t amount, f_int64ss_t *int64ss) {
#ifndef _di_level_1_parameter_checking_
if (!int64ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_int64ss_increase_by_
#ifndef _di_fl_type_uint64s_delete_
- f_return_status fl_type_uint64s_delete(f_uint64s_t *uint64s) {
+ f_status_t fl_type_uint64s_delete(f_uint64s_t *uint64s) {
#ifndef _di_level_1_parameter_checking_
if (!uint64s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_uint64s_delete(uint64s);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_uint64s_t_delete(status, (*uint64s));
+
+ return status;
}
#endif // _di_fl_type_uint64s_delete_
#ifndef _di_fl_uint64s_increase_
- f_return_status fl_uint64s_increase(f_uint64s_t *uint64s) {
+ f_status_t fl_uint64s_increase(f_uint64s_t *uint64s) {
#ifndef _di_level_1_parameter_checking_
if (!uint64s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (uint64s->used + 1 > uint64s->size) {
- f_array_length_t size = uint64s->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (uint64s->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_status_t status = F_none;
- private_fl_type_uint64s_resize(size, uint64s);
- }
+ f_macro_uint64s_t_increase(status, (*uint64s));
- return F_none;
+ return status;
}
#endif // _di_fl_uint64s_increase_
#ifndef _di_fl_uint64s_increase_by_
- f_return_status fl_uint64s_increase_by(const f_array_length_t amount, f_uint64s_t *uint64s) {
+ f_status_t fl_uint64s_increase_by(const f_array_length_t amount, f_uint64s_t *uint64s) {
#ifndef _di_level_1_parameter_checking_
if (!uint64s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (uint64s->used + amount > uint64s->size) {
- if (uint64s->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_uint64s_resize(uint64s->used + amount, uint64s);
- }
+ f_macro_uint64s_t_increase_by(status, (*uint64s), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_uint64s_increase_by_
#ifndef _di_fl_type_uint64ss_delete_
- f_return_status fl_type_uint64ss_delete(f_uint64ss_t *uint64ss) {
+ f_status_t fl_type_uint64ss_delete(f_uint64ss_t *uint64ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint64ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint64ss_delete_
#ifndef _di_fl_uint64ss_increase_
- f_return_status fl_uint64ss_increase(f_uint64ss_t *uint64ss) {
+ f_status_t fl_uint64ss_increase(f_uint64ss_t *uint64ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint64ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_uint64ss_increase_
#ifndef _di_fl_uint64ss_increase_by_
- f_return_status fl_uint64ss_increase_by(const f_array_length_t amount, f_uint64ss_t *uint64ss) {
+ f_status_t fl_uint64ss_increase_by(const f_array_length_t amount, f_uint64ss_t *uint64ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint64ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_uint64ss_increase_by_
#ifndef _di_fl_type_int128s_delete_
- f_return_status fl_type_int128s_delete(f_int128s_t *int128s) {
+ f_status_t fl_type_int128s_delete(f_int128s_t *int128s) {
#ifndef _di_level_1_parameter_checking_
if (!int128s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_int128s_delete(int128s);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_int128s_t_delete(status, (*int128s));
+
+ return status;
}
#endif // _di_fl_type_int128s_delete_
#ifndef _di_fl_type_int128s_increase_
- f_return_status fl_type_int128s_increase(f_int128s_t *int128s) {
+ f_status_t fl_type_int128s_increase(f_int128s_t *int128s) {
#ifndef _di_level_1_parameter_checking_
if (!int128s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (int128s->used + 1 > int128s->size) {
- f_array_length_t size = int128s->used + f_memory_default_allocation_step;
+ f_status_t status = F_none;
- if (size > f_array_length_t_size) {
- if (int128s->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_macro_int128s_t_increase(status, (*int128s));
- private_fl_type_int128s_resize(size, int128s);
- }
-
- return F_none;
+ return status;
}
#endif // _di_fl_type_int128s_increase_
#ifndef _di_fl_type_int128s_increase_by_
- f_return_status fl_type_int128s_increase_by(const f_array_length_t amount, f_int128s_t *int128s) {
+ f_status_t fl_type_int128s_increase_by(const f_array_length_t amount, f_int128s_t *int128s) {
#ifndef _di_level_1_parameter_checking_
if (!int128s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (int128s->used + amount > int128s->size) {
- if (int128s->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_int128s_resize(int128s->used + amount, int128s);
- }
+ f_macro_int128s_t_increase_by(status, (*int128s), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_type_int128s_increase_by_
#ifndef _di_fl_type_int128ss_delete_
- f_return_status fl_type_int128ss_delete(f_int128ss_t *int128ss) {
+ f_status_t fl_type_int128ss_delete(f_int128ss_t *int128ss) {
#ifndef _di_level_1_parameter_checking_
if (!int128ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int128ss_delete_
#ifndef _di_fl_type_int128ss_increase_
- f_return_status fl_type_int128ss_increase(f_int128ss_t *int128ss) {
+ f_status_t fl_type_int128ss_increase(f_int128ss_t *int128ss) {
#ifndef _di_level_1_parameter_checking_
if (!int128ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int128ss_increase_
#ifndef _di_fl_type_int128ss_increase_by_
- f_return_status fl_type_int128ss_increase_by(const f_array_length_t amount, f_int128ss_t *int128ss) {
+ f_status_t fl_type_int128ss_increase_by(const f_array_length_t amount, f_int128ss_t *int128ss) {
#ifndef _di_level_1_parameter_checking_
if (!int128ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_int128ss_increase_by_
#ifndef _di_fl_type_uint128s_delete_
- f_return_status fl_type_uint128s_delete(f_uint128s_t *uint128s) {
+ f_status_t fl_type_uint128s_delete(f_uint128s_t *uint128s) {
#ifndef _di_level_1_parameter_checking_
if (!uint128s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- private_fl_type_uint128s_delete(uint128s);
+ f_status_t status = F_none;
- return F_none;
+ f_macro_uint128s_t_delete(status, (*uint128s));
+
+ return status;
}
#endif // _di_fl_type_uint128s_delete_
#ifndef _di_fl_type_uint128s_increase_
- f_return_status fl_type_uint128s_increase(f_uint128s_t *uint128s) {
+ f_status_t fl_type_uint128s_increase(f_uint128s_t *uint128s) {
#ifndef _di_level_1_parameter_checking_
if (!uint128s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (uint128s->used + 1 > uint128s->size) {
- f_array_length_t size = uint128s->used + f_memory_default_allocation_step;
-
- if (size > f_array_length_t_size) {
- if (uint128s->used + 1 > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
-
- size = f_array_length_t_size;
- }
+ f_status_t status = F_none;
- private_fl_type_uint128s_resize(size, uint128s);
- }
+ f_macro_uint128s_t_increase(status, (*uint128s));
- return F_none;
+ return status;
}
#endif // _di_fl_type_uint128s_increase_
#ifndef _di_fl_type_uint128s_increase_by_
- f_return_status fl_type_uint128s_increase_by(const f_array_length_t amount, f_uint128s_t *uint128s) {
+ f_status_t fl_type_uint128s_increase_by(const f_array_length_t amount, f_uint128s_t *uint128s) {
#ifndef _di_level_1_parameter_checking_
if (!uint128s) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
- if (uint128s->used + amount > uint128s->size) {
- if (uint128s->used + amount > f_array_length_t_size) {
- return F_status_set_error(F_array_too_large);
- }
+ f_status_t status = F_none;
- private_fl_type_uint128s_resize(uint128s->used + amount, uint128s);
- }
+ f_macro_uint128s_t_increase_by(status, (*uint128s), amount);
- return F_none;
+ return status;
}
#endif // _di_fl_type_uint128s_increase_by_
#ifndef _di_fl_type_uint128ss_delete_
- f_return_status fl_type_uint128ss_delete(f_uint128ss_t *uint128ss) {
+ f_status_t fl_type_uint128ss_delete(f_uint128ss_t *uint128ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint128ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint128ss_delete_
#ifndef _di_fl_type_uint128ss_increase_
- f_return_status fl_type_uint128ss_increase(f_uint128ss_t *uint128ss) {
+ f_status_t fl_type_uint128ss_increase(f_uint128ss_t *uint128ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint128ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_type_uint128ss_increase_
#ifndef _di_fl_type_uint128ss_increase_by_
- f_return_status fl_type_uint128ss_increase_by(const f_array_length_t amount, f_uint128ss_t *uint128ss) {
+ f_status_t fl_type_uint128ss_increase_by(const f_array_length_t amount, f_uint128ss_t *uint128ss) {
#ifndef _di_level_1_parameter_checking_
if (!uint128ss) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* @see f_macro_cells_t_delete_simple()
*/
#ifndef _di_fl_type_cells_delete_
- extern f_return_status fl_type_cells_delete(f_cells_t *cells);
+ extern f_status_t fl_type_cells_delete(f_cells_t *cells);
#endif // _di_fl_type_cells_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_cells_increase_
- extern f_return_status fl_type_cells_increase(f_cells_t *cells);
+ extern f_status_t fl_type_cells_increase(f_cells_t *cells);
#endif // _di_fl_type_cells_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_cells_increase_by_
- extern f_return_status fl_type_cells_increase_by(const f_array_length_t amount, f_cells_t *cells);
+ extern f_status_t fl_type_cells_increase_by(const f_array_length_t amount, f_cells_t *cells);
#endif // _di_fl_type_cells_increase_by_
/**
* @see f_macro_cellss_t_delete_simple()
*/
#ifndef _di_fl_type_cellss_delete_
- extern f_return_status fl_type_cellss_delete(f_cellss_t *cellss);
+ extern f_status_t fl_type_cellss_delete(f_cellss_t *cellss);
#endif // _di_fl_type_cellss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_cellss_increase_
- extern f_return_status fl_type_cellss_increase(f_cellss_t *cellss);
+ extern f_status_t fl_type_cellss_increase(f_cellss_t *cellss);
#endif // _di_fl_type_cellss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_cellss_increase_by_
- extern f_return_status fl_type_cellss_increase_by(const f_array_length_t amount, f_cellss_t *cellss);
+ extern f_status_t fl_type_cellss_increase_by(const f_array_length_t amount, f_cellss_t *cellss);
#endif // _di_fl_type_cellss_increase_by_
/**
* @see f_macro_array_lengths_t_delete_simple()
*/
#ifndef _di_fl_type_array_lengths_delete_
- extern f_return_status fl_type_array_lengths_delete(f_array_lengths_t *array_lengths);
+ extern f_status_t fl_type_array_lengths_delete(f_array_lengths_t *array_lengths);
#endif // _di_fl_type_array_lengths_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_array_lengths_increase_
- extern f_return_status fl_type_array_lengths_increase(f_array_lengths_t *array_lengths);
+ extern f_status_t fl_type_array_lengths_increase(f_array_lengths_t *array_lengths);
#endif // _di_fl_type_array_lengths_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_array_lengths_increase_by_
- extern f_return_status fl_type_array_lengths_increase_by(const f_array_length_t amount, f_array_lengths_t *array_lengths);
+ extern f_status_t fl_type_array_lengths_increase_by(const f_array_length_t amount, f_array_lengths_t *array_lengths);
#endif // _di_fl_type_array_lengths_increase_by_
/**
* @see f_macro_array_lengthss_t_delete_simple()
*/
#ifndef _di_fl_type_array_lengthss_delete_
- extern f_return_status fl_type_array_lengthss_delete(f_array_lengthss_t *array_lengthss);
+ extern f_status_t fl_type_array_lengthss_delete(f_array_lengthss_t *array_lengthss);
#endif // _di_fl_type_array_lengthss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_array_lengthss_increase_
- extern f_return_status fl_type_array_lengthss_increase(f_array_lengthss_t *array_lengthss);
+ extern f_status_t fl_type_array_lengthss_increase(f_array_lengthss_t *array_lengthss);
#endif // _di_fl_type_array_lengthss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_array_lengthss_increase_by_
- extern f_return_status fl_type_array_lengthss_increase_by(const f_array_length_t amount, f_array_lengthss_t *array_lengthss);
+ extern f_status_t fl_type_array_lengthss_increase_by(const f_array_length_t amount, f_array_lengthss_t *array_lengthss);
#endif // _di_fl_type_array_lengthss_increase_by_
/**
* @see f_macro_int8s_t_delete_simple()
*/
#ifndef _di_fl_type_int8s_delete_
- extern f_return_status fl_type_int8s_delete(f_int8s_t *int8s);
+ extern f_status_t fl_type_int8s_delete(f_int8s_t *int8s);
#endif // _di_fl_type_int8s_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int8s_increase_
- extern f_return_status fl_type_int8s_increase(f_int8s_t *int8s);
+ extern f_status_t fl_type_int8s_increase(f_int8s_t *int8s);
#endif // _di_fl_type_int8s_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int8s_increase_by_
- extern f_return_status fl_type_int8s_increase_by(const f_array_length_t amount, f_int8s_t *int8s);
+ extern f_status_t fl_type_int8s_increase_by(const f_array_length_t amount, f_int8s_t *int8s);
#endif // _di_fl_type_int8s_increase_by_
/**
* @see f_macro_int8ss_t_delete_simple()
*/
#ifndef _di_fl_type_int8ss_delete_
- extern f_return_status fl_type_int8ss_delete(f_int8ss_t *int8ss);
+ extern f_status_t fl_type_int8ss_delete(f_int8ss_t *int8ss);
#endif // _di_fl_type_int8ss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int8ss_increase_
- extern f_return_status fl_type_int8ss_increase(f_int8ss_t *int8ss);
+ extern f_status_t fl_type_int8ss_increase(f_int8ss_t *int8ss);
#endif // _di_fl_type_int8ss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int8ss_increase_by_
- extern f_return_status fl_type_int8ss_increase_by(const f_array_length_t amount, f_int8ss_t *int8ss);
+ extern f_status_t fl_type_int8ss_increase_by(const f_array_length_t amount, f_int8ss_t *int8ss);
#endif // _di_fl_type_int8ss_increase_by_
/**
* @see f_macro_uint8s_t_delete_simple()
*/
#ifndef _di_fl_type_uint8s_delete_
- extern f_return_status fl_type_uint8s_delete(f_uint8s_t *uint8s);
+ extern f_status_t fl_type_uint8s_delete(f_uint8s_t *uint8s);
#endif // _di_fl_type_uint8s_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint8s_increase_
- extern f_return_status fl_type_uint8s_increase(f_uint8s_t *uint8s);
+ extern f_status_t fl_type_uint8s_increase(f_uint8s_t *uint8s);
#endif // _di_fl_type_uint8s_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint8s_increase_by_
- extern f_return_status fl_type_uint8s_increase_by(const f_array_length_t amount, f_uint8s_t *uint8s);
+ extern f_status_t fl_type_uint8s_increase_by(const f_array_length_t amount, f_uint8s_t *uint8s);
#endif // _di_fl_type_uint8s_increase_by_
/**
* @see f_macro_uint8ss_t_delete_simple()
*/
#ifndef _di_fl_type_uint8ss_delete_
- extern f_return_status fl_type_uint8ss_delete(f_uint8ss_t *uint8ss);
+ extern f_status_t fl_type_uint8ss_delete(f_uint8ss_t *uint8ss);
#endif // _di_fl_type_uint8ss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint8ss_increase_
- extern f_return_status fl_type_uint8ss_increase(f_uint8ss_t *uint8ss);
+ extern f_status_t fl_type_uint8ss_increase(f_uint8ss_t *uint8ss);
#endif // _di_fl_type_uint8ss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint8ss_increase_by_
- extern f_return_status fl_type_uint8ss_increase_by(const f_array_length_t amount, f_uint8ss_t *uint8ss);
+ extern f_status_t fl_type_uint8ss_increase_by(const f_array_length_t amount, f_uint8ss_t *uint8ss);
#endif // _di_fl_type_uint8ss_increase_by_
/**
* @see f_macro_int16s_t_delete_simple()
*/
#ifndef _di_fl_type_int16s_delete_
- extern f_return_status fl_type_int16s_delete(f_int16s_t *int16s);
+ extern f_status_t fl_type_int16s_delete(f_int16s_t *int16s);
#endif // _di_fl_type_int16s_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int16s_increase_
- extern f_return_status fl_type_int16s_increase(f_int16s_t *int16s);
+ extern f_status_t fl_type_int16s_increase(f_int16s_t *int16s);
#endif // _di_fl_type_int16s_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int16s_increase_by_
- extern f_return_status fl_type_int16s_increase_by(const f_array_length_t amount, f_int16s_t *int16s);
+ extern f_status_t fl_type_int16s_increase_by(const f_array_length_t amount, f_int16s_t *int16s);
#endif // _di_fl_type_int16s_increase_by_
/**
* @see f_macro_int16ss_t_delete_simple()
*/
#ifndef _di_fl_type_int16ss_delete_
- extern f_return_status fl_type_int16ss_delete(f_int16ss_t *int16ss);
+ extern f_status_t fl_type_int16ss_delete(f_int16ss_t *int16ss);
#endif // _di_fl_type_int16ss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int16ss_increase_
- extern f_return_status fl_type_int16ss_increase(f_int16ss_t *int16ss);
+ extern f_status_t fl_type_int16ss_increase(f_int16ss_t *int16ss);
#endif // _di_fl_type_int16ss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int16ss_increase_by_
- extern f_return_status fl_type_int16ss_increase_by(const f_array_length_t amount, f_int16ss_t *int16ss);
+ extern f_status_t fl_type_int16ss_increase_by(const f_array_length_t amount, f_int16ss_t *int16ss);
#endif // _di_fl_type_int16ss_increase_by_
/**
* @see f_macro_uint16s_t_delete_simple()
*/
#ifndef _di_fl_type_uint16s_delete_
- extern f_return_status fl_type_uint16s_delete(f_uint16s_t *uint16s);
+ extern f_status_t fl_type_uint16s_delete(f_uint16s_t *uint16s);
#endif // _di_fl_type_uint16s_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint16s_increase_
- extern f_return_status fl_type_uint16s_increase(f_uint16s_t *uint16s);
+ extern f_status_t fl_type_uint16s_increase(f_uint16s_t *uint16s);
#endif // _di_fl_type_uint16s_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint16s_increase_by_
- extern f_return_status fl_type_uint16s_increase_by(const f_array_length_t amount, f_uint16s_t *uint16s);
+ extern f_status_t fl_type_uint16s_increase_by(const f_array_length_t amount, f_uint16s_t *uint16s);
#endif // _di_fl_type_uint16s_increase_by_
/**
* @see f_macro_uint16ss_t_delete_simple()
*/
#ifndef _di_fl_type_uint16ss_delete_
- extern f_return_status fl_type_uint16ss_delete(f_uint16ss_t *uint16ss);
+ extern f_status_t fl_type_uint16ss_delete(f_uint16ss_t *uint16ss);
#endif // _di_fl_type_uint16ss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint16ss_increase_
- extern f_return_status fl_type_uint16ss_increase(f_uint16ss_t *uint16ss);
+ extern f_status_t fl_type_uint16ss_increase(f_uint16ss_t *uint16ss);
#endif // _di_fl_type_uint16ss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint16ss_increase_by_
- extern f_return_status fl_type_uint16ss_increase_by(const f_array_length_t amount, f_uint16ss_t *uint16ss);
+ extern f_status_t fl_type_uint16ss_increase_by(const f_array_length_t amount, f_uint16ss_t *uint16ss);
#endif // _di_fl_type_uint16ss_increase_by_
/**
* @see f_macro_int32s_t_delete_simple()
*/
#ifndef _di_fl_type_int32s_delete_
- extern f_return_status fl_type_int32s_delete(f_int32s_t *int32s);
+ extern f_status_t fl_type_int32s_delete(f_int32s_t *int32s);
#endif // _di_fl_type_int32s_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int32s_increase_
- extern f_return_status fl_type_int32s_increase(f_int32s_t *int32s);
+ extern f_status_t fl_type_int32s_increase(f_int32s_t *int32s);
#endif // _di_fl_type_int32s_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int32s_increase_by_
- extern f_return_status fl_type_int32s_increase_by(const f_array_length_t amount, f_int32s_t *int32s);
+ extern f_status_t fl_type_int32s_increase_by(const f_array_length_t amount, f_int32s_t *int32s);
#endif // _di_fl_type_int32s_increase_by_
/**
* @see f_macro_int32ss_t_delete_simple()
*/
#ifndef _di_fl_type_int32ss_delete_
- extern f_return_status fl_type_int32ss_delete(f_int32ss_t *int32ss);
+ extern f_status_t fl_type_int32ss_delete(f_int32ss_t *int32ss);
#endif // _di_fl_type_int32ss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int32ss_increase_
- extern f_return_status fl_type_int32ss_increase(f_int32ss_t *int32ss);
+ extern f_status_t fl_type_int32ss_increase(f_int32ss_t *int32ss);
#endif // _di_fl_type_int32ss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int32ss_increase_by_
- extern f_return_status fl_type_int32ss_increase_by(const f_array_length_t amount, f_int32ss_t *int32ss);
+ extern f_status_t fl_type_int32ss_increase_by(const f_array_length_t amount, f_int32ss_t *int32ss);
#endif // _di_fl_type_int32ss_increase_by_
/**
* @see f_macro_uint32s_t_delete_simple()
*/
#ifndef _di_fl_type_uint32s_delete_
- extern f_return_status fl_type_uint32s_delete(f_uint32s_t *uint32s);
+ extern f_status_t fl_type_uint32s_delete(f_uint32s_t *uint32s);
#endif // _di_fl_type_uint32s_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint32s_increase_
- extern f_return_status fl_type_uint32s_increase(f_uint32s_t *uint32s);
+ extern f_status_t fl_type_uint32s_increase(f_uint32s_t *uint32s);
#endif // _di_fl_type_uint32s_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint32s_increase_by_
- extern f_return_status fl_type_uint32s_increase_by(const f_array_length_t amount, f_uint32s_t *uint32s);
+ extern f_status_t fl_type_uint32s_increase_by(const f_array_length_t amount, f_uint32s_t *uint32s);
#endif // _di_fl_type_uint32s_increase_by_
/**
* @see f_macro_uint32ss_t_delete_simple()
*/
#ifndef _di_fl_type_uint32ss_delete_
- extern f_return_status fl_type_uint32ss_delete(f_uint32ss_t *uint32ss);
+ extern f_status_t fl_type_uint32ss_delete(f_uint32ss_t *uint32ss);
#endif // _di_fl_type_uint32ss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint32ss_increase_
- extern f_return_status fl_type_uint32ss_increase(f_uint32ss_t *uint32ss);
+ extern f_status_t fl_type_uint32ss_increase(f_uint32ss_t *uint32ss);
#endif // _di_fl_type_uint32ss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint32ss_increase_by_
- extern f_return_status fl_type_uint32ss_increase_by(const f_array_length_t amount, f_uint32ss_t *uint32ss);
+ extern f_status_t fl_type_uint32ss_increase_by(const f_array_length_t amount, f_uint32ss_t *uint32ss);
#endif // _di_fl_type_uint32ss_increase_by_
/**
* @see f_macro_int64s_t_delete_simple()
*/
#ifndef _di_fl_type_int64s_delete_
- extern f_return_status fl_type_int64s_delete(f_int64s_t *int64s);
+ extern f_status_t fl_type_int64s_delete(f_int64s_t *int64s);
#endif // _di_fl_type_int64s_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_int64s_increase_
- extern f_return_status fl_int64s_increase(f_int64s_t *int64s);
+ extern f_status_t fl_int64s_increase(f_int64s_t *int64s);
#endif // _di_fl_int64s_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_int64s_increase_by_
- extern f_return_status fl_int64s_increase_by(const f_array_length_t amount, f_int64s_t *int64s);
+ extern f_status_t fl_int64s_increase_by(const f_array_length_t amount, f_int64s_t *int64s);
#endif // _di_fl_int64s_increase_by_
/**
* @see f_macro_int64ss_t_delete_simple()
*/
#ifndef _di_fl_type_int64ss_delete_
- extern f_return_status fl_type_int64ss_delete(f_int64ss_t *int64ss);
+ extern f_status_t fl_type_int64ss_delete(f_int64ss_t *int64ss);
#endif // _di_fl_type_int64ss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_int64ss_increase_
- extern f_return_status fl_int64ss_increase(f_int64ss_t *int64ss);
+ extern f_status_t fl_int64ss_increase(f_int64ss_t *int64ss);
#endif // _di_fl_int64ss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_int64ss_increase_by_
- extern f_return_status fl_int64ss_increase_by(const f_array_length_t amount, f_int64ss_t *int64ss);
+ extern f_status_t fl_int64ss_increase_by(const f_array_length_t amount, f_int64ss_t *int64ss);
#endif // _di_fl_int64ss_increase_by_
/**
* @see f_macro_uint64s_t_delete_simple()
*/
#ifndef _di_fl_type_uint64s_delete_
- extern f_return_status fl_type_uint64s_delete(f_uint64s_t *uint64s);
+ extern f_status_t fl_type_uint64s_delete(f_uint64s_t *uint64s);
#endif // _di_fl_type_uint64s_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_uint64s_increase_
- extern f_return_status fl_uint64s_increase(f_uint64s_t *uint64s);
+ extern f_status_t fl_uint64s_increase(f_uint64s_t *uint64s);
#endif // _di_fl_uint64s_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_uint64s_increase_by_
- extern f_return_status fl_uint64s_increase_by(const f_array_length_t amount, f_uint64s_t *uint64s);
+ extern f_status_t fl_uint64s_increase_by(const f_array_length_t amount, f_uint64s_t *uint64s);
#endif // _di_fl_uint64s_increase_by_
/**
* @see f_macro_uint64ss_t_delete_simple()
*/
#ifndef _di_fl_type_uint64ss_delete_
- extern f_return_status fl_type_uint64ss_delete(f_uint64ss_t *uint64ss);
+ extern f_status_t fl_type_uint64ss_delete(f_uint64ss_t *uint64ss);
#endif // _di_fl_type_uint64ss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_uint64ss_increase_
- extern f_return_status fl_uint64ss_increase(f_uint64ss_t *uint64ss);
+ extern f_status_t fl_uint64ss_increase(f_uint64ss_t *uint64ss);
#endif // _di_fl_uint64ss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_uint64ss_increase_by_
- extern f_return_status fl_uint64ss_increase_by(const f_array_length_t amount, f_uint64ss_t *uint64ss);
+ extern f_status_t fl_uint64ss_increase_by(const f_array_length_t amount, f_uint64ss_t *uint64ss);
#endif // _di_fl_uint64ss_increase_by_
/**
* @see f_macro_int128s_t_delete_simple()
*/
#ifndef _di_fl_type_int128s_delete_
- extern f_return_status fl_type_int128s_delete(f_int128s_t *int128s);
+ extern f_status_t fl_type_int128s_delete(f_int128s_t *int128s);
#endif // _di_fl_type_int128s_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int128s_increase_
- extern f_return_status fl_type_int128s_increase(f_int128s_t *int128s);
+ extern f_status_t fl_type_int128s_increase(f_int128s_t *int128s);
#endif // _di_fl_type_int128s_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int128s_increase_by_
- extern f_return_status fl_type_int128s_increase_by(const f_array_length_t amount, f_int128s_t *int128s);
+ extern f_status_t fl_type_int128s_increase_by(const f_array_length_t amount, f_int128s_t *int128s);
#endif // _di_fl_type_int128s_increase_by_
/**
* @see f_macro_int128ss_t_delete_simple()
*/
#ifndef _di_fl_type_int128ss_delete_
- extern f_return_status fl_type_int128ss_delete(f_int128ss_t *int128ss);
+ extern f_status_t fl_type_int128ss_delete(f_int128ss_t *int128ss);
#endif // _di_fl_type_int128ss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int128ss_increase_
- extern f_return_status fl_type_int128ss_increase(f_int128ss_t *int128ss);
+ extern f_status_t fl_type_int128ss_increase(f_int128ss_t *int128ss);
#endif // _di_fl_type_int128ss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_int128ss_increase_by_
- extern f_return_status fl_type_int128ss_increase_by(const f_array_length_t amount, f_int128ss_t *int128ss);
+ extern f_status_t fl_type_int128ss_increase_by(const f_array_length_t amount, f_int128ss_t *int128ss);
#endif // _di_fl_type_int128ss_increase_by_
/**
* @see f_macro_uint128s_t_delete_simple()
*/
#ifndef _di_fl_type_uint128s_delete_
- extern f_return_status fl_type_uint128s_delete(f_uint128s_t *uint128s);
+ extern f_status_t fl_type_uint128s_delete(f_uint128s_t *uint128s);
#endif // _di_fl_type_uint128s_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint128s_increase_
- extern f_return_status fl_type_uint128s_increase(f_uint128s_t *uint128s);
+ extern f_status_t fl_type_uint128s_increase(f_uint128s_t *uint128s);
#endif // _di_fl_type_uint128s_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint128s_increase_by_
- extern f_return_status fl_type_uint128s_increase_by(const f_array_length_t amount, f_uint128s_t *uint128s);
+ extern f_status_t fl_type_uint128s_increase_by(const f_array_length_t amount, f_uint128s_t *uint128s);
#endif // _di_fl_type_uint128s_increase_by_
/**
* @see f_macro_uint128ss_t_delete_simple()
*/
#ifndef _di_fl_type_uint128ss_delete_
- extern f_return_status fl_type_uint128ss_delete(f_uint128ss_t *uint128ss);
+ extern f_status_t fl_type_uint128ss_delete(f_uint128ss_t *uint128ss);
#endif // _di_fl_type_uint128ss_delete_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint128ss_increase_
- extern f_return_status fl_type_uint128ss_increase(f_uint128ss_t *uint128ss);
+ extern f_status_t fl_type_uint128ss_increase(f_uint128ss_t *uint128ss);
#endif // _di_fl_type_uint128ss_increase_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_type_uint128ss_increase_by_
- extern f_return_status fl_type_uint128ss_increase_by(const f_array_length_t amount, f_uint128ss_t *uint128ss);
+ extern f_status_t fl_type_uint128ss_increase_by(const f_array_length_t amount, f_uint128ss_t *uint128ss);
#endif // _di_fl_type_uint128ss_increase_by_
#ifdef __cplusplus
#endif
#if !defined(_di_fl_utf_string_append_) || !defined(_di_fl_utf_string_dynamic_append_) || !defined(_di_fl_utf_string_append_mash_) || !defined(_di_fl_utf_string_dynamic_mash_)
- f_return_status private_fl_utf_string_append(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t private_fl_utf_string_append(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
if (destination->used + length > f_utf_string_t_size_max) return F_status_set_error(F_string_too_large);
#endif // !defined(_di_fl_utf_string_append_) || !defined(_di_fl_utf_string_dynamic_append_) || !defined(_di_fl_utf_string_append_mash_) || !defined(_di_fl_utf_string_dynamic_mash_)
#if !defined(_di_fl_utf_string_append_nulless_) || !defined(_di_fl_utf_string_dynamic_append_nulless_) || !defined(_di_fl_utf_string_mash_nulless_) || !defined(_di_fl_utf_string_dynamic_mash_nulless_)
- f_return_status private_fl_utf_string_append_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t private_fl_utf_string_append_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
if (destination->used + length > f_utf_string_t_size_max) return F_status_set_error(F_string_too_large);
#endif // !defined(_di_fl_utf_string_append_nulless_) || !defined(_di_fl_utf_string_dynamic_append_nulless_) || !defined(_di_fl_utf_string_mash_nulless_) || !defined(_di_fl_utf_string_dynamic_mash_nulless_)
#if !defined(_di_fl_utf_string_compare_) || !defined(_di_fl_utf_string_dynamic_compare_) || !defined(_di_fl_utf_string_dynamic_partial_compare_)
- f_return_status private_fl_utf_string_compare(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t offset1, const f_utf_string_length_t offset2, const f_utf_string_length_t stop1, const f_utf_string_length_t stop2) {
+ f_status_t private_fl_utf_string_compare(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t offset1, const f_utf_string_length_t offset2, const f_utf_string_length_t stop1, const f_utf_string_length_t stop2) {
f_utf_string_length_t i1 = offset1;
f_utf_string_length_t i2 = offset2;
#endif // !defined(_di_fl_utf_string_compare_) || !defined(_di_fl_utf_string_dynamic_compare_) || !defined(_di_fl_utf_string_dynamic_partial_compare_)
#if !defined(_di_fl_utf_string_compare_trim_) || !defined(_di_fl_utf_string_dynamic_compare_trim_) || !defined(_di_fl_utf_string_dynamic_partial_compare_trim_)
- f_return_status private_fl_utf_string_compare_trim(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t offset1, const f_utf_string_length_t offset2, const f_utf_string_length_t stop1, const f_utf_string_length_t stop2) {
+ f_status_t private_fl_utf_string_compare_trim(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t offset1, const f_utf_string_length_t offset2, const f_utf_string_length_t stop1, const f_utf_string_length_t stop2) {
f_utf_string_length_t i1 = offset1;
f_utf_string_length_t i2 = offset2;
#endif // !defined(_di_fl_utf_string_compare_trim_) || !defined(_di_fl_utf_string_dynamic_compare_trim_) || !defined(_di_fl_utf_string_dynamic_partial_compare_trim_)
#if !defined(_di_fl_utf_string_prepend_) || !defined(_di_fl_utf_string_dynamic_prepend_)
- f_return_status private_fl_utf_string_prepend(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t private_fl_utf_string_prepend(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
if (destination->used + length > f_utf_string_t_size_max) {
return F_status_set_error(F_string_too_large);
#endif // !defined(_di_fl_utf_string_prepend_) || !defined(_di_fl_utf_string_dynamic_prepend_)
#if !defined(_di_fl_utf_string_prepend_nulless_) || !defined(_di_fl_utf_string_dynamic_prepend_nulless_)
- f_return_status private_fl_utf_string_prepend_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t private_fl_utf_string_prepend_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
if (destination->used + length > f_utf_string_t_size_max) {
return F_status_set_error(F_string_too_large);
#endif // !defined(_di_fl_utf_string_prepend_nulless_) || !defined(_di_fl_utf_string_dynamic_prepend_nulless_)
#if !defined(_di_fl_utf_string_rip_) || !defined(_di_fl_utf_string_dynamic_rip_) || !defined(_di_fl_utf_string_rip_nulless_) || !defined(_di_fl_utf_string_dynamic_rip_nulless_)
- f_return_status private_fl_utf_string_rip_find_range(const f_utf_string_t source, f_utf_string_length_t *start, f_utf_string_length_t *stop) {
+ f_status_t private_fl_utf_string_rip_find_range(const f_utf_string_t source, f_utf_string_length_t *start, f_utf_string_length_t *stop) {
f_status_t status = F_none;
* @see fl_utf_string_dynamic_mash()
*/
#if !defined(_di_fl_utf_string_append_) || !defined(_di_fl_utf_string_dynamic_append_) || !defined(_di_fl_utf_string_append_mash_) || !defined(_di_fl_utf_string_dynamic_mash_)
- extern f_return_status private_fl_utf_string_append(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_utf_string_append(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_utf_string_append_) || !defined(_di_fl_utf_string_dynamic_append_) || !defined(_di_fl_utf_string_append_mash_) || !defined(_di_fl_utf_string_dynamic_mash_)
/**
* @see fl_utf_string_dynamic_mash_nulless()
*/
#if !defined(_di_fl_utf_string_append_nulless_) || !defined(_di_fl_utf_string_dynamic_append_nulless_) || !defined(_di_fl_utf_string_mash_nulless_) || !defined(_di_fl_utf_string_dynamic_mash_nulless_)
- extern f_return_status private_fl_utf_string_append_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_utf_string_append_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_utf_string_append_nulless_) || !defined(_di_fl_utf_string_dynamic_append_nulless_) || !defined(_di_fl_utf_string_mash_nulless_) || !defined(_di_fl_utf_string_dynamic_mash_nulless_)
/**
* @see fl_utf_string_dynamic_partial_compare()
*/
#if !defined(_di_fl_utf_string_compare_) || !defined(_di_fl_utf_string_dynamic_compare_) || !defined(_di_fl_utf_string_dynamic_partial_compare_)
- extern f_return_status private_fl_utf_string_compare(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t offset1, const f_utf_string_length_t offset2, const f_utf_string_length_t stop1, const f_utf_string_length_t stop2) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_utf_string_compare(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t offset1, const f_utf_string_length_t offset2, const f_utf_string_length_t stop1, const f_utf_string_length_t stop2) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_utf_string_compare_) || !defined(_di_fl_utf_string_dynamic_compare_) || !defined(_di_fl_utf_string_dynamic_partial_compare_)
/**
* @see fl_utf_string_dynamic_partial_compare_trim()
*/
#if !defined(_di_fl_utf_string_compare_trim_) || !defined(_di_fl_utf_string_dynamic_compare_trim_) || !defined(_di_fl_utf_string_dynamic_partial_compare_trim_)
- extern f_return_status private_fl_utf_string_compare_trim(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t offset1, const f_utf_string_length_t offset2, const f_utf_string_length_t stop1, const f_utf_string_length_t stop2) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_utf_string_compare_trim(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t offset1, const f_utf_string_length_t offset2, const f_utf_string_length_t stop1, const f_utf_string_length_t stop2) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_utf_string_compare_trim_) || !defined(_di_fl_utf_string_dynamic_compare_trim_) || !defined(_di_fl_utf_string_dynamic_partial_compare_trim_)
/**
* @see fl_utf_string_dynamic_prepend()
*/
#if !defined(_di_fl_utf_string_prepend_) || !defined(_di_fl_utf_string_dynamic_prepend_) || !defined(_di_fl_utf_string_append_mish_) || !defined(_di_fl_utf_string_dynamic_mish_)
- extern f_return_status private_fl_utf_string_prepend(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_utf_string_prepend(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_utf_string_prepend_) || !defined(_di_fl_utf_string_dynamic_prepend_) || !defined(_di_fl_utf_string_append_mish_) || !defined(_di_fl_utf_string_dynamic_mish_)
/**
* @see fl_utf_string_dynamic_prepend_nulless()
*/
#if !defined(_di_fl_utf_string_prepend_nulless_) || !defined(_di_fl_utf_string_dynamic_prepend_nulless_) || !defined(_di_fl_utf_string_append_mish_) || !defined(_di_fl_utf_string_dynamic_mish_)
- extern f_return_status private_fl_utf_string_prepend_nulless(const f_utf_string_t source, f_utf_string_length_t length, f_utf_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_utf_string_prepend_nulless(const f_utf_string_t source, f_utf_string_length_t length, f_utf_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_utf_string_prepend_nulless_) || !defined(_di_fl_utf_string_dynamic_prepend_nulless_) || !defined(_di_fl_utf_string_append_mish_) || !defined(_di_fl_utf_string_dynamic_mish_)
/**
* @see fl_utf_string_rip()
*/
#if !defined(_di_fl_utf_string_rip_) || !defined(_di_fl_utf_string_dynamic_rip_) || !defined(_di_fl_utf_string_rip_nulless_) || !defined(_di_fl_utf_string_dynamic_rip_nulless_)
- extern f_return_status private_fl_utf_string_rip_find_range(const f_utf_string_t source, f_utf_string_length_t *start, f_utf_string_length_t *stop) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_utf_string_rip_find_range(const f_utf_string_t source, f_utf_string_length_t *start, f_utf_string_length_t *stop) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_utf_string_rip_) || !defined(_di_fl_utf_string_dynamic_rip_) || !defined(_di_fl_utf_string_rip_nulless_) || !defined(_di_fl_utf_string_dynamic_rip_nulless_)
#ifdef __cplusplus
#endif
#ifndef _di_fl_utf_string_append_
- f_return_status fl_utf_string_append(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_append(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_append_
#ifndef _di_fl_utf_string_append_assure_
- f_return_status fl_utf_string_append_assure(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_append_assure(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_append_assure_
#ifndef _di_fl_utf_string_append_assure_nulless_
- f_return_status fl_utf_string_append_assure_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_append_assure_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_append_assure_nulless_
#ifndef _di_fl_utf_string_append_nulless_
- f_return_status fl_utf_string_append_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_append_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_append_nulless_
#ifndef _di_fl_utf_string_compare_
- f_return_status fl_utf_string_compare(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t length1, const f_utf_string_length_t length2) {
+ f_status_t fl_utf_string_compare(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t length1, const f_utf_string_length_t length2) {
return private_fl_utf_string_compare(string1, string2, 0, 0, length1, length2);
}
#endif // _di_fl_utf_string_compare_
#ifndef _di_fl_utf_string_compare_trim_
- f_return_status fl_utf_string_compare_trim(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t length1, const f_utf_string_length_t length2) {
+ f_status_t fl_utf_string_compare_trim(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t length1, const f_utf_string_length_t length2) {
return private_fl_utf_string_compare_trim(string1, string2, 0, 0, length1, length2);
}
#endif // _di_fl_utf_string_compare_trim_
#ifndef _di_fl_utf_string_dynamic_append_
- f_return_status fl_utf_string_dynamic_append(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_append(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_append_
#ifndef _di_fl_utf_string_dynamic_append_assure_
- f_return_status fl_utf_string_dynamic_append_assure(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_append_assure(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_append_assure_
#ifndef _di_fl_utf_string_dynamic_append_assure_nulless_
- f_return_status fl_utf_string_dynamic_append_assure_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_append_assure_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_append_assure_nulless_
#ifndef _di_fl_utf_string_dynamic_append_nulless_
- f_return_status fl_utf_string_dynamic_append_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_append_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_append_nulless_
#ifndef _di_fl_utf_string_dynamic_compare_
- f_return_status fl_utf_string_dynamic_compare(const f_utf_string_static_t string1, const f_utf_string_static_t string2) {
+ f_status_t fl_utf_string_dynamic_compare(const f_utf_string_static_t string1, const f_utf_string_static_t string2) {
return private_fl_utf_string_compare(string1.string, string2.string, 0, 0, string1.used, string2.used);
}
#endif // _di_fl_utf_string_dynamic_compare_
#ifndef _di_f_utf_string_dynamic_compare_trim_
- f_return_status f_utf_string_dynamic_compare_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2) {
+ f_status_t f_utf_string_dynamic_compare_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2) {
return private_fl_utf_string_compare_trim(string1.string, string2.string, 0, 0, string1.used, string2.used);
}
#endif // _di_f_utf_string_dynamic_compare_trim_
#ifndef _di_fl_utf_string_dynamic_mash_
- f_return_status fl_utf_string_dynamic_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_mash_
#ifndef _di_fl_utf_string_dynamic_mash_nulless_
- f_return_status fl_utf_string_dynamic_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_mash_nulless_
#ifndef _di_fl_utf_string_dynamic_mish_
- f_return_status fl_utf_string_dynamic_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_mish_
#ifndef _di_fl_utf_string_dynamic_mish_nulless_
- f_return_status fl_utf_string_dynamic_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_mish_nulless_
#ifndef _di_fl_utf_string_dynamic_partial_append_
- f_return_status fl_utf_string_dynamic_partial_append(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_append(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_append_
#ifndef _di_fl_utf_string_dynamic_partial_append_assure_
- f_return_status fl_utf_string_dynamic_partial_append_assure(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_append_assure(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_append_assure_
#ifndef _di_fl_utf_string_dynamic_partial_append_assure_nulless_
- f_return_status fl_utf_string_dynamic_partial_append_assure_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_append_assure_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_append_assure_nulless_
#ifndef _di_fl_utf_string_dynamic_partial_append_nulless_
- f_return_status fl_utf_string_dynamic_partial_append_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_append_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_append_nulless_
#ifndef _di_fl_utf_string_dynamic_partial_compare_
- f_return_status fl_utf_string_dynamic_partial_compare(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_utf_string_range_t range1, const f_utf_string_range_t range2) {
+ f_status_t fl_utf_string_dynamic_partial_compare(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_utf_string_range_t range1, const f_utf_string_range_t range2) {
#ifndef _di_level_1_parameter_checking_
if (string1.used <= range1.stop) return F_status_set_error(F_parameter);
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_compare_
#ifndef _di_fl_utf_string_dynamic_partial_compare_trim_
- f_return_status fl_utf_string_dynamic_partial_comparetrim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_utf_string_range_t range1, const f_utf_string_range_t range2) {
+ f_status_t fl_utf_string_dynamic_partial_comparetrim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_utf_string_range_t range1, const f_utf_string_range_t range2) {
#ifndef _di_level_1_parameter_checking_
if (string1.used <= range1.stop) return F_status_set_error(F_parameter);
if (string2.used <= range2.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_compare_trim_
#ifndef _di_fl_utf_string_dynamic_partial_mash_
- f_return_status fl_utf_string_dynamic_partial_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_mash_
#ifndef _di_fl_utf_string_dynamic_partial_mash_nulless_
- f_return_status fl_utf_string_dynamic_partial_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_mash_nulless_
#ifndef _di_fl_utf_string_dynamic_partial_mish_
- f_return_status fl_utf_string_dynamic_partial_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_mish_
#ifndef _di_fl_utf_string_dynamic_partial_mish_nulless_
- f_return_status fl_utf_string_dynamic_partial_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_mish_nulless_
#ifndef _di_fl_utf_string_dynamic_partial_prepend_
- f_return_status fl_utf_string_dynamic_partial_prepend(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_prepend(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_prepend_
#ifndef _di_fl_utf_string_dynamic_partial_prepend_assure_
- f_return_status fl_utf_string_dynamic_partial_prepend_assure(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_prepend_assure(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_prepend_assure_
#ifndef _di_fl_utf_string_dynamic_partial_prepend_assure_nulless_
- f_return_status fl_utf_string_dynamic_partial_prepend_assure_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_prepend_assure_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_prepend_assure_nulless_
#ifndef _di_fl_utf_string_dynamic_partial_prepend_nulless_
- f_return_status fl_utf_string_dynamic_partial_prepend_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_partial_prepend_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.stop) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_partial_prepend_nulless_
#ifndef _di_fl_utf_string_dynamic_prepend_
- f_return_status fl_utf_string_dynamic_prepend(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_prepend(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_prepend_
#ifndef _di_fl_utf_string_dynamic_prepend_assure_
- f_return_status fl_utf_string_dynamic_prepend_assure(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_prepend_assure(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_prepend_assure_
#ifndef _di_fl_utf_string_dynamic_prepend_assure_nulless_
- f_return_status fl_utf_string_dynamic_prepend_assure_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_prepend_assure_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_prepend_assure_nulless_
#ifndef _di_fl_utf_string_dynamic_prepend_nulless_
- f_return_status fl_utf_string_dynamic_prepend_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_prepend_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_dynamic_prepend_nulless_
#ifndef _di_fl_utf_string_dynamic_rip_
- f_return_status fl_utf_string_dynamic_rip(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_rip(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.start) return F_status_set_error(F_parameter);
if (source.used <= range.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_rip_
#ifndef _di_fl_utf_string_dynamic_rip_nulless_
- f_return_status fl_utf_string_dynamic_rip_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_rip_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (source.used <= range.start) return F_status_set_error(F_parameter);
if (source.used <= range.stop) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_rip_nulless_
#ifndef _di_fl_utf_string_dynamic_seek_line_to_
- f_return_status fl_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t seek_to_this) {
+ f_status_t fl_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_seek_line_to_
#ifndef _di_fl_utf_string_dynamic_seek_line_to_char_
- f_return_status fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const int8_t seek_to_this) {
+ f_status_t fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const int8_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_seek_line_to_character_
#ifndef _di_fl_utf_string_dynamic_seek_line_until_graph_
- f_return_status fl_utf_string_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t placeholder) {
+ f_status_t fl_utf_string_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_seek_line_until_graph_
#ifndef _di_fl_utf_string_dynamic_seek_line_until_non_graph_
- f_return_status fl_utf_string_dynamic_seek_line_until_non_graph(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t placeholder) {
+ f_status_t fl_utf_string_dynamic_seek_line_until_non_graph(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_seek_line_until_non_graph_
#ifndef _di_fl_utf_string_dynamic_seek_to_
- f_return_status fl_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t seek_to_this) {
+ f_status_t fl_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_seek_to_
#ifndef _di_fl_utf_string_dynamic_seek_to_char_
- f_return_status fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const int8_t seek_to_this) {
+ f_status_t fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const int8_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (buffer.used <= range->start) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_seek_to_char_
#ifndef _di_fl_utf_string_dynamic_terminate_
- f_return_status fl_utf_string_dynamic_terminate(f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_terminate(f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
if (destination->used > destination->size) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_terminate_
#ifndef _di_fl_utf_string_dynamic_terminate_after_
- f_return_status fl_utf_string_dynamic_terminate_after(f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_dynamic_terminate_after(f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
if (destination->used > destination->size) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_string_dynamic_terminate_after_
#ifndef _di_fl_utf_string_mash_
- f_return_status fl_utf_string_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_mash_
#ifndef _di_fl_utf_string_mash_nulless_
- f_return_status fl_utf_string_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_mash_nulless_
#ifndef _di_fl_utf_string_mish_
- f_return_status fl_utf_string_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_mish_
#ifndef _di_fl_utf_string_mish_nulless_
- f_return_status fl_utf_string_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_mish_nulless_
#ifndef _di_fl_utf_string_prepend_
- f_return_status fl_utf_string_prepend(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_prepend(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_prepend_
#ifndef _di_fl_utf_string_prepend_assure_
- f_return_status fl_utf_string_prepend_assure(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_prepend_assure(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_prepend_assure_
#ifndef _di_fl_utf_string_prepend_assure_nulless_
- f_return_status fl_utf_string_prepend_assure_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_prepend_assure_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_prepend_assure_nulless_
#ifndef _di_fl_utf_string_prepend_nulless_
- f_return_status fl_utf_string_prepend_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_prepend_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_prepend_nulless_
#ifndef _di_fl_utf_string_rip_
- f_return_status fl_utf_string_rip(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_rip(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_rip_
#ifndef _di_fl_utf_string_rip_nulless_
- f_return_status fl_utf_string_rip_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
+ f_status_t fl_utf_string_rip_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination) {
#ifndef _di_level_1_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_rip_nulless_
#ifndef _di_fl_utf_string_seek_line_to_
- f_return_status fl_utf_string_seek_line_to(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t seek_to_this) {
+ f_status_t fl_utf_string_seek_line_to(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_seek_line_to_
#ifndef _di_fl_utf_string_seek_line_to_char_
- f_return_status fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_utf_string_range_t *range, const int8_t seek_to_this) {
+ f_status_t fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_utf_string_range_t *range, const int8_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_seek_line_to_char_
#ifndef _di_fl_utf_string_seek_line_until_graph_
- f_return_status fl_utf_string_seek_line_until_graph(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t placeholder) {
+ f_status_t fl_utf_string_seek_line_until_graph(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_seek_line_until_graph_
#ifndef _di_fl_utf_string_seek_line_until_non_graph_
- f_return_status fl_utf_string_seek_line_until_non_graph(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t placeholder) {
+ f_status_t fl_utf_string_seek_line_until_non_graph(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t placeholder) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_seek_line_until_non_graph_
#ifndef _di_fl_utf_string_seek_to_
- f_return_status fl_utf_string_seek_to(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t seek_to_this) {
+ f_status_t fl_utf_string_seek_to(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
#endif // _di_fl_utf_string_seek_to_
#ifndef _di_fl_utf_string_seek_to_char_
- f_return_status fl_utf_string_seek_to_char(const f_utf_string_t string, f_utf_string_range_t *range, const int8_t seek_to_this) {
+ f_status_t fl_utf_string_seek_to_char(const f_utf_string_t string, f_utf_string_range_t *range, const int8_t seek_to_this) {
#ifndef _di_level_1_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
#endif // _di_level_1_parameter_checking_
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_append_
- extern f_return_status fl_utf_string_append(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_append(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_append_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_append_assure_
- extern f_return_status fl_utf_string_append_assure(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_append_assure(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_append_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_append_assure_nulless_
- extern f_return_status fl_utf_string_append_assure_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_append_assure_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_append_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_append_nulless_
- extern f_return_status fl_utf_string_append_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_append_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_append_nulless_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_utf_string_compare_
- extern f_return_status fl_utf_string_compare(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t length1, const f_utf_string_length_t length2);
+ extern f_status_t fl_utf_string_compare(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t length1, const f_utf_string_length_t length2);
#endif // _di_fl_utf_string_compare_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_fl_utf_string_compare_trim_
- extern f_return_status fl_utf_string_compare_trim(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t length1, const f_utf_string_length_t length2);
+ extern f_status_t fl_utf_string_compare_trim(const f_utf_string_t string1, const f_utf_string_t string2, const f_utf_string_length_t length1, const f_utf_string_length_t length2);
#endif // _di_fl_utf_string_compare_trim_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_append_
- extern f_return_status fl_utf_string_dynamic_append(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_append(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_append_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_append_assure_
- extern f_return_status fl_utf_string_dynamic_append_assure(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_append_assure(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_append_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_append_assure_nulless_
- extern f_return_status fl_utf_string_dynamic_append_assure_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_append_assure_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_append_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_append_nulless_
- extern f_return_status fl_utf_string_dynamic_append_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_append_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_append_nulless_
/**
* F_utf (with error bit) if a character in the string is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_dynamic_compare_
- extern f_return_status fl_utf_string_dynamic_compare(const f_utf_string_static_t string1, const f_utf_string_static_t string2);
+ extern f_status_t fl_utf_string_dynamic_compare(const f_utf_string_static_t string1, const f_utf_string_static_t string2);
#endif // _di_fl_utf_string_dynamic_compare_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_f_utf_string_dynamic_compare_trim_
- extern f_return_status f_utf_string_dynamic_compare_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2);
+ extern f_status_t f_utf_string_dynamic_compare_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2);
#endif // _di_f_utf_string_dynamic_compare_trim_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_mash_
- extern f_return_status fl_utf_string_dynamic_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_mash_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_mash_nulless_
- extern f_return_status fl_utf_string_dynamic_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_mash_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_mish_
- extern f_return_status fl_utf_string_dynamic_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_mish_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_mish_nulless_
- extern f_return_status fl_utf_string_dynamic_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_mish_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_append_
- extern f_return_status fl_utf_string_dynamic_partial_append(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_append(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_append_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_append_assure_
- extern f_return_status fl_utf_string_dynamic_partial_append_assure(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_append_assure(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_append_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_append_assure_nulless_
- extern f_return_status fl_utf_string_dynamic_partial_append_assure_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_append_assure_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_append_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_append_nulless_
- extern f_return_status fl_utf_string_dynamic_partial_append_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_append_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_append_nulless_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_utf_string_dynamic_partial_compare_
- extern f_return_status fl_utf_string_dynamic_partial_compare(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_utf_string_range_t range1, const f_utf_string_range_t range2);
+ extern f_status_t fl_utf_string_dynamic_partial_compare(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_utf_string_range_t range1, const f_utf_string_range_t range2);
#endif // _di_fl_utf_string_dynamic_partial_compare_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_fl_utf_string_dynamic_partial_compare_trim_
- extern f_return_status fl_utf_string_dynamic_partial_compare_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_utf_string_range_t range1, const f_utf_string_range_t range2);
+ extern f_status_t fl_utf_string_dynamic_partial_compare_trim(const f_utf_string_static_t string1, const f_utf_string_static_t string2, const f_utf_string_range_t range1, const f_utf_string_range_t range2);
#endif // _di_fl_utf_string_dynamic_partial_compare_trim_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_mash_
- extern f_return_status fl_utf_string_dynamic_partial_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_mash_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_mash_nulless_
- extern f_return_status fl_utf_string_dynamic_partial_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_mash_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_mish_
- extern f_return_status fl_utf_string_dynamic_partial_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_mish_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_mish_nulless_
- extern f_return_status fl_utf_string_dynamic_partial_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_mish_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_prepend_
- extern f_return_status fl_utf_string_dynamic_partial_prepend(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_prepend(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_prepend_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_prepend_assure_
- extern f_return_status fl_utf_string_dynamic_partial_prepend_assure(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_prepend_assure(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_prepend_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_prepend_assure_nulless_
- extern f_return_status fl_utf_string_dynamic_partial_prepend_assure_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_prepend_assure_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_prepend_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_partial_prepend_nulless_
- extern f_return_status fl_utf_string_dynamic_partial_prepend_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_partial_prepend_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_partial_prepend_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_prepend_
- extern f_return_status fl_utf_string_dynamic_prepend(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_prepend(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_prepend_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_prepend_assure_
- extern f_return_status fl_utf_string_dynamic_prepend_assure(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_prepend_assure(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_prepend_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_prepend_assure_nulless_
- extern f_return_status fl_utf_string_dynamic_prepend_assure_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_prepend_assure_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_prepend_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_prepend_nulless_
- extern f_return_status fl_utf_string_dynamic_prepend_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_prepend_nulless(const f_utf_string_static_t source, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_prepend_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_dynamic_rip_
- extern f_return_status fl_utf_string_dynamic_rip(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_rip(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_rip_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_utf_string_dynamic_rip_nulless_
- extern f_return_status fl_utf_string_dynamic_rip_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_rip_nulless(const f_utf_string_static_t source, const f_utf_string_range_t range, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_rip_nulless_
/**
* F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_dynamic_seek_line_to_
- extern f_return_status fl_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t seek_to_this);
+ extern f_status_t fl_utf_string_dynamic_seek_line_to(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t seek_to_this);
#endif // _di_fl_utf_string_dynamic_seek_line_to_
/**
* F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_seek_line_to_char_
- extern f_return_status fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const int8_t seek_to_this);
+ extern f_status_t fl_utf_string_dynamic_seek_line_to_char(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const int8_t seek_to_this);
#endif // _di_fl_utf_string_seek_line_to_char_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_fl_utf_string_dynamic_seek_line_until_graph_
- extern f_return_status fl_utf_string_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t placeholder);
+ extern f_status_t fl_utf_string_dynamic_seek_line_until_graph(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t placeholder);
#endif // _di_fl_utf_string_dynamic_seek_line_until_graph_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_fl_utf_string_dynamic_seek_line_until_non_graph_
- extern f_return_status fl_utf_string_dynamic_seek_line_until_non_graph(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t placeholder);
+ extern f_status_t fl_utf_string_dynamic_seek_line_until_non_graph(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t placeholder);
#endif // _di_fl_utf_string_dynamic_seek_line_until_non_graph_
/**
* F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_dynamic_seek_to_
- extern f_return_status fl_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t seek_to_this);
+ extern f_status_t fl_utf_string_dynamic_seek_to(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t seek_to_this);
#endif // _di_fl_utf_string_dynamic_seek_to_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_utf_string_dynamic_seek_to_char_
- extern f_return_status fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const int8_t seek_to_this);
+ extern f_status_t fl_utf_string_dynamic_seek_to_char(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const int8_t seek_to_this);
#endif // _di_fl_utf_string_dynamic_seek_to_char_
/**
* F_utf (with error bit) if character is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_dynamic_seek_to_utf_character_
- extern f_return_status fl_utf_string_dynamic_seek_to_utf_character(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t seek_to_this);
+ extern f_status_t fl_utf_string_dynamic_seek_to_utf_character(const f_utf_string_static_t buffer, f_utf_string_range_t *range, const f_utf_character_t seek_to_this);
#endif // _di_fl_utf_string_dynamic_seek_to_utf_character_
/**
* F_string_too_large (with error bit) if string is too large to fit into the buffer.
*/
#ifndef _di_fl_utf_string_dynamic_terminate_
- extern f_return_status fl_utf_string_dynamic_terminate(f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_terminate(f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_terminate_
/**
* F_string_too_large (with error bit) if string is too large to fit into the buffer.
*/
#ifndef _di_fl_utf_string_dynamic_terminate_after_
- extern f_return_status fl_utf_string_dynamic_terminate_after(f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_dynamic_terminate_after(f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_dynamic_terminate_after_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_mash_
- extern f_return_status fl_utf_string_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_mash(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_mash_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_mash_nulless_
- extern f_return_status fl_utf_string_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_mash_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_mash_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_mish_
- extern f_return_status fl_utf_string_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_mish(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_mish_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_mish_nulless_
- extern f_return_status fl_utf_string_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_mish_nulless(const f_utf_string_t glue, const f_utf_string_length_t glue_length, const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_mish_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_prepend_
- extern f_return_status fl_utf_string_prepend(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_prepend(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_prepend_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_prepend_assure_
- extern f_return_status fl_utf_string_prepend_assure(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_prepend_assure(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_prepend_assure_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_prepend_assure_nulless_
- extern f_return_status fl_utf_string_prepend_assure_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_prepend_assure_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_prepend_assure_nulless_
/**
* F_string_too_large (with error bit) if the combined string is too large.
*/
#ifndef _di_fl_utf_string_prepend_nulless_
- extern f_return_status fl_utf_string_prepend_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_prepend_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_prepend_nulless_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_fl_utf_string_rip_
- extern f_return_status fl_utf_string_rip(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_rip(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_rip_
/**
* @see f_utf_character_is_whitespace()
*/
#ifndef _di_fl_utf_string_rip_nulless_
- extern f_return_status fl_utf_string_rip_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
+ extern f_status_t fl_utf_string_rip_nulless(const f_utf_string_t source, const f_utf_string_length_t length, f_utf_string_dynamic_t *destination);
#endif // _di_fl_utf_string_rip_nulless_
/**
* F_parameter (with error bit) if a parameter is invalid.
*/
#ifndef _di_fl_utf_string_seek_line_to_
- extern f_return_status fl_utf_string_seek_line_to(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t seek_to_this);
+ extern f_status_t fl_utf_string_seek_line_to(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t seek_to_this);
#endif // _di_fl_utf_string_seek_line_to_
/**
* F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_seek_line_to_char_
- extern f_return_status fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_utf_string_range_t *range, const int8_t seek_to_this);
+ extern f_status_t fl_utf_string_seek_line_to_char(const f_utf_string_t string, f_utf_string_range_t *range, const int8_t seek_to_this);
#endif // _di_fl_utf_string_seek_line_to_char_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_fl_utf_string_seek_line_until_graph_
- extern f_return_status fl_utf_string_seek_line_until_graph(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t placeholder);
+ extern f_status_t fl_utf_string_seek_line_until_graph(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t placeholder);
#endif // _di_fl_utf_string_seek_line_until_graph_
/**
* @see f_utf_character_is_graph()
*/
#ifndef _di_fl_utf_string_seek_line_until_non_graph_
- extern f_return_status fl_utf_string_seek_line_until_non_graph(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t placeholder);
+ extern f_status_t fl_utf_string_seek_line_until_non_graph(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t placeholder);
#endif // _di_fl_utf_string_seek_line_until_non_graph_
/**
* F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_seek_to_
- extern f_return_status fl_utf_string_seek_to(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t seek_to_this);
+ extern f_status_t fl_utf_string_seek_to(const f_utf_string_t string, f_utf_string_range_t *range, const f_utf_character_t seek_to_this);
#endif // _di_fl_utf_string_seek_to_
/**
* F_utf (with error bit) if a character in the buffer is an invalid UTF-8 character.
*/
#ifndef _di_fl_utf_string_seek_to_character_
- extern f_return_status fl_utf_string_seek_to_char(const f_utf_string_t string, f_utf_string_range_t *range, const int8_t seek_to_this);
+ extern f_status_t fl_utf_string_seek_to_char(const f_utf_string_t string, f_utf_string_range_t *range, const int8_t seek_to_this);
#endif // _di_fl_utf_string__seek_to_character_
#ifdef __cplusplus
#endif // !defined(_di_fl_utf_file_read_) || !defined(_di_fl_utf_file_read_until_) || !defined(_di_fl_utf_file_read_range_)
#if !defined(_di_fl_utf_file_write_) || !defined(_di_fl_utf_file_write_until_) || !defined(fl_utf_file_write_range)
- f_return_status private_fl_utf_file_write_until(const f_file_t file, const f_utf_string_t string, const f_utf_string_length_t total, f_utf_string_length_t *written) {
+ f_status_t private_fl_utf_file_write_until(const f_file_t file, const f_utf_string_t string, const f_utf_string_length_t total, f_utf_string_length_t *written) {
*written = 0;
f_status_t status = F_none;
* @see fl_utf_file_write_until()
*/
#if !defined(_di_fl_utf_file_write_) || !defined(_di_fl_utf_file_write_until_) || !defined(_di_fl_utf_file_write_range_)
- extern f_return_status private_fl_utf_file_write_until(const f_file_t file, const f_utf_string_t string, const f_utf_string_length_t total, f_utf_string_length_t *written) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fl_utf_file_write_until(const f_file_t file, const f_utf_string_t string, const f_utf_string_length_t total, f_utf_string_length_t *written) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fl_utf_file_write_) || !defined(_di_fl_utf_file_write_until_) || !defined(_di_fl_utf_file_write_range_)
#ifdef __cplusplus
#endif
#ifndef _di_fl_utf_file_read_
- f_return_status fl_utf_file_read(const f_file_t file, f_utf_string_dynamic_t *buffer) {
+ f_status_t fl_utf_file_read(const f_file_t file, f_utf_string_dynamic_t *buffer) {
#ifndef _di_level_1_parameter_checking_
if (!file.size_read) return F_status_set_error(F_parameter);
if (buffer->used > buffer->size) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_file_read_
#ifndef _di_fl_utf_file_read_block_
- f_return_status fl_utf_file_read_block(const f_file_t file, f_utf_string_dynamic_t *buffer) {
+ f_status_t fl_utf_file_read_block(const f_file_t file, f_utf_string_dynamic_t *buffer) {
#ifndef _di_level_1_parameter_checking_
if (!file.size_read) return F_status_set_error(F_parameter);
if (buffer->used > buffer->size) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_file_read_block_
#ifndef _di_fl_utf_file_read_until_
- f_return_status fl_utf_file_read_until(const f_file_t file, const f_utf_string_length_t total, f_utf_string_dynamic_t *buffer) {
+ f_status_t fl_utf_file_read_until(const f_file_t file, const f_utf_string_length_t total, f_utf_string_dynamic_t *buffer) {
#ifndef _di_level_1_parameter_checking_
if (!file.size_read) return F_status_set_error(F_parameter);
if (buffer->used > buffer->size) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_file_read_until_
#ifndef _di_fl_utf_file_write_
- f_return_status fl_utf_file_write(const f_file_t file, const f_utf_string_static_t buffer, f_utf_string_length_t *written) {
+ f_status_t fl_utf_file_write(const f_file_t file, const f_utf_string_static_t buffer, f_utf_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_file_write_
#ifndef _di_fl_utf_file_write_block_
- f_return_status fl_utf_file_write_block(const f_file_t file, const f_utf_string_static_t buffer, f_utf_string_length_t *written) {
+ f_status_t fl_utf_file_write_block(const f_file_t file, const f_utf_string_static_t buffer, f_utf_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_file_write_block_
#ifndef _di_fl_utf_file_write_until_
- f_return_status fl_utf_file_write_until(const f_file_t file, const f_utf_string_static_t buffer, const f_utf_string_length_t total, f_utf_string_length_t *written) {
+ f_status_t fl_utf_file_write_until(const f_file_t file, const f_utf_string_static_t buffer, const f_utf_string_length_t total, f_utf_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
#endif // _di_fl_utf_file_write_until_
#ifndef _di_fl_utf_file_write_range_
- f_return_status fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t buffer, const f_utf_string_range_t range, f_utf_string_length_t *written) {
+ f_status_t fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t buffer, const f_utf_string_range_t range, f_utf_string_length_t *written) {
#ifndef _di_level_0_parameter_checking_
if (!file.size_write) return F_status_set_error(F_parameter);
if (buffer.used > buffer.size) return F_status_set_error(F_parameter);
* @see read()
*/
#ifndef _di_fl_utf_file_read_
- extern f_return_status fl_utf_file_read(const f_file_t file, f_utf_string_dynamic_t *buffer);
+ extern f_status_t fl_utf_file_read(const f_file_t file, f_utf_string_dynamic_t *buffer);
#endif // _di_fl_utf_file_read_
/**
* @see read()
*/
#ifndef _di_fl_utf_file_read_block_
- extern f_return_status fl_utf_file_read_block(const f_file_t file, f_utf_string_dynamic_t *buffer);
+ extern f_status_t fl_utf_file_read_block(const f_file_t file, f_utf_string_dynamic_t *buffer);
#endif // _di_fl_utf_file_read_block_
/**
* @see read()
*/
#ifndef _di_fl_utf_file_read_until_
- extern f_return_status fl_utf_file_read_until(const f_file_t file, const f_utf_string_length_t total, f_utf_string_dynamic_t *buffer);
+ extern f_status_t fl_utf_file_read_until(const f_file_t file, const f_utf_string_length_t total, f_utf_string_dynamic_t *buffer);
#endif // _di_fl_utf_file_read_until_
/**
* @see write()
*/
#ifndef _di_fl_utf_file_write_
- extern f_return_status fl_utf_file_write(const f_file_t file, const f_utf_string_static_t buffer, f_utf_string_length_t *written);
+ extern f_status_t fl_utf_file_write(const f_file_t file, const f_utf_string_static_t buffer, f_utf_string_length_t *written);
#endif // _di_fl_utf_file_write_
/**
* @see write()
*/
#ifndef _di_fl_utf_file_write_block_
- extern f_return_status fl_utf_file_write_block(const f_file_t file, const f_utf_string_static_t buffer, f_utf_string_length_t *written);
+ extern f_status_t fl_utf_file_write_block(const f_file_t file, const f_utf_string_static_t buffer, f_utf_string_length_t *written);
#endif // _di_fl_utf_file_write_block_
/**
* @see write()
*/
#ifndef _di_fl_utf_file_write_until_
- extern f_return_status fl_utf_file_write_until(const f_file_t file, const f_utf_string_static_t buffer, const f_utf_string_length_t total, f_utf_string_length_t *written);
+ extern f_status_t fl_utf_file_write_until(const f_file_t file, const f_utf_string_static_t buffer, const f_utf_string_length_t total, f_utf_string_length_t *written);
#endif // _di_fl_utf_file_write_until_
/**
* @see write()
*/
#ifndef _di_fl_utf_file_write_range_
- extern f_return_status fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t buffer, const f_utf_string_range_t range, f_utf_string_length_t *written);
+ extern f_status_t fl_utf_file_write_range(const f_file_t file, const f_utf_string_static_t buffer, const f_utf_string_range_t range, f_utf_string_length_t *written);
#endif // _di_fl_utf_file_write_range_
#ifdef __cplusplus
#endif
#ifndef _di_fll_control_group_prepare_
- f_return_status fll_control_group_prepare(const f_control_group_t control_group) {
+ f_status_t fll_control_group_prepare(const f_control_group_t control_group) {
f_status_t status = F_none;
if (control_group.path.used) {
* @see fl_directory_create()
*/
#ifndef _di_fll_control_group_prepare_
- extern f_return_status fll_control_group_prepare(const f_control_group_t control_group);
+ extern f_status_t fll_control_group_prepare(const f_control_group_t control_group);
#endif // _di_fll_control_group_prepare_
#ifdef __cplusplus
#endif
#ifndef _di_fll_environment_load_name_
- f_return_status fll_environment_load_name(const f_string_t name, const f_string_length_t length, f_string_maps_t *environment) {
+ f_status_t fll_environment_load_name(const f_string_t name, const f_string_length_t length, f_string_maps_t *environment) {
#ifndef _di_level_2_parameter_checking_
if (!name) return F_status_set_error(F_parameter);
if (!environment) return F_status_set_error(F_parameter);
#endif // _di_fll_environment_load_name_
#ifndef _di_fll_environment_load_names_
- f_return_status fll_environment_load_names(const f_string_dynamics_t names, f_string_maps_t *environment) {
+ f_status_t fll_environment_load_names(const f_string_dynamics_t names, f_string_maps_t *environment) {
#ifndef _di_level_2_parameter_checking_
if (!environment) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* @see fl_string_maps_increase_by()
*/
#ifndef _di_fll_environment_load_name_
- extern f_return_status fll_environment_load_name(const f_string_t name, const f_string_length_t length, f_string_maps_t *environment);
+ extern f_status_t fll_environment_load_name(const f_string_t name, const f_string_length_t length, f_string_maps_t *environment);
#endif // _di_fll_environment_load_name_
/**
* @see fl_string_maps_increase_by()
*/
#ifndef _di_fll_environment_load_names_
- extern f_return_status fll_environment_load_names(const f_string_dynamics_t names, f_string_maps_t *environment);
+ extern f_status_t fll_environment_load_names(const f_string_dynamics_t names, f_string_maps_t *environment);
#endif // _di_fll_environment_load_names_
#ifdef __cplusplus
#endif
#ifndef _di_fll_error_print_
- f_return_status fll_error_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback) {
+ f_status_t fll_error_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback) {
return private_fll_error_print(error, status, function, fallback);
}
#endif // _di_fll_error_print_
#ifndef _di_fll_error_file_print_
- f_return_status fll_error_file_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type) {
+ f_status_t fll_error_file_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type) {
const char *type_name = fll_error_file_type_string_file;
if (type == fll_error_file_type_directory) {
#endif // _di_fll_error_file_print_
#ifndef _di_fll_error_parameter_integer_print_
- f_return_status fll_error_parameter_integer_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t parameter, const f_string_t argument) {
+ f_status_t fll_error_parameter_integer_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t parameter, const f_string_t argument) {
if (status == F_data_not) {
if (error.verbosity != f_console_verbosity_quiet) {
* F_true is returned if the status code is unknown.
*/
#ifndef _di_fll_error_print_
- extern f_return_status fll_error_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback);
+ extern f_status_t fll_error_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback);
#endif // _di_fll_error_print_
/**
* F_false is returned on successful print of known errors.
*/
#ifndef _di_fll_error_file_print_
- extern f_return_status fll_error_file_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type);
+ extern f_status_t fll_error_file_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t name, const f_string_t operation, const uint8_t type);
#endif // _di_fll_error_file_print_
/**
* F_false is returned on successful print of known errors.
*/
#ifndef _di_fll_error_parameter_integer_print_
- extern f_return_status fll_error_parameter_integer_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t parameter, const f_string_t argument);
+ extern f_status_t fll_error_parameter_integer_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback, const f_string_t parameter, const f_string_t argument);
#endif // _di_fll_error_parameter_integer_print_
#ifdef __cplusplus
#endif
#if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
- f_return_status private_fll_error_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback) {
+ f_status_t private_fll_error_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback) {
if (status == F_array_too_large) {
if (error.verbosity != f_console_verbosity_quiet) {
* @see fll_error_file_print()
*/
#if !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
- extern f_return_status private_fll_error_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_error_print(const fll_error_print_t error, const f_status_t status, const f_string_t function, const bool fallback) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_error_print_) || !defined(_di_fll_error_file_print_) || !defined(_di_fll_error_number_print_)
/**
#endif
#ifndef _di_fll_execute_arguments_add_
- f_return_status fll_execute_arguments_add(const f_string_t source, const f_string_length_t length, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_add(const f_string_t source, const f_string_length_t length, f_string_dynamics_t *arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_add_
#ifndef _di_fll_execute_arguments_add_parameter_
- f_return_status fll_execute_arguments_add_parameter(const f_string_t prefix, const f_string_length_t prefix_length, const f_string_t name, const f_string_length_t name_length, const f_string_t value, const f_string_length_t value_length, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_add_parameter(const f_string_t prefix, const f_string_length_t prefix_length, const f_string_t name, const f_string_length_t name_length, const f_string_t value, const f_string_length_t value_length, f_string_dynamics_t *arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_add_parameter_
#ifndef _di_fll_execute_arguments_add_parameter_set_
- f_return_status fll_execute_arguments_add_parameter_set(const f_string_t prefix[], const f_string_length_t prefix_length[], const f_string_t name[], const f_string_length_t name_length[], const f_string_t value[], const f_string_length_t value_length[], const f_array_length_t size, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_add_parameter_set(const f_string_t prefix[], const f_string_length_t prefix_length[], const f_string_t name[], const f_string_length_t name_length[], const f_string_t value[], const f_string_length_t value_length[], const f_array_length_t size, f_string_dynamics_t *arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_add_parameter_set_
#ifndef _di_fll_execute_arguments_add_set_
- f_return_status fll_execute_arguments_add_set(const f_string_t source[], const f_string_length_t length[], const f_array_length_t size, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_add_set(const f_string_t source[], const f_string_length_t length[], const f_array_length_t size, f_string_dynamics_t *arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_add_set_
#ifndef _di_fll_execute_arguments_dynamic_add_
- f_return_status fll_execute_arguments_dynamic_add(const f_string_static_t source, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_dynamic_add(const f_string_static_t source, f_string_dynamics_t *arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_dynamic_add_
#ifndef _di_fll_execute_arguments_dynamic_add_parameter_
- f_return_status fll_execute_arguments_dynamic_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_dynamic_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t *arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_dynamic_add_parameter_
#ifndef _di_fll_execute_arguments_dynamic_add_parameter_set_
- f_return_status fll_execute_arguments_dynamic_add_parameter_set(const f_string_static_t prefix[], const f_string_static_t name[], const f_string_static_t value[], const f_array_length_t size, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_dynamic_add_parameter_set(const f_string_static_t prefix[], const f_string_static_t name[], const f_string_static_t value[], const f_array_length_t size, f_string_dynamics_t *arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_dynamic_add_parameter_set_
#ifndef _di_fll_execute_arguments_dynamic_add_set_
- f_return_status fll_execute_arguments_dynamic_add_set(const f_string_static_t source[], const f_array_length_t size, f_string_dynamics_t *arguments) {
+ f_status_t fll_execute_arguments_dynamic_add_set(const f_string_static_t source[], const f_array_length_t size, f_string_dynamics_t *arguments) {
#ifndef _di_level_2_parameter_checking_
if (!arguments) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_execute_arguments_dynamic_add_set_
#ifndef _di_fll_execute_into_
- f_return_status fll_execute_into(const f_string_t program, const f_string_statics_t arguments, const uint8_t option, int *result) {
+ f_status_t fll_execute_into(const f_string_t program, const f_string_statics_t arguments, const uint8_t option, int *result) {
#ifndef _di_level_2_parameter_checking_
if (!program && !arguments.used) return F_status_set_error(F_parameter);
if (!result) return F_status_set_error(F_parameter);
#endif // _di_fll_execute_into_
#ifndef _di_fll_execute_program_
- f_return_status fll_execute_program(const f_string_t program, const f_string_statics_t arguments, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result) {
+ f_status_t fll_execute_program(const f_string_t program, const f_string_statics_t arguments, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result) {
#ifndef _di_level_2_parameter_checking_
if (!program && !arguments.used) return F_status_set_error(F_parameter);
if (!result) return F_status_set_error(F_parameter);
* @see fl_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_add_
- extern f_return_status fll_execute_arguments_add(const f_string_t source, const f_string_length_t length, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_add(const f_string_t source, const f_string_length_t length, f_string_dynamics_t *arguments);
#endif // _di_fll_execute_arguments_add_
/**
* @see fl_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_add_parameter_
- extern f_return_status fll_execute_arguments_add_parameter(const f_string_t prefix, const f_string_length_t prefix_length, const f_string_t name, const f_string_length_t name_length, const f_string_t value, const f_string_length_t value_length, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_add_parameter(const f_string_t prefix, const f_string_length_t prefix_length, const f_string_t name, const f_string_length_t name_length, const f_string_t value, const f_string_length_t value_length, f_string_dynamics_t *arguments);
#endif // _di_fll_execute_arguments_add_parameter_
/**
* @see fl_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_add_parameter_set_
- extern f_return_status fll_execute_arguments_add_parameter_set(const f_string_t prefix[], const f_string_length_t prefix_length[], const f_string_t name[], const f_string_length_t name_length[], const f_string_t value[], const f_string_length_t value_length[], const f_array_length_t size, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_add_parameter_set(const f_string_t prefix[], const f_string_length_t prefix_length[], const f_string_t name[], const f_string_length_t name_length[], const f_string_t value[], const f_string_length_t value_length[], const f_array_length_t size, f_string_dynamics_t *arguments);
#endif // _di_fll_execute_arguments_add_parameter_set_
/**
* @see fl_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_add_set_
- extern f_return_status fll_execute_arguments_add_set(const f_string_t source[], const f_string_length_t length[], const f_array_length_t size, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_add_set(const f_string_t source[], const f_string_length_t length[], const f_array_length_t size, f_string_dynamics_t *arguments);
#endif // _di_fll_execute_arguments_add_set_
/**
* @see fl_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_dynamic_add_
- extern f_return_status fll_execute_arguments_dynamic_add(const f_string_static_t source, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_dynamic_add(const f_string_static_t source, f_string_dynamics_t *arguments);
#endif // _di_fll_execute_arguments_dynamic_add_
/**
* @see fl_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_dynamic_add_parameter_
- extern f_return_status fll_execute_arguments_dynamic_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_dynamic_add_parameter(const f_string_static_t prefix, const f_string_static_t name, const f_string_static_t value, f_string_dynamics_t *arguments);
#endif // _di_fll_execute_arguments_dynamic_add_parameter_
/**
* @see fl_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_dynamic_add_parameter_set_
- extern f_return_status fll_execute_arguments_dynamic_add_parameter_set(const f_string_static_t prefix[], const f_string_static_t name[], const f_string_static_t value[], const f_array_length_t size, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_dynamic_add_parameter_set(const f_string_static_t prefix[], const f_string_static_t name[], const f_string_static_t value[], const f_array_length_t size, f_string_dynamics_t *arguments);
#endif // _di_fll_execute_arguments_dynamic_add_parameter_set_
/**
* @see fl_string_dynamics_increase()
*/
#ifndef _di_fll_execute_arguments_dynamic_add_set_
- extern f_return_status fll_execute_arguments_dynamic_add_set(const f_string_static_t source[], const f_array_length_t size, f_string_dynamics_t *arguments);
+ extern f_status_t fll_execute_arguments_dynamic_add_set(const f_string_static_t source[], const f_array_length_t size, f_string_dynamics_t *arguments);
#endif // _di_fll_execute_arguments_dynamic_add_set_
/**
* @see strnlen()
*/
#ifndef _di_fll_execute_into_
- extern f_return_status fll_execute_into(const f_string_t program, const f_string_statics_t arguments, const uint8_t option, int *result);
+ extern f_status_t fll_execute_into(const f_string_t program, const f_string_statics_t arguments, const uint8_t option, int *result);
#endif // _di_fll_execute_into_
/**
* @see fl_string_dynamic_terminate()
*/
#ifndef _di_fll_execute_program_
- extern f_return_status fll_execute_program(const f_string_t program, const f_string_statics_t arguments, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result);
+ extern f_status_t fll_execute_program(const f_string_t program, const f_string_statics_t arguments, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result);
#endif // _di_fll_execute_program_
#ifdef __cplusplus
#endif
#if !defined(_di_fll_execute_arguments_add_) || !defined(_di_fll_execute_arguments_add_set_) || !defined(_di_fll_execute_arguments_dynamic_add_) || !defined(_di_fll_execute_arguments_dynamic_add_set_)
- f_return_status private_fll_execute_arguments_add(const f_string_t source, const f_string_length_t length, f_string_dynamics_t *arguments) {
+ f_status_t private_fll_execute_arguments_add(const f_string_t source, const f_string_length_t length, f_string_dynamics_t *arguments) {
f_status_t status = fl_string_dynamics_increase(arguments);
if (F_status_is_error(status)) return status;
#endif // !defined(_di_fll_execute_arguments_add_) || !defined(_di_fll_execute_arguments_add_set_) || !defined(_di_fll_execute_arguments_dynamic_add_) || !defined(_di_fll_execute_arguments_dynamic_add_set_)
#if !defined(_di_fll_execute_arguments_add_parameter_) || !defined(_di_fll_execute_arguments_add_parameter_set_) || !defined(_di_fll_execute_arguments_dynamic_add_parameter_) || !defined(_di_fll_execute_arguments_dynamic_add_parameter_set_)
- f_return_status private_fll_execute_arguments_add_parameter(const f_string_t prefix, const f_string_length_t prefix_length, const f_string_t name, const f_string_length_t name_length, const f_string_t value, const f_string_length_t value_length, f_string_dynamics_t *arguments) {
+ f_status_t private_fll_execute_arguments_add_parameter(const f_string_t prefix, const f_string_length_t prefix_length, const f_string_t name, const f_string_length_t name_length, const f_string_t value, const f_string_length_t value_length, f_string_dynamics_t *arguments) {
f_status_t status = fl_string_dynamics_increase(arguments);
if (F_status_is_error(status)) return status;
#endif // !defined(_di_fll_execute_arguments_add_parameter_) || !defined(_di_fll_execute_arguments_add_parameter_set_) || !defined(_di_fll_execute_arguments_dynamic_add_parameter_) || !defined(_di_fll_execute_arguments_dynamic_add_parameter_set_)
#if !defined(_di_fll_execute_program_)
- f_return_status private_fll_execute_as_child(const fl_execute_as_t as, fl_execute_parameter_t * const parameter, int *result) {
+ f_status_t private_fll_execute_as_child(const fl_execute_as_t as, fl_execute_parameter_t * const parameter, int *result) {
if (as.nice) {
errno = 0;
#endif // !defined(_di_fll_execute_program_)
#if !defined(_di_fll_execute_program_)
- f_return_status private_fll_execute_as_parent(const fl_execute_as_t as, const pid_t id_child, fl_execute_parameter_t * const parameter, char *result) {
+ f_status_t private_fll_execute_as_parent(const fl_execute_as_t as, const pid_t id_child, fl_execute_parameter_t * const parameter, char *result) {
if (as.affinity && as.affinity->used) {
cpu_set_t *set = CPU_ALLOC(as.affinity->used);
#endif // !defined(_di_fll_execute_program_)
#if !defined(_di_fll_execute_program_)
- f_return_status private_fll_execute_fork(const f_string_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result) {
+ f_status_t private_fll_execute_fork(const f_string_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result) {
int descriptors[2] = { -1, -1 };
#endif // !defined(_di_fll_execute_program_)
#if !defined(_di_fll_execute_program_)
- f_return_status private_fll_execute_fork_data(const f_string_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result) {
+ f_status_t private_fll_execute_fork_data(const f_string_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result) {
int descriptors[2] = { -1, -1 };
* @see fll_execute_arguments_dynamic_add_set()
*/
#if !defined(_di_fll_execute_arguments_add_) || !defined(_di_fll_execute_arguments_add_set_) || !defined(_di_fll_execute_arguments_dynamic_add_) || !defined(_di_fll_execute_arguments_dynamic_add_set_)
- extern f_return_status private_fll_execute_arguments_add(const f_string_t source, const f_string_length_t length, f_string_dynamics_t *arguments) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_execute_arguments_add(const f_string_t source, const f_string_length_t length, f_string_dynamics_t *arguments) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_execute_arguments_add_) || !defined(_di_fll_execute_arguments_add_set_) || !defined(_di_fll_execute_arguments_dynamic_add_) || !defined(_di_fll_execute_arguments_dynamic_add_set_)
/**
* @see fll_execute_arguments_dynamic_add_parameter_set()
*/
#if !defined(_di_fll_execute_arguments_add_parameter_) || !defined(_di_fll_execute_arguments_add_parameter_set_) || !defined(_di_fll_execute_arguments_dynamic_add_parameter_) || !defined(_di_fll_execute_arguments_dynamic_add_parameter_set_)
- extern f_return_status private_fll_execute_arguments_add_parameter(const f_string_t prefix, const f_string_length_t prefix_length, const f_string_t name, const f_string_length_t name_length, const f_string_t value, const f_string_length_t value_length, f_string_dynamics_t *arguments) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_execute_arguments_add_parameter(const f_string_t prefix, const f_string_length_t prefix_length, const f_string_t name, const f_string_length_t name_length, const f_string_t value, const f_string_length_t value_length, f_string_dynamics_t *arguments) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_execute_arguments_add_parameter_) || !defined(_di_fll_execute_arguments_add_parameter_set_) || !defined(_di_fll_execute_arguments_dynamic_add_parameter_) || !defined(_di_fll_execute_arguments_dynamic_add_parameter_set_)
/**
* @see fll_execute_program()
*/
#if !defined(_di_fll_execute_program_)
- extern f_return_status private_fll_execute_as_child(const fl_execute_as_t as, fl_execute_parameter_t * const parameter, int *result) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_execute_as_child(const fl_execute_as_t as, fl_execute_parameter_t * const parameter, int *result) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_execute_program_)
/**
* @see fll_execute_program()
*/
#if !defined(_di_fll_execute_program_)
- extern f_return_status private_fll_execute_as_parent(const fl_execute_as_t as, const pid_t id_child, fl_execute_parameter_t * const parameter, char *result) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_execute_as_parent(const fl_execute_as_t as, const pid_t id_child, fl_execute_parameter_t * const parameter, char *result) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_execute_program_)
/**
* @see fll_execute_program()
*/
#if !defined(_di_fll_execute_program_)
- extern f_return_status private_fll_execute_fork(const f_string_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_execute_fork(const f_string_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_execute_program_)
/**
* @see fll_execute_program()
*/
#if !defined(_di_fll_execute_program_)
- extern f_return_status private_fll_execute_fork_data(const f_string_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_execute_fork_data(const f_string_t program, const f_string_t fixed_arguments[], fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, int *result) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_execute_program_)
/**
#endif
#ifndef _di_fll_file_mode_set_all_
- f_return_status fll_file_mode_set_all(const f_string_t path, const mode_t mode, const f_number_unsigned_t depth_max) {
+ f_status_t fll_file_mode_set_all(const f_string_t path, const mode_t mode, const f_number_unsigned_t depth_max) {
#ifndef _di_level_2_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_file_mode_set_all_
#ifndef _di_fll_file_move_
- f_return_status fll_file_move(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const fl_directory_recurse_t recurse) {
+ f_status_t fll_file_move(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const fl_directory_recurse_t recurse) {
#ifndef _di_level_2_parameter_checking_
if (!source) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fll_file_move_
#ifndef _di_fll_file_role_change_all_
- f_return_status fll_file_role_change_all(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference, const f_number_unsigned_t depth_max) {
+ f_status_t fll_file_role_change_all(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference, const f_number_unsigned_t depth_max) {
#ifndef _di_level_2_parameter_checking_
if (!path) return F_status_set_error(F_parameter);
if (uid == -1 && gid == -1) return F_status_set_error(F_parameter);
* Errors (with error bit) from: fl_directory_list().
*/
#ifndef _di_fll_file_mode_set_all_
- extern f_return_status fll_file_mode_set_all(const f_string_t path, const mode_t mode, const f_number_unsigned_t depth_max);
+ extern f_status_t fll_file_mode_set_all(const f_string_t path, const mode_t mode, const f_number_unsigned_t depth_max);
#endif // _di_fll_file_mode_set_all_
/**
* @see fl_directory_clone()
*/
#ifndef _di_fll_file_move_
- extern f_return_status fll_file_move(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const fl_directory_recurse_t recurse);
+ extern f_status_t fll_file_move(const f_string_t source, const f_string_t destination, const f_string_length_t source_length, const f_string_length_t destination_length, const fl_directory_recurse_t recurse);
#endif // _di_fll_file_move_
/**
* Errors (with error bit) from: fl_directory_list().
*/
#ifndef _di_fll_file_role_change_all_
- extern f_return_status fll_file_role_change_all(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference, const f_number_unsigned_t depth_max);
+ extern f_status_t fll_file_role_change_all(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference, const f_number_unsigned_t depth_max);
#endif // _di_fll_file_role_change_all_
#ifdef __cplusplus
#endif
#if !defined(_di_fll_file_mode_set_all_)
- f_return_status private_fll_file_mode_set_all(const f_string_t path, const mode_t mode, const f_number_unsigned_t depth_max, const f_number_unsigned_t depth) {
+ f_status_t private_fll_file_mode_set_all(const f_string_t path, const mode_t mode, const f_number_unsigned_t depth_max, const f_number_unsigned_t depth) {
f_status_t status = F_none;
status = f_directory_is(path);
#endif // !defined(_di_fll_file_mode_set_all_)
#if !defined(_di_fll_file_role_change_all_)
- f_return_status private_fll_file_role_change_all(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference, const f_number_unsigned_t depth_max, const f_number_unsigned_t depth) {
+ f_status_t private_fll_file_role_change_all(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference, const f_number_unsigned_t depth_max, const f_number_unsigned_t depth) {
f_status_t status = F_none;
status = f_directory_is(path);
* F_failure (with error bit) for any other error.
*/
#if !defined(_di_fll_file_mode_set_all_)
- extern f_return_status private_fll_file_mode_set_all(const f_string_t path, const mode_t mode, const f_number_unsigned_t depth_max, const f_number_unsigned_t depth) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_file_mode_set_all(const f_string_t path, const mode_t mode, const f_number_unsigned_t depth_max, const f_number_unsigned_t depth) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_file_mode_set_all_)
/**
* F_failure (with error bit) for any other error.
*/
#if !defined(_di_fll_file_role_change_all_)
- extern f_return_status private_fll_file_role_change_all(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference, const f_number_unsigned_t depth_max, const f_number_unsigned_t depth) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_file_role_change_all(const f_string_t path, const uid_t uid, const gid_t gid, const bool dereference, const f_number_unsigned_t depth_max, const f_number_unsigned_t depth) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_file_role_change_all_)
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_identify_
- f_return_status fll_fss_identify(const f_string_static_t buffer, f_fss_header_t *header) {
+ f_status_t fll_fss_identify(const f_string_static_t buffer, f_fss_header_t *header) {
#ifndef _di_level_2_parameter_checking_
if (!header) return F_status_set_error(F_parameter);
if (!buffer.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_identify_
#ifndef _di_fll_fss_identify_file_
- f_return_status fll_fss_identify_file(f_file_t *file, f_fss_header_t *header) {
+ f_status_t fll_fss_identify_file(f_file_t *file, f_fss_header_t *header) {
#ifndef _di_level_2_parameter_checking_
if (!file) return F_status_set_error(F_parameter);
if (!header) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_identify_file_
#ifndef _di_fll_fss_snatch_
- f_return_status fll_fss_snatch(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_dynamic_t *values[], f_array_length_t *indexs[]) {
+ f_status_t fll_fss_snatch(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_dynamic_t *values[], f_array_length_t *indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_
#ifndef _di_fll_fss_snatch_apart_
- f_return_status fll_fss_snatch_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_dynamics_t *values[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_dynamics_t *values[], f_array_lengths_t *indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_apart_
#ifndef _di_fll_fss_snatch_map_
- f_return_status fll_fss_snatch_map(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_maps_t *values[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_map(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_maps_t *values[], f_array_lengths_t *indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_
#ifndef _di_fll_fss_snatch_map_apart_
- f_return_status fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_map_multis_t *values[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_map_multis_t *values[], f_array_lengths_t *indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_apart_
#ifndef _di_fll_fss_snatch_map_mash_
- f_return_status fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_maps_t *values[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_maps_t *values[], f_array_lengths_t *indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_mash_
#ifndef _di_fll_fss_snatch_map_mash_apart_
- f_return_status fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_map_multis_t *values[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_map_multis_t *values[], f_array_lengths_t *indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_mash_apart_
#ifndef _di_fll_fss_snatch_map_together_
- f_return_status fll_fss_snatch_map_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_maps_t *values[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_map_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_maps_t *values[], f_array_lengths_t *indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_map_together_
#ifndef _di_fll_fss_snatch_mash_
- f_return_status fll_fss_snatch_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamic_t *values[], f_array_length_t *indexs[]) {
+ f_status_t fll_fss_snatch_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamic_t *values[], f_array_length_t *indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_mash_
#ifndef _di_fll_fss_snatch_mash_apart_
- f_return_status fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamics_t *values[], f_array_lengths_t *indexs[]) {
+ f_status_t fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamics_t *values[], f_array_lengths_t *indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_snatch_mash_apart_
#ifndef _di_fll_fss_snatch_together_
- f_return_status fll_fss_snatch_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamic_t *values[], f_array_length_t *indexs[]) {
+ f_status_t fll_fss_snatch_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamic_t *values[], f_array_length_t *indexs[]) {
#ifndef _di_level_2_parameter_checking_
if (!size) return F_status_set_error(F_parameter);
if (objects.used != contents.used) return F_status_set_error(F_parameter);
* Errors (with error bit) from: fl_conversion_string_to_hexidecimal_unsigned().
*/
#ifndef _di_fll_fss_identify_
- extern f_return_status fll_fss_identify(const f_string_static_t buffer, f_fss_header_t *header);
+ extern f_status_t fll_fss_identify(const f_string_static_t buffer, f_fss_header_t *header);
#endif // _di_fll_fss_identify_
/**
* @see f_file_read_until()
*/
#ifndef _di_fll_fss_identify_file_
- extern f_return_status fll_fss_identify_file(f_file_t *file, f_fss_header_t *header);
+ extern f_status_t fll_fss_identify_file(f_file_t *file, f_fss_header_t *header);
#endif // _di_fll_fss_identify_file_
/**
* @see fl_string_dynamic_partial_append_nulless()
*/
#ifndef _di_fll_fss_snatch_
- extern f_return_status fll_fss_snatch(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_dynamic_t *values[], f_array_length_t *indexs[]);
+ extern f_status_t fll_fss_snatch(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_dynamic_t *values[], f_array_length_t *indexs[]);
#endif // _di_fll_fss_snatch_
/**
* @see fl_string_dynamic_partial_append_nulless()
*/
#ifndef _di_fll_fss_snatch_apart_
- extern f_return_status fll_fss_snatch_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_dynamics_t *values[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_dynamics_t *values[], f_array_lengths_t *indexs[]);
#endif // _di_fll_fss_snatch_apart_
/**
* @see fl_string_dynamic_partial_append_nulless()
*/
#ifndef _di_fll_fss_snatch_map_
- extern f_return_status fll_fss_snatch_map(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_maps_t *values[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_map(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_maps_t *values[], f_array_lengths_t *indexs[]);
#endif // _di_fll_fss_snatch_map_
/**
* @see fl_string_dynamic_partial_append_nulless()
*/
#ifndef _di_fll_fss_snatch_map_apart_
- extern f_return_status fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_map_multis_t *values[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_map_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, f_string_map_multis_t *values[], f_array_lengths_t *indexs[]);
#endif // _di_fll_fss_snatch_map_apart_
/**
* Errors (with error bit) from: fl_string_dynamic_partial_mash_nulless().
*/
#ifndef _di_fll_fss_snatch_map_mash_
- extern f_return_status fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_maps_t *values[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_map_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_maps_t *values[], f_array_lengths_t *indexs[]);
#endif // _di_fll_fss_snatch_map_mash_
/**
* @see fl_string_dynamic_partial_mash_nulless()
*/
#ifndef _di_fll_fss_snatch_map_mash_apart_
- extern f_return_status fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_map_multis_t *values[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_map_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_map_multis_t *values[], f_array_lengths_t *indexs[]);
#endif // _di_fll_fss_snatch_map_mash_apart_
/**
* @see fl_string_dynamic_partial_mash_nulless()
*/
#ifndef _di_fll_fss_snatch_map_together_
- extern f_return_status fll_fss_snatch_map_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_maps_t *values[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_map_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_maps_t *values[], f_array_lengths_t *indexs[]);
#endif // _di_fll_fss_snatch_map_together_
/**
* Errors (with error bit) from: fl_string_dynamic_partial_mash_nulless().
*/
#ifndef _di_fll_fss_snatch_mash_
- extern f_return_status fll_fss_snatch_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamic_t *values[], f_array_length_t *indexs[]);
+ extern f_status_t fll_fss_snatch_mash(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamic_t *values[], f_array_length_t *indexs[]);
#endif // _di_fll_fss_snatch_mash_
/**
* @see fl_string_dynamic_partial_mash_nulless()
*/
#ifndef _di_fll_fss_snatch_mash_apart_
- extern f_return_status fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamics_t *values[], f_array_lengths_t *indexs[]);
+ extern f_status_t fll_fss_snatch_mash_apart(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamics_t *values[], f_array_lengths_t *indexs[]);
#endif // _di_fll_fss_snatch_mash_apart_
/**
* @see fl_string_dynamic_partial_append_nulless()
*/
#ifndef _di_fll_fss_snatch_together_
- extern f_return_status fll_fss_snatch_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamic_t *values[], f_array_length_t *indexs[]);
+ extern f_status_t fll_fss_snatch_together(const f_string_static_t buffer, const f_fss_objects_t objects, const f_fss_contents_t contents, const f_string_t names[], const f_string_length_t lengths[], const f_string_length_t size, const f_string_t glue, const f_string_length_t glue_length, f_string_dynamic_t *values[], f_array_length_t *indexs[]);
#endif // _di_fll_fss_snatch_together_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_basic_read_
- f_return_status fll_fss_basic_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) {
+ f_status_t fll_fss_basic_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!objects) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_basic_read_
#ifndef _di_fll_fss_basic_write_string_
- f_return_status fll_fss_basic_write_string(const f_string_static_t object, const f_string_static_t content, const f_fss_quote_t quote, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_basic_write_string(const f_string_static_t object, const f_string_static_t content, const f_fss_quote_t quote, f_string_dynamic_t *destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* Errors (with error bit) from: fl_fss_basic_object_read().
*/
#ifndef _di_fll_fss_basic_read_
- extern f_return_status fll_fss_basic_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits);
+ extern f_status_t fll_fss_basic_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits);
#endif // _di_fll_fss_basic_read_
/**
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#ifndef _di_fll_fss_basic_write_string_
- extern f_return_status fll_fss_basic_write_string(const f_string_static_t object, const f_string_static_t content, const f_fss_quote_t quote, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_basic_write_string(const f_string_static_t object, const f_string_static_t content, const f_fss_quote_t quote, f_string_dynamic_t *destination);
#endif // _di_fll_fss_basic_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_basic_list_read_
- f_return_status fll_fss_basic_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
+ f_status_t fll_fss_basic_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!objects) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_basic_list_read_
#ifndef _di_fll_fss_basic_list_write_string_
- f_return_status fll_fss_basic_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_basic_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, f_string_dynamic_t *destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* Errors (with error bit) from: fl_fss_basic_list_object_read().
*/
#ifndef _di_fll_fss_basic_list_read_
- extern f_return_status fll_fss_basic_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments);
+ extern f_status_t fll_fss_basic_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments);
#endif // _di_fll_fss_basic_list_read_
/**
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#ifndef _di_fll_fss_basic_list_write_string_
- extern f_return_status fll_fss_basic_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_basic_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, f_string_dynamic_t *destination);
#endif // _di_fll_fss_basic_list_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_embedded_list_read_
- f_return_status fll_fss_embedded_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_nest_t *nest, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
+ f_status_t fll_fss_embedded_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_nest_t *nest, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!nest) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_embedded_list_read_
#ifndef _di_fll_fss_embedded_list_write_string_
- f_return_status fll_fss_embedded_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_embedded_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t *destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* Errors (with error bit) from: fl_fss_embedded_list_object_read().
*/
#ifndef _di_fll_fss_embedded_list_read_
- extern f_return_status fll_fss_embedded_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_nest_t *nest, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments);
+ extern f_status_t fll_fss_embedded_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_nest_t *nest, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments);
#endif // _di_fll_fss_embedded_list_read_
/**
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#ifndef _di_fll_fss_embedded_list_write_string_
- extern f_return_status fll_fss_embedded_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_embedded_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t *destination);
#endif // _di_fll_fss_embedded_list_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_extended_read_
- f_return_status fll_fss_extended_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_quotess_t *contents_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) {
+ f_status_t fll_fss_extended_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_quotess_t *contents_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!objects) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_extended_read_
#ifndef _di_fll_fss_extended_write_string_
- f_return_status fll_fss_extended_write_string(const f_string_static_t object, const f_string_statics_t contents, const f_fss_quote_t quote, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_extended_write_string(const f_string_static_t object, const f_string_statics_t contents, const f_fss_quote_t quote, f_string_dynamic_t *destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* Errors (with error bit) from: fl_fss_extended_object_read().
*/
#ifndef _di_fll_fss_extended_read_
- extern f_return_status fll_fss_extended_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_quotess_t *contents_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits);
+ extern f_status_t fll_fss_extended_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_quotes_t *objects_quoted, f_fss_quotess_t *contents_quoted, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits);
#endif // _di_fll_fss_extended_read_
/**
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#ifndef _di_fll_fss_extended_write_string_
- extern f_return_status fll_fss_extended_write_string(const f_string_static_t object, const f_string_statics_t contents, const f_fss_quote_t quote, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_extended_write_string(const f_string_static_t object, const f_string_statics_t contents, const f_fss_quote_t quote, f_string_dynamic_t *destination);
#endif // _di_fll_fss_extended_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_extended_list_read_
- f_return_status fll_fss_extended_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
+ f_status_t fll_fss_extended_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
#ifndef _di_level_2_parameter_checking_
if (!range) return F_status_set_error(F_parameter);
if (!objects) return F_status_set_error(F_parameter);
#endif // _di_fll_fss_extended_list_read_
#ifndef _di_fll_fss_extended_list_write_string_
- f_return_status fll_fss_extended_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t *destination) {
+ f_status_t fll_fss_extended_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t *destination) {
#ifndef _di_level_2_parameter_checking_
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* Errors (with error bit) from: fl_fss_extended_list_object_read().
*/
#ifndef _di_fll_fss_extended_list_read_
- extern f_return_status fll_fss_extended_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments);
+ extern f_status_t fll_fss_extended_list_read(const f_string_static_t buffer, f_string_range_t *range, f_fss_objects_t *objects, f_fss_contents_t *contents, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments);
#endif // _di_fll_fss_extended_list_read_
/**
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#ifndef _di_fll_fss_extended_list_write_string_
- extern f_return_status fll_fss_extended_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t *destination);
+ extern f_status_t fll_fss_extended_list_write_string(const f_string_static_t object, const f_string_static_t content, const f_string_static_t *content_prepend, const f_string_ranges_t *ignore, f_string_dynamic_t *destination);
#endif // _di_fll_fss_extended_list_write_string_
#ifdef __cplusplus
#endif
#ifndef _di_fll_fss_status_from_string_
- f_return_status fll_fss_status_from_string(const f_string_t string, f_status_t *code) {
+ f_status_t fll_fss_status_from_string(const f_string_t string, f_status_t *code) {
#ifndef _di_level_2_parameter_checking_
if (!code) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_fss_status_from_string_
#ifndef _di_fll_fss_status_to_string_
- f_return_status fll_fss_status_to_string(const f_status_t code, f_string_t *string) {
+ f_status_t fll_fss_status_to_string(const f_status_t code, f_string_t *string) {
#ifndef _di_level_2_parameter_checking_
if (!string) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
#endif // _di_fll_status_to_string_
#ifndef _di_fll_fss_status_is_error_
- f_return_status fll_fss_status_is_error(const f_status_t code) {
+ f_status_t fll_fss_status_is_error(const f_status_t code) {
if (fll_fss_status_is_fine(code) == F_true) {
return F_false;
#endif // _di_fll_fss_status_is_error_
#ifndef _di_fll_fss_status_is_warning_
- f_return_status fll_fss_status_is_warning(const f_status_t code) {
+ f_status_t fll_fss_status_is_warning(const f_status_t code) {
switch (code) {
#ifndef _di_fll_fss_status_basic_
#endif // _di_fll_fss_status_is_warning_
#ifndef _di_fll_fss_status_is_fine_
- f_return_status fll_fss_status_is_fine(const f_status_t code) {
+ f_status_t fll_fss_status_is_fine(const f_status_t code) {
switch (code) {
#ifndef _di_fll_fss_status_booleans_
* Errors (with error bit) from: f_conversion_character_is_decimal().
*/
#ifndef _di_fll_fss_status_from_string_
- extern f_return_status fll_fss_status_from_string(const f_string_t string, f_status_t *code);
+ extern f_status_t fll_fss_status_from_string(const f_string_t string, f_status_t *code);
#endif // _di_fll_fss_status_to_string_
/**
* @see fl_status_to_string()
*/
#ifndef _di_fll_fss_status_to_string_
- extern f_return_status fll_fss_status_to_string(const f_status_t code, f_string_t *string);
+ extern f_status_t fll_fss_status_to_string(const f_status_t code, f_string_t *string);
#endif // _di_fll_status_to_string_
/**
* F_false otherwise.
*/
#ifndef _di_fll_fss_status_is_error_
- extern f_return_status fll_fss_status_is_error(const f_status_t code);
+ extern f_status_t fll_fss_status_is_error(const f_status_t code);
#endif // _di_fll_fss_status_is_error_
/**
* F_false otherwise.
*/
#ifndef _di_fll_fss_status_is_warning_
- extern f_return_status fll_fss_status_is_warning(const f_status_t code);
+ extern f_status_t fll_fss_status_is_warning(const f_status_t code);
#endif // _di_fll_fss_status_is_warning_
/**
* F_false otherwise.
*/
#ifndef _di_fll_fss_status_is_fine_
- extern f_return_status fll_fss_status_is_fine(const f_status_t code);
+ extern f_status_t fll_fss_status_is_fine(const f_status_t code);
#endif // _di_fll_fss_status_is_fine_
#ifdef __cplusplus
#endif
#if !defined(_di_fll_fss_identify_) || !defined(_di_fll_fss_identify_file_)
- f_return_status private_fll_fss_identify(const f_string_static_t buffer, f_fss_header_t *header) {
+ f_status_t private_fll_fss_identify(const f_string_static_t buffer, f_fss_header_t *header) {
register f_string_length_t i = 0;
if (buffer.used < 10) {
* @see fll_fss_identify_file()
*/
#if !defined(_di_fll_fss_identify_) || !defined(_di_fll_fss_identify_file_)
- extern f_return_status private_fll_fss_identify(const f_string_static_t buffer, f_fss_header_t *header) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_fss_identify(const f_string_static_t buffer, f_fss_header_t *header) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_fss_identify_) || !defined(_di_fll_fss_identify_file_)
#ifdef __cplusplus
#endif
#ifndef _di_fll_iki_content_escape_
- f_return_status fll_iki_content_escape(const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *escaped) {
+ f_status_t fll_iki_content_escape(const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *escaped) {
#ifndef _di_level_2_parameter_checking_
if (content.used > content.size) return F_status_set_error(F_parameter);
if (quote != f_iki_syntax_quote_single && quote != f_iki_syntax_quote_double) return F_status_set_error(F_parameter);
#endif // _di_fll_iki_content_escape_
#ifndef _di_fll_iki_content_partial_escape_
- f_return_status fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *escaped) {
+ f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *escaped) {
#ifndef _di_level_2_parameter_checking_
if (content.used > content.size) return F_status_set_error(F_parameter);
if (range.start > range.stop) return F_status_set_error(F_parameter);
#endif // _di_fll_iki_content_partial_escape_
#ifndef _di_fll_iki_content_escape_un_
- f_return_status fll_iki_content_escape_un(const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *unescaped) {
+ f_status_t fll_iki_content_escape_un(const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *unescaped) {
#ifndef _di_level_2_parameter_checking_
if (content.used > content.size) return F_status_set_error(F_parameter);
if (quote != f_iki_syntax_quote_single && quote != f_iki_syntax_quote_double) return F_status_set_error(F_parameter);
#endif // _di_fll_iki_content_escape_un_
#ifndef _di_fll_iki_content_partial_escape_un_
- f_return_status fll_iki_content_partial_escape_un(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *unescaped) {
+ f_status_t fll_iki_content_partial_escape_un(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *unescaped) {
#ifndef _di_level_2_parameter_checking_
if (content.used > content.size) return F_status_set_error(F_parameter);
if (range.start > range.stop) return F_status_set_error(F_parameter);
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#ifndef _di_fll_iki_content_escape_
- extern f_return_status fll_iki_content_escape(const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *escaped);
+ extern f_status_t fll_iki_content_escape(const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *escaped);
#endif // _di_fll_iki_content_escape_
/**
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#ifndef _di_fll_iki_content_partial_escape_
- extern f_return_status fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *escaped);
+ extern f_status_t fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *escaped);
#endif // _di_fll_iki_content_partial_escape_
/**
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#ifndef _di_fll_iki_content_escape_un_
- extern f_return_status fll_iki_content_escape_un(const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *unescaped);
+ extern f_status_t fll_iki_content_escape_un(const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *unescaped);
#endif // _di_fll_iki_content_escape_un_
/**
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#ifndef _di_fll_iki_content_partial_escape_un_
- extern f_return_status fll_iki_content_partial_escape_un(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *unescaped);
+ extern f_status_t fll_iki_content_partial_escape_un(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *unescaped);
#endif // _di_fll_iki_content_partial_escape_un_
#ifdef __cplusplus
#endif
#if !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
- f_return_status private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *escaped) {
+ f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *escaped) {
f_status_t status = F_none;
// ensure escaped is at least the same size as content.
#endif // !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
#if !defined(_di_fll_iki_content_escape_un_) || !defined(_di_fll_iki_content_partial_escape_un_)
- f_return_status private_fll_iki_content_partial_escape_un(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *unescaped) {
+ f_status_t private_fll_iki_content_partial_escape_un(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *unescaped) {
f_status_t status = F_none;
// ensure escaped is at least the same size as content.
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#if !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
- extern f_return_status private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *escaped) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_iki_content_partial_escape(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *escaped) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_iki_content_escape_) || !defined(_di_fll_iki_content_partial_escape_)
/**
* Errors (with error bit) from: fl_string_dynamic_increase_by().
*/
#if !defined(_di_fll_iki_content_escape_un_) || !defined(_di_fll_iki_content_partial_escape_un_)
- extern f_return_status private_fll_iki_content_partial_escape_un(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *unescaped) f_gcc_attribute_visibility_internal;
+ extern f_status_t private_fll_iki_content_partial_escape_un(const f_string_static_t content, const f_string_range_t range, const uint8_t quote, f_string_dynamic_t *unescaped) f_gcc_attribute_visibility_internal;
#endif // !defined(_di_fll_iki_content_escape_un_) || !defined(_di_fll_iki_content_partial_escape_un_)
#ifdef __cplusplus
#endif
#ifndef _di_fll_path_canonical_
- f_return_status fll_path_canonical(const f_string_t path, f_string_dynamic_t *canonical) {
+ f_status_t fll_path_canonical(const f_string_t path, f_string_dynamic_t *canonical) {
#ifndef _di_level_2_parameter_checking_
if (!canonical) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* Errors (with error bit) from: fl_string_dynamic_terminate_after().
*/
#ifndef _di_fll_path_canonical_
- extern f_return_status fll_path_canonical(const f_string_t path, f_string_dynamic_t *canonical);
+ extern f_status_t fll_path_canonical(const f_string_t path, f_string_dynamic_t *canonical);
#endif // _di_fll_path_canonical_
#ifdef __cplusplus
#endif
#ifndef _di_fll_program_print_help_header_
- f_return_status fll_program_print_help_header(const f_file_t file, const f_color_context_t context, const f_string_t name, const f_string_t version) {
+ f_status_t fll_program_print_help_header(const f_file_t file, const f_color_context_t context, const f_string_t name, const f_string_t version) {
fprintf(file.stream, "%c", f_string_eol_s[0]);
fl_color_print(file.stream, context.set.title, " %s", name);
#endif // _di_fll_program_print_help_header_
#ifndef _di_fll_program_print_help_option_
- f_return_status fll_program_print_help_option(const f_file_t file, const f_color_context_t context, const f_string_t option_short, const f_string_t option_long, const f_string_t symbol_short, const f_string_t symbol_long, const f_string_t description) {
+ f_status_t fll_program_print_help_option(const f_file_t file, const f_color_context_t context, const f_string_t option_short, const f_string_t option_long, const f_string_t symbol_short, const f_string_t symbol_long, const f_string_t description) {
fprintf(file.stream, "%c %s", f_string_eol_s[0], symbol_short);
fl_color_print(file.stream, context.set.standout, option_short);
#endif // _di_fll_program_print_help_option_
#ifndef _di_fll_program_print_help_option_long_
- f_return_status fll_program_print_help_option_long(const f_file_t file, const f_color_context_t context, const f_string_t option_long, const f_string_t symbol_long, const f_string_t description) {
+ f_status_t fll_program_print_help_option_long(const f_file_t file, const f_color_context_t context, const f_string_t option_long, const f_string_t symbol_long, const f_string_t description) {
fprintf(file.stream, "%c %s", f_string_eol_s[0], symbol_long);
fl_color_print(file.stream, context.set.standout, option_long);
#endif // _di_fll_program_print_help_option_long_
#ifndef _di_fll_program_print_help_option_other_
- f_return_status fll_program_print_help_option_other(const f_file_t file, const f_color_context_t context, const f_string_t option_other, const f_string_t description) {
+ f_status_t fll_program_print_help_option_other(const f_file_t file, const f_color_context_t context, const f_string_t option_other, const f_string_t description) {
fprintf(file.stream, "%c ", f_string_eol_s[0]);
fl_color_print(file.stream, context.set.standout, option_other);
#endif // _di_fll_program_print_help_option_other_
#ifndef _di_fll_program_print_help_usage_
- f_return_status fll_program_print_help_usage(const f_file_t file, const f_color_context_t context, const f_string_t name, const f_string_t parameters) {
+ f_status_t fll_program_print_help_usage(const f_file_t file, const f_color_context_t context, const f_string_t name, const f_string_t parameters) {
fprintf(file.stream, "%c%c", f_string_eol_s[0], f_string_eol_s[0]);
fl_color_print(file.stream, context.set.important, " Usage:");
#endif // _di_fll_program_print_help_usage_
#ifndef _di_fll_program_print_version_
- f_return_status fll_program_print_version(const f_file_t file, const f_string_t version) {
+ f_status_t fll_program_print_version(const f_file_t file, const f_string_t version) {
fprintf(file.stream, "%s%c", version, f_string_eol_s[0]);
#endif // _di_fll_program_print_version_
#ifndef _di_fll_program_parameter_process_
- f_return_status fll_program_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t parameters, const f_console_parameter_ids_t choices, const bool right, f_string_lengths_t *remaining, f_color_context_t *context) {
+ f_status_t fll_program_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t parameters, const f_console_parameter_ids_t choices, const bool right, f_string_lengths_t *remaining, f_color_context_t *context) {
f_status_t status = F_none;
status = f_console_parameter_process(arguments, parameters, remaining);
#endif // _di_fll_program_parameter_process_
#ifndef _di_fll_program_parameter_additional_append_
- f_return_status fll_program_parameter_additional_append(const f_string_t *argv, const f_array_lengths_t values, f_string_dynamics_t *destination) {
+ f_status_t fll_program_parameter_additional_append(const f_string_t *argv, const f_array_lengths_t values, f_string_dynamics_t *destination) {
#ifndef _di_level_2_parameter_checking_
if (!argv) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fll_program_parameter_additional_append_
#ifndef _di_fll_program_parameter_additional_mash_
- f_return_status fll_program_parameter_additional_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t *argv, const f_array_lengths_t values, f_string_dynamic_t *destination) {
+ f_status_t fll_program_parameter_additional_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t *argv, const f_array_lengths_t values, f_string_dynamic_t *destination) {
#ifndef _di_level_2_parameter_checking_
if (!argv) return F_status_set_error(F_parameter);
if (glue_length < 1) return F_status_set_error(F_parameter);
#endif // _di_fll_program_parameter_additional_mash_
#ifndef _di_fll_program_parameter_additional_rip_
- f_return_status fll_program_parameter_additional_rip(const f_string_t *argv, const f_array_lengths_t values, f_string_dynamics_t *destination) {
+ f_status_t fll_program_parameter_additional_rip(const f_string_t *argv, const f_array_lengths_t values, f_string_dynamics_t *destination) {
#ifndef _di_level_2_parameter_checking_
if (!argv) return F_status_set_error(F_parameter);
if (!destination) return F_status_set_error(F_parameter);
#endif // _di_fll_program_parameter_additional_rip_
#ifndef _di_fll_program_parameter_additional_rip_mash_
- f_return_status fll_program_parameter_additional_rip_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t *argv, const f_array_lengths_t values, f_string_dynamic_t *destination) {
+ f_status_t fll_program_parameter_additional_rip_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t *argv, const f_array_lengths_t values, f_string_dynamic_t *destination) {
#ifndef _di_level_2_parameter_checking_
if (!argv) return F_status_set_error(F_parameter);
if (glue_length < 1) return F_status_set_error(F_parameter);
* @param fl_color_print()
*/
#ifndef _di_fll_program_print_help_header_
- extern f_return_status fll_program_print_help_header(const f_file_t file, const f_color_context_t context, const f_string_t name, const f_string_t version);
+ extern f_status_t fll_program_print_help_header(const f_file_t file, const f_color_context_t context, const f_string_t name, const f_string_t version);
#endif // _di_fll_program_print_help_header_
/**
* @param fl_color_print()
*/
#ifndef _di_fll_program_print_help_option_
- extern f_return_status fll_program_print_help_option(const f_file_t file, const f_color_context_t context, const f_string_t option_short, const f_string_t option_long, const f_string_t symbol_short, const f_string_t symbol_long, const f_string_t description);
+ extern f_status_t fll_program_print_help_option(const f_file_t file, const f_color_context_t context, const f_string_t option_short, const f_string_t option_long, const f_string_t symbol_short, const f_string_t symbol_long, const f_string_t description);
#endif // _di_fll_program_print_help_option_
/**
* @param fl_color_print()
*/
#ifndef _di_fll_program_print_help_option_long_
- extern f_return_status fll_program_print_help_option_long(const f_file_t file, const f_color_context_t context, const f_string_t option_long, const f_string_t symbol_long, const f_string_t description);
+ extern f_status_t fll_program_print_help_option_long(const f_file_t file, const f_color_context_t context, const f_string_t option_long, const f_string_t symbol_long, const f_string_t description);
#endif // _di_fll_program_print_help_option_long_
/**
* @param fl_color_print()
*/
#ifndef _di_fll_program_print_help_option_other_
- extern f_return_status fll_program_print_help_option_other(const f_file_t file, const f_color_context_t context, const f_string_t option_other, const f_string_t description);
+ extern f_status_t fll_program_print_help_option_other(const f_file_t file, const f_color_context_t context, const f_string_t option_other, const f_string_t description);
#endif // _di_fll_program_print_help_option_other_
/**
* @param fl_color_print()
*/
#ifndef _di_fll_program_print_help_usage_
- extern f_return_status fll_program_print_help_usage(const f_file_t file, const f_color_context_t context, const f_string_t name, const f_string_t parameters);
+ extern f_status_t fll_program_print_help_usage(const f_file_t file, const f_color_context_t context, const f_string_t name, const f_string_t parameters);
#endif // _di_fll_program_print_help_usage_
/**
* F_none on success.
*/
#ifndef _di_fll_program_print_version_
- extern f_return_status fll_program_print_version(const f_file_t file, const f_string_t version);
+ extern f_status_t fll_program_print_version(const f_file_t file, const f_string_t version);
#endif // _di_fll_program_print_version_
/**
* @see fl_color_load_context()
*/
#ifndef _di_fll_program_parameter_process_
- extern f_return_status fll_program_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t parameters, const f_console_parameter_ids_t choices, const bool right, f_string_lengths_t *remaining, f_color_context_t *context);
+ extern f_status_t fll_program_parameter_process(const f_console_arguments_t arguments, f_console_parameters_t parameters, const f_console_parameter_ids_t choices, const bool right, f_string_lengths_t *remaining, f_color_context_t *context);
#endif // _di_fll_program_parameter_process_
/**
* @see fl_string_append()
*/
#ifndef _di_fll_program_parameter_additional_append_
- extern f_return_status fll_program_parameter_additional_append(const f_string_t *argv, const f_array_lengths_t values, f_string_dynamics_t *destination);
+ extern f_status_t fll_program_parameter_additional_append(const f_string_t *argv, const f_array_lengths_t values, f_string_dynamics_t *destination);
#endif // _di_fll_program_parameter_additional_append_
/**
* @see fl_string_mash()
*/
#ifndef _di_fll_program_parameter_additional_mash_
- extern f_return_status fll_program_parameter_additional_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t *argv, const f_array_lengths_t values, f_string_dynamic_t *destination);
+ extern f_status_t fll_program_parameter_additional_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t *argv, const f_array_lengths_t values, f_string_dynamic_t *destination);
#endif // _di_fll_program_parameter_additional_mash_
/**
* @see fl_string_rip()
*/
#ifndef _di_fll_program_parameter_additional_rip_
- extern f_return_status fll_program_parameter_additional_rip(const f_string_t *argv, const f_array_lengths_t values, f_string_dynamics_t *destination);
+ extern f_status_t fll_program_parameter_additional_rip(const f_string_t *argv, const f_array_lengths_t values, f_string_dynamics_t *destination);
#endif // _di_fll_program_parameter_additional_rip_
/**
* @see fl_string_rip()
*/
#ifndef _di_fll_program_parameter_additional_rip_mash_
- extern f_return_status fll_program_parameter_additional_rip_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t *argv, const f_array_lengths_t values, f_string_dynamic_t *destination);
+ extern f_status_t fll_program_parameter_additional_rip_mash(const f_string_t glue, const f_string_length_t glue_length, const f_string_t *argv, const f_array_lengths_t values, f_string_dynamic_t *destination);
#endif // _di_fll_program_parameter_additional_rip_mash_
#ifdef __cplusplus
#endif
#ifndef _di_fll_status_from_string_
- f_return_status fll_status_from_string(const f_string_t string, f_status_t *code) {
+ f_status_t fll_status_from_string(const f_string_t string, f_status_t *code) {
#ifndef _di_level_2_parameter_checking_
if (!code) return F_status_set_error(F_parameter);
#endif // _di_level_2_parameter_checking_
* Errors (with error bit) from: f_conversion_character_is_decimal().
*/
#ifndef _di_fll_status_from_string_
- extern f_return_status fll_status_from_string(const f_string_t string, f_status_t *code);
+ extern f_status_t fll_status_from_string(const f_string_t string, f_status_t *code);
#endif // _di_fll_status_to_string_
#ifdef __cplusplus
#endif
#ifndef _di_byte_dump_print_help_
- f_return_status byte_dump_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t byte_dump_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, byte_dump_name_long, byte_dump_version);
#endif // _di_byte_dump_print_help_
#ifndef _di_byte_dump_main_
- f_return_status byte_dump_main(const f_console_arguments_t arguments, byte_dump_data_t *data) {
+ f_status_t byte_dump_main(const f_console_arguments_t arguments, byte_dump_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_byte_dump_main_
#ifndef _di_byte_dump_delete_data_
- f_return_status byte_dump_delete_data(byte_dump_data_t *data) {
+ f_status_t byte_dump_delete_data(byte_dump_data_t *data) {
for (f_string_length_t i = 0; i < byte_dump_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_byte_dump_print_help_
- extern f_return_status byte_dump_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t byte_dump_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_byte_dump_print_help_
/**
* @see byte_dump_delete_data()
*/
#ifndef _di_byte_dump_main_
- extern f_return_status byte_dump_main(const f_console_arguments_t arguments, byte_dump_data_t *data);
+ extern f_status_t byte_dump_main(const f_console_arguments_t arguments, byte_dump_data_t *data);
#endif // _di_byte_dump_main_
/**
* @see byte_dump_main()
*/
#ifndef _di_byte_dump_delete_data_
- extern f_return_status byte_dump_delete_data(byte_dump_data_t *data);
+ extern f_status_t byte_dump_delete_data(byte_dump_data_t *data);
#endif // _di_byte_dump_delete_data_
#ifdef __cplusplus
#endif
#ifndef _di_byte_dump_file_
- f_return_status byte_dump_file(const byte_dump_data_t data, const f_string_t file_name, const f_file_t file) {
+ f_status_t byte_dump_file(const byte_dump_data_t data, const f_string_t file_name, const f_file_t file) {
f_status_t status = F_none;
uint64_t position = 0;
* F_failure (with error bit) on failure, usually when read() fails.
*/
#ifndef _di_byte_dump_file_
- extern f_return_status byte_dump_file(const byte_dump_data_t data, const f_string_t file_name, const f_file_t file) f_gcc_attribute_visibility_internal;
+ extern f_status_t byte_dump_file(const byte_dump_data_t data, const f_string_t file_name, const f_file_t file) f_gcc_attribute_visibility_internal;
#endif // _di_byte_dump_file_
/**
#endif
#ifndef _di_control_print_help_
- f_return_status control_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t control_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, control_name_long, control_version);
#endif // _di_control_print_help_
#ifndef _di_control_main_
- f_return_status control_main(const f_console_arguments_t arguments, control_data_t *data) {
+ f_status_t control_main(const f_console_arguments_t arguments, control_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_control_main_
#ifndef _di_control_delete_data_
- f_return_status control_delete_data(control_data_t *data) {
+ f_status_t control_delete_data(control_data_t *data) {
for (f_string_length_t i = 0; i < control_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_control_print_help_
- extern f_return_status control_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t control_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_control_print_help_
/**
* @see control_delete_data()
*/
#ifndef _di_control_main_
- extern f_return_status control_main(const f_console_arguments_t arguments, control_data_t *data);
+ extern f_status_t control_main(const f_console_arguments_t arguments, control_data_t *data);
#endif // _di_control_main_
/**
* @see control_main()
*/
#ifndef _di_control_delete_data_
- extern f_return_status control_delete_data(control_data_t *data);
+ extern f_status_t control_delete_data(control_data_t *data);
#endif // _di_control_delete_data_
#ifdef __cplusplus
#endif
#ifndef _di_controller_print_help_
- f_return_status controller_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t controller_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, controller_name_long, controller_version);
#endif // _di_controller_print_help_
#ifndef _di_controller_main_
- f_return_status controller_main(const f_console_arguments_t arguments, controller_data_t *data) {
+ f_status_t controller_main(const f_console_arguments_t arguments, controller_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_controller_main_
#ifndef _di_controller_delete_data_
- f_return_status controller_delete_data(controller_data_t *data) {
+ f_status_t controller_delete_data(controller_data_t *data) {
for (f_string_length_t i = 0; i < controller_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_controller_print_help_
- extern f_return_status controller_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t controller_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_controller_print_help_
/**
* @see controller_delete_data()
*/
#ifndef _di_controller_main_
- extern f_return_status controller_main(const f_console_arguments_t arguments, controller_data_t *data);
+ extern f_status_t controller_main(const f_console_arguments_t arguments, controller_data_t *data);
#endif // _di_controller_main_
/**
* @see controller_main()
*/
#ifndef _di_controller_delete_data_
- extern f_return_status controller_delete_data(controller_data_t *data);
+ extern f_status_t controller_delete_data(controller_data_t *data);
#endif // _di_controller_delete_data_
#ifdef __cplusplus
f_capability_delete(&rule.capability); \
fl_control_group_delete(&rule.control_group); \
fl_type_int32s_delete(&rule.groups); \
- f_limit_sets_delete(&rule.limits); \
+ f_macro_limit_sets_t_delete_simple(rule.limits); \
controller_macro_rule_items_t_delete_simple(rule.items)
#endif // _di_controller_rule_t_
#endif
#ifndef _di_controller_string_dynamic_rip_nulless_terminated_
- f_return_status controller_string_dynamic_rip_nulless_terminated(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t controller_string_dynamic_rip_nulless_terminated(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
f_status_t status = fl_string_dynamic_rip_nulless(source, range, destination);
if (F_status_is_error(status)) return status;
#endif // _di_controller_string_dynamic_rip_nulless_terminated_
#ifndef _di_controller_string_dynamic_append_terminated_
- f_return_status controller_string_dynamic_append_terminated(const f_string_static_t source, f_string_dynamic_t *destination) {
+ f_status_t controller_string_dynamic_append_terminated(const f_string_static_t source, f_string_dynamic_t *destination) {
f_status_t status = fl_string_dynamic_append(source, destination);
if (F_status_is_error(status)) return status;
#endif // _di_controller_string_dynamic_append_terminated_
#ifndef _di_controller_string_dynamic_partial_append_terminated_
- f_return_status controller_string_dynamic_partial_append_terminated(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
+ f_status_t controller_string_dynamic_partial_append_terminated(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) {
f_status_t status = fl_string_dynamic_partial_append(source, range, destination);
if (F_status_is_error(status)) return status;
#endif // _di_controller_string_dynamic_partial_append_terminated_
#ifndef _di_controller_file_load_
- f_return_status controller_file_load(const controller_data_t data, const controller_setting_t setting, const f_string_t path_prefix, const f_string_static_t path_name, const f_string_t path_suffix, const f_string_length_t path_prefix_length, const f_string_length_t path_suffix_length, controller_cache_t *cache) {
+ f_status_t controller_file_load(const controller_data_t data, const controller_setting_t setting, const f_string_t path_prefix, const f_string_static_t path_name, const f_string_t path_suffix, const f_string_length_t path_prefix_length, const f_string_length_t path_suffix_length, controller_cache_t *cache) {
f_status_t status = F_none;
f_file_t file = f_file_t_initialize;
#endif // _di_controller_file_load_
#ifndef _di_controller_file_pid_create_
- f_return_status controller_file_pid_create(const controller_data_t data, const f_string_static_t path_pid) {
+ f_status_t controller_file_pid_create(const controller_data_t data, const f_string_static_t path_pid) {
f_status_t status = F_none;
// the file exists, do not attempt to overwrite.
#endif // _di_controller_file_pid_delete_
#ifndef _di_controller_get_id_user_
- f_return_status controller_get_id_user(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t *cache, uid_t *id) {
+ f_status_t controller_get_id_user(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t *cache, uid_t *id) {
f_number_unsigned_t number = 0;
// @todo fix argument ordering in fl_conversion_string_to_number_unsigned().
#endif // _di_controller_get_id_user_
#ifndef _di_controller_get_id_group_
- f_return_status controller_get_id_group(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t *cache, gid_t *id) {
+ f_status_t controller_get_id_group(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t *cache, gid_t *id) {
f_number_unsigned_t number = 0;
// @todo fix argument ordering in fl_conversion_string_to_number_unsigned().
#endif // _di_controller_get_id_group_
#ifndef _di_controller_perform_ready_
- f_return_status controller_perform_ready(const controller_data_t data, controller_setting_t *setting, controller_cache_t *cache) {
+ f_status_t controller_perform_ready(const controller_data_t data, controller_setting_t *setting, controller_cache_t *cache) {
f_status_t status = F_none;
// only create pid file when not in validate mode.
#endif // _di_controller_perform_ready_
#ifndef _di_controller_preprocess_entry_
- f_return_status controller_preprocess_entry(const controller_data_t data, controller_setting_t *setting, controller_cache_t *cache) {
+ f_status_t controller_preprocess_entry(const controller_data_t data, controller_setting_t *setting, controller_cache_t *cache) {
f_status_t status = F_none;
f_status_t status2 = F_none;
#endif // _di_controller_preprocess_entry_
#ifndef _di_controller_process_entry_
- f_return_status controller_process_entry(controller_data_t *data, controller_setting_t *setting, controller_cache_t *cache) {
+ f_status_t controller_process_entry(controller_data_t *data, controller_setting_t *setting, controller_cache_t *cache) {
f_status_t status = F_none;
f_array_length_t i = 0;
#endif // _di_controller_process_entry_
#ifndef _di_controller_status_simplify_
- f_return_status controller_status_simplify(const f_status_t status) {
+ f_status_t controller_status_simplify(const f_status_t status) {
if (status == F_memory_not || status == F_memory_allocation || status == F_memory_reallocation) {
return F_status_set_error(F_memory);
#endif // _di_controller_status_simplify_
#ifndef _di_controller_validate_define_name_
- f_return_status controller_validate_environment_name(const f_string_static_t name) {
+ f_status_t controller_validate_environment_name(const f_string_static_t name) {
if (!name.used) return F_none;
#endif // _di_controller_validate_define_name_
#ifndef _di_controller_validate_has_graph_
- f_return_status controller_validate_has_graph(const f_string_static_t name) {
+ f_status_t controller_validate_has_graph(const f_string_static_t name) {
if (!name.used) return F_none;
* @see fl_string_dynamic_terminate_after()
*/
#ifndef _di_controller_string_dynamic_rip_nulless_terminated_
- extern f_return_status controller_string_dynamic_rip_nulless_terminated(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_string_dynamic_rip_nulless_terminated(const f_string_static_t source, const f_string_range_t range, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // _di_controller_string_dynamic_rip_nulless_terminated_
/**
* @see fl_string_dynamic_terminate_after()
*/
#ifndef _di_controller_string_dynamic_append_terminated_
- extern f_return_status controller_string_dynamic_append_terminated(const f_string_static_t from, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_string_dynamic_append_terminated(const f_string_static_t from, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // _di_controller_string_dynamic_append_terminated_
/**
* @see fl_string_dynamic_terminate_after()
*/
#ifndef _di_controller_string_dynamic_partial_append_terminated_
- extern f_return_status controller_string_dynamic_partial_append_terminated(const f_string_static_t from, const f_string_range_t range, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_string_dynamic_partial_append_terminated(const f_string_static_t from, const f_string_range_t range, f_string_dynamic_t *destination) f_gcc_attribute_visibility_internal;
#endif // _di_controller_string_dynamic_partial_append_terminated_
/**
* @see fl_string_dynamic_terminate_after()
*/
#ifndef _di_controller_file_load_
- extern f_return_status controller_file_load(const controller_data_t data, const controller_setting_t setting, const f_string_t path_prefix, const f_string_static_t path_name, const f_string_t path_suffix, const f_string_length_t path_prefix_length, const f_string_length_t path_suffix_length, controller_cache_t *cache) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_file_load(const controller_data_t data, const controller_setting_t setting, const f_string_t path_prefix, const f_string_static_t path_name, const f_string_t path_suffix, const f_string_length_t path_prefix_length, const f_string_length_t path_suffix_length, controller_cache_t *cache) f_gcc_attribute_visibility_internal;
#endif // _di_controller_file_load_
/**
* @see f_file_stream_open()
*/
#ifndef _di_controller_file_pid_create_
- f_return_status controller_file_pid_create(const controller_data_t data, const f_string_static_t path_pid) f_gcc_attribute_visibility_internal;
+ f_status_t controller_file_pid_create(const controller_data_t data, const f_string_static_t path_pid) f_gcc_attribute_visibility_internal;
#endif // _di_controller_file_pid_create_
/**
* @see fl_conversion_string_to_number_unsigned()
*/
#ifndef _di_controller_get_id_user_
- f_return_status controller_get_id_user(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t *cache, uid_t *id) f_gcc_attribute_visibility_internal;
+ f_status_t controller_get_id_user(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t *cache, uid_t *id) f_gcc_attribute_visibility_internal;
#endif // _di_controller_get_id_user_
/**
* @see fl_conversion_string_to_number_unsigned()
*/
#ifndef _di_controller_get_id_group_
- f_return_status controller_get_id_group(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t *cache, gid_t *id) f_gcc_attribute_visibility_internal;
+ f_status_t controller_get_id_group(const f_string_static_t buffer, const f_string_range_t range, controller_cache_t *cache, gid_t *id) f_gcc_attribute_visibility_internal;
#endif // _di_controller_get_id_group_
/**
* @see controller_file_pid_create()
*/
#ifndef _di_controller_perform_ready_
- extern f_return_status controller_perform_ready(const controller_data_t data, controller_setting_t *setting, controller_cache_t *cache) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_perform_ready(const controller_data_t data, controller_setting_t *setting, controller_cache_t *cache) f_gcc_attribute_visibility_internal;
#endif // _di_controller_perform_ready_
/**
* @see fl_type_array_lengths_increase_by()
*/
#ifndef _di_controller_preprocess_entry_
- extern f_return_status controller_preprocess_entry(const controller_data_t data, controller_setting_t *setting, controller_cache_t *cache) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_preprocess_entry(const controller_data_t data, controller_setting_t *setting, controller_cache_t *cache) f_gcc_attribute_visibility_internal;
#endif // _di_controller_preprocess_entry_
/**
* @see fl_type_array_lengths_increase_by()
*/
#ifndef _di_controller_process_entry_
- extern f_return_status controller_process_entry(controller_data_t *data, controller_setting_t *setting, controller_cache_t *cache) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_process_entry(controller_data_t *data, controller_setting_t *setting, controller_cache_t *cache) f_gcc_attribute_visibility_internal;
#endif // _di_controller_process_entry_
/**
* A subset of status codes with error bit.
*/
#ifndef _di_controller_status_simplify_
- extern f_return_status controller_status_simplify(const f_status_t status) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_status_simplify(const f_status_t status) f_gcc_attribute_visibility_internal;
#endif // _di_controller_status_simplify_
/**
* @see f_utf_is_alpha_digit()
*/
#ifndef _di_controller_validate_define_name_
- extern f_return_status controller_validate_environment_name(const f_string_static_t name) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_validate_environment_name(const f_string_static_t name) f_gcc_attribute_visibility_internal;
#endif // _di_controller_validate_define_name_
/**
* @see f_utf_is_graph()
*/
#ifndef _di_controller_validate_has_graph_
- extern f_return_status controller_validate_has_graph(const f_string_static_t name) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_validate_has_graph(const f_string_static_t name) f_gcc_attribute_visibility_internal;
#endif // _di_controller_validate_has_graph_
#ifdef __cplusplus
#endif // _di_controller_entry_action_type_name_
#ifndef _di_controller_entry_actions_increase_by_
- f_return_status controller_entry_actions_increase_by(const f_array_length_t amount, controller_entry_actions_t *actions) {
+ f_status_t controller_entry_actions_increase_by(const f_array_length_t amount, controller_entry_actions_t *actions) {
if (actions->used + amount > actions->size) {
if (actions->used + amount > f_array_length_t_size) {
#endif // _di_controller_entry_actions_increase_by_
#ifndef _di_controller_entry_actions_read_
- f_return_status controller_entry_actions_read(const controller_data_t data, const controller_setting_t setting, const f_string_range_t content_range, controller_cache_t *cache, controller_entry_actions_t *actions) {
+ f_status_t controller_entry_actions_read(const controller_data_t data, const controller_setting_t setting, const f_string_range_t content_range, controller_cache_t *cache, controller_entry_actions_t *actions) {
f_status_t status = F_none;
f_status_t status_action = F_none;
#endif // _di_controller_entry_error_print_
#ifndef _di_controller_entry_items_increase_by_
- f_return_status controller_entry_items_increase_by(const f_array_length_t amount, controller_entry_items_t *items) {
+ f_status_t controller_entry_items_increase_by(const f_array_length_t amount, controller_entry_items_t *items) {
if (items->used + amount > items->size) {
if (items->used + amount > f_array_length_t_size) {
#endif // _di_controller_entry_items_increase_by_
#ifndef _di_controller_entry_read_
- f_return_status controller_entry_read(const controller_data_t data, const controller_setting_t setting, const f_string_static_t entry_name, controller_cache_t *cache, controller_entry_t *entry) {
+ f_status_t controller_entry_read(const controller_data_t data, const controller_setting_t setting, const f_string_static_t entry_name, controller_cache_t *cache, controller_entry_t *entry) {
f_status_t status = F_none;
entry->status = F_known_not;
* @see f_memory_resize()
*/
#ifndef _di_controller_entry_actions_increase_by_
- extern f_return_status controller_entry_actions_increase_by(const f_array_length_t amount, controller_entry_actions_t *actions) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_entry_actions_increase_by(const f_array_length_t amount, controller_entry_actions_t *actions) f_gcc_attribute_visibility_internal;
#endif // _di_controller_entry_actions_increase_by_
/**
* @see fll_fss_extended_read()
*/
#ifndef _di_controller_entry_actions_read_
- extern f_return_status controller_entry_actions_read(const controller_data_t data, const controller_setting_t setting, const f_string_range_t content_range, controller_cache_t *cache, controller_entry_actions_t *actions) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_entry_actions_read(const controller_data_t data, const controller_setting_t setting, const f_string_range_t content_range, controller_cache_t *cache, controller_entry_actions_t *actions) f_gcc_attribute_visibility_internal;
#endif // _di_controller_entry_actions_read_
/**
* @see f_memory_resize()
*/
#ifndef _di_controller_entry_items_increase_by_
- extern f_return_status controller_entry_items_increase_by(const f_array_length_t amount, controller_entry_items_t *items) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_entry_items_increase_by(const f_array_length_t amount, controller_entry_items_t *items) f_gcc_attribute_visibility_internal;
#endif // _di_controller_entry_items_increase_by_
/**
* @see fll_fss_basic_list_read()
*/
#ifndef _di_controller_entry_read_
- extern f_return_status controller_entry_read(const controller_data_t data, const controller_setting_t setting, const f_string_static_t entry_name, controller_cache_t *cache, controller_entry_t *entry) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_entry_read(const controller_data_t data, const controller_setting_t setting, const f_string_static_t entry_name, controller_cache_t *cache, controller_entry_t *entry) f_gcc_attribute_visibility_internal;
#endif // _di_controller_entry_read_
#ifdef __cplusplus
#endif // _di_controller_rule_action_method_name_
#ifndef _di_controller_rule_parameters_read_
- f_return_status controller_rule_parameters_read(const controller_data_t data, const f_string_static_t buffer, f_fss_object_t *object, f_fss_content_t *content, f_string_dynamics_t *parameters) {
+ f_status_t controller_rule_parameters_read(const controller_data_t data, const f_string_static_t buffer, f_fss_object_t *object, f_fss_content_t *content, f_string_dynamics_t *parameters) {
f_status_t status = F_none;
parameters->used = 0;
#endif // _di_controller_rule_action_type_name_
#ifndef _di_controller_rule_actions_increase_by_
- f_return_status controller_rule_actions_increase_by(const f_array_length_t amount, controller_rule_actions_t *actions) {
+ f_status_t controller_rule_actions_increase_by(const f_array_length_t amount, controller_rule_actions_t *actions) {
if (actions->used + amount > actions->size) {
if (actions->used + amount > f_array_length_t_size) {
#endif // _di_controller_rule_actions_increase_by_
#ifndef _di_controller_rule_action_read_
- f_return_status controller_rule_action_read(const controller_data_t data, const uint8_t type, const uint8_t method, controller_cache_t *cache, controller_rule_item_t *item, controller_rule_actions_t *actions, f_string_range_t *range) {
+ f_status_t controller_rule_action_read(const controller_data_t data, const uint8_t type, const uint8_t method, controller_cache_t *cache, controller_rule_item_t *item, controller_rule_actions_t *actions, f_string_range_t *range) {
f_status_t status = F_none;
if (method == controller_rule_action_method_extended_list) {
#endif // _di_controller_rule_error_print_need_want_wish_
#ifndef _di_controller_rule_execute_
- f_return_status controller_rule_execute(const controller_cache_t cache, const f_array_length_t index, const uint8_t type, const bool simulate, controller_data_t *data, controller_setting_t *setting) {
+ f_status_t controller_rule_execute(const controller_cache_t cache, const f_array_length_t index, const uint8_t type, const bool simulate, controller_data_t *data, controller_setting_t *setting) {
f_status_t status = F_none;
f_status_t success = F_false;
#endif // _di_controller_rule_execute_
#ifndef _di_controller_rule_execute_pid_with_
- f_return_status controller_rule_execute_pid_with(const uint8_t type, const controller_rule_action_t action, const bool simulate, const f_string_t program, const f_string_dynamics_t arguments, const uint8_t options, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, controller_data_t *data) {
+ f_status_t controller_rule_execute_pid_with(const uint8_t type, const controller_rule_action_t action, const bool simulate, const f_string_t program, const f_string_dynamics_t arguments, const uint8_t options, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, controller_data_t *data) {
f_status_t status = F_none;
int result = 0;
#endif // _di_controller_rule_execute_pid_with_
#ifndef _di_controller_rule_execute_foreground_
- f_return_status controller_rule_execute_foreground(const uint8_t type, const controller_rule_action_t action, const bool simulate, const f_string_t program, const f_string_dynamics_t arguments, const uint8_t options, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, controller_data_t *data) {
+ f_status_t controller_rule_execute_foreground(const uint8_t type, const controller_rule_action_t action, const bool simulate, const f_string_t program, const f_string_dynamics_t arguments, const uint8_t options, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, controller_data_t *data) {
f_status_t status = F_none;
int result = 0;
#endif // _di_controller_rule_find_loaded_
#ifndef _di_controller_rule_id_construct_
- f_return_status controller_rule_id_construct(const controller_data_t data, const f_string_static_t source, const f_string_range_t directory, const f_string_range_t basename, f_string_dynamic_t *id) {
+ f_status_t controller_rule_id_construct(const controller_data_t data, const f_string_static_t source, const f_string_range_t directory, const f_string_range_t basename, f_string_dynamic_t *id) {
f_status_t status = F_none;
id->used = 0;
#endif // _di_controller_rule_id_construct_
#ifndef _di_controller_rule_item_read_
- f_return_status controller_rule_item_read(const controller_data_t data, controller_cache_t *cache, controller_rule_item_t *item) {
+ f_status_t controller_rule_item_read(const controller_data_t data, controller_cache_t *cache, controller_rule_item_t *item) {
f_status_t status = F_none;
f_string_range_t range = f_macro_string_range_t_initialize(cache->buffer_item.used);
#endif // _di_controller_rule_item_type_name_
#ifndef _di_controller_rule_items_increase_by_
- f_return_status controller_rule_items_increase_by(const f_array_length_t amount, controller_rule_items_t *items) {
+ f_status_t controller_rule_items_increase_by(const f_array_length_t amount, controller_rule_items_t *items) {
if (items->used + amount > items->size) {
if (items->used + amount > f_array_length_t_size) {
#endif // _di_controller_rule_setting_limit_type_name_
#ifndef _di_controller_rule_path_
- f_return_status controller_rule_path(const controller_data_t data, const controller_setting_t setting, const f_string_static_t path_directory, const f_string_static_t path_name, f_string_dynamic_t *path) {
+ f_status_t controller_rule_path(const controller_data_t data, const controller_setting_t setting, const f_string_static_t path_directory, const f_string_static_t path_name, f_string_dynamic_t *path) {
f_status_t status = F_none;
path->used = 0;
#endif // _di_controller_rule_path_
#ifndef _di_controller_rule_process_
- f_return_status controller_rule_process(const f_array_length_t index, const uint8_t action, const uint8_t options, controller_data_t *data, controller_setting_t *setting, controller_cache_t *cache) {
+ f_status_t controller_rule_process(const f_array_length_t index, const uint8_t action, const uint8_t options, controller_data_t *data, controller_setting_t *setting, controller_cache_t *cache) {
switch (action) {
case controller_rule_action_type_freeze:
#endif // _di_controller_rule_process_
#ifndef _di_controller_rule_read_
- f_return_status controller_rule_read(const controller_data_t data, const controller_setting_t setting, const f_string_static_t rule_id, controller_cache_t *cache, controller_rule_t *rule) {
+ f_status_t controller_rule_read(const controller_data_t data, const controller_setting_t setting, const f_string_static_t rule_id, controller_cache_t *cache, controller_rule_t *rule) {
f_status_t status = F_none;
bool for_item = F_true;
#endif // _di_controller_rule_read_
#ifndef _di_controller_rule_setting_read_
- f_return_status controller_rule_setting_read(const controller_data_t data, const controller_setting_t setting, controller_cache_t *cache, controller_rule_t *rule) {
+ f_status_t controller_rule_setting_read(const controller_data_t data, const controller_setting_t setting, controller_cache_t *cache, controller_rule_t *rule) {
f_status_t status = F_none;
f_status_t status_return = F_none;
if (F_status_is_error(status)) continue;
- status = f_limit_sets_increase(&rule->limits);
+ f_macro_limit_sets_t_increase(status, rule->limits);
if (F_status_is_error(status)) {
fll_error_print(data.error, F_status_set_fine(status), "f_limit_sets_increase", F_true);
#endif // _di_controller_rule_simulate_
#ifndef _di_controller_rules_increase_
- f_return_status controller_rules_increase(controller_rules_t *rules) {
+ f_status_t controller_rules_increase(controller_rules_t *rules) {
if (rules->used + 1 > rules->size) {
f_array_length_t size = rules->used + controller_default_allocation_step;
* @see fl_string_dynamics_increase()
*/
#ifndef _di_controller_rule_parameters_read_
- extern f_return_status controller_rule_parameters_read(const controller_data_t data, const f_string_static_t buffer, f_fss_object_t *object, f_fss_content_t *content, f_string_dynamics_t *parameters) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_parameters_read(const controller_data_t data, const f_string_static_t buffer, f_fss_object_t *object, f_fss_content_t *content, f_string_dynamics_t *parameters) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_parameters_read_
/**
* Errors (with error bit) from: f_memory_resize().
*/
#ifndef _di_controller_rule_actions_increase_by_
- extern f_return_status controller_rule_actions_increase_by(const f_array_length_t amount, controller_rule_actions_t *actions) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_actions_increase_by(const f_array_length_t amount, controller_rule_actions_t *actions) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_actions_increase_by_
/**
* @see f_fss_count_lines()
*/
#ifndef _di_controller_rule_action_read_
- extern f_return_status controller_rule_action_read(const controller_data_t data, const uint8_t type, const uint8_t method, controller_cache_t *cache, controller_rule_item_t *item, controller_rule_actions_t *actions, f_string_range_t *range) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_action_read(const controller_data_t data, const uint8_t type, const uint8_t method, controller_cache_t *cache, controller_rule_item_t *item, controller_rule_actions_t *actions, f_string_range_t *range) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_action_read_
/**
* On failure, the individual status for the rule is set to an appropriate error status.
*/
#ifndef _di_controller_rule_execute_
- extern f_return_status controller_rule_execute(const controller_cache_t cache, const f_array_length_t index, const uint8_t type, const bool simulate, controller_data_t *data, controller_setting_t *setting) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_execute(const controller_cache_t cache, const f_array_length_t index, const uint8_t type, const bool simulate, controller_data_t *data, controller_setting_t *setting) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_execute_
/**
* @see fll_execute_program()
*/
#ifndef _di_controller_rule_execute_pid_with_
- extern f_return_status controller_rule_execute_pid_with(const uint8_t type, const controller_rule_action_t action, const bool simulate, const f_string_t program, const f_string_dynamics_t arguments, const uint8_t options, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, controller_data_t *data) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_execute_pid_with(const uint8_t type, const controller_rule_action_t action, const bool simulate, const f_string_t program, const f_string_dynamics_t arguments, const uint8_t options, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, controller_data_t *data) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_execute_pid_with_
/**
* @see fll_execute_program()
*/
#ifndef _di_controller_rule_execute_foreground_
- extern f_return_status controller_rule_execute_foreground(const uint8_t type, const controller_rule_action_t action, const bool simulate, const f_string_t program, const f_string_dynamics_t arguments, const uint8_t options, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, controller_data_t *data) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_execute_foreground(const uint8_t type, const controller_rule_action_t action, const bool simulate, const f_string_t program, const f_string_dynamics_t arguments, const uint8_t options, fl_execute_parameter_t * const parameter, fl_execute_as_t * const as, controller_data_t *data) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_execute_foreground_
/**
* @see fl_string_dynamic_terminate_after()
*/
#ifndef _di_controller_rule_id_construct_
- extern f_return_status controller_rule_id_construct(const controller_data_t data, const f_string_static_t source, const f_string_range_t directory, const f_string_range_t basename, f_string_dynamic_t *id) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_id_construct(const controller_data_t data, const f_string_static_t source, const f_string_range_t directory, const f_string_range_t basename, f_string_dynamic_t *id) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_id_construct_
/**
* @see fl_string_dynamic_terminate_after()
*/
#ifndef _di_controller_rule_item_read_
- extern f_return_status controller_rule_item_read(const controller_data_t data, controller_cache_t *cache, controller_rule_item_t *item) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_item_read(const controller_data_t data, controller_cache_t *cache, controller_rule_item_t *item) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_item_read_
/**
* @see f_memory_resize()
*/
#ifndef _di_controller_rule_items_increase_by_
- extern f_return_status controller_rule_items_increase_by(const f_array_length_t amount, controller_rule_items_t *items) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_items_increase_by(const f_array_length_t amount, controller_rule_items_t *items) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_items_increase_by_
/**
* @see fll_path_canonical()
*/
#ifndef _di_controller_rule_path_
- extern f_return_status controller_rule_path(const controller_data_t data, const controller_setting_t setting, const f_string_static_t path_directory, const f_string_static_t path_name, f_string_dynamic_t *path) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_path(const controller_data_t data, const controller_setting_t setting, const f_string_static_t path_directory, const f_string_static_t path_name, f_string_dynamic_t *path) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_path_
/**
* F_signal on (exit) signal received.
*/
#ifndef _di_controller_rule_process_
- extern f_return_status controller_rule_process(const f_array_length_t index, const uint8_t action, const uint8_t options, controller_data_t *data, controller_setting_t *setting, controller_cache_t *cache) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_process(const f_array_length_t index, const uint8_t action, const uint8_t options, controller_data_t *data, controller_setting_t *setting, controller_cache_t *cache) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_process_
/**
* @see fll_fss_basic_list_read().
*/
#ifndef _di_controller_rule_read_
- extern f_return_status controller_rule_read(const controller_data_t data, const controller_setting_t setting, const f_string_static_t rule_id, controller_cache_t *cache, controller_rule_t *rule) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_read(const controller_data_t data, const controller_setting_t setting, const f_string_static_t rule_id, controller_cache_t *cache, controller_rule_t *rule) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_read_
/**
* @see fll_path_canonical()
*/
#ifndef _di_controller_rule_setting_read_
- extern f_return_status controller_rule_setting_read(const controller_data_t data, const controller_setting_t setting, controller_cache_t *cache, controller_rule_t *rule) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rule_setting_read(const controller_data_t data, const controller_setting_t setting, controller_cache_t *cache, controller_rule_t *rule) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_setting_read_
/**
* @see f_memory_resize()
*/
#ifndef _di_controller_rules_increase_
- extern f_return_status controller_rules_increase(controller_rules_t *rules) f_gcc_attribute_visibility_internal;
+ extern f_status_t controller_rules_increase(controller_rules_t *rules) f_gcc_attribute_visibility_internal;
#endif // _di_controller_rule_increase_
#ifdef __cplusplus
#endif
#ifndef _di_fake_print_help_
- f_return_status fake_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fake_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fake_name_long, fake_version);
#endif // _di_fake_print_help_
#ifndef _di_fake_main_
- f_return_status fake_main(const f_console_arguments_t arguments, fake_data_t *data) {
+ f_status_t fake_main(const f_console_arguments_t arguments, fake_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fake_main_
#ifndef _di_fake_delete_data_
- f_return_status fake_delete_data(fake_data_t *data) {
+ f_status_t fake_delete_data(fake_data_t *data) {
for (f_string_length_t i = 0; i < fake_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fake_print_help_
- extern f_return_status fake_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fake_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fake_print_help_
/**
* @see fake_delete_data()
*/
#ifndef _di_fake_main_
- extern f_return_status fake_main(const f_console_arguments_t arguments, fake_data_t *data);
+ extern f_status_t fake_main(const f_console_arguments_t arguments, fake_data_t *data);
#endif // _di_fake_main_
/**
* @see fake_main()
*/
#ifndef _di_fake_delete_data_
- extern f_return_status fake_delete_data(fake_data_t *data);
+ extern f_status_t fake_delete_data(fake_data_t *data);
#endif // _di_fake_delete_data_
#ifdef __cplusplus
#endif // _di_fake_build_execute_process_script_
#ifndef _di_fake_build_get_file_name_without_extension_
- f_return_status fake_build_get_file_name_without_extension(const fake_data_t data, const f_string_static_t path, f_string_dynamic_t *name) {
+ f_status_t fake_build_get_file_name_without_extension(const fake_data_t data, const f_string_static_t path, f_string_dynamic_t *name) {
name->used = 0;
if (!path.used) return F_none;
#endif // _di_fake_build_objects_static_
#ifndef _di_fake_build_operate_
- f_return_status fake_build_operate(const f_string_static_t setting_file, fake_data_t *data) {
+ f_status_t fake_build_operate(const f_string_static_t setting_file, fake_data_t *data) {
if (fake_signal_received(*data)) {
return F_signal;
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_build_get_file_name_without_extension_
- extern f_return_status fake_build_get_file_name_without_extension(const fake_data_t data, const f_string_static_t path, f_string_dynamic_t *name);
+ extern f_status_t fake_build_get_file_name_without_extension(const fake_data_t data, const f_string_static_t path, f_string_dynamic_t *name);
#endif // _di_fake_build_get_file_name_without_extension_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_build_operate_
- extern f_return_status fake_build_operate(const f_string_static_t setting_file, fake_data_t *data) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_build_operate(const f_string_static_t setting_file, fake_data_t *data) f_gcc_attribute_visibility_internal;
#endif // _di_fake_build_operate_
/**
#endif
#ifndef _di_fake_clean_operate_
- f_return_status fake_clean_operate(const fake_data_t data) {
+ f_status_t fake_clean_operate(const fake_data_t data) {
f_status_t status = F_none;
if (data.error.verbosity != f_console_verbosity_quiet) {
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_clean_operate_
- extern f_return_status fake_clean_operate(const fake_data_t data) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_clean_operate(const fake_data_t data) f_gcc_attribute_visibility_internal;
#endif // _di_fake_clean_operate_
/**
#endif // _di_fake_execute_
#ifndef _di_fake_file_buffer_
- f_return_status fake_file_buffer(const fake_data_t data, const f_string_t path_file, f_string_dynamic_t *buffer) {
+ f_status_t fake_file_buffer(const fake_data_t data, const f_string_t path_file, f_string_dynamic_t *buffer) {
f_file_t file = f_file_t_initialize;
f_string_t name_function = "f_file_exists";
f_status_t status = F_none;
#endif // _di_fake_file_buffer_
#ifndef _di_fake_path_generate_
- f_return_status fake_path_generate(fake_data_t *data) {
+ f_status_t fake_path_generate(fake_data_t *data) {
f_status_t status = F_none;
uint8_t i = 0;
#endif // _di_fake_path_generate_
#ifndef _di_fake_path_generate_string_dynamic_
- f_return_status fake_path_generate_string_dynamic(fake_data_t *data, const f_string_dynamic_t source, f_string_dynamic_t *destination[], const uint8_t length) {
+ f_status_t fake_path_generate_string_dynamic(fake_data_t *data, const f_string_dynamic_t source, f_string_dynamic_t *destination[], const uint8_t length) {
f_status_t status = F_none;
for (uint8_t i = 0; i < length; i++) {
#endif // _di_fake_path_generate_string_dynamic_
#ifndef _di_fake_process_console_parameters_
- f_return_status fake_process_console_parameters(const f_console_arguments_t arguments, fake_data_t *data) {
+ f_status_t fake_process_console_parameters(const f_console_arguments_t arguments, fake_data_t *data) {
f_status_t status = F_none;
// @todo move as many of the inline error printing code into more general functions where possible to provide more accurate error reporting.
#endif // _di_fake_process_console_parameters_
#ifndef _di_fake_signal_read_
- f_return_status fake_signal_received(const fake_data_t data) {
+ f_status_t fake_signal_received(const fake_data_t data) {
if (!data.signal.id) {
return F_false;
#endif // _di_fake_signal_read_
#ifndef _di_fake_validate_directories_
- f_return_status fake_validate_parameter_directories(const f_console_arguments_t arguments, const fake_data_t data) {
+ f_status_t fake_validate_parameter_directories(const f_console_arguments_t arguments, const fake_data_t data) {
if (fake_signal_received(data)) {
return F_signal;
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_file_buffer_
- extern f_return_status fake_file_buffer(const fake_data_t data, const f_string_t path_file, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_file_buffer(const fake_data_t data, const f_string_t path_file, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
#endif // _di_fake_file_buffer_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_path_generate_
- extern f_return_status fake_path_generate(fake_data_t *data) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_path_generate(fake_data_t *data) f_gcc_attribute_visibility_internal;
#endif // _di_fake_path_generate_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_path_generate_string_dynamic_
- extern f_return_status fake_path_generate_string_dynamic(fake_data_t *data, const f_string_dynamic_t source, f_string_dynamic_t *destination[], const uint8_t size) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_path_generate_string_dynamic(fake_data_t *data, const f_string_dynamic_t source, f_string_dynamic_t *destination[], const uint8_t size) f_gcc_attribute_visibility_internal;
#endif // _di_fake_path_generate_string_dynamic_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_process_console_parameters_
- extern f_return_status fake_process_console_parameters(const f_console_arguments_t arguments, fake_data_t *data) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_process_console_parameters(const f_console_arguments_t arguments, fake_data_t *data) f_gcc_attribute_visibility_internal;
#endif // _di_validate_console_parameters_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_signal_read_
- extern f_return_status fake_signal_received(const fake_data_t data) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_signal_received(const fake_data_t data) f_gcc_attribute_visibility_internal;
#endif // _di_fake_signal_read_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_validate_parameter_directories_
- extern f_return_status fake_validate_parameter_directories(const f_console_arguments_t arguments, const fake_data_t data) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_validate_parameter_directories(const f_console_arguments_t arguments, const fake_data_t data) f_gcc_attribute_visibility_internal;
#endif // _di_fake_validate_parameter_directories_
/**
#endif
#ifndef _di_fake_make_assure_inside_project_
- f_return_status fake_make_assure_inside_project(const fake_data_t data, const f_string_static_t path, fake_make_data_t *data_make) {
+ f_status_t fake_make_assure_inside_project(const fake_data_t data, const f_string_static_t path, fake_make_data_t *data_make) {
data_make->path_cache.used = 0;
#endif // _di_fake_make_assure_inside_project_
#ifndef _di_fake_make_get_id_group_
- f_return_status fake_make_get_id_group(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, gid_t *id) {
+ f_status_t fake_make_get_id_group(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, gid_t *id) {
const f_string_range_t range = f_macro_string_range_t_initialize(buffer.used);
f_number_unsigned_t number = 0;
#endif // _di_fake_make_get_id_group_
#ifndef _di_fake_make_get_id_mode_
- f_return_status fake_make_get_id_mode(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, f_file_mode_t *mode, uint8_t *replace) {
+ f_status_t fake_make_get_id_mode(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, f_file_mode_t *mode, uint8_t *replace) {
if (!buffer.used) {
fll_error_print(error, F_parameter, "fake_make_get_id_mode", F_true);
return F_status_set_error(F_parameter);
#endif // _di_fake_make_get_id_mode_
#ifndef _di_fake_make_get_id_owner_
- f_return_status fake_make_get_id_owner(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, uid_t *id) {
+ f_status_t fake_make_get_id_owner(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, uid_t *id) {
const f_string_range_t range = f_macro_string_range_t_initialize(buffer.used);
f_number_unsigned_t number = 0;
*status = fl_string_dynamics_increase_by(f_memory_default_allocation_step, &data_make->setting_build.environment);
if (F_status_is_error(*status)) {
- fll_error_print(data.error, F_status_set_fine(*status), "fl_string_lengths_increase_by", F_true);
+ fll_error_print(data.error, F_status_set_fine(*status), "fl_string_dynamics_increase_by", F_true);
break;
}
}
#endif // _di_fake_make_load_parameters_
#ifndef _di_fake_make_operate_
- f_return_status fake_make_operate(fake_data_t *data) {
+ f_status_t fake_make_operate(fake_data_t *data) {
if (fake_signal_received(*data)) {
return F_signal;
*status = fl_string_dynamics_increase_by(f_memory_default_allocation_step, arguments);
if (F_status_is_error(*status)) {
- fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_lengths_increase_by", F_true);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_dynamics_increase_by", F_true);
return;
}
}
#endif // _di_fake_make_operate_expand_
#ifndef _di_fake_make_operate_expand_build_
- f_return_status fake_make_operate_expand_build(const fake_data_t data, const f_fss_quote_t quoted, const f_string_range_t range_name, fake_make_data_t *data_make, f_string_dynamics_t *arguments) {
+ f_status_t fake_make_operate_expand_build(const fake_data_t data, const f_fss_quote_t quoted, const f_string_range_t range_name, fake_make_data_t *data_make, f_string_dynamics_t *arguments) {
f_status_t status = F_none;
f_string_dynamic_t value = f_string_dynamic_t_initialize;
#endif // _di_fake_make_operate_expand_build_
#ifndef _di_fake_make_operate_expand_environment_
- f_return_status fake_make_operate_expand_environment(const fake_data_t data, const f_fss_quote_t quoted, const f_string_range_t range_name, fake_make_data_t *data_make, f_string_dynamics_t *arguments) {
+ f_status_t fake_make_operate_expand_environment(const fake_data_t data, const f_fss_quote_t quoted, const f_string_range_t range_name, fake_make_data_t *data_make, f_string_dynamics_t *arguments) {
f_status_t status = F_none;
f_string_dynamic_t value = f_string_dynamic_t_initialize;
// add the operation id to the operation stack.
if (section_stack->used + 1 > section_stack->size) {
- *status = fl_string_lengths_increase_by(f_memory_default_allocation_step, section_stack);
+ f_macro_string_lengths_t_increase_by((*status), (*section_stack), f_memory_default_allocation_step);
if (F_status_is_error(*status)) {
- fll_error_print(data_make->error, F_status_set_fine(*status), "fl_string_lengths_increase_by", F_true);
+ fll_error_print(data_make->error, F_status_set_fine(*status), "f_macro_string_lengths_t_increase_by", F_true);
return 0;
}
}
*status = fl_string_dynamics_increase_by(f_memory_default_allocation_step, &data_make->path.stack);
if (F_status_set_fine(*status) == F_array_too_large) {
- fake_print_message_section_operation_path_stack_max(*data, data_make->error, F_array_too_large, "fl_string_lengths_increase_by", "path stack");
+ fake_print_message_section_operation_path_stack_max(*data, data_make->error, F_array_too_large, "fl_string_dynamics_increase_by", "path stack");
return 0;
}
else if (F_status_is_error(*status)) {
#endif // _di_fake_make_operate_process_
#ifndef _di_fake_make_operate_process_execute_
- f_return_status fake_make_operate_process_execute(const fake_data_t data, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) {
+ f_status_t fake_make_operate_process_execute(const fake_data_t data, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) {
if (fake_signal_received(data)) {
return F_status_set_error(F_signal);
#endif // _di_fake_make_operate_process_return_
#ifndef _di_fake_make_operate_process_run_
- f_return_status fake_make_operate_process_run(const fake_data_t data, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) {
+ f_status_t fake_make_operate_process_run(const fake_data_t data, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) {
const f_string_static_t *program = &arguments.array[0];
f_status_t status = F_none;
#endif // _di_fake_make_operate_validate_
#ifndef _di_fake_make_operate_validate_define_name_
- f_return_status fake_make_operate_validate_define_name(const f_string_static_t name) {
+ f_status_t fake_make_operate_validate_define_name(const f_string_static_t name) {
if (!name.used) return F_none;
if (!(isalpha(name.string[0]) || name.string[0] == '_')) {
#endif // _di_fake_make_operate_validate_define_name_
#ifndef _di_fake_make_path_relative_
- f_return_status fake_make_path_relative(const fake_data_t data, const f_string_static_t path, fake_make_data_t *data_make) {
+ f_status_t fake_make_path_relative(const fake_data_t data, const f_string_static_t path, fake_make_data_t *data_make) {
data_make->path_cache.used = 0;
if (!path.used || path.used == data_make->path.stack.array[0].used) {
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_assure_inside_project_
- extern f_return_status fake_make_assure_inside_project(const fake_data_t data, const f_string_static_t path, fake_make_data_t *data_make) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_make_assure_inside_project(const fake_data_t data, const f_string_static_t path, fake_make_data_t *data_make) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_assure_inside_project_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_get_id_group_
- f_return_status fake_make_get_id_group(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, gid_t *id) f_gcc_attribute_visibility_internal;
+ f_status_t fake_make_get_id_group(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, gid_t *id) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_get_id_group_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_get_id_mode_
- f_return_status fake_make_get_id_mode(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, f_file_mode_t *mode, uint8_t *replace) f_gcc_attribute_visibility_internal;
+ f_status_t fake_make_get_id_mode(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, f_file_mode_t *mode, uint8_t *replace) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_get_id_mode_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_get_id_owner_
- f_return_status fake_make_get_id_owner(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, uid_t *id) f_gcc_attribute_visibility_internal;
+ f_status_t fake_make_get_id_owner(const fake_data_t data, const fll_error_print_t error, const f_string_static_t buffer, uid_t *id) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_get_id_owner_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_
- extern f_return_status fake_make_operate(fake_data_t *data) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_make_operate(fake_data_t *data) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_operate_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_expand_environment_
- extern f_return_status fake_make_operate_expand_environment(const fake_data_t data, const f_fss_quote_t quoted, const f_string_range_t range_name, fake_make_data_t *data_make, f_string_dynamics_t *arguments) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_make_operate_expand_environment(const fake_data_t data, const f_fss_quote_t quoted, const f_string_range_t range_name, fake_make_data_t *data_make, f_string_dynamics_t *arguments) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_operate_expand_environment_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_expand_build_
- extern f_return_status fake_make_operate_expand_build(const fake_data_t data, const f_fss_quote_t quoted, const f_string_range_t range_name, fake_make_data_t *data_make, f_string_dynamics_t *arguments) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_make_operate_expand_build(const fake_data_t data, const f_fss_quote_t quoted, const f_string_range_t range_name, fake_make_data_t *data_make, f_string_dynamics_t *arguments) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_operate_expand_build_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_process_execute_
- extern f_return_status fake_make_operate_process_execute(const fake_data_t data, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_make_operate_process_execute(const fake_data_t data, const f_string_static_t program, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_operate_process_execute_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_operate_process_run_
- extern f_return_status fake_make_operate_process_run(const fake_data_t data, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_make_operate_process_run(const fake_data_t data, const f_string_statics_t arguments, const bool as_shell, fake_make_data_t *data_make) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_operate_process_run_
/**
* F_none if there is no string to validate (used = 0).
*/
#ifndef _di_fake_make_operate_validate_define_name_
- extern f_return_status fake_make_operate_validate_define_name(const f_string_static_t name) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_make_operate_validate_define_name(const f_string_static_t name) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_operate_validate_define_name_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_make_path_relative_
- extern f_return_status fake_make_path_relative(const fake_data_t data, const f_string_static_t path, fake_make_data_t *data_make) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_make_path_relative(const fake_data_t data, const f_string_static_t path, fake_make_data_t *data_make) f_gcc_attribute_visibility_internal;
#endif // _di_fake_make_path_relative_
#ifdef __cplusplus
#endif
#ifndef _di_fake_skeleton_operate_
- f_return_status fake_skeleton_operate(const fake_data_t data) {
+ f_status_t fake_skeleton_operate(const fake_data_t data) {
if (fake_signal_received(data)) {
return F_signal;
#endif // _di_fake_skeleton_operate_
#ifndef _di_fake_skeleton_operate_directory_create_
- f_return_status fake_skeleton_operate_directory_create(const fake_data_t data, const f_string_dynamic_t path) {
+ f_status_t fake_skeleton_operate_directory_create(const fake_data_t data, const f_string_dynamic_t path) {
f_status_t status = F_none;
if (!path.used) return F_none;
#endif // _di_fake_skeleton_operate_directory_create_
#ifndef _di_fake_skeleton_operate_file_create_
- f_return_status fake_skeleton_operate_file_create(const fake_data_t data, const f_string_dynamic_t path, const bool executable, const f_string_static_t content) {
+ f_status_t fake_skeleton_operate_file_create(const fake_data_t data, const f_string_dynamic_t path, const bool executable, const f_string_static_t content) {
f_status_t status = F_none;
if (!path.used) return F_none;
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_skeleton_operate_
- extern f_return_status fake_skeleton_operate(const fake_data_t data) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_skeleton_operate(const fake_data_t data) f_gcc_attribute_visibility_internal;
#endif // _di_fake_skeleton_operate_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_skeleton_operate_directory_create_
- extern f_return_status fake_skeleton_operate_directory_create(const fake_data_t data, const f_string_dynamic_t path) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_skeleton_operate_directory_create(const fake_data_t data, const f_string_dynamic_t path) f_gcc_attribute_visibility_internal;
#endif // _di_fake_skeleton_operate_directory_create_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fake_skeleton_operate_file_create_
- extern f_return_status fake_skeleton_operate_file_create(const fake_data_t data, const f_string_dynamic_t path, const bool executable, const f_string_static_t content) f_gcc_attribute_visibility_internal;
+ extern f_status_t fake_skeleton_operate_file_create(const fake_data_t data, const f_string_dynamic_t path, const bool executable, const f_string_static_t content) f_gcc_attribute_visibility_internal;
#endif // _di_fake_skeleton_operate_file_create_
#ifdef __cplusplus
#endif
#ifndef _di_firewall_print_help_
- f_return_status firewall_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t firewall_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, firewall_name_long, firewall_version);
#endif // _di_firewall_print_help_
#ifndef _di_firewall_main_
- f_return_status firewall_main(const f_console_arguments_t arguments, firewall_data_t *data) {
+ f_status_t firewall_main(const f_console_arguments_t arguments, firewall_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_firewall_main_
#ifndef _di_firewall_delete_data_
- f_return_status firewall_delete_data(firewall_data_t *data) {
+ f_status_t firewall_delete_data(firewall_data_t *data) {
for (f_string_length_t i = 0; i < firewall_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_firewall_print_help_
- extern f_return_status firewall_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t firewall_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_firewall_print_help_
/**
* @see firewall_delete_data()
*/
#ifndef _di_firewall_main_
- extern f_return_status firewall_main(const f_console_arguments_t arguments, firewall_data_t *data);
+ extern f_status_t firewall_main(const f_console_arguments_t arguments, firewall_data_t *data);
#endif // _di_firewall_main_
/**
* @see firewall_main()
*/
#ifndef _di_firewall_delete_data_
- extern f_return_status firewall_delete_data(firewall_data_t *data);
+ extern f_status_t firewall_delete_data(firewall_data_t *data);
#endif // _di_firewall_delete_data_
#ifdef __cplusplus
extern "C" {
#endif
-f_return_status firewall_perform_commands(const firewall_local_data_t local, const firewall_data_t data) {
+f_status_t firewall_perform_commands(const firewall_local_data_t local, const firewall_data_t data) {
f_status_t status = F_none;
f_string_length_t i = 0;
return status;
}
-f_return_status firewall_create_custom_chains(firewall_reserved_chains_t *reserved, firewall_local_data_t *local, firewall_data_t *data) {
+f_status_t firewall_create_custom_chains(firewall_reserved_chains_t *reserved, firewall_local_data_t *local, firewall_data_t *data) {
f_status_t status = F_none;
uint8_t tool = firewall_program_iptables;
return status;
}
-f_return_status firewall_delete_chains(const firewall_data_t data) {
+f_status_t firewall_delete_chains(const firewall_data_t data) {
const f_string_t tools[2] = { firewall_tool_iptables, firewall_tool_ip6tables };
f_status_t status = F_none;
return status;
}
-f_return_status firewall_default_lock(const firewall_data_t data) {
+f_status_t firewall_default_lock(const firewall_data_t data) {
const f_string_t chains[3] = { firewall_chain_input, firewall_chain_output, firewall_chain_forward };
const f_string_t tools[2] = { firewall_tool_iptables, firewall_tool_ip6tables };
return status;
}
-f_return_status firewall_buffer_rules(const f_string_t filename, const bool optional, firewall_local_data_t *local, firewall_data_t *data) {
+f_status_t firewall_buffer_rules(const f_string_t filename, const bool optional, firewall_local_data_t *local, firewall_data_t *data) {
f_file_t file = f_file_t_initialize;
f_status_t status = f_file_open(filename, 0, &file);
return status;
}
-f_return_status firewall_process_rules(f_string_range_t *range, firewall_local_data_t *local, firewall_data_t *data) {
+f_status_t firewall_process_rules(f_string_range_t *range, firewall_local_data_t *local, firewall_data_t *data) {
f_fss_delimits_t delimits = f_fss_delimits_t_initialize;
f_status_t status = fll_fss_extended_read(local->buffer, range, &local->rule_objects, &local->rule_contents, 0, 0, &delimits, 0);
return status;
}
-f_return_status firewall_delete_local_data(firewall_local_data_t *local) {
+f_status_t firewall_delete_local_data(firewall_local_data_t *local) {
f_status_t status = F_none;
local->is_global = F_true;
*
* Status codes (with error bit) are returned on any problem.
*/
-f_return_status firewall_perform_commands(const firewall_local_data_t local, const firewall_data_t data) f_gcc_attribute_visibility_internal;
+f_status_t firewall_perform_commands(const firewall_local_data_t local, const firewall_data_t data) f_gcc_attribute_visibility_internal;
/**
* Create custom chains.
*
* Status codes (with error bit) are returned on any problem.
*/
-f_return_status firewall_create_custom_chains(firewall_reserved_chains_t *reserved, firewall_local_data_t *local, firewall_data_t *data) f_gcc_attribute_visibility_internal;
+f_status_t firewall_create_custom_chains(firewall_reserved_chains_t *reserved, firewall_local_data_t *local, firewall_data_t *data) f_gcc_attribute_visibility_internal;
/**
* Deallocate chains.
*
* Status codes (with error bit) are returned on any problem.
*/
-f_return_status firewall_delete_chains(const firewall_data_t data) f_gcc_attribute_visibility_internal;
+f_status_t firewall_delete_chains(const firewall_data_t data) f_gcc_attribute_visibility_internal;
/**
* Lock the firewall.
*
* Status codes (with error bit) are returned on any problem.
*/
-f_return_status firewall_default_lock(const firewall_data_t data) f_gcc_attribute_visibility_internal;
+f_status_t firewall_default_lock(const firewall_data_t data) f_gcc_attribute_visibility_internal;
/**
* Buffer firewall rules.
*
* Status codes (with error bit) are returned on any problem.
*/
-f_return_status firewall_buffer_rules(const f_string_t filename, const bool optional, firewall_local_data_t *local, firewall_data_t *data) f_gcc_attribute_visibility_internal;
+f_status_t firewall_buffer_rules(const f_string_t filename, const bool optional, firewall_local_data_t *local, firewall_data_t *data) f_gcc_attribute_visibility_internal;
/**
* Process buffered rules.
*
* Status codes (with error bit) are returned on any problem.
*/
-f_return_status firewall_process_rules(f_string_range_t *range, firewall_local_data_t *local, firewall_data_t *data) f_gcc_attribute_visibility_internal;
+f_status_t firewall_process_rules(f_string_range_t *range, firewall_local_data_t *local, firewall_data_t *data) f_gcc_attribute_visibility_internal;
/**
* Delete allocated data.
*
* Status codes (with error bit) are returned on any problem.
*/
-f_return_status firewall_delete_local_data(firewall_local_data_t *local) f_gcc_attribute_visibility_internal;
+f_status_t firewall_delete_local_data(firewall_local_data_t *local) f_gcc_attribute_visibility_internal;
#ifdef __cplusplus
} // extern "C"
#endif
#ifndef _di_fss_basic_list_read_print_help_
- f_return_status fss_basic_list_read_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_basic_list_read_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_basic_list_read_name_long, fss_basic_list_read_version);
#endif // _di_fss_basic_list_read_print_help_
#ifndef _di_fss_basic_list_read_main_
- f_return_status fss_basic_list_read_main(const f_console_arguments_t arguments, fss_basic_list_read_data_t *data) {
+ f_status_t fss_basic_list_read_main(const f_console_arguments_t arguments, fss_basic_list_read_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_basic_list_read_main_
#ifndef _di_fss_basic_list_read_delete_data_
- f_return_status fss_basic_list_read_delete_data(fss_basic_list_read_data_t *data) {
+ f_status_t fss_basic_list_read_delete_data(fss_basic_list_read_data_t *data) {
for (f_string_length_t i = 0; i < fss_basic_list_read_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_basic_list_read_print_help_
- extern f_return_status fss_basic_list_read_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_basic_list_read_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_basic_list_read_print_help_
/**
* @see fss_basic_list_read_delete_data()
*/
#ifndef _di_fss_basic_list_read_main_
- extern f_return_status fss_basic_list_read_main(const f_console_arguments_t arguments, fss_basic_list_read_data_t *data);
+ extern f_status_t fss_basic_list_read_main(const f_console_arguments_t arguments, fss_basic_list_read_data_t *data);
#endif // _di_fss_basic_list_read_main_
/**
* @see fss_basic_list_read_main()
*/
#ifndef _di_fss_basic_list_read_delete_data_
- extern f_return_status fss_basic_list_read_delete_data(fss_basic_list_read_data_t *data);
+ extern f_status_t fss_basic_list_read_delete_data(fss_basic_list_read_data_t *data);
#endif // _di_fss_basic_list_read_delete_data_
#ifdef __cplusplus
#endif
#ifndef _di_fss_basic_list_read_main_preprocess_depth_
- f_return_status fss_basic_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_basic_list_read_data_t data, fss_basic_list_read_depths_t *depths) {
+ f_status_t fss_basic_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_basic_list_read_data_t data, fss_basic_list_read_depths_t *depths) {
f_status_t status = F_none;
{
#endif // _di_fss_basic_list_read_main_preprocess_depth_
#ifndef _di_fss_basic_list_read_main_process_file_
- f_return_status fss_basic_list_read_main_process_file(const f_console_arguments_t arguments, fss_basic_list_read_data_t *data, const f_string_t filename, const fss_basic_list_read_depths_t depths, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
+ f_status_t fss_basic_list_read_main_process_file(const f_console_arguments_t arguments, fss_basic_list_read_data_t *data, const f_string_t filename, const fss_basic_list_read_depths_t depths, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
f_status_t status = F_none;
const f_string_lengths_t except_none = f_string_lengths_t_initialize;
return F_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t, const f_string_lengths_t) = &f_print_except_dynamic_partial;
+ f_status_t (*print_object)(FILE *, const f_string_static_t, const f_string_range_t, const f_string_lengths_t) = &f_print_except_dynamic_partial;
if (data->parameters[fss_basic_list_read_parameter_trim].result == f_console_result_found) {
print_object = &fl_print_trim_except_dynamic_partial;
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fss_basic_list_read_main_preprocess_depth_
- extern f_return_status fss_basic_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_basic_list_read_data_t data, fss_basic_list_read_depths_t *depths) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_basic_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_basic_list_read_data_t data, fss_basic_list_read_depths_t *depths) f_gcc_attribute_visibility_internal;
#endif // _di_fss_basic_list_read_main_preprocess_depth_
/**
* @see fss_basic_list_read_main_preprocess_depth()
*/
#ifndef _di_fss_basic_list_read_main_process_file_
- extern f_return_status fss_basic_list_read_main_process_file(const f_console_arguments_t arguments, fss_basic_list_read_data_t *data, const f_string_t file_name, const fss_basic_list_read_depths_t depths, f_fss_delimits_t *delimits, f_fss_comments_t *comments) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_basic_list_read_main_process_file(const f_console_arguments_t arguments, fss_basic_list_read_data_t *data, const f_string_t file_name, const fss_basic_list_read_depths_t depths, f_fss_delimits_t *delimits, f_fss_comments_t *comments) f_gcc_attribute_visibility_internal;
#endif // _di_fss_basic_list_read_main_process_file_
/**
#endif
#ifndef _di_fss_basic_list_write_print_help_
- f_return_status fss_basic_list_write_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_basic_list_write_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_basic_list_write_name_long, fss_basic_list_write_version);
#endif // _di_fss_basic_list_write_print_help_
#ifndef _di_fss_basic_list_write_main_
- f_return_status fss_basic_list_write_main(const f_console_arguments_t arguments, fss_basic_list_write_data_t *data) {
+ f_status_t fss_basic_list_write_main(const f_console_arguments_t arguments, fss_basic_list_write_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_basic_list_write_main_
#ifndef _di_fss_basic_list_write_delete_data_
- f_return_status fss_basic_list_write_delete_data(fss_basic_list_write_data_t *data) {
+ f_status_t fss_basic_list_write_delete_data(fss_basic_list_write_data_t *data) {
for (f_string_length_t i = 0; i < fss_basic_list_write_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_basic_list_write_print_help_
- extern f_return_status fss_basic_list_write_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_basic_list_write_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_basic_list_write_print_help_
/**
* @see fss_basic_list_write_delete_data()
*/
#ifndef _di_fss_basic_list_write_main_
- extern f_return_status fss_basic_list_write_main(const f_console_arguments_t arguments, fss_basic_list_write_data_t *data);
+ extern f_status_t fss_basic_list_write_main(const f_console_arguments_t arguments, fss_basic_list_write_data_t *data);
#endif // _di_fss_basic_list_write_main_
/**
* @see fss_basic_list_write_main()
*/
#ifndef _di_fss_basic_list_write_delete_data_
- extern f_return_status fss_basic_list_write_delete_data(fss_basic_list_write_data_t *data);
+ extern f_status_t fss_basic_list_write_delete_data(fss_basic_list_write_data_t *data);
#endif // _di_fss_basic_list_write_delete_data_
#ifdef __cplusplus
#endif // _di_fss_basic_list_write_error_parameter_value_missing_print_
#ifndef _di_fss_basic_list_write_process_
- f_return_status fss_basic_list_write_process(const fss_basic_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, f_string_dynamic_t *buffer) {
+ f_status_t fss_basic_list_write_process(const fss_basic_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, f_string_dynamic_t *buffer) {
f_status_t status = F_none;
f_string_range_t range = f_string_range_t_initialize;
#endif // _di_fss_basic_list_write_process_
#ifndef _di_fss_basic_list_write_process_pipe_
- f_return_status fss_basic_list_write_process_pipe(const fss_basic_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) {
+ f_status_t fss_basic_list_write_process_pipe(const fss_basic_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) {
f_status_t status = F_none;
f_status_t status_pipe = F_none;
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_basic_list_write_process_
- extern f_return_status fss_basic_list_write_process(const fss_basic_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_basic_list_write_process(const fss_basic_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
#endif // _di_fss_basic_list_write_process_
/**
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_basic_list_write_process_pipe_
- extern f_return_status fss_basic_list_write_process_pipe(const fss_basic_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_basic_list_write_process_pipe(const fss_basic_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
#endif // _di_fss_basic_list_write_process_pipe_
#ifdef __cplusplus
#endif
#ifndef _di_fss_basic_read_print_help_
- f_return_status fss_basic_read_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_basic_read_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_basic_read_name_long, fss_basic_read_version);
#endif // _di_fss_basic_read_print_help_
#ifndef _di_fss_basic_read_main_
- f_return_status fss_basic_read_main(const f_console_arguments_t arguments, fss_basic_read_data_t *data) {
+ f_status_t fss_basic_read_main(const f_console_arguments_t arguments, fss_basic_read_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_basic_read_main_
#ifndef _di_fss_basic_read_delete_data_
- f_return_status fss_basic_read_delete_data(fss_basic_read_data_t *data) {
+ f_status_t fss_basic_read_delete_data(fss_basic_read_data_t *data) {
for (f_string_length_t i = 0; i < fss_basic_read_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_basic_read_print_help_
- extern f_return_status fss_basic_read_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_basic_read_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_basic_read_print_help_
/**
* @see fss_basic_read_delete_data()
*/
#ifndef _di_fss_basic_read_main_
- extern f_return_status fss_basic_read_main(const f_console_arguments_t arguments, fss_basic_read_data_t *data);
+ extern f_status_t fss_basic_read_main(const f_console_arguments_t arguments, fss_basic_read_data_t *data);
#endif // _di_fss_basic_read_main_
/**
* @see fss_basic_read_main()
*/
#ifndef _di_fss_basic_read_delete_data_
- extern f_return_status fss_basic_read_delete_data(fss_basic_read_data_t *data);
+ extern f_status_t fss_basic_read_delete_data(fss_basic_read_data_t *data);
#endif // _di_fss_basic_read_delete_data_
#ifdef __cplusplus
#endif
#ifndef _di_fss_basic_read_main_preprocess_depth_
- f_return_status fss_basic_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_basic_read_data_t data, fss_basic_read_depths_t *depths) {
+ f_status_t fss_basic_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_basic_read_data_t data, fss_basic_read_depths_t *depths) {
f_status_t status = F_none;
{
#endif // _di_fss_basic_read_main_preprocess_depth_
#ifndef _di_fss_basic_read_main_process_file_
- f_return_status fss_basic_read_main_process_file(const f_console_arguments_t arguments, fss_basic_read_data_t *data, const f_string_t filename, const fss_basic_read_depths_t depths, f_fss_delimits_t *delimits) {
+ f_status_t fss_basic_read_main_process_file(const f_console_arguments_t arguments, fss_basic_read_data_t *data, const f_string_t filename, const fss_basic_read_depths_t depths, f_fss_delimits_t *delimits) {
f_status_t status = F_none;
const f_string_lengths_t except_none = f_string_lengths_t_initialize;
return F_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t, const f_string_lengths_t) = &f_print_except_dynamic_partial;
+ f_status_t (*print_object)(FILE *, const f_string_static_t, const f_string_range_t, const f_string_lengths_t) = &f_print_except_dynamic_partial;
if (data->parameters[fss_basic_read_parameter_trim].result == f_console_result_found) {
print_object = &fl_print_trim_except_dynamic_partial;
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fss_basic_read_main_preprocess_depth_
- extern f_return_status fss_basic_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_basic_read_data_t data, fss_basic_read_depths_t *depths) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_basic_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_basic_read_data_t data, fss_basic_read_depths_t *depths) f_gcc_attribute_visibility_internal;
#endif // _di_fss_basic_read_main_preprocess_depth_
/**
* @see fss_basic_read_main_preprocess_depth()
*/
#ifndef _di_fss_basic_read_main_process_file_
- extern f_return_status fss_basic_read_main_process_file(const f_console_arguments_t arguments, fss_basic_read_data_t *data, const f_string_t file_name, const fss_basic_read_depths_t depths, f_fss_delimits_t *delimits) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_basic_read_main_process_file(const f_console_arguments_t arguments, fss_basic_read_data_t *data, const f_string_t file_name, const fss_basic_read_depths_t depths, f_fss_delimits_t *delimits) f_gcc_attribute_visibility_internal;
#endif // _di_fss_basic_read_main_process_file_
/**
#endif
#ifndef _di_fss_basic_write_print_help_
- f_return_status fss_basic_write_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_basic_write_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_basic_write_name_long, fss_basic_write_version);
#endif // _di_fss_basic_write_print_help_
#ifndef _di_fss_basic_write_main_
- f_return_status fss_basic_write_main(const f_console_arguments_t arguments, fss_basic_write_data_t *data) {
+ f_status_t fss_basic_write_main(const f_console_arguments_t arguments, fss_basic_write_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_basic_write_main_
#ifndef _di_fss_basic_write_delete_data_
- f_return_status fss_basic_write_delete_data(fss_basic_write_data_t *data) {
+ f_status_t fss_basic_write_delete_data(fss_basic_write_data_t *data) {
for (f_string_length_t i = 0; i < fss_basic_write_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_basic_write_print_help_
- extern f_return_status fss_basic_write_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_basic_write_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_basic_write_print_help_
/**
* @see fss_basic_write_delete_data()
*/
#ifndef _di_fss_basic_write_main_
- extern f_return_status fss_basic_write_main(const f_console_arguments_t arguments, fss_basic_write_data_t *data);
+ extern f_status_t fss_basic_write_main(const f_console_arguments_t arguments, fss_basic_write_data_t *data);
#endif // _di_fss_basic_write_main_
/**
* @see fss_basic_write_main()
*/
#ifndef _di_fss_basic_write_delete_data_
- extern f_return_status fss_basic_write_delete_data(fss_basic_write_data_t *data);
+ extern f_status_t fss_basic_write_delete_data(fss_basic_write_data_t *data);
#endif // _di_fss_basic_write_delete_data_
#ifdef __cplusplus
#endif // _di_fss_basic_write_error_parameter_unsupported_eol_print_
#ifndef _di_fss_basic_write_process_
- f_return_status fss_basic_write_process(const fss_basic_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, f_string_dynamic_t *buffer) {
+ f_status_t fss_basic_write_process(const fss_basic_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, f_string_dynamic_t *buffer) {
f_status_t status = F_none;
f_string_range_t range = f_string_range_t_initialize;
#endif // _di_fss_basic_write_process_
#ifndef _di_fss_basic_write_process_pipe_
- f_return_status fss_basic_write_process_pipe(const fss_basic_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) {
+ f_status_t fss_basic_write_process_pipe(const fss_basic_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) {
f_status_t status = F_none;
f_status_t status_pipe = F_none;
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_basic_write_process_
- extern f_return_status fss_basic_write_process(const fss_basic_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_basic_write_process(const fss_basic_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
#endif // _di_fss_basic_write_process_
/**
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_basic_write_process_pipe_
- extern f_return_status fss_basic_write_process_pipe(const fss_basic_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_basic_write_process_pipe(const fss_basic_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
#endif // _di_fss_basic_write_process_pipe_
#ifdef __cplusplus
#endif
#ifndef _di_fss_embedded_list_read_print_help_
- f_return_status fss_embedded_list_read_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_embedded_list_read_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_embedded_list_read_name_long, fss_embedded_list_read_version);
#endif // _di_fss_embedded_list_read_print_help_
#ifndef _di_fss_embedded_list_read_main_
- f_return_status fss_embedded_list_read_main(const f_console_arguments_t arguments, fss_embedded_list_read_data_t *data) {
+ f_status_t fss_embedded_list_read_main(const f_console_arguments_t arguments, fss_embedded_list_read_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_embedded_list_read_main_
#ifndef _di_fss_embedded_list_read_delete_data_
- f_return_status fss_embedded_list_read_delete_data(fss_embedded_list_read_data_t *data) {
+ f_status_t fss_embedded_list_read_delete_data(fss_embedded_list_read_data_t *data) {
for (f_string_length_t i = 0; i < fss_embedded_list_read_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_embedded_list_read_print_help_
- extern f_return_status fss_embedded_list_read_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_embedded_list_read_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_embedded_list_read_print_help_
/**
* @see fss_embedded_list_read_delete_data()
*/
#ifndef _di_fss_embedded_list_read_main_
- extern f_return_status fss_embedded_list_read_main(const f_console_arguments_t arguments, fss_embedded_list_read_data_t *data);
+ extern f_status_t fss_embedded_list_read_main(const f_console_arguments_t arguments, fss_embedded_list_read_data_t *data);
#endif // _di_fss_embedded_list_read_main_
/**
* @see fss_embedded_list_read_main()
*/
#ifndef _di_fss_embedded_list_read_delete_data_
- extern f_return_status fss_embedded_list_read_delete_data(fss_embedded_list_read_data_t *data);
+ extern f_status_t fss_embedded_list_read_delete_data(fss_embedded_list_read_data_t *data);
#endif // _di_fss_embedded_list_read_delete_data_
#ifdef __cplusplus
#endif
#ifndef _di_fss_embedded_list_read_main_preprocess_depth_
- f_return_status fss_embedded_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_embedded_list_read_data_t data, fss_embedded_list_read_depths_t *depths) {
+ f_status_t fss_embedded_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_embedded_list_read_data_t data, fss_embedded_list_read_depths_t *depths) {
f_status_t status = F_none;
const f_array_length_t values_total = data.parameters[fss_embedded_list_read_parameter_depth].values.used + data.parameters[fss_embedded_list_read_parameter_at].values.used + data.parameters[fss_embedded_list_read_parameter_name].values.used;
#endif // _di_fss_embedded_list_read_main_preprocess_depth_
#ifndef _di_fss_embedded_list_read_main_process_file_
- f_return_status fss_embedded_list_read_main_process_file(const f_console_arguments_t arguments, fss_embedded_list_read_data_t *data, const f_string_t filename, const fss_embedded_list_read_depths_t depths, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
+ f_status_t fss_embedded_list_read_main_process_file(const f_console_arguments_t arguments, fss_embedded_list_read_data_t *data, const f_string_t filename, const fss_embedded_list_read_depths_t depths, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) {
f_status_t status = F_none;
{
#endif // _di_fss_embedded_list_read_main_process_file_
#ifndef _di_fss_embedded_list_read_main_process_for_depth_
- f_return_status fss_embedded_list_read_main_process_for_depth(const f_console_arguments_t arguments, const f_string_t filename, const fss_embedded_list_read_depths_t depths, const f_array_length_t depths_index, const f_array_length_t line, const fss_embedded_list_read_skip_t parents, fss_embedded_list_read_data_t *data, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) {
+ f_status_t fss_embedded_list_read_main_process_for_depth(const f_console_arguments_t arguments, const f_string_t filename, const fss_embedded_list_read_depths_t depths, const f_array_length_t depths_index, const f_array_length_t line, const fss_embedded_list_read_skip_t parents, fss_embedded_list_read_data_t *data, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) {
f_fss_items_t *items = &data->nest.depth[depths.array[depths_index].depth];
return F_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t, const f_string_lengths_t) = &f_print_except_dynamic_partial;
+ f_status_t (*print_object)(FILE *, const f_string_static_t, const f_string_range_t, const f_string_lengths_t) = &f_print_except_dynamic_partial;
if (data->parameters[fss_embedded_list_read_parameter_trim].result == f_console_result_found) {
print_object = &fl_print_trim_except_dynamic_partial;
#endif // _di_fss_embedded_list_read_process_delimits_objects_
#ifndef _di_fss_embedded_list_read_process_delimits_within_greater_
- f_return_status fss_embedded_list_read_process_delimits_within_greater(const fss_embedded_list_read_data_t data, const f_string_length_t depth, const f_string_length_t location) {
+ f_status_t fss_embedded_list_read_process_delimits_within_greater(const fss_embedded_list_read_data_t data, const f_string_length_t depth, const f_string_length_t location) {
if (depth + 1 >= data.nest.used) return F_false;
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fss_embedded_list_read_main_preprocess_depth_
- extern f_return_status fss_embedded_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_embedded_list_read_data_t data, fss_embedded_list_read_depths_t *depths) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_embedded_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_embedded_list_read_data_t data, fss_embedded_list_read_depths_t *depths) f_gcc_attribute_visibility_internal;
#endif // _di_fss_embedded_list_read_main_preprocess_depth_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fss_embedded_list_read_main_process_file_
- extern f_return_status fss_embedded_list_read_main_process_file(const f_console_arguments_t arguments, fss_embedded_list_read_data_t *data, const f_string_t file_name, const fss_embedded_list_read_depths_t depths, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_embedded_list_read_main_process_file(const f_console_arguments_t arguments, fss_embedded_list_read_data_t *data, const f_string_t file_name, const fss_embedded_list_read_depths_t depths, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits, f_fss_comments_t *comments) f_gcc_attribute_visibility_internal;
#endif // _di_fss_embedded_list_read_main_process_file_
/**
* @see fss_embedded_list_read_main_process_file()
*/
#ifndef _di_fss_embedded_list_read_main_process_for_depth_
- extern f_return_status fss_embedded_list_read_main_process_for_depth(const f_console_arguments_t arguments, const f_string_t filename, const fss_embedded_list_read_depths_t depths, const f_array_length_t depths_index, const f_array_length_t line, const fss_embedded_list_read_skip_t parents, fss_embedded_list_read_data_t *data, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_embedded_list_read_main_process_for_depth(const f_console_arguments_t arguments, const f_string_t filename, const fss_embedded_list_read_depths_t depths, const f_array_length_t depths_index, const f_array_length_t line, const fss_embedded_list_read_skip_t parents, fss_embedded_list_read_data_t *data, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) f_gcc_attribute_visibility_internal;
#endif // _di_fss_embedded_list_read_main_process_for_depth_
/**
* @see fss_embedded_list_read_process_delimits_contents()
*/
#ifndef _di_fss_embedded_list_read_process_delimits_within_greater_
- extern f_return_status fss_embedded_list_read_process_delimits_within_greater(const fss_embedded_list_read_data_t data, const f_string_length_t depth, const f_string_length_t location) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_embedded_list_read_process_delimits_within_greater(const fss_embedded_list_read_data_t data, const f_string_length_t depth, const f_string_length_t location) f_gcc_attribute_visibility_internal;
#endif // _di_fss_embedded_list_read_process_delimits_within_greater_
#ifdef __cplusplus
#endif
#ifndef _di_fss_embedded_list_write_print_help_
- f_return_status fss_embedded_list_write_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_embedded_list_write_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_embedded_list_write_name_long, fss_embedded_list_write_version);
#endif // _di_fss_embedded_list_write_print_help_
#ifndef _di_fss_embedded_list_write_main_
- f_return_status fss_embedded_list_write_main(const f_console_arguments_t arguments, fss_embedded_list_write_data_t *data) {
+ f_status_t fss_embedded_list_write_main(const f_console_arguments_t arguments, fss_embedded_list_write_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_embedded_list_write_main_
#ifndef _di_fss_embedded_list_write_delete_data_
- f_return_status fss_embedded_list_write_delete_data(fss_embedded_list_write_data_t *data) {
+ f_status_t fss_embedded_list_write_delete_data(fss_embedded_list_write_data_t *data) {
for (f_string_length_t i = 0; i < fss_embedded_list_write_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_embedded_list_write_print_help_
- extern f_return_status fss_embedded_list_write_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_embedded_list_write_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_embedded_list_write_print_help_
/**
* @see fss_embedded_list_write_delete_data()
*/
#ifndef _di_fss_embedded_list_write_main_
- extern f_return_status fss_embedded_list_write_main(const f_console_arguments_t arguments, fss_embedded_list_write_data_t *data);
+ extern f_status_t fss_embedded_list_write_main(const f_console_arguments_t arguments, fss_embedded_list_write_data_t *data);
#endif // _di_fss_embedded_list_write_main_
/**
* @see fss_embedded_list_write_main()
*/
#ifndef _di_fss_embedded_list_write_delete_data_
- extern f_return_status fss_embedded_list_write_delete_data(fss_embedded_list_write_data_t *data);
+ extern f_status_t fss_embedded_list_write_delete_data(fss_embedded_list_write_data_t *data);
#endif // _di_fss_embedded_list_write_delete_data_
#ifdef __cplusplus
#endif // _di_fss_embedded_list_write_error_parameter_value_missing_print_
#ifndef _di_fss_embedded_list_write_process_
- f_return_status fss_embedded_list_write_process(const fss_embedded_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, const f_string_ranges_t *ignore, f_string_dynamic_t *buffer) {
+ f_status_t fss_embedded_list_write_process(const fss_embedded_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, const f_string_ranges_t *ignore, f_string_dynamic_t *buffer) {
f_status_t status = F_none;
f_string_range_t range = f_string_range_t_initialize;
#endif // _di_fss_embedded_list_write_process_
#ifndef _di_fss_embedded_list_write_process_pipe_
- f_return_status fss_embedded_list_write_process_pipe(const fss_embedded_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer, f_string_ranges_t *ignore) {
+ f_status_t fss_embedded_list_write_process_pipe(const fss_embedded_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer, f_string_ranges_t *ignore) {
f_status_t status = F_none;
f_status_t status_pipe = F_none;
#endif // _di_fss_embedded_list_write_process_pipe_
#ifndef _di_fss_embedded_list_write_process_parameter_ignore_
- f_return_status fss_embedded_list_write_process_parameter_ignore(const f_console_arguments_t arguments, const fss_embedded_list_write_data_t data, const f_array_lengths_t contents, const f_array_length_t location, f_string_ranges_t *ignore) {
+ f_status_t fss_embedded_list_write_process_parameter_ignore(const f_console_arguments_t arguments, const fss_embedded_list_write_data_t data, const f_array_lengths_t contents, const f_array_length_t location, f_string_ranges_t *ignore) {
f_status_t status = F_none;
f_array_length_t i = 0;
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_embedded_list_write_process_
- extern f_return_status fss_embedded_list_write_process(const fss_embedded_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, const f_string_ranges_t *ignore, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_embedded_list_write_process(const fss_embedded_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, const f_string_ranges_t *ignore, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
#endif // _di_fss_embedded_list_write_process_
/**
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_embedded_list_write_process_pipe_
- extern f_return_status fss_embedded_list_write_process_pipe(const fss_embedded_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer, f_string_ranges_t *ignore) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_embedded_list_write_process_pipe(const fss_embedded_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer, f_string_ranges_t *ignore) f_gcc_attribute_visibility_internal;
#endif // _di_fss_embedded_list_write_process_pipe_
/**
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_embedded_list_write_process_parameter_ignore_
- extern f_return_status fss_embedded_list_write_process_parameter_ignore(const f_console_arguments_t arguments, const fss_embedded_list_write_data_t data, const f_array_lengths_t contents, const f_array_length_t location, f_string_ranges_t *ignore) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_embedded_list_write_process_parameter_ignore(const f_console_arguments_t arguments, const fss_embedded_list_write_data_t data, const f_array_lengths_t contents, const f_array_length_t location, f_string_ranges_t *ignore) f_gcc_attribute_visibility_internal;
#endif // _di_fss_embedded_list_write_process_parameter_ignore_
#ifdef __cplusplus
#endif
#ifndef _di_fss_extended_list_read_print_help_
- f_return_status fss_extended_list_read_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_extended_list_read_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_extended_list_read_name_long, fss_extended_list_read_version);
#endif // _di_fss_extended_list_read_print_help_
#ifndef _di_fss_extended_list_read_main_
- f_return_status fss_extended_list_read_main(const f_console_arguments_t arguments, fss_extended_list_read_data_t *data) {
+ f_status_t fss_extended_list_read_main(const f_console_arguments_t arguments, fss_extended_list_read_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_extended_list_read_main_
#ifndef _di_fss_extended_list_read_delete_data_
- f_return_status fss_extended_list_read_delete_data(fss_extended_list_read_data_t *data) {
+ f_status_t fss_extended_list_read_delete_data(fss_extended_list_read_data_t *data) {
for (f_string_length_t i = 0; i < fss_extended_list_read_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_extended_list_read_print_help_
- extern f_return_status fss_extended_list_read_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_extended_list_read_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_extended_list_read_print_help_
/**
* @see fss_extended_list_read_delete_data()
*/
#ifndef _di_fss_extended_list_read_main_
- extern f_return_status fss_extended_list_read_main(const f_console_arguments_t arguments, fss_extended_list_read_data_t *data);
+ extern f_status_t fss_extended_list_read_main(const f_console_arguments_t arguments, fss_extended_list_read_data_t *data);
#endif // _di_fss_extended_list_read_main_
/**
* @see fss_extended_list_read_main()
*/
#ifndef _di_fss_extended_list_read_delete_data_
- extern f_return_status fss_extended_list_read_delete_data(fss_extended_list_read_data_t *data);
+ extern f_status_t fss_extended_list_read_delete_data(fss_extended_list_read_data_t *data);
#endif // _di_fss_extended_list_read_delete_data_
#ifdef __cplusplus
#endif
#ifndef _di_fss_extended_list_read_main_preprocess_depth_
- f_return_status fss_extended_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_extended_list_read_data_t data, fss_extended_list_read_depths_t *depths) {
+ f_status_t fss_extended_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_extended_list_read_data_t data, fss_extended_list_read_depths_t *depths) {
f_status_t status = F_none;
{
#endif // _di_fss_extended_list_read_main_preprocess_depth_
#ifndef _di_fss_extended_list_read_main_process_file_
- f_return_status fss_extended_list_read_main_process_file(const f_console_arguments_t arguments, fss_extended_list_read_data_t *data, const f_string_t filename, const fss_extended_list_read_depths_t depths, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
+ f_status_t fss_extended_list_read_main_process_file(const f_console_arguments_t arguments, fss_extended_list_read_data_t *data, const f_string_t filename, const fss_extended_list_read_depths_t depths, f_fss_delimits_t *delimits, f_fss_comments_t *comments) {
f_status_t status = F_none;
const f_string_lengths_t except_none = f_string_lengths_t_initialize;
return F_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t, const f_string_lengths_t) = &f_print_except_dynamic_partial;
+ f_status_t (*print_object)(FILE *, const f_string_static_t, const f_string_range_t, const f_string_lengths_t) = &f_print_except_dynamic_partial;
if (data->parameters[fss_extended_list_read_parameter_trim].result == f_console_result_found) {
print_object = &fl_print_trim_except_dynamic_partial;
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fss_extended_list_read_main_preprocess_depth_
- extern f_return_status fss_extended_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_extended_list_read_data_t data, fss_extended_list_read_depths_t *depths) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_extended_list_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_extended_list_read_data_t data, fss_extended_list_read_depths_t *depths) f_gcc_attribute_visibility_internal;
#endif // _di_fss_extended_list_read_main_preprocess_depth_
/**
* @see fss_extended_list_read_main_preprocess_depth()
*/
#ifndef _di_fss_extended_list_read_main_process_file_
- extern f_return_status fss_extended_list_read_main_process_file(const f_console_arguments_t arguments, fss_extended_list_read_data_t *data, const f_string_t file_name, const fss_extended_list_read_depths_t depths, f_fss_delimits_t *delimits, f_fss_comments_t *comments) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_extended_list_read_main_process_file(const f_console_arguments_t arguments, fss_extended_list_read_data_t *data, const f_string_t file_name, const fss_extended_list_read_depths_t depths, f_fss_delimits_t *delimits, f_fss_comments_t *comments) f_gcc_attribute_visibility_internal;
#endif // _di_fss_extended_list_read_main_process_file_
/**
#endif
#ifndef _di_fss_extended_list_write_print_help_
- f_return_status fss_extended_list_write_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_extended_list_write_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_extended_list_write_name_long, fss_extended_list_write_version);
#endif // _di_fss_extended_list_write_print_help_
#ifndef _di_fss_extended_list_write_main_
- f_return_status fss_extended_list_write_main(const f_console_arguments_t arguments, fss_extended_list_write_data_t *data) {
+ f_status_t fss_extended_list_write_main(const f_console_arguments_t arguments, fss_extended_list_write_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_extended_list_write_main_
#ifndef _di_fss_extended_list_write_delete_data_
- f_return_status fss_extended_list_write_delete_data(fss_extended_list_write_data_t *data) {
+ f_status_t fss_extended_list_write_delete_data(fss_extended_list_write_data_t *data) {
for (f_string_length_t i = 0; i < fss_extended_list_write_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_extended_list_write_print_help_
- extern f_return_status fss_extended_list_write_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_extended_list_write_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_extended_list_write_print_help_
/**
* @see fss_extended_list_write_delete_data()
*/
#ifndef _di_fss_extended_list_write_main_
- extern f_return_status fss_extended_list_write_main(const f_console_arguments_t arguments, fss_extended_list_write_data_t *data);
+ extern f_status_t fss_extended_list_write_main(const f_console_arguments_t arguments, fss_extended_list_write_data_t *data);
#endif // _di_fss_extended_list_write_main_
/**
* @see fss_extended_list_write_main()
*/
#ifndef _di_fss_extended_list_write_delete_data_
- extern f_return_status fss_extended_list_write_delete_data(fss_extended_list_write_data_t *data);
+ extern f_status_t fss_extended_list_write_delete_data(fss_extended_list_write_data_t *data);
#endif // _di_fss_extended_list_write_delete_data_
#ifdef __cplusplus
#endif // _di_fss_extended_list_write_error_parameter_value_missing_print_
#ifndef _di_fss_extended_list_write_process_
- f_return_status fss_extended_list_write_process(const fss_extended_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, const f_string_ranges_t *ignore, f_string_dynamic_t *buffer) {
+ f_status_t fss_extended_list_write_process(const fss_extended_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, const f_string_ranges_t *ignore, f_string_dynamic_t *buffer) {
f_status_t status = F_none;
f_string_range_t range = f_string_range_t_initialize;
#endif // _di_fss_extended_list_write_process_
#ifndef _di_fss_extended_list_write_process_pipe_
- f_return_status fss_extended_list_write_process_pipe(const fss_extended_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer, f_string_ranges_t *ignore) {
+ f_status_t fss_extended_list_write_process_pipe(const fss_extended_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer, f_string_ranges_t *ignore) {
f_status_t status = F_none;
f_status_t status_pipe = F_none;
#endif // _di_fss_extended_list_write_process_pipe_
#ifndef _di_fss_extended_list_write_process_parameter_ignore_
- f_return_status fss_extended_list_write_process_parameter_ignore(const f_console_arguments_t arguments, const fss_extended_list_write_data_t data, const f_array_lengths_t contents, const f_array_length_t location, f_string_ranges_t *ignore) {
+ f_status_t fss_extended_list_write_process_parameter_ignore(const f_console_arguments_t arguments, const fss_extended_list_write_data_t data, const f_array_lengths_t contents, const f_array_length_t location, f_string_ranges_t *ignore) {
f_status_t status = F_none;
f_array_length_t i = 0;
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_extended_list_write_process_
- extern f_return_status fss_extended_list_write_process(const fss_extended_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, const f_string_ranges_t *ignore, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_extended_list_write_process(const fss_extended_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_static_t *content, const f_string_ranges_t *ignore, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
#endif // _di_fss_extended_list_write_process_
/**
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_extended_list_write_process_pipe_
- extern f_return_status fss_extended_list_write_process_pipe(const fss_extended_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer, f_string_ranges_t *ignore) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_extended_list_write_process_pipe(const fss_extended_list_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer, f_string_ranges_t *ignore) f_gcc_attribute_visibility_internal;
#endif // _di_fss_extended_list_write_process_pipe_
/**
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_extended_list_write_process_parameter_ignore_
- extern f_return_status fss_extended_list_write_process_parameter_ignore(const f_console_arguments_t arguments, const fss_extended_list_write_data_t data, const f_array_lengths_t contents, const f_array_length_t location, f_string_ranges_t *ignore) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_extended_list_write_process_parameter_ignore(const f_console_arguments_t arguments, const fss_extended_list_write_data_t data, const f_array_lengths_t contents, const f_array_length_t location, f_string_ranges_t *ignore) f_gcc_attribute_visibility_internal;
#endif // _di_fss_extended_list_write_process_parameter_ignore_
#ifdef __cplusplus
#endif
#ifndef _di_fss_extended_read_print_help_
- f_return_status fss_extended_read_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_extended_read_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_extended_read_name_long, fss_extended_read_version);
#endif // _di_fss_extended_read_print_help_
#ifndef _di_fss_extended_read_main_
- f_return_status fss_extended_read_main(const f_console_arguments_t arguments, fss_extended_read_data_t *data) {
+ f_status_t fss_extended_read_main(const f_console_arguments_t arguments, fss_extended_read_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_extended_read_main_
#ifndef _di_fss_extended_read_delete_data_
- f_return_status fss_extended_read_delete_data(fss_extended_read_data_t *data) {
+ f_status_t fss_extended_read_delete_data(fss_extended_read_data_t *data) {
for (f_string_length_t i = 0; i < fss_extended_read_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_extended_read_print_help_
- extern f_return_status fss_extended_read_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_extended_read_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_extended_read_print_help_
/**
* @see fss_extended_read_delete_data()
*/
#ifndef _di_fss_extended_read_main_
- extern f_return_status fss_extended_read_main(const f_console_arguments_t arguments, fss_extended_read_data_t *data);
+ extern f_status_t fss_extended_read_main(const f_console_arguments_t arguments, fss_extended_read_data_t *data);
#endif // _di_fss_extended_read_main_
/**
* @see fss_extended_read_main()
*/
#ifndef _di_fss_extended_read_delete_data_
- extern f_return_status fss_extended_read_delete_data(fss_extended_read_data_t *data);
+ extern f_status_t fss_extended_read_delete_data(fss_extended_read_data_t *data);
#endif // _di_fss_extended_read_delete_data_
#ifdef __cplusplus
#endif
#ifndef _di_fss_extended_read_is_delimited_at_depth_
- f_return_status fss_extended_read_is_delimited_at_depth(const fss_extended_read_data_t data, const f_string_length_t depth) {
+ f_status_t fss_extended_read_is_delimited_at_depth(const fss_extended_read_data_t data, const f_string_length_t depth) {
if (data.delimit_mode == fss_extended_read_delimit_mode_none) {
return F_false;
#endif // _di_fss_extended_read_is_delimited_at_depth_
#ifndef _di_fss_extended_read_main_preprocess_depth_
- f_return_status fss_extended_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_extended_read_data_t data, fss_extended_read_depths_t *depths) {
+ f_status_t fss_extended_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_extended_read_data_t data, fss_extended_read_depths_t *depths) {
f_status_t status = F_none;
{
#endif // _di_fss_extended_read_main_preprocess_depth_
#ifndef _di_fss_extended_read_main_process_file_
- f_return_status fss_extended_read_main_process_file(const f_console_arguments_t arguments, fss_extended_read_data_t *data, const f_string_t filename, const fss_extended_read_depths_t depths, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) {
+ f_status_t fss_extended_read_main_process_file(const f_console_arguments_t arguments, fss_extended_read_data_t *data, const f_string_t filename, const fss_extended_read_depths_t depths, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) {
f_status_t status = F_none;
const f_string_lengths_t except_none = f_string_lengths_t_initialize;
return F_none;
}
- f_return_status (*print_object)(FILE *, const f_string_static_t, const f_string_range_t, const f_string_lengths_t) = &f_print_except_dynamic_partial;
+ f_status_t (*print_object)(FILE *, const f_string_static_t, const f_string_range_t, const f_string_lengths_t) = &f_print_except_dynamic_partial;
if (data->parameters[fss_extended_read_parameter_trim].result == f_console_result_found) {
print_object = &fl_print_trim_except_dynamic_partial;
* F_false if not delimited.
*/
#ifndef _di_fss_extended_read_is_delimited_at_depth_
- extern f_return_status fss_extended_read_is_delimited_at_depth(const fss_extended_read_data_t data, const f_string_length_t depth) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_extended_read_is_delimited_at_depth(const fss_extended_read_data_t data, const f_string_length_t depth) f_gcc_attribute_visibility_internal;
#endif // _di_fss_extended_read_is_delimited_at_depth_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_fss_extended_read_main_preprocess_depth_
- extern f_return_status fss_extended_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_extended_read_data_t data, fss_extended_read_depths_t *depths) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_extended_read_main_preprocess_depth(const f_console_arguments_t arguments, const fss_extended_read_data_t data, fss_extended_read_depths_t *depths) f_gcc_attribute_visibility_internal;
#endif // _di_fss_extended_read_main_preprocess_depth_
/**
* @see fss_extended_read_main_preprocess_depth()
*/
#ifndef _di_fss_extended_read_main_process_file_
- extern f_return_status fss_extended_read_main_process_file(const f_console_arguments_t arguments, fss_extended_read_data_t *data, const f_string_t file_name, const fss_extended_read_depths_t depths, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_extended_read_main_process_file(const f_console_arguments_t arguments, fss_extended_read_data_t *data, const f_string_t file_name, const fss_extended_read_depths_t depths, f_fss_delimits_t *objects_delimits, f_fss_delimits_t *contents_delimits) f_gcc_attribute_visibility_internal;
#endif // _di_fss_extended_read_main_process_file_
/**
#endif
#ifndef _di_fss_extended_write_print_help_
- f_return_status fss_extended_write_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_extended_write_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_extended_write_name_long, fss_extended_write_version);
#endif // _di_fss_extended_write_print_help_
#ifndef _di_fss_extended_write_main_
- f_return_status fss_extended_write_main(const f_console_arguments_t arguments, fss_extended_write_data_t *data) {
+ f_status_t fss_extended_write_main(const f_console_arguments_t arguments, fss_extended_write_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_extended_write_main_
#ifndef _di_fss_extended_write_delete_data_
- f_return_status fss_extended_write_delete_data(fss_extended_write_data_t *data) {
+ f_status_t fss_extended_write_delete_data(fss_extended_write_data_t *data) {
for (f_string_length_t i = 0; i < fss_extended_write_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_extended_write_print_help_
- extern f_return_status fss_extended_write_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_extended_write_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_extended_write_print_help_
/**
* @see fss_extended_write_delete_data()
*/
#ifndef _di_fss_extended_write_main_
- extern f_return_status fss_extended_write_main(const f_console_arguments_t arguments, fss_extended_write_data_t *data);
+ extern f_status_t fss_extended_write_main(const f_console_arguments_t arguments, fss_extended_write_data_t *data);
#endif // _di_fss_extended_write_main_
/**
* @see fss_extended_write_main()
*/
#ifndef _di_fss_extended_write_delete_data_
- extern f_return_status fss_extended_write_delete_data(fss_extended_write_data_t *data);
+ extern f_status_t fss_extended_write_delete_data(fss_extended_write_data_t *data);
#endif // _di_fss_extended_write_delete_data_
#ifdef __cplusplus
#endif // _di_fss_extended_write_error_parameter_unsupported_eol_print_
#ifndef _di_fss_extended_write_process_
- f_return_status fss_extended_write_process(const fss_extended_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_statics_t *contents, f_string_dynamic_t *buffer) {
+ f_status_t fss_extended_write_process(const fss_extended_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_statics_t *contents, f_string_dynamic_t *buffer) {
f_status_t status = F_none;
f_string_range_t range = f_string_range_t_initialize;
#endif // _di_fss_extended_write_process_
#ifndef _di_fss_extended_write_process_pipe_
- f_return_status fss_extended_write_process_pipe(const fss_extended_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) {
+ f_status_t fss_extended_write_process_pipe(const fss_extended_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) {
f_status_t status = F_none;
f_status_t status_pipe = F_none;
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_extended_write_process_
- extern f_return_status fss_extended_write_process(const fss_extended_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_statics_t *contents, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_extended_write_process(const fss_extended_write_data_t data, const f_file_t output, const f_fss_quote_t quote, const f_string_static_t *object, const f_string_statics_t *contents, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
#endif // _di_fss_extended_write_process_
/**
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_fss_extended_write_process_pipe_
- extern f_return_status fss_extended_write_process_pipe(const fss_extended_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_extended_write_process_pipe(const fss_extended_write_data_t data, const f_file_t output, const f_fss_quote_t quote, f_string_dynamic_t *buffer) f_gcc_attribute_visibility_internal;
#endif // _di_fss_extended_write_process_pipe_
#ifdef __cplusplus
#endif
#ifndef _di_fss_status_code_print_help_
- f_return_status fss_status_code_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t fss_status_code_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, fss_status_code_name_long, fss_status_code_version);
#endif // _di_fss_status_code_print_help_
#ifndef _di_fss_status_code_main_
- f_return_status fss_status_code_main(const f_console_arguments_t arguments, fss_status_code_data_t *data) {
+ f_status_t fss_status_code_main(const f_console_arguments_t arguments, fss_status_code_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_fss_status_code_main_
#ifndef _di_fss_status_code_delete_data_
- f_return_status fss_status_code_delete_data(fss_status_code_data_t *data) {
+ f_status_t fss_status_code_delete_data(fss_status_code_data_t *data) {
for (f_string_length_t i = 0; i < fss_status_code_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_fss_status_code_print_help_
- extern f_return_status fss_status_code_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t fss_status_code_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_fss_status_code_print_help_
/**
* @see fss_status_code_delete_data()
*/
#ifndef _di_fss_status_code_main_
- extern f_return_status fss_status_code_main(const f_console_arguments_t arguments, fss_status_code_data_t *data);
+ extern f_status_t fss_status_code_main(const f_console_arguments_t arguments, fss_status_code_data_t *data);
#endif // _di_fss_status_code_main_
/**
* @see fss_status_code_main()
*/
#ifndef _di_fss_status_code_delete_data_
- extern f_return_status fss_status_code_delete_data(fss_status_code_data_t *data);
+ extern f_status_t fss_status_code_delete_data(fss_status_code_data_t *data);
#endif // _di_fss_status_code_delete_data_
#ifdef __cplusplus
#endif
#ifndef _di_fss_status_code_process_check_
- f_return_status fss_status_code_process_check(const fss_status_code_data_t data, const f_string_t value) {
+ f_status_t fss_status_code_process_check(const fss_status_code_data_t data, const f_string_t value) {
f_number_unsigned_t number = 0;
f_status_t status = fss_status_code_convert_number(data, value, &number);
#endif // _di_fss_status_code_process_check_
#ifndef _di_fss_status_code_process_number_
- f_return_status fss_status_code_process_number(const fss_status_code_data_t data, const f_string_t value) {
+ f_status_t fss_status_code_process_number(const fss_status_code_data_t data, const f_string_t value) {
f_status_t status = F_none;
{
#endif // _di_fss_status_code_process_number_
#ifndef _di_fss_status_code_process_normal_
- f_return_status fss_status_code_process_normal(const fss_status_code_data_t data, const f_string_t value) {
+ f_status_t fss_status_code_process_normal(const fss_status_code_data_t data, const f_string_t value) {
f_number_unsigned_t number = 0;
f_status_t status = fss_status_code_convert_number(data, value, &number);
#endif // _di_fss_status_code_process_normal_
#ifndef _di_fss_status_code_convert_number_
- f_return_status fss_status_code_convert_number(const fss_status_code_data_t data, const f_string_t value, f_number_unsigned_t *number) {
+ f_status_t fss_status_code_convert_number(const fss_status_code_data_t data, const f_string_t value, f_number_unsigned_t *number) {
const f_string_range_t range = f_macro_string_range_t_initialize(strlen(value));
f_status_t status = fl_conversion_string_to_number_unsigned(value, number, range);
* @see fss_status_code_convert_number()
*/
#ifndef _di_fss_status_code_process_check_
- extern f_return_status fss_status_code_process_check(const fss_status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_status_code_process_check(const fss_status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
#endif // _di_fss_status_code_process_check_
/**
* @see fll_fss_status_from_string()
*/
#ifndef _di_fss_status_code_process_number_
- extern f_return_status fss_status_code_process_number(const fss_status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_status_code_process_number(const fss_status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
#endif // _di_fss_status_code_process_number_
/**
* @see fss_status_code_convert_number()
*/
#ifndef _di_fss_status_code_process_normal_
- extern f_return_status fss_status_code_process_normal(const fss_status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_status_code_process_normal(const fss_status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
#endif // _di_fss_status_code_process_normal_
/**
* @see fl_console_parameter_to_number_unsigned()
*/
#ifndef _di_fss_status_code_convert_number_
- extern f_return_status fss_status_code_convert_number(const fss_status_code_data_t data, const f_string_t value, f_number_unsigned_t *number) f_gcc_attribute_visibility_internal;
+ extern f_status_t fss_status_code_convert_number(const fss_status_code_data_t data, const f_string_t value, f_number_unsigned_t *number) f_gcc_attribute_visibility_internal;
#endif // _di_fss_status_code_convert_number_
#ifdef __cplusplus
#endif
#ifndef _di_iki_read_print_help_
- f_return_status iki_read_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t iki_read_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, iki_read_name_long, iki_read_version);
#endif // _di_iki_read_print_help_
#ifndef _di_iki_read_main_
- f_return_status iki_read_main(const f_console_arguments_t arguments, iki_read_data_t *data) {
+ f_status_t iki_read_main(const f_console_arguments_t arguments, iki_read_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_iki_read_main_
#ifndef _di_iki_read_delete_data_
- f_return_status iki_read_delete_data(iki_read_data_t *data) {
+ f_status_t iki_read_delete_data(iki_read_data_t *data) {
for (f_string_length_t i = 0; i < iki_read_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_iki_read_print_help_
- extern f_return_status iki_read_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t iki_read_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_iki_read_print_help_
/**
* @see iki_read_delete_data()
*/
#ifndef _di_iki_read_main_
- extern f_return_status iki_read_main(const f_console_arguments_t arguments, iki_read_data_t *data);
+ extern f_status_t iki_read_main(const f_console_arguments_t arguments, iki_read_data_t *data);
#endif // _di_iki_read_main_
/**
* @see iki_read_main()
*/
#ifndef _di_iki_read_delete_data_
- extern f_return_status iki_read_delete_data(iki_read_data_t *data);
+ extern f_status_t iki_read_delete_data(iki_read_data_t *data);
#endif // _di_iki_read_delete_data_
#ifdef __cplusplus
#endif
#ifndef _di_iki_read_process_at_
- f_return_status iki_read_process_at(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_string_range_t *range) {
+ f_status_t iki_read_process_at(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_string_range_t *range) {
if (data->parameters[iki_read_parameter_line].result != f_console_result_additional) return F_false;
f_string_length_t line = 0;
#endif // _di_iki_read_process_at_
#ifndef _di_iki_read_process_buffer_
- f_return_status iki_read_process_buffer(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data) {
+ f_status_t iki_read_process_buffer(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data) {
f_status_t status = F_none;
f_iki_variable_t variable = f_iki_variable_t_initialize;
#endif // _di_iki_read_process_buffer_
#ifndef _di_iki_read_process_buffer_ranges_
- f_return_status iki_read_process_buffer_ranges(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_string_range_t *buffer_range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_string_ranges_t *ranges) {
+ f_status_t iki_read_process_buffer_ranges(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_string_range_t *buffer_range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_string_ranges_t *ranges) {
f_status_t status = F_none;
bool unmatched = F_true;
#endif // _di_iki_read_process_buffer_ranges_
#ifndef _di_iki_read_process_buffer_ranges_whole_
- f_return_status iki_read_process_buffer_ranges_whole(const f_console_arguments_t arguments, const f_string_t file_name, const f_string_range_t buffer_range, iki_read_data_t *data, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_string_ranges_t *ranges) {
+ f_status_t iki_read_process_buffer_ranges_whole(const f_console_arguments_t arguments, const f_string_t file_name, const f_string_range_t buffer_range, iki_read_data_t *data, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_string_ranges_t *ranges) {
f_status_t status = F_none;
f_string_range_t range = buffer_range;
#endif // _di_iki_read_process_buffer_ranges_whole_
#ifndef _di_iki_read_process_buffer_total_
- f_return_status iki_read_process_buffer_total(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content) {
+ f_status_t iki_read_process_buffer_total(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content) {
f_status_t status = F_none;
f_string_range_t range = f_macro_string_range_t_initialize(data->buffer.used);
#endif // _di_iki_read_process_buffer_total_
#ifndef _di_iki_read_substitutions_identify_
- f_return_status iki_read_substitutions_identify(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_iki_vocabulary_t *vocabulary, iki_read_substitutions_t *substitutionss) {
+ f_status_t iki_read_substitutions_identify(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_iki_vocabulary_t *vocabulary, iki_read_substitutions_t *substitutionss) {
if (data->parameters[iki_read_parameter_substitute].result != f_console_result_additional) {
return F_none;
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_iki_read_process_at_
- extern f_return_status iki_read_process_at(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_string_range_t *range) f_gcc_attribute_visibility_internal;
+ extern f_status_t iki_read_process_at(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_string_range_t *range) f_gcc_attribute_visibility_internal;
#endif // _di_iki_read_process_at_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_iki_read_process_buffer_
- extern f_return_status iki_read_process_buffer(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data) f_gcc_attribute_visibility_internal;
+ extern f_status_t iki_read_process_buffer(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data) f_gcc_attribute_visibility_internal;
#endif // _di_iki_read_process_buffer_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_iki_read_process_buffer_ranges_
- extern f_return_status iki_read_process_buffer_ranges(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_string_range_t *buffer_range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_string_ranges_t *ranges) f_gcc_attribute_visibility_internal;
+ extern f_status_t iki_read_process_buffer_ranges(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_string_range_t *buffer_range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_string_ranges_t *ranges) f_gcc_attribute_visibility_internal;
#endif // _di_iki_read_process_buffer_ranges_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_iki_read_process_buffer_ranges_whole_
- extern f_return_status iki_read_process_buffer_ranges_whole(const f_console_arguments_t arguments, const f_string_t file_name, const f_string_range_t buffer_range, iki_read_data_t *data, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_string_ranges_t *ranges) f_gcc_attribute_visibility_internal;
+ extern f_status_t iki_read_process_buffer_ranges_whole(const f_console_arguments_t arguments, const f_string_t file_name, const f_string_range_t buffer_range, iki_read_data_t *data, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_string_ranges_t *ranges) f_gcc_attribute_visibility_internal;
#endif // _di_iki_read_process_buffer_ranges_whole_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_iki_read_process_buffer_total_
- extern f_return_status iki_read_process_buffer_total(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content) f_gcc_attribute_visibility_internal;
+ extern f_status_t iki_read_process_buffer_total(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content) f_gcc_attribute_visibility_internal;
#endif // _di_iki_read_process_buffer_total_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_iki_read_substitutions_identify_
- extern f_return_status iki_read_substitutions_identify(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_iki_vocabulary_t *vocabulary, iki_read_substitutions_t *substitutionss) f_gcc_attribute_visibility_internal;
+ extern f_status_t iki_read_substitutions_identify(const f_console_arguments_t arguments, const f_string_t file_name, iki_read_data_t *data, f_iki_vocabulary_t *vocabulary, iki_read_substitutions_t *substitutionss) f_gcc_attribute_visibility_internal;
#endif // _di_iki_read_substitutions_identify_
/**
#endif
#ifndef _di_iki_write_print_help_
- f_return_status iki_write_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t iki_write_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, iki_write_name_long, iki_write_version);
#endif // _di_iki_write_print_help_
#ifndef _di_iki_write_main_
- f_return_status iki_write_main(const f_console_arguments_t arguments, iki_write_data_t *data) {
+ f_status_t iki_write_main(const f_console_arguments_t arguments, iki_write_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_iki_write_main_
#ifndef _di_iki_write_delete_data_
- f_return_status iki_write_delete_data(iki_write_data_t *data) {
+ f_status_t iki_write_delete_data(iki_write_data_t *data) {
for (f_string_length_t i = 0; i < iki_write_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_iki_write_print_help_
- extern f_return_status iki_write_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t iki_write_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_iki_write_print_help_
/**
* @see iki_write_delete_data()
*/
#ifndef _di_iki_write_main_
- extern f_return_status iki_write_main(const f_console_arguments_t arguments, iki_write_data_t *data);
+ extern f_status_t iki_write_main(const f_console_arguments_t arguments, iki_write_data_t *data);
#endif // _di_iki_write_main_
/**
* @see iki_write_main()
*/
#ifndef _di_iki_write_delete_data_
- extern f_return_status iki_write_delete_data(iki_write_data_t *data);
+ extern f_status_t iki_write_delete_data(iki_write_data_t *data);
#endif // _di_iki_write_delete_data_
#ifdef __cplusplus
#endif
#ifndef _di_iki_write_process_
- f_return_status iki_write_process(const iki_write_data_t data, const f_file_t output, const f_string_static_t object, const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *escaped) {
+ f_status_t iki_write_process(const iki_write_data_t data, const f_file_t output, const f_string_static_t object, const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *escaped) {
if (!object.used) {
if (data.error.verbosity != f_console_verbosity_quiet) {
* F_failure (with error bit) for any othe failure.
*/
#ifndef _di_iki_write_process_
- extern f_return_status iki_write_process(const iki_write_data_t data, const f_file_t output, const f_string_static_t object, const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *escaped) f_gcc_attribute_visibility_internal;
+ extern f_status_t iki_write_process(const iki_write_data_t data, const f_file_t output, const f_string_static_t object, const f_string_static_t content, const uint8_t quote, f_string_dynamic_t *escaped) f_gcc_attribute_visibility_internal;
#endif // _di_iki_write_process_
#ifdef __cplusplus
#endif
#ifndef _di_init_print_help_
- f_return_status init_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t init_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, init_name_long, init_version);
#endif // _di_init_print_help_
#ifndef _di_init_main_
- f_return_status init_main(const f_console_arguments_t arguments, init_data_t *data) {
+ f_status_t init_main(const f_console_arguments_t arguments, init_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_init_main_
#ifndef _di_init_delete_data_
- f_return_status init_delete_data(init_data_t *data) {
+ f_status_t init_delete_data(init_data_t *data) {
for (f_string_length_t i = 0; i < init_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_init_print_help_
- extern f_return_status init_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t init_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_init_print_help_
/**
* @see init_delete_data()
*/
#ifndef _di_init_main_
- extern f_return_status init_main(const f_console_arguments_t arguments, init_data_t *data);
+ extern f_status_t init_main(const f_console_arguments_t arguments, init_data_t *data);
#endif // _di_init_main_
/**
* @see init_main()
*/
#ifndef _di_init_delete_data_
- extern f_return_status init_delete_data(init_data_t *data);
+ extern f_status_t init_delete_data(init_data_t *data);
#endif // _di_init_delete_data_
#ifdef __cplusplus
*/
#ifndef _di_init_load_failsafe_
- f_return_status init_load_failsafe(const init_data_t data) {
+ f_status_t init_load_failsafe(const init_data_t data) {
return F_none;
}
#endif // _di_init_load_failsafe_
#ifndef _di_init_load_kernel_setting_
- f_return_status init_load_kernel_setting(const init_data_t data, init_setting_kernel_t *setting_kernel) {
+ f_status_t init_load_kernel_setting(const init_data_t data, init_setting_kernel_t *setting_kernel) {
f_status_t status = F_none;
status = f_directory_exists(init_path_proc_cmdline);
#endif // _di_init_load_kernel_setting_
#ifndef _di_init_signal_read_
- f_return_status init_signal_received(const init_data_t data) {
+ f_status_t init_signal_received(const init_data_t data) {
if (!data.signal.id) {
return F_false;
* @todo
*/
#ifndef _di_init_load_failsafe_
- extern f_return_status init_load_failsafe(const init_data_t data) f_gcc_attribute_visibility_internal;
+ extern f_status_t init_load_failsafe(const init_data_t data) f_gcc_attribute_visibility_internal;
#endif // _di_init_load_failsafe_
/**
* @todo
*/
#ifndef _di_init_load_kernel_setting_
- extern f_return_status init_load_kernel_setting(const init_data_t data, init_setting_kernel_t *setting_kernel) f_gcc_attribute_visibility_internal;
+ extern f_status_t init_load_kernel_setting(const init_data_t data, init_setting_kernel_t *setting_kernel) f_gcc_attribute_visibility_internal;
#endif // _di_init_load_kernel_setting_
/**
* Status codes (with error bit) are returned on any problem.
*/
#ifndef _di_init_signal_read_
- extern f_return_status init_signal_received(const init_data_t data) f_gcc_attribute_visibility_internal;
+ extern f_status_t init_signal_received(const init_data_t data) f_gcc_attribute_visibility_internal;
#endif // _di_init_signal_read_
#ifdef __cplusplus
#endif
#ifndef _di_status_code_process_check_
- f_return_status status_code_process_check(const status_code_data_t data, const f_string_t value) {
+ f_status_t status_code_process_check(const status_code_data_t data, const f_string_t value) {
f_number_unsigned_t number = 0;
f_status_t status = status_code_convert_number(data, value, &number);
#endif // _di_status_code_process_check_
#ifndef _di_status_code_process_number_
- f_return_status status_code_process_number(const status_code_data_t data, const f_string_t value) {
+ f_status_t status_code_process_number(const status_code_data_t data, const f_string_t value) {
f_status_t status = F_none;
{
#endif // _di_status_code_process_number_
#ifndef _di_status_code_process_normal_
- f_return_status status_code_process_normal(const status_code_data_t data, const f_string_t value) {
+ f_status_t status_code_process_normal(const status_code_data_t data, const f_string_t value) {
f_number_unsigned_t number = 0;
f_status_t status = status_code_convert_number(data, value, &number);
#endif // _di_status_code_process_normal_
#ifndef _di_status_code_convert_number_
- f_return_status status_code_convert_number(const status_code_data_t data, const f_string_t value, f_number_unsigned_t *number) {
+ f_status_t status_code_convert_number(const status_code_data_t data, const f_string_t value, f_number_unsigned_t *number) {
const f_string_range_t range = f_macro_string_range_t_initialize(strlen(value));
f_status_t status = fl_conversion_string_to_number_unsigned(value, number, range);
* @see fss_status_code_convert_number()
*/
#ifndef _di_status_code_process_check_
- extern f_return_status status_code_process_check(const status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
+ extern f_status_t status_code_process_check(const status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
#endif // _di_status_code_process_check_
/**
* @see fll_fss_status_from_string()
*/
#ifndef _di_status_code_process_number_
- extern f_return_status status_code_process_number(const status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
+ extern f_status_t status_code_process_number(const status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
#endif // _di_status_code_process_number_
/**
* @see fss_status_code_convert_number()
*/
#ifndef _di_status_code_process_normal_
- extern f_return_status status_code_process_normal(const status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
+ extern f_status_t status_code_process_normal(const status_code_data_t data, const f_string_t value) f_gcc_attribute_visibility_internal;
#endif // _di_status_code_process_normal_
/**
* @see fl_console_parameter_to_number_unsigned()
*/
#ifndef _di_status_code_convert_number_
- extern f_return_status status_code_convert_number(const status_code_data_t data, const f_string_t value, f_number_unsigned_t *number) f_gcc_attribute_visibility_internal;
+ extern f_status_t status_code_convert_number(const status_code_data_t data, const f_string_t value, f_number_unsigned_t *number) f_gcc_attribute_visibility_internal;
#endif // _di_status_code_convert_number_
#ifdef __cplusplus
#endif
#ifndef _di_status_code_print_help_
- f_return_status status_code_print_help(const f_file_t output, const f_color_context_t context) {
+ f_status_t status_code_print_help(const f_file_t output, const f_color_context_t context) {
fll_program_print_help_header(output, context, status_code_name_long, status_code_version);
#endif // _di_status_code_print_help_
#ifndef _di_status_code_main_
- f_return_status status_code_main(const f_console_arguments_t arguments, status_code_data_t *data) {
+ f_status_t status_code_main(const f_console_arguments_t arguments, status_code_data_t *data) {
f_status_t status = F_none;
{
#endif // _di_status_code_main_
#ifndef _di_status_code_delete_data_
- f_return_status status_code_delete_data(status_code_data_t *data) {
+ f_status_t status_code_delete_data(status_code_data_t *data) {
for (f_string_length_t i = 0; i < status_code_total_parameters; i++) {
f_macro_string_lengths_t_delete_simple(data->parameters[i].locations);
* F_none on success.
*/
#ifndef _di_status_code_print_help_
- extern f_return_status status_code_print_help(const f_file_t output, const f_color_context_t context);
+ extern f_status_t status_code_print_help(const f_file_t output, const f_color_context_t context);
#endif // _di_status_code_print_help_
/**
* @see status_code_delete_data()
*/
#ifndef _di_status_code_main_
- extern f_return_status status_code_main(const f_console_arguments_t arguments, status_code_data_t *data);
+ extern f_status_t status_code_main(const f_console_arguments_t arguments, status_code_data_t *data);
#endif // _di_status_code_main_
/**
* @see status_code_main()
*/
#ifndef _di_status_code_delete_data_
- extern f_return_status status_code_delete_data(status_code_data_t *data);
+ extern f_status_t status_code_delete_data(status_code_data_t *data);
#endif // _di_status_code_delete_data_
#ifdef __cplusplus