From: Kevin Day Date: Fri, 18 Feb 2022 04:00:10 +0000 (-0600) Subject: Progress: Continue mass converting to f_string_static_t and use const more. X-Git-Tag: 0.5.8~33 X-Git-Url: https://git.kevux.org/?a=commitdiff_plain;h=fd65b93e39535db8faa5c9ff8e9b64ff8be083ee;p=fll Progress: Continue mass converting to f_string_static_t and use const more. --- diff --git a/build/level_0/settings b/build/level_0/settings index c34c6d1..153f4af 100644 --- a/build/level_0/settings +++ b/build/level_0/settings @@ -38,7 +38,7 @@ build_sources_library console.c console/common.c build_sources_library control_group.c control_group/common.c build_sources_library conversion.c private-conversion.c conversion/common.c build_sources_library directory.c private-directory.c -build_sources_library environment.c private-environment.c +build_sources_library environment.c build_sources_library execute.c build_sources_library file.c file/common.c private-file.c build_sources_library fss.c private-fss.c fss/common.c fss/named.c fss/nest.c fss/set.c diff --git a/build/monolithic/settings b/build/monolithic/settings index 35ad5fd..b7237af 100644 --- a/build/monolithic/settings +++ b/build/monolithic/settings @@ -38,7 +38,7 @@ build_sources_library level_0/console.c level_0/console/common.c build_sources_library level_0/control_group.c level_0/control_group/common.c build_sources_library level_0/conversion.c level_0/private-conversion.c level_0/conversion/common.c build_sources_library level_0/directory.c level_0/private-directory.c -build_sources_library level_0/environment.c level_0/private-environment.c +build_sources_library level_0/environment.c build_sources_library level_0/execute.c build_sources_library level_0/file.c level_0/file/common.c level_0/private-file.c build_sources_library level_0/fss.c level_0/private-fss.c level_0/fss/common.c level_0/fss/named.c level_0/fss/nest.c level_0/fss/set.c diff --git a/level_0/f_control_group/c/control_group.c b/level_0/f_control_group/c/control_group.c index d3cc529..1b55f67 100644 --- a/level_0/f_control_group/c/control_group.c +++ b/level_0/f_control_group/c/control_group.c @@ -5,7 +5,7 @@ extern "C" { #endif #ifndef _di_f_control_group_copy_ - f_status_t f_control_group_copy(const f_control_group_t source, f_control_group_t *destination) { + f_status_t f_control_group_copy(const f_control_group_t source, f_control_group_t * const destination) { #ifndef _di_level_0_parameter_checking_ if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_control_group/c/control_group.h b/level_0/f_control_group/c/control_group.h index 36ecce8..f738f58 100644 --- a/level_0/f_control_group/c/control_group.h +++ b/level_0/f_control_group/c/control_group.h @@ -51,7 +51,7 @@ extern "C" { * @see f_string_dynamics_append() */ #ifndef _di_f_control_group_copy_ - extern f_status_t f_control_group_copy(const f_control_group_t source, f_control_group_t *destination); + extern f_status_t f_control_group_copy(const f_control_group_t source, f_control_group_t * const destination); #endif // _di_f_control_group_copy_ #ifdef __cplusplus diff --git a/level_0/f_conversion/c/conversion.c b/level_0/f_conversion/c/conversion.c index 26a2371..18d4312 100644 --- a/level_0/f_conversion/c/conversion.c +++ b/level_0/f_conversion/c/conversion.c @@ -77,7 +77,7 @@ extern "C" { #endif // _di_f_conversion_character_is_octal_ #ifndef _di_f_conversion_character_to_binary_ - f_status_t f_conversion_character_to_binary(const char character, uint8_t *number) { + f_status_t f_conversion_character_to_binary(const char character, uint8_t * const number) { #ifndef _di_level_0_parameter_checking_ if (!number) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -95,7 +95,7 @@ extern "C" { #endif // _di_f_conversion_character_to_binary_ #ifndef _di_f_conversion_character_to_decimal_ - f_status_t f_conversion_character_to_decimal(const char character, uint8_t *number) { + f_status_t f_conversion_character_to_decimal(const char character, uint8_t * const number) { #ifndef _di_level_0_parameter_checking_ if (!number) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -111,7 +111,7 @@ extern "C" { #endif // _di_f_conversion_character_to_decimal_ #ifndef _di_f_conversion_character_to_duodecimal_ - f_status_t f_conversion_character_to_duodecimal(const char character, uint8_t *number) { + f_status_t f_conversion_character_to_duodecimal(const char character, uint8_t * const number) { #ifndef _di_level_0_parameter_checking_ if (!number) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -133,7 +133,7 @@ extern "C" { #endif // _di_f_conversion_character_to_duodecimal_ #ifndef _di_f_conversion_character_to_hexidecimal_ - f_status_t f_conversion_character_to_hexidecimal(const char character, uint8_t *number) { + f_status_t f_conversion_character_to_hexidecimal(const char character, uint8_t * const number) { #ifndef _di_level_0_parameter_checking_ if (!number) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -155,7 +155,7 @@ extern "C" { #endif // _di_f_conversion_character_to_hexidecimal_ #ifndef _di_f_conversion_character_to_octal_ - f_status_t f_conversion_character_to_octal(const char character, uint8_t *number) { + f_status_t f_conversion_character_to_octal(const char character, uint8_t * const number) { #ifndef _di_level_0_parameter_checking_ if (!number) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -171,7 +171,7 @@ extern "C" { #endif // _di_f_conversion_character_to_octal_ #ifndef _di_f_conversion_number_signed_print_ - f_status_t f_conversion_number_signed_print(const f_number_signed_t number, const f_conversion_data_t data, FILE *output) { + f_status_t f_conversion_number_signed_print(const f_number_signed_t number, const f_conversion_data_t data, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); if (data.base < 2 || data.base > 16) return F_status_set_error(F_parameter); @@ -186,7 +186,7 @@ extern "C" { #endif // _di_f_conversion_number_signed_print_ #ifndef _di_f_conversion_number_signed_to_string_ - f_status_t f_conversion_number_signed_to_string(const f_number_signed_t number, const f_conversion_data_t data, f_string_dynamic_t *destination) { + f_status_t f_conversion_number_signed_to_string(const f_number_signed_t number, const f_conversion_data_t data, f_string_dynamic_t * const destination) { #ifndef _di_level_0_parameter_checking_ if (!destination) return F_status_set_error(F_parameter); if (data.base < 2 || data.base > 16) return F_status_set_error(F_parameter); @@ -201,7 +201,7 @@ extern "C" { #endif // _di_f_conversion_number_signed_to_string_ #ifndef _di_f_conversion_number_unsigned_print_ - f_status_t f_conversion_number_unsigned_print(const f_number_unsigned_t number, const f_conversion_data_t data, FILE *output) { + f_status_t f_conversion_number_unsigned_print(const f_number_unsigned_t number, const f_conversion_data_t data, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); if (data.base < 2 || data.base > 16) return F_status_set_error(F_parameter); @@ -212,7 +212,7 @@ extern "C" { #endif // _di_f_conversion_number_unsigned_print_ #ifndef _di_f_conversion_number_unsigned_to_string_ - f_status_t f_conversion_number_unsigned_to_string(const f_number_unsigned_t number, const f_conversion_data_t data, f_string_dynamic_t *destination) { + f_status_t f_conversion_number_unsigned_to_string(const f_number_unsigned_t number, const f_conversion_data_t data, f_string_dynamic_t * const destination) { #ifndef _di_level_0_parameter_checking_ if (!destination) return F_status_set_error(F_parameter); if (data.base < 2 || data.base > 16) return F_status_set_error(F_parameter); diff --git a/level_0/f_conversion/c/conversion.h b/level_0/f_conversion/c/conversion.h index 80f3efa..d5764a8 100644 --- a/level_0/f_conversion/c/conversion.h +++ b/level_0/f_conversion/c/conversion.h @@ -146,7 +146,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_conversion_character_to_binary_ - extern f_status_t f_conversion_character_to_binary(const char character, uint8_t *number); + extern f_status_t f_conversion_character_to_binary(const char character, uint8_t * const number); #endif // _di_f_conversion_character_to_binary_ /** @@ -165,7 +165,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_conversion_character_to_decimal_ - extern f_status_t f_conversion_character_to_decimal(const char character, uint8_t *number); + extern f_status_t f_conversion_character_to_decimal(const char character, uint8_t * const number); #endif // _di_f_conversion_character_to_decimal_ /** @@ -184,7 +184,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_conversion_character_to_duodecimal_ - extern f_status_t f_conversion_character_to_duodecimal(const char character, uint8_t *number); + extern f_status_t f_conversion_character_to_duodecimal(const char character, uint8_t * const number); #endif // _di_f_conversion_character_to_duodecimal_ /** @@ -203,7 +203,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_conversion_character_to_hexidecimal_ - extern f_status_t f_conversion_character_to_hexidecimal(const char character, uint8_t *number); + extern f_status_t f_conversion_character_to_hexidecimal(const char character, uint8_t * const number); #endif // _di_f_conversion_character_to_hexidecimal_ /** @@ -222,7 +222,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_conversion_character_to_octal_ - extern f_status_t f_conversion_character_to_octal(const char character, uint8_t *number); + extern f_status_t f_conversion_character_to_octal(const char character, uint8_t * const number); #endif // _di_f_conversion_character_to_octal_ /** @@ -256,7 +256,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_conversion_number_signed_print_ - extern f_status_t f_conversion_number_signed_print(const f_number_signed_t number, const f_conversion_data_t data, FILE *output); + extern f_status_t f_conversion_number_signed_print(const f_number_signed_t number, const f_conversion_data_t data, FILE * const output); #endif // _di_f_conversion_number_signed_print_ /** @@ -284,7 +284,7 @@ extern "C" { * @see f_string_dynamic_increase_by() */ #ifndef _di_f_conversion_number_signed_to_string_ - extern f_status_t f_conversion_number_signed_to_string(const f_number_signed_t number, const f_conversion_data_t data, f_string_dynamic_t *destination); + extern f_status_t f_conversion_number_signed_to_string(const f_number_signed_t number, const f_conversion_data_t data, f_string_dynamic_t * const destination); #endif // _di_f_conversion_number_signed_to_string_ /** @@ -320,7 +320,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_conversion_number_unsigned_print_ - extern f_status_t f_conversion_number_unsigned_print(const f_number_unsigned_t number, const f_conversion_data_t data, FILE *output); + extern f_status_t f_conversion_number_unsigned_print(const f_number_unsigned_t number, const f_conversion_data_t data, FILE * const output); #endif // _di_f_conversion_number_unsigned_print_ /** @@ -348,7 +348,7 @@ extern "C" { * @see f_string_dynamic_increase_by() */ #ifndef _di_f_conversion_number_unsigned_to_string_ - extern f_status_t f_conversion_number_unsigned_to_string(const f_number_unsigned_t number, const f_conversion_data_t data, f_string_dynamic_t *destination); + extern f_status_t f_conversion_number_unsigned_to_string(const f_number_unsigned_t number, const f_conversion_data_t data, f_string_dynamic_t * const destination); #endif // _di_f_conversion_number_unsigned_to_string_ #ifdef __cplusplus diff --git a/level_0/f_conversion/c/private-conversion.c b/level_0/f_conversion/c/private-conversion.c index 7f8e8b4..4c216a4 100644 --- a/level_0/f_conversion/c/private-conversion.c +++ b/level_0/f_conversion/c/private-conversion.c @@ -6,7 +6,7 @@ extern "C" { #endif #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - f_status_t private_f_conversion_digit_to_file(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative, FILE *output) { + f_status_t private_f_conversion_digit_to_file(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative, FILE * const output) { int digits = 0; @@ -84,7 +84,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - f_status_t private_f_conversion_digit_to_file_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, FILE *output) { + f_status_t private_f_conversion_digit_to_file_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, FILE * const output) { f_number_unsigned_t power = 1; @@ -149,7 +149,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - f_status_t private_f_conversion_digit_to_file_pad(const f_conversion_data_t data, const f_string_static_t pad, int total, FILE *output) { + f_status_t private_f_conversion_digit_to_file_pad(const f_conversion_data_t data, const f_string_static_t pad, int total, FILE * const output) { for (; total; --total) { @@ -163,7 +163,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - f_status_t private_f_conversion_digit_to_file_prefix(const f_conversion_data_t data, const uint8_t negative, FILE *output) { + f_status_t private_f_conversion_digit_to_file_prefix(const f_conversion_data_t data, const uint8_t negative, FILE * const output) { if (negative) { if (negative == 1) { @@ -227,7 +227,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) #if !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) - f_status_t private_f_conversion_digit_to_string(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative, f_string_dynamic_t *destination) { + f_status_t private_f_conversion_digit_to_string(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative, f_string_dynamic_t * const destination) { int digits = 0; @@ -287,7 +287,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) #if !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) - void private_f_conversion_digit_to_string_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, f_string_dynamic_t *destination) { + void private_f_conversion_digit_to_string_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, f_string_dynamic_t * const destination) { f_number_unsigned_t power = 1; @@ -344,7 +344,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) #if !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) - void private_f_conversion_digit_to_string_pad(const f_conversion_data_t data, const char pad, int total, f_string_dynamic_t *destination) { + void private_f_conversion_digit_to_string_pad(const f_conversion_data_t data, const char pad, int total, f_string_dynamic_t * const destination) { for (; total; --total) { destination->string[destination->used++] = pad; @@ -353,7 +353,7 @@ extern "C" { #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) #if !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) - void private_f_conversion_digit_to_string_prefix(const f_conversion_data_t data, const uint8_t negative, f_string_dynamic_t *destination) { + void private_f_conversion_digit_to_string_prefix(const f_conversion_data_t data, const uint8_t negative, f_string_dynamic_t * const destination) { if (negative) { if (negative == 1) { diff --git a/level_0/f_conversion/c/private-conversion.h b/level_0/f_conversion/c/private-conversion.h index 070c469..6257723 100644 --- a/level_0/f_conversion/c/private-conversion.h +++ b/level_0/f_conversion/c/private-conversion.h @@ -48,7 +48,7 @@ extern "C" { * @see private_f_conversion_digit_to_file_prefix() */ #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - extern f_status_t private_f_conversion_digit_to_file(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_conversion_digit_to_file(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) /** @@ -78,7 +78,7 @@ extern "C" { * @see f_conversion_number_unsigned_print() */ #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - extern f_status_t private_f_conversion_digit_to_file_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_conversion_digit_to_file_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) /** @@ -107,7 +107,7 @@ extern "C" { * @see f_conversion_number_unsigned_print() */ #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - extern f_status_t private_f_conversion_digit_to_file_pad(const f_conversion_data_t data, const f_string_static_t pad, int total, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_conversion_digit_to_file_pad(const f_conversion_data_t data, const f_string_static_t pad, int total, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) /** @@ -137,7 +137,7 @@ extern "C" { * @see f_conversion_number_unsigned_print() */ #if !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) - extern f_status_t private_f_conversion_digit_to_file_prefix(const f_conversion_data_t data, const uint8_t negative, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_conversion_digit_to_file_prefix(const f_conversion_data_t data, const uint8_t negative, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_print_) || !defined(_di_f_conversion_number_unsigned_print_) /** @@ -170,7 +170,7 @@ extern "C" { * @see private_f_conversion_digit_to_string_prefix() */ #if !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) - extern f_status_t private_f_conversion_digit_to_string(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative, f_string_dynamic_t *destination) F_attribute_visibility_internal_d; + extern f_status_t private_f_conversion_digit_to_string(const f_number_unsigned_t number, const f_conversion_data_t data, const uint8_t negative, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) /** @@ -192,7 +192,7 @@ extern "C" { * @see f_conversion_number_unsigned_to_string() */ #if !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) - extern void private_f_conversion_digit_to_string_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, f_string_dynamic_t *destination) F_attribute_visibility_internal_d; + extern void private_f_conversion_digit_to_string_number(const f_conversion_data_t data, f_number_unsigned_t number, int digits, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) /** @@ -213,7 +213,7 @@ extern "C" { * @see f_conversion_number_unsigned_to_string() */ #if !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) - extern void private_f_conversion_digit_to_string_pad(const f_conversion_data_t data, const char pad, int total, f_string_dynamic_t *destination) F_attribute_visibility_internal_d; + extern void private_f_conversion_digit_to_string_pad(const f_conversion_data_t data, const char pad, int total, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) /** @@ -235,7 +235,7 @@ extern "C" { * @see f_conversion_number_unsigned_to_string() */ #if !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) - extern void private_f_conversion_digit_to_string_prefix(const f_conversion_data_t data, const uint8_t negative, f_string_dynamic_t *destination) F_attribute_visibility_internal_d; + extern void private_f_conversion_digit_to_string_prefix(const f_conversion_data_t data, const uint8_t negative, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d; #endif // !defined(_di_f_conversion_number_signed_to_string_) || !defined(_di_f_conversion_number_unsigned_to_string_) #ifdef __cplusplus diff --git a/level_0/f_environment/c/environment.c b/level_0/f_environment/c/environment.c index 171909a..5598b65 100644 --- a/level_0/f_environment/c/environment.c +++ b/level_0/f_environment/c/environment.c @@ -1,5 +1,4 @@ #include "environment.h" -#include "private-environment.h" #ifdef __cplusplus extern "C" { @@ -32,7 +31,7 @@ extern "C" { #endif // _di_f_environment_exists_ #ifndef _di_f_environment_get_ - f_status_t f_environment_get(const f_string_static_t name, f_string_dynamic_t *value) { + f_status_t f_environment_get(const f_string_static_t name, f_string_dynamic_t * const value) { #ifndef _di_level_0_parameter_checking_ if (!value) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_environment/c/environment.h b/level_0/f_environment/c/environment.h index 7f98959..018ab01 100644 --- a/level_0/f_environment/c/environment.h +++ b/level_0/f_environment/c/environment.h @@ -93,7 +93,7 @@ extern "C" { * @see f_string_dynamic_increase_by() */ #ifndef _di_f_environment_get_ - extern f_status_t f_environment_get(const f_string_static_t name, f_string_dynamic_t *value); + extern f_status_t f_environment_get(const f_string_static_t name, f_string_dynamic_t * const value); #endif // _di_f_environment_get_ /** diff --git a/level_0/f_environment/c/private-environment.c b/level_0/f_environment/c/private-environment.c deleted file mode 100644 index 7709591..0000000 --- a/level_0/f_environment/c/private-environment.c +++ /dev/null @@ -1,10 +0,0 @@ -#include "environment.h" -#include "private-environment.h" - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __cplusplus -} // extern "C" -#endif diff --git a/level_0/f_environment/c/private-environment.h b/level_0/f_environment/c/private-environment.h deleted file mode 100644 index ccdbe1b..0000000 --- a/level_0/f_environment/c/private-environment.h +++ /dev/null @@ -1,21 +0,0 @@ -/** - * FLL - Level 0 - * - * Project: Environment - * API Version: 0.5 - * Licenses: lgpl-2.1-or-later - * - * Provides environment processing functionality, such as environment variable handling. - */ -#ifndef _PRIVATE_F_environment_h -#define _PRIVATE_F_environment_h - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef __cplusplus -} // extern "C" -#endif - -#endif // _PRIVATE_F_environment_h diff --git a/level_0/f_environment/data/build/settings b/level_0/f_environment/data/build/settings index a87541d..ecdb6bb 100644 --- a/level_0/f_environment/data/build/settings +++ b/level_0/f_environment/data/build/settings @@ -30,7 +30,7 @@ build_objects_library_static build_objects_program build_objects_program_shared build_objects_program_static -build_sources_library environment.c private-environment.c +build_sources_library environment.c build_sources_library_shared build_sources_library_static build_sources_object diff --git a/level_0/f_file/c/file.c b/level_0/f_file/c/file.c index 5bc8ff1..c7794c7 100644 --- a/level_0/f_file/c/file.c +++ b/level_0/f_file/c/file.c @@ -400,7 +400,7 @@ extern "C" { #endif // _di_f_file_flush_ #ifndef _di_f_file_group_read_ - f_status_t f_file_group_read(const f_string_static_t path, gid_t *group) { + f_status_t f_file_group_read(const f_string_static_t path, gid_t * const group) { #ifndef _di_level_0_parameter_checking_ if (!group) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -565,7 +565,7 @@ extern "C" { #endif // _di_f_file_link_hard_at_ #ifndef _di_f_file_link_read_ - f_status_t f_file_link_read(const f_string_static_t path, const struct stat link_stat, f_string_dynamic_t *target) { + f_status_t f_file_link_read(const f_string_static_t path, const struct stat link_stat, f_string_dynamic_t * const 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); @@ -580,7 +580,7 @@ extern "C" { #endif // _di_f_file_link_read_ #ifndef _di_f_file_link_read_at_ - f_status_t f_file_link_read_at(const int at_id, const f_string_static_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_static_t path, const struct stat link_stat, f_string_dynamic_t * const 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); @@ -898,7 +898,7 @@ extern "C" { #endif // _di_f_file_mode_determine_ #ifndef _di_f_file_mode_from_string_ - f_status_t f_file_mode_from_string(const f_string_static_t code, const mode_t umask, f_file_mode_t *mode, uint8_t *replace) { + f_status_t f_file_mode_from_string(const f_string_static_t code, const mode_t umask, f_file_mode_t * const mode, uint8_t * const replace) { #ifndef _di_level_0_parameter_checking_ if (!mode) return F_status_set_error(F_parameter); if (!replace) return F_status_set_error(F_parameter); @@ -1249,7 +1249,7 @@ extern "C" { #endif // _di_f_file_mode_from_string_ #ifndef _di_f_file_mode_read_ - f_status_t f_file_mode_read(const f_string_static_t path, mode_t *mode) { + f_status_t f_file_mode_read(const f_string_static_t path, mode_t * const mode) { #ifndef _di_level_0_parameter_checking_ if (!mode) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1274,7 +1274,7 @@ extern "C" { #endif // _di_f_file_mode_read_ #ifndef _di_f_file_mode_read_at_ - f_status_t f_file_mode_read_at(const int at_id, const f_string_static_t path, mode_t *mode) { + f_status_t f_file_mode_read_at(const int at_id, const f_string_static_t path, mode_t * const mode) { #ifndef _di_level_0_parameter_checking_ if (!mode) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1320,7 +1320,7 @@ extern "C" { #endif // _di_f_file_mode_set_at_ #ifndef _di_f_file_mode_to_mode_ - f_status_t 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 * const to) { #ifndef _di_level_0_parameter_checking_ if (!to) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1382,7 +1382,7 @@ extern "C" { #endif // _di_f_file_mode_to_mode_ #ifndef _di_f_file_name_base_ - f_status_t f_file_name_base(const f_string_static_t path, f_string_dynamic_t *name_base) { + f_status_t f_file_name_base(const f_string_static_t path, f_string_dynamic_t * const name_base) { #ifndef _di_level_0_parameter_checking_ if (!name_base) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1414,7 +1414,7 @@ extern "C" { #endif // _di_f_file_name_base_ #ifndef _di_f_file_name_directory_ - f_status_t f_file_name_directory(const f_string_static_t path, f_string_dynamic_t *name_directory) { + f_status_t f_file_name_directory(const f_string_static_t path, f_string_dynamic_t * const name_directory) { #ifndef _di_level_0_parameter_checking_ if (!name_directory) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1453,7 +1453,7 @@ extern "C" { #endif // _di_f_file_name_directory_ #ifndef _di_f_file_open_ - f_status_t f_file_open(const f_string_static_t path, const mode_t mode, f_file_t *file) { + f_status_t f_file_open(const f_string_static_t path, const mode_t mode, f_file_t * const file) { #ifndef _di_level_0_parameter_checking_ if (!file) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1467,7 +1467,7 @@ extern "C" { #endif // _di_f_file_open_ #ifndef _di_f_file_open_at_ - f_status_t f_file_open_at(const int at_id, const f_string_static_t path, const mode_t mode, f_file_t *file) { + f_status_t f_file_open_at(const int at_id, const f_string_static_t path, const mode_t mode, f_file_t * const file) { #ifndef _di_level_0_parameter_checking_ if (!file) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1481,7 +1481,7 @@ extern "C" { #endif // _di_f_file_open_at_ #ifndef _di_f_file_owner_read_ - f_status_t f_file_owner_read(const f_string_static_t path, uid_t *owner) { + f_status_t f_file_owner_read(const f_string_static_t path, uid_t * const owner) { #ifndef _di_level_0_parameter_checking_ if (!owner) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1506,7 +1506,7 @@ extern "C" { #endif // _di_f_file_owner_read_ #ifndef _di_f_file_read_ - f_status_t 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 * const buffer) { #ifndef _di_level_0_parameter_checking_ if (!buffer) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1546,7 +1546,7 @@ extern "C" { #endif // _di_f_file_read_ #ifndef _di_f_file_read_block_ - f_status_t 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 * const buffer) { #ifndef _di_level_0_parameter_checking_ if (!buffer) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1589,7 +1589,7 @@ extern "C" { #endif // _di_f_file_read_block_ #ifndef _di_f_file_read_until_ - f_status_t f_file_read_until(const f_file_t file, const f_array_length_t total, f_string_dynamic_t *buffer) { + f_status_t f_file_read_until(const f_file_t file, const f_array_length_t total, f_string_dynamic_t * const buffer) { #ifndef _di_level_0_parameter_checking_ if (!buffer) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1793,7 +1793,7 @@ extern "C" { #endif // _di_f_file_role_change_at_ #ifndef _di_f_file_seek_ - f_status_t f_file_seek(const int id, const int whence, const f_array_length_t offset, f_array_length_t *seeked) { + f_status_t f_file_seek(const int id, const int whence, const f_array_length_t offset, f_array_length_t * const 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); @@ -1816,7 +1816,7 @@ extern "C" { #endif // _di_f_file_seek_ #ifndef _di_f_file_size_ - f_status_t f_file_size(const f_string_static_t path, const bool dereference, f_array_length_t *size) { + f_status_t f_file_size(const f_string_static_t path, const bool dereference, f_array_length_t * const size) { #ifndef _di_level_0_parameter_checking_ if (!size) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1841,7 +1841,7 @@ extern "C" { #endif // _di_f_file_size_ #ifndef _di_f_file_size_at_ - f_status_t f_file_size_at(const int at_id, const f_string_static_t path, const bool dereference, f_array_length_t *size) { + f_status_t f_file_size_at(const int at_id, const f_string_static_t path, const bool dereference, f_array_length_t * const size) { #ifndef _di_level_0_parameter_checking_ if (at_id <= 0) return F_status_set_error(F_parameter); if (!size) return F_status_set_error(F_parameter); @@ -1867,7 +1867,7 @@ extern "C" { #endif // _di_f_file_size_at_ #ifndef _di_f_file_size_by_id_ - f_status_t f_file_size_by_id(const int id, f_array_length_t *size) { + f_status_t f_file_size_by_id(const int id, f_array_length_t * const 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); @@ -1889,7 +1889,7 @@ extern "C" { #endif // _di_f_file_size_by_id_ #ifndef _di_f_file_stat_ - f_status_t f_file_stat(const f_string_static_t path, const bool dereference, struct stat *stat_file) { + f_status_t f_file_stat(const f_string_static_t path, const bool dereference, struct stat * const stat_file) { #ifndef _di_level_0_parameter_checking_ if (!stat_file) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1903,7 +1903,7 @@ extern "C" { #endif // _di_f_file_stat_ #ifndef _di_f_file_stat_at_ - f_status_t f_file_stat_at(const int at_id, const f_string_static_t path, const int flag, struct stat *stat_file) { + f_status_t f_file_stat_at(const int at_id, const f_string_static_t path, const int flag, struct stat * const stat_file) { #ifndef _di_level_0_parameter_checking_ if (at_id <= 0) return F_status_set_error(F_parameter); if (!stat_file) return F_status_set_error(F_parameter); @@ -1918,7 +1918,7 @@ extern "C" { #endif // _di_f_file_stat_at_ #ifndef _di_f_file_stat_by_id_ - f_status_t 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 * const 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); @@ -1929,7 +1929,7 @@ extern "C" { #endif // _di_f_file_stat_by_id_ #ifndef _di_f_file_stream_close_ - f_status_t f_file_stream_close(const bool complete, f_file_t *file) { + f_status_t f_file_stream_close(const bool complete, f_file_t * const file) { #ifndef _di_level_0_parameter_checking_ if (!file) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1977,7 +1977,7 @@ extern "C" { #endif // _di_f_file_stream_close_ #ifndef _di_f_file_stream_descriptor_ - f_status_t f_file_stream_descriptor(const f_string_static_t mode, f_file_t *file) { + f_status_t f_file_stream_descriptor(const f_string_static_t mode, f_file_t * const 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); @@ -2012,7 +2012,7 @@ extern "C" { #ifndef _di_f_file_stream_open_ - f_status_t f_file_stream_open(const f_string_static_t path, const f_string_static_t mode, f_file_t *file) { + f_status_t f_file_stream_open(const f_string_static_t path, const f_string_static_t mode, f_file_t * const file) { #ifndef _di_level_0_parameter_checking_ if (!file) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2059,7 +2059,7 @@ extern "C" { #endif // _di_f_file_stream_open_ #ifndef _di_f_file_stream_read_ - f_status_t f_file_stream_read(const f_file_t file, f_string_dynamic_t *buffer) { + f_status_t f_file_stream_read(const f_file_t file, f_string_dynamic_t * const buffer) { #ifndef _di_level_0_parameter_checking_ if (!buffer) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2109,7 +2109,7 @@ extern "C" { #endif // _di_f_file_stream_read_ #ifndef _di_f_file_stream_read_block_ - f_status_t f_file_stream_read_block(const f_file_t file, f_string_dynamic_t *buffer) { + f_status_t f_file_stream_read_block(const f_file_t file, f_string_dynamic_t * const buffer) { #ifndef _di_level_0_parameter_checking_ if (!file.size_read) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2150,7 +2150,7 @@ extern "C" { #endif // _di_f_file_stream_read_block_ #ifndef _di_f_file_stream_read_until_ - f_status_t f_file_stream_read_until(const f_file_t file, const f_array_length_t total, f_string_dynamic_t *buffer) { + f_status_t f_file_stream_read_until(const f_file_t file, const f_array_length_t total, f_string_dynamic_t * const buffer) { #ifndef _di_level_0_parameter_checking_ if (!buffer) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2211,7 +2211,7 @@ extern "C" { #endif // _di_f_file_stream_read_until_ #ifndef _di_f_file_stream_reopen_ - f_status_t f_file_stream_reopen(const f_string_static_t path, const f_string_static_t mode, f_file_t *file) { + f_status_t f_file_stream_reopen(const f_string_static_t path, const f_string_static_t mode, f_file_t * const file) { #ifndef _di_level_0_parameter_checking_ if (!file) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2256,7 +2256,7 @@ extern "C" { #endif // _di_f_file_stream_reopen_ #ifndef _di_f_file_stream_write_ - f_status_t f_file_stream_write(const f_file_t file, const f_string_static_t buffer, f_array_length_t *written) { + f_status_t f_file_stream_write(const f_file_t file, const f_string_static_t buffer, f_array_length_t * const written) { #ifndef _di_level_0_parameter_checking_ if (!file.size_write) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2301,7 +2301,7 @@ extern "C" { #endif // _di_f_file_stream_write_ #ifndef _di_f_file_stream_write_block_ - f_status_t f_file_stream_write_block(const f_file_t file, const f_string_static_t buffer, f_array_length_t *written) { + f_status_t f_file_stream_write_block(const f_file_t file, const f_string_static_t buffer, f_array_length_t * const written) { #ifndef _di_level_0_parameter_checking_ if (!file.size_write) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2360,7 +2360,7 @@ extern "C" { #endif // _di_f_file_stream_write_block_ #ifndef _di_f_file_stream_write_until_ - f_status_t f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t *written) { + f_status_t f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t * const written) { #ifndef _di_level_0_parameter_checking_ if (!file.size_write) return F_status_set_error(F_parameter); if (!total) return F_status_set_error(F_parameter); @@ -2420,7 +2420,7 @@ extern "C" { #endif // _di_f_file_stream_write_until_ #ifndef _di_f_file_stream_write_range_ - f_status_t f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_array_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_range_t range, f_array_length_t * const written) { #ifndef _di_level_0_parameter_checking_ if (!file.size_write) return F_status_set_error(F_parameter); if (range.stop < range.start) return F_status_set_error(F_parameter); @@ -2567,7 +2567,7 @@ extern "C" { #endif // _di_f_file_touch_at_ #ifndef _di_f_file_type_ - f_status_t f_file_type(const f_string_static_t path, int *type) { + f_status_t f_file_type(const f_string_static_t path, int * const type) { #ifndef _di_level_0_parameter_checking_ if (!type) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2600,7 +2600,7 @@ extern "C" { #endif // _di_f_file_type_ #ifndef _di_f_file_type_at_ - f_status_t f_file_type_at(const int at_id, const f_string_static_t path, const int flag, int *type) { + f_status_t f_file_type_at(const int at_id, const f_string_static_t path, const int flag, int * const type) { #ifndef _di_level_0_parameter_checking_ if (!type) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2634,7 +2634,7 @@ extern "C" { #endif // _di_f_file_type_at_ #ifndef _di_f_file_umask_get_ - f_status_t f_file_umask_get(mode_t *mask) { + f_status_t f_file_umask_get(mode_t * const mask) { // Bad design in POSIX where there is no get umask without setting it. *mask = umask(0); @@ -2656,7 +2656,7 @@ extern "C" { #endif // _di_f_file_umask_set_ #ifndef _di_f_file_write_ - f_status_t f_file_write(const f_file_t file, const f_string_static_t buffer, f_array_length_t *written) { + f_status_t f_file_write(const f_file_t file, const f_string_static_t buffer, f_array_length_t * const written) { #ifndef _di_level_0_parameter_checking_ if (!file.size_write) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2699,7 +2699,7 @@ extern "C" { #endif // _di_f_file_write_ #ifndef _di_f_file_write_block_ - f_status_t f_file_write_block(const f_file_t file, const f_string_static_t buffer, f_array_length_t *written) { + f_status_t f_file_write_block(const f_file_t file, const f_string_static_t buffer, f_array_length_t * const written) { #ifndef _di_level_0_parameter_checking_ if (!file.size_write) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2756,7 +2756,7 @@ extern "C" { #endif // _di_f_file_write_block_ #ifndef _di_f_file_write_until_ - f_status_t f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t *written) { + f_status_t f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t * const written) { #ifndef _di_level_0_parameter_checking_ if (!file.size_write) return F_status_set_error(F_parameter); if (!total) return F_status_set_error(F_parameter); @@ -2814,7 +2814,7 @@ extern "C" { #endif // _di_f_file_write_until_ #ifndef _di_f_file_write_range_ - 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_array_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_array_length_t * const written) { #ifndef _di_level_0_parameter_checking_ if (!file.size_write) return F_status_set_error(F_parameter); if (range.stop < range.start) return F_status_set_error(F_parameter); diff --git a/level_0/f_file/c/file.h b/level_0/f_file/c/file.h index d10aaa2..5577d45 100644 --- a/level_0/f_file/c/file.h +++ b/level_0/f_file/c/file.h @@ -546,7 +546,7 @@ extern "C" { * @see fileno() */ #ifndef _di_f_file_descriptor_ - extern f_status_t f_file_descriptor(f_file_t *file); + extern f_status_t f_file_descriptor(f_file_t * const file); #endif // _di_f_file_descriptor_ /** @@ -657,7 +657,7 @@ extern "C" { * @see fstat() */ #ifndef _di_f_file_group_read_ - extern f_status_t f_file_group_read(const f_string_static_t path, uid_t *group); + extern f_status_t f_file_group_read(const f_string_static_t path, uid_t * const group); #endif // _di_f_file_group_read_ /** @@ -919,7 +919,7 @@ extern "C" { * @see readlink() */ #ifndef _di_f_file_link_read_ - extern f_status_t f_file_link_read(const f_string_static_t path, const struct stat link_stat, f_string_dynamic_t *target); + extern f_status_t f_file_link_read(const f_string_static_t path, const struct stat link_stat, f_string_dynamic_t * const target); #endif // _di_f_file_link_read_ /** @@ -958,7 +958,7 @@ extern "C" { * @see readlinkat() */ #ifndef _di_f_file_link_read_at_ - extern f_status_t f_file_link_read_at(const int at_id, const f_string_static_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_static_t path, const struct stat link_stat, f_string_dynamic_t * const target); #endif // _di_f_file_link_read_at_ /** @@ -988,7 +988,7 @@ extern "C" { * @see f_file_mode_from_string() */ #ifndef _di_f_file_mode_determine_ - 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); + 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 * const mode); #endif // _di_f_file_mode_determine_ /** @@ -1078,7 +1078,7 @@ extern "C" { * @see private_f_file_mode_determine() */ #ifndef _di_f_file_mode_from_string_ - extern f_status_t f_file_mode_from_string(const f_string_static_t code, const mode_t umask, f_file_mode_t *mode, uint8_t *replace); + extern f_status_t f_file_mode_from_string(const f_string_static_t code, const mode_t umask, f_file_mode_t * const mode, uint8_t * const replace); #endif // _di_f_file_mode_from_string_ /** @@ -1105,7 +1105,7 @@ extern "C" { * @see fstat() */ #ifndef _di_f_file_mode_read_ - extern f_status_t f_file_mode_read(const f_string_static_t path, mode_t *mode); + extern f_status_t f_file_mode_read(const f_string_static_t path, mode_t * const mode); #endif // _di_f_file_mode_read_ /** @@ -1134,7 +1134,7 @@ extern "C" { * @see fstatat() */ #ifndef _di_f_file_mode_read_at_ - extern f_status_t f_file_mode_read_at(const int at_id, const f_string_static_t path, mode_t *mode); + extern f_status_t f_file_mode_read_at(const int at_id, const f_string_static_t path, mode_t * const mode); #endif // _di_f_file_mode_read_at_ /** @@ -1223,7 +1223,7 @@ extern "C" { * @see f_file_mode_from_string() */ #ifndef _di_f_file_mode_to_mode_ - extern f_status_t 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 * const to); #endif // _di_f_file_mode_to_mode_ /** @@ -1252,7 +1252,7 @@ extern "C" { * @see f_string_dynamic_increase_by() */ #ifndef _di_f_file_name_base_ - extern f_status_t f_file_name_base(const f_string_static_t path, f_string_dynamic_t *name_base); + extern f_status_t f_file_name_base(const f_string_static_t path, f_string_dynamic_t * const name_base); #endif // _di_f_file_name_base_ /** @@ -1281,7 +1281,7 @@ extern "C" { * @see f_string_dynamic_increase_by() */ #ifndef _di_f_file_name_directory_ - extern f_status_t f_file_name_directory(const f_string_static_t path, f_string_dynamic_t *name_directory); + extern f_status_t f_file_name_directory(const f_string_static_t path, f_string_dynamic_t * const name_directory); #endif // _di_f_file_name_directory_ /** @@ -1324,7 +1324,7 @@ extern "C" { * @see open() */ #ifndef _di_f_file_open_ - extern f_status_t f_file_open(const f_string_static_t path, const mode_t mode, f_file_t *file); + extern f_status_t f_file_open(const f_string_static_t path, const mode_t mode, f_file_t * const file); #endif // _di_f_file_open_ /** @@ -1356,7 +1356,7 @@ extern "C" { * @see openat() */ #ifndef _di_f_file_open_at_ - extern f_status_t f_file_open_at(const int at_id, const f_string_static_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_static_t path, const mode_t mode, f_file_t * const file); #endif // _di_f_file_open_at_ /** @@ -1383,7 +1383,7 @@ extern "C" { * @see fstat() */ #ifndef _di_f_file_owner_read_ - extern f_status_t f_file_owner_read(const f_string_static_t path, uid_t *owner); + extern f_status_t f_file_owner_read(const f_string_static_t path, uid_t * const owner); #endif // _di_f_file_owner_read_ /** @@ -1417,7 +1417,7 @@ extern "C" { * @see f_string_dynamic_increase_by() */ #ifndef _di_f_file_read_ - extern f_status_t 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 * const buffer); #endif // _di_f_file_read_ /** @@ -1448,7 +1448,7 @@ extern "C" { * @see read() */ #ifndef _di_f_file_read_block_ - extern f_status_t 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 * const buffer); #endif // _di_f_file_read_block_ /** @@ -1485,7 +1485,7 @@ extern "C" { * @see read() */ #ifndef _di_f_file_read_until_ - extern f_status_t f_file_read_until(const f_file_t file, const f_array_length_t total, f_string_dynamic_t *buffer); + extern f_status_t f_file_read_until(const f_file_t file, const f_array_length_t total, f_string_dynamic_t * const buffer); #endif // _di_f_file_read_until_ /** @@ -1754,7 +1754,7 @@ extern "C" { * @see lseek */ #ifndef _di_f_file_seek_ - extern f_status_t f_file_seek(const int id, const int whence, const f_array_length_t offset, f_array_length_t *seeked); + extern f_status_t f_file_seek(const int id, const int whence, const f_array_length_t offset, f_array_length_t * const seeked); #endif // _di_f_file_seek_ /** @@ -1783,7 +1783,7 @@ extern "C" { * @see f_file_stat() */ #ifndef _di_f_file_size_ - extern f_status_t f_file_size(const f_string_static_t path, const bool dereference, f_array_length_t *size); + extern f_status_t f_file_size(const f_string_static_t path, const bool dereference, f_array_length_t * const size); #endif // _di_f_file_size_ /** @@ -1814,7 +1814,7 @@ extern "C" { * @see f_file_stat_at() */ #ifndef _di_f_file_size_at_ - extern f_status_t f_file_size_at(const int at_id, const f_string_static_t path, const bool dereference, f_array_length_t *size); + extern f_status_t f_file_size_at(const int at_id, const f_string_static_t path, const bool dereference, f_array_length_t * const size); #endif // _di_f_file_size_at_ /** @@ -1840,7 +1840,7 @@ extern "C" { * @see f_file_stat_by_id() */ #ifndef _di_f_file_size_by_id_ - extern f_status_t f_file_size_by_id(const int id, f_array_length_t *size); + extern f_status_t f_file_size_by_id(const int id, f_array_length_t * const size); #endif // _di_f_file_size_by_id_ /** @@ -1869,7 +1869,7 @@ extern "C" { * @see stat() */ #ifndef _di_f_file_stat_ - extern f_status_t f_file_stat(const f_string_static_t path, const bool dereference, struct stat *stat_file); + extern f_status_t f_file_stat(const f_string_static_t path, const bool dereference, struct stat * const stat_file); #endif // _di_f_file_stat_ /** @@ -1899,7 +1899,7 @@ extern "C" { * @see fstatat() */ #ifndef _di_f_file_stat_at_ - extern f_status_t f_file_stat_at(const int at_id, const f_string_static_t path, const int flag, struct stat *stat_file); + extern f_status_t f_file_stat_at(const int at_id, const f_string_static_t path, const int flag, struct stat * const stat_file); #endif // _di_f_file_stat_at_ /** @@ -1925,7 +1925,7 @@ extern "C" { * @see fstat() */ #ifndef _di_f_file_stat_by_id_ - extern f_status_t 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 * const stat_file); #endif // _di_f_file_stat_by_id_ /** @@ -1965,7 +1965,7 @@ extern "C" { * @see fclose() */ #ifndef _di_f_file_stream_close_ - extern f_status_t 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 * const file); #endif // _di_f_file_stream_close_ /** @@ -1997,7 +1997,7 @@ extern "C" { * @see fdopen() */ #ifndef _di_f_file_stream_descriptor_ - extern f_status_t f_file_stream_descriptor(const f_string_static_t mode, f_file_t *file); + extern f_status_t f_file_stream_descriptor(const f_string_static_t mode, f_file_t * const file); #endif // _di_f_file_stream_descriptor_ /** @@ -2050,7 +2050,7 @@ extern "C" { * @see fopen() */ #ifndef _di_f_file_stream_open_ - extern f_status_t f_file_stream_open(const f_string_static_t path, const f_string_static_t mode, f_file_t *file); + extern f_status_t f_file_stream_open(const f_string_static_t path, const f_string_static_t mode, f_file_t * const file); #endif // _di_f_file_stream_open_ /** @@ -2083,7 +2083,7 @@ extern "C" { * @see funlockfile() */ #ifndef _di_f_file_stream_read_ - extern f_status_t f_file_stream_read(const f_file_t file, f_string_dynamic_t *buffer); + extern f_status_t f_file_stream_read(const f_file_t file, f_string_dynamic_t * const buffer); #endif // _di_f_file_stream_read_ /** @@ -2115,7 +2115,7 @@ extern "C" { * @see fread() */ #ifndef _di_f_file_stream_read_block_ - extern f_status_t f_file_stream_read_block(const f_file_t file, f_string_dynamic_t *buffer); + extern f_status_t f_file_stream_read_block(const f_file_t file, f_string_dynamic_t * const buffer); #endif // _di_f_file_stream_read_block_ /** @@ -2159,7 +2159,7 @@ extern "C" { * @see f_string_dynamic_increase_by() */ #ifndef _di_f_file_stream_read_until_ - extern f_status_t f_file_stream_read_until(const f_file_t file, const f_array_length_t total, f_string_dynamic_t *buffer); + extern f_status_t f_file_stream_read_until(const f_file_t file, const f_array_length_t total, f_string_dynamic_t * const buffer); #endif // _di_f_file_stream_read_until_ /** @@ -2206,7 +2206,7 @@ extern "C" { * @see freopen() */ #ifndef _di_f_file_stream_reopen_ - extern f_status_t f_file_stream_reopen(const f_string_static_t path, const f_string_static_t mode, f_file_t *file); + extern f_status_t f_file_stream_reopen(const f_string_static_t path, const f_string_static_t mode, f_file_t * const file); #endif // _di_f_file_stream_reopen_ /** @@ -2238,7 +2238,7 @@ extern "C" { * @see fwrite() */ #ifndef _di_f_file_stream_write_ - extern f_status_t f_file_stream_write(const f_file_t file, const f_string_static_t buffer, f_array_length_t *written); + extern f_status_t f_file_stream_write(const f_file_t file, const f_string_static_t buffer, f_array_length_t * const written); #endif // _di_f_file_stream_write_ /** @@ -2272,7 +2272,7 @@ extern "C" { * @see fwrite() */ #ifndef _di_f_file_stream_write_block_ - extern f_status_t f_file_stream_write_block(const f_file_t file, const f_string_static_t buffer, f_array_length_t *written); + extern f_status_t f_file_stream_write_block(const f_file_t file, const f_string_static_t buffer, f_array_length_t * const written); #endif // _di_f_file_stream_write_block_ /** @@ -2307,7 +2307,7 @@ extern "C" { * @see fwrite() */ #ifndef _di_f_file_stream_write_until_ - extern f_status_t f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_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_array_length_t total, f_array_length_t * const written); #endif // _di_f_file_stream_write_until_ /** @@ -2341,7 +2341,7 @@ extern "C" { * @see fwrite() */ #ifndef _di_f_file_stream_write_range_ - extern f_status_t f_file_stream_write_range(const f_file_t file, const f_string_static_t buffer, const f_string_range_t range, f_array_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_range_t range, f_array_length_t * const written); #endif // _di_f_file_stream_write_range_ @@ -2456,7 +2456,7 @@ extern "C" { * @see stat() */ #ifndef _di_f_file_type_ - extern f_status_t f_file_type(const f_string_static_t path, int *type); + extern f_status_t f_file_type(const f_string_static_t path, int * const type); #endif // _di_f_file_type_ /** @@ -2486,7 +2486,7 @@ extern "C" { * @see fstatat() */ #ifndef _di_f_file_type_at_ - extern f_status_t f_file_type_at(const int at_id, const f_string_static_t path, const int flag, int *type); + extern f_status_t f_file_type_at(const int at_id, const f_string_static_t path, const int flag, int * const type); #endif // _di_f_file_type_at_ /** @@ -2503,7 +2503,7 @@ extern "C" { * F_none on success. */ #ifndef _di_f_file_umask_get_ - extern f_status_t f_file_umask_get(mode_t *mask); + extern f_status_t f_file_umask_get(mode_t * const mask); #endif // _di_f_file_umask_get_ /** @@ -2548,7 +2548,7 @@ extern "C" { * @see write() */ #ifndef _di_f_file_write_ - extern f_status_t f_file_write(const f_file_t file, const f_string_static_t buffer, f_array_length_t *written); + extern f_status_t f_file_write(const f_file_t file, const f_string_static_t buffer, f_array_length_t * const written); #endif // _di_f_file_write_ /** @@ -2581,7 +2581,7 @@ extern "C" { * @see write() */ #ifndef _di_f_file_write_block_ - extern f_status_t f_file_write_block(const f_file_t file, const f_string_static_t buffer, f_array_length_t *written); + extern f_status_t f_file_write_block(const f_file_t file, const f_string_static_t buffer, f_array_length_t * const written); #endif // _di_f_file_write_block_ /** @@ -2615,7 +2615,7 @@ extern "C" { * @see write() */ #ifndef _di_f_file_write_until_ - extern f_status_t f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t *written); + extern f_status_t f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t * const written); #endif // _di_f_file_write_until_ /** @@ -2648,7 +2648,7 @@ extern "C" { * @see write() */ #ifndef _di_f_file_write_range_ - 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_array_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_array_length_t * const written); #endif // _di_f_file_write_range_ #ifdef __cplusplus diff --git a/level_0/f_file/c/file/common.h b/level_0/f_file/c/file/common.h index bccf3ee..1a5f7a3 100644 --- a/level_0/f_file/c/file/common.h +++ b/level_0/f_file/c/file/common.h @@ -201,26 +201,26 @@ extern "C" { #define F_file_flag_truncate_d O_TRUNC #define F_file_flag_write_only_d O_WRONLY - // file open flags pre-combined with create. + // File open flags pre-combined with create. #define F_file_flag_create_ro_d (O_CREAT | O_RDONLY) #define F_file_flag_create_wo_d (O_CREAT | O_WRONLY) #define F_file_flag_create_rw_d (O_CREAT | O_RDRW) - // file open flags pre-combined will fail if file exists. + // File open flags pre-combined will fail if file exists. #define F_file_flag_create_new_ro_d (O_CREAT | O_EXCL | O_RDONLY) #define F_file_flag_create_new_wo_d (O_CREAT | O_EXCL | O_WRONLY) #define F_file_flag_create_new_rw_d (O_CREAT | O_EXCL | O_RDRW) - // file open flags pre-combined will truncate any existing files to 0. + // File open flags pre-combined will truncate any existing files to 0. #define F_file_flag_truncate_ro_d (O_CREAT | O_TRUNC | O_RDONLY) #define F_file_flag_truncate_rw_d (O_CREAT | O_TRUNC | O_RDRW) #define F_file_flag_truncate_wo_d (O_CREAT | O_TRUNC | O_WRONLY) - // file open flags pre-combined will truncate any existing files to 0. + // File open flags pre-combined will truncate any existing files to 0. #define F_file_flag_append_rw_d (O_CREAT | O_APPEND | O_RDRW) #define F_file_flag_append_wo_d (O_CREAT | O_APPEND | O_WRONLY) - // file open flags pre-combined with synchronous io. + // File open flags pre-combined with synchronous io. #define F_file_flag_sync_ro_d (O_SYNC | O_RDONLY) #define F_file_flag_sync_wo_d (O_SYNC | O_WRONLY) #define F_file_flag_sync_rw_d (O_SYNC | O_RDRW) @@ -231,7 +231,7 @@ extern "C" { #define F_file_flag_sync_create_new_wo_d (O_SYNC | O_CREAT | O_EXCL | O_WRONLY) #define F_file_flag_sync_create_new_rw_d (O_SYNC | O_CREAT | O_EXCL | O_RDRW) - // file open flags pre-combined with asynchronous io. + // File open flags pre-combined with asynchronous io. #define F_file_flag_async_ro_d (O_ASYNC | O_RDONLY) #define F_file_flag_async_wo_d (O_ASYNC | O_WRONLY) #define F_file_flag_async_rw_d (O_ASYNC | O_RDRW) @@ -242,7 +242,7 @@ extern "C" { #define F_file_flag_async_create_new_wo_d (O_ASYNC | O_CREAT | O_EXCL | O_WRONLY) #define F_file_flag_async_create_new_rw_d (O_ASYNC | O_CREAT | O_EXCL | O_RDRW) - // file open flags pre-combined with direct io (which works synchronously). + // File open flags pre-combined with direct io (which works synchronously). #define F_file_flag_direct_ro_d (O_DIRECT | O_RDONLY) #define F_file_flag_direct_wo_d (O_DIRECT | O_WRONLY) #define F_file_flag_direct_rw_d (O_DIRECT | O_RDRW) @@ -253,7 +253,7 @@ extern "C" { #define F_file_flag_direct_create_new_wo_d (O_DIRECT | O_CREAT | O_EXCL | O_WRONLY) #define F_file_flag_direct_create_new_rw_d (O_DIRECT | O_CREAT | O_EXCL | O_RDRW) - // file open flags pre-combined with large_file. + // File open flags pre-combined with large_file. #define F_file_flag_large_ro_d (O_LARGEFILE | O_RDONLY) #define F_file_flag_large_wo_d (O_LARGEFILE | O_WRONLY) #define F_file_flag_large_rw_d (O_LARGEFILE | O_RDRW) diff --git a/level_0/f_file/c/private-file.c b/level_0/f_file/c/private-file.c index d875763..d7fe2c2 100644 --- a/level_0/f_file/c/private-file.c +++ b/level_0/f_file/c/private-file.c @@ -402,7 +402,7 @@ extern "C" { #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_status_t private_f_file_link_read(const f_string_static_t path, const struct stat link_stat, f_string_dynamic_t *target) { + f_status_t private_f_file_link_read(const f_string_static_t path, const struct stat link_stat, f_string_dynamic_t * const target) { // create a NULL terminated string based on file stat. if (link_stat.st_size + 1 > target->size) { @@ -439,7 +439,7 @@ extern "C" { #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_status_t private_f_file_link_read_at(const int at_id, const f_string_static_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_static_t path, const struct stat link_stat, f_string_dynamic_t * const target) { // Create a NULL terminated string based on file stat. if (link_stat.st_size + 1 > target->size) { @@ -522,7 +522,7 @@ extern "C" { #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_status_t private_f_file_open(const f_string_static_t path, const mode_t mode, f_file_t *file) { + f_status_t private_f_file_open(const f_string_static_t path, const mode_t mode, f_file_t * const file) { if (!mode) { file->id = open(path.string, file->flag); @@ -560,7 +560,7 @@ extern "C" { #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_status_t private_f_file_open_at(const int at_id, const f_string_static_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_static_t path, const mode_t mode, f_file_t * const file) { if (!mode) { file->id = openat(at_id, path.string, file->flag); @@ -697,7 +697,7 @@ extern "C" { #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_status_t private_f_file_stat(const f_string_static_t path, const bool dereference, struct stat *file_stat) { + f_status_t private_f_file_stat(const f_string_static_t path, const bool dereference, struct stat * const file_stat) { if ((dereference ? stat(path.string, file_stat) : lstat(path.string, file_stat)) < 0) { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); @@ -717,7 +717,7 @@ extern "C" { #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_status_t private_f_file_stat_at(const int at_id, const f_string_static_t path, const int flag, struct stat *file_stat) { + f_status_t private_f_file_stat_at(const int at_id, const f_string_static_t path, const int flag, struct stat * const file_stat) { if (fstatat(at_id, path.string, file_stat, flag) < 0) { if (errno == ENAMETOOLONG) return F_status_set_error(F_name); @@ -739,7 +739,7 @@ extern "C" { #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_status_t 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 * const file_stat) { const int result = fstat(id, file_stat); @@ -790,7 +790,7 @@ extern "C" { #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_status_t private_f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t *written) { + f_status_t private_f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t * const written) { *written = 0; @@ -840,7 +840,7 @@ extern "C" { #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_status_t private_f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t *written) { + f_status_t private_f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t * const written) { *written = 0; diff --git a/level_0/f_file/c/private-file.h b/level_0/f_file/c/private-file.h index fb2ae16..adfd7d8 100644 --- a/level_0/f_file/c/private-file.h +++ b/level_0/f_file/c/private-file.h @@ -545,7 +545,7 @@ extern "C" { * @see f_file_link_read() */ #if !defined(_di_f_file_link_read_) || !defined(_di_f_file_copy_) - extern f_status_t private_f_file_link_read(const f_string_static_t path, const struct stat link_stat, f_string_dynamic_t *target) F_attribute_visibility_internal_d; + extern f_status_t private_f_file_link_read(const f_string_static_t path, const struct stat link_stat, f_string_dynamic_t * const target) F_attribute_visibility_internal_d; #endif // !defined(_di_f_file_link_read_) || !defined(_di_f_file_copy_) /** @@ -583,7 +583,7 @@ extern "C" { * @see f_file_link_read_at() */ #if !defined(_di_f_file_link_read_at_) || !defined(_di_f_file_copy_at_) - extern f_status_t private_f_file_link_read_at(const int at_id, const f_string_static_t path, const struct stat link_stat, f_string_dynamic_t *target) F_attribute_visibility_internal_d; + extern f_status_t private_f_file_link_read_at(const int at_id, const f_string_static_t path, const struct stat link_stat, f_string_dynamic_t * const target) F_attribute_visibility_internal_d; #endif // !defined(_di_f_file_link_read_at_) || !defined(_di_f_file_copy_at_) /** @@ -677,7 +677,7 @@ extern "C" { * @see f_file_open() */ #if !defined(_di_f_file_open_) || !defined(_di_f_file_copy_) - extern f_status_t private_f_file_open(const f_string_static_t path, const mode_t mode, f_file_t *file) F_attribute_visibility_internal_d; + extern f_status_t private_f_file_open(const f_string_static_t path, const mode_t mode, f_file_t * const file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_file_open_) || !defined(_di_f_file_copy_) /** @@ -707,7 +707,7 @@ extern "C" { * @see f_file_open_at() */ #if !defined(_di_f_file_open_at_) - extern f_status_t private_f_file_open_at(const int at_id, const f_string_static_t path, const mode_t mode, f_file_t *file) F_attribute_visibility_internal_d; + extern f_status_t private_f_file_open_at(const int at_id, const f_string_static_t path, const mode_t mode, f_file_t * const file) F_attribute_visibility_internal_d; #endif // !defined(_di_f_file_open_at_) /** @@ -821,7 +821,7 @@ extern "C" { * @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_status_t private_f_file_stat(const f_string_static_t file_name, const bool dereference, struct stat *file_stat) F_attribute_visibility_internal_d; + extern f_status_t private_f_file_stat(const f_string_static_t file_name, const bool dereference, struct stat * const file_stat) F_attribute_visibility_internal_d; #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_) /** @@ -855,7 +855,7 @@ extern "C" { * @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_status_t private_f_file_stat_at(const int at_id, const f_string_static_t file_name, const int flag, struct stat *file_stat) F_attribute_visibility_internal_d; + extern f_status_t private_f_file_stat_at(const int at_id, const f_string_static_t file_name, const int flag, struct stat * const file_stat) F_attribute_visibility_internal_d; #endif // !defined(_di_f_file_stat_at_) || !defined(_di_f_file_exists_at_) || !defined(_di_f_file_touch_at_) /** @@ -884,7 +884,7 @@ extern "C" { * @see f_file_stat_by_id() */ #if !defined(_di_f_file_stat_by_id_) || !defined(_di_f_file_size_by_id_) - extern f_status_t private_f_file_stat_by_id(const int id, struct stat *file_stat) F_attribute_visibility_internal_d; + extern f_status_t private_f_file_stat_by_id(const int id, struct stat * const file_stat) F_attribute_visibility_internal_d; #endif // !defined(_di_f_file_stat_by_id_) || !defined(_di_f_file_size_by_id_) /** @@ -941,7 +941,7 @@ extern "C" { * @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_status_t private_f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t *written) F_attribute_visibility_internal_d; + extern f_status_t private_f_file_stream_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t * const written) F_attribute_visibility_internal_d; #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) /** @@ -979,7 +979,7 @@ extern "C" { * @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_status_t private_f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t *written) F_attribute_visibility_internal_d; + extern f_status_t private_f_file_write_until(const f_file_t file, const f_string_static_t buffer, const f_array_length_t total, f_array_length_t * const written) F_attribute_visibility_internal_d; #endif // !defined(f_file_write) || !defined(_di_f_file_write_block_) || !defined(f_file_write_until) || !defined(f_file_write_range) #ifdef __cplusplus diff --git a/level_0/f_fss/c/fss.c b/level_0/f_fss/c/fss.c index eb86535..cf0dbcc 100644 --- a/level_0/f_fss/c/fss.c +++ b/level_0/f_fss/c/fss.c @@ -6,7 +6,7 @@ extern "C" { #endif #ifndef _di_fl_fss_apply_delimit_ - f_status_t 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 * const buffer) { #ifndef _di_level_0_parameter_checking_ if (!buffer) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -23,7 +23,7 @@ extern "C" { #endif // _di_fl_fss_apply_delimit_ #ifndef _di_fl_fss_apply_delimit_between_ - 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) { + f_status_t fl_fss_apply_delimit_between(const f_fss_delimits_t delimits, const f_string_range_t range, f_string_static_t * const buffer) { #ifndef _di_level_0_parameter_checking_ if (!buffer) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -40,7 +40,7 @@ extern "C" { #endif // _di_fl_fss_apply_delimit_between_ #ifndef _di_f_fss_count_lines_ - f_status_t f_fss_count_lines(const f_string_static_t buffer, const f_array_length_t before, f_array_length_t *line) { + f_status_t f_fss_count_lines(const f_string_static_t buffer, const f_array_length_t before, f_array_length_t * const line) { #ifndef _di_level_0_parameter_checking_ if (!line) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -65,7 +65,7 @@ extern "C" { #endif // _di_f_fss_count_lines_ #ifndef _di_f_fss_count_lines_range_ - f_status_t f_fss_count_lines_range(const f_string_static_t buffer, const f_string_range_t range, const f_array_length_t before, f_array_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_array_length_t before, f_array_length_t * const line) { #ifndef _di_level_0_parameter_checking_ if (!line) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -157,7 +157,7 @@ extern "C" { #endif // _di_f_fss_is_zero_width_ #ifndef _di_f_fss_seek_to_eol_ - f_status_t 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 * const range) { #ifndef _di_level_0_parameter_checking_ if (!range) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -174,7 +174,7 @@ extern "C" { #endif // _di_f_fss_seek_to_eol_ #ifndef _di_f_fss_shift_delimit_ - f_status_t 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 * const buffer) { #ifndef _di_level_0_parameter_checking_ if (!buffer) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -243,7 +243,7 @@ extern "C" { #endif // _di_f_fss_shift_delimit_ #ifndef _di_f_fss_skip_past_delimit_ - f_status_t 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 * const range) { #ifndef _di_level_0_parameter_checking_ if (!range) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -260,7 +260,7 @@ extern "C" { #endif // _di_f_fss_skip_past_delimit_ #ifndef _di_f_fss_skip_past_space_ - f_status_t 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 * const range) { #ifndef _di_level_0_parameter_checking_ if (!range) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -356,7 +356,7 @@ extern "C" { #endif // _di_f_fss_skip_past_space_ #ifndef _di_f_fss_skip_past_non_graph_ - f_status_t 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 * const range) { #ifndef _di_level_0_parameter_checking_ if (!range) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_fss/c/fss.h b/level_0/f_fss/c/fss.h index db93081..a95f446 100644 --- a/level_0/f_fss/c/fss.h +++ b/level_0/f_fss/c/fss.h @@ -52,7 +52,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_fl_fss_apply_delimit_ - extern f_status_t 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 * const buffer); #endif // _di_fl_fss_apply_delimit_ /** @@ -73,7 +73,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_fl_fss_apply_delimit_between_ - 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); + 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 * const buffer); #endif // _di_fl_fss_apply_delimit_between_ /** @@ -96,7 +96,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_count_lines_ - extern f_status_t f_fss_count_lines(const f_string_static_t buffer, const f_array_length_t before, f_array_length_t *line); + extern f_status_t f_fss_count_lines(const f_string_static_t buffer, const f_array_length_t before, f_array_length_t * const line); #endif // _di_f_fss_count_lines_ /** @@ -121,7 +121,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_count_lines_range_ - extern f_status_t f_fss_count_lines_range(const f_string_static_t buffer, const f_string_range_t range, const f_array_length_t before, f_array_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_array_length_t before, f_array_length_t * const line); #endif // _di_f_fss_count_lines_range_ /** @@ -216,7 +216,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_seek_to_eol_ - extern f_status_t 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 * const range); #endif // _di_f_fss_seek_to_eol_ /** @@ -240,7 +240,7 @@ extern "C" { * 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_status_t 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 * const buffer); #endif // _di_f_fss_shift_delimit_ /** @@ -260,7 +260,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_skip_past_delimit_ - extern f_status_t 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 * const range); #endif // _di_f_fss_skip_past_delimit_ /** @@ -295,7 +295,7 @@ extern "C" { * @see f_utf_is_zero_width() */ #ifndef _di_f_fss_skip_past_space_ - extern f_status_t 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 * const range); #endif // _di_f_fss_skip_past_space_ /** @@ -328,7 +328,7 @@ extern "C" { * @see f_utf_is_zero_width() */ #ifndef _di_f_fss_skip_past_non_graph_ - extern f_status_t 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 * const range); #endif // _di_f_fss_skip_past_non_graph_ #ifdef __cplusplus diff --git a/level_0/f_fss/c/fss/named.c b/level_0/f_fss/c/fss/named.c index 9b07b64..af2cdcf 100644 --- a/level_0/f_fss/c/fss/named.c +++ b/level_0/f_fss/c/fss/named.c @@ -6,7 +6,7 @@ extern "C" { #endif #ifndef _di_f_fss_named_adjust_ - f_status_t f_fss_named_adjust(const f_array_length_t length, f_fss_named_t *named) { + f_status_t f_fss_named_adjust(const f_array_length_t length, f_fss_named_t * const named) { #ifndef _di_level_0_parameter_checking_ if (!named) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -16,7 +16,7 @@ extern "C" { #endif // _di_f_fss_named_adjust_ #ifndef _di_f_fss_named_decimate_by_ - f_status_t f_fss_named_decimate_by(const f_array_length_t amount, f_fss_named_t *named) { + f_status_t f_fss_named_decimate_by(const f_array_length_t amount, f_fss_named_t * const named) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!named) return F_status_set_error(F_parameter); @@ -31,7 +31,7 @@ extern "C" { #endif // _di_f_fss_named_decimate_by_ #ifndef _di_f_fss_named_decrease_by_ - f_status_t f_fss_named_decrease_by(const f_array_length_t amount, f_fss_named_t *named) { + f_status_t f_fss_named_decrease_by(const f_array_length_t amount, f_fss_named_t * const named) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!named) return F_status_set_error(F_parameter); @@ -46,7 +46,7 @@ extern "C" { #endif // _di_f_fss_named_decrease_by_ #ifndef _di_f_fss_named_increase_ - f_status_t f_fss_named_increase(const uint16_t step, f_fss_named_t *named) { + f_status_t f_fss_named_increase(const uint16_t step, f_fss_named_t * const named) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!named) return F_status_set_error(F_parameter); @@ -71,7 +71,7 @@ extern "C" { #endif // _di_f_fss_named_increase_ #ifndef _di_f_fss_named_increase_by_ - f_status_t f_fss_named_increase_by(const f_array_length_t amount, f_fss_named_t *named) { + f_status_t f_fss_named_increase_by(const f_array_length_t amount, f_fss_named_t * const named) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!named) return F_status_set_error(F_parameter); @@ -90,7 +90,7 @@ extern "C" { #endif // _di_f_fss_named_increase_by_ #ifndef _di_f_fss_named_resize_ - f_status_t f_fss_named_resize(const f_array_length_t length, f_fss_named_t *named) { + f_status_t f_fss_named_resize(const f_array_length_t length, f_fss_named_t * const named) { #ifndef _di_level_0_parameter_checking_ if (!named) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -100,7 +100,7 @@ extern "C" { #endif // _di_f_fss_named_resize_ #ifndef _di_f_fss_nameds_adjust_ - f_status_t f_fss_nameds_adjust(const f_array_length_t length, f_fss_nameds_t *nameds) { + f_status_t f_fss_nameds_adjust(const f_array_length_t length, f_fss_nameds_t * const nameds) { #ifndef _di_level_0_parameter_checking_ if (!nameds) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -110,7 +110,7 @@ extern "C" { #endif // _di_f_fss_nameds_adjust_ #ifndef _di_f_fss_nameds_decimate_by_ - f_status_t f_fss_nameds_decimate_by(const f_array_length_t amount, f_fss_nameds_t *nameds) { + f_status_t f_fss_nameds_decimate_by(const f_array_length_t amount, f_fss_nameds_t * const nameds) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!nameds) return F_status_set_error(F_parameter); @@ -125,7 +125,7 @@ extern "C" { #endif // _di_f_fss_nameds_decimate_by_ #ifndef _di_f_fss_nameds_decrease_by_ - f_status_t f_fss_nameds_decrease_by(const f_array_length_t amount, f_fss_nameds_t *nameds) { + f_status_t f_fss_nameds_decrease_by(const f_array_length_t amount, f_fss_nameds_t * const nameds) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!nameds) return F_status_set_error(F_parameter); @@ -140,7 +140,7 @@ extern "C" { #endif // _di_f_fss_nameds_decrease_by_ #ifndef _di_f_fss_nameds_increase_ - f_status_t f_fss_nameds_increase(const uint16_t step, f_fss_nameds_t *nameds) { + f_status_t f_fss_nameds_increase(const uint16_t step, f_fss_nameds_t * const nameds) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!nameds) return F_status_set_error(F_parameter); @@ -165,7 +165,7 @@ extern "C" { #endif // _di_f_fss_nameds_increase_ #ifndef _di_f_fss_nameds_increase_by_ - f_status_t f_fss_nameds_increase_by(const f_array_length_t amount, f_fss_nameds_t *nameds) { + f_status_t f_fss_nameds_increase_by(const f_array_length_t amount, f_fss_nameds_t * const nameds) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!nameds) return F_status_set_error(F_parameter); @@ -184,7 +184,7 @@ extern "C" { #endif // _di_f_fss_nameds_increase_by_ #ifndef _di_f_fss_nameds_resize_ - f_status_t f_fss_nameds_resize(const f_array_length_t length, f_fss_nameds_t *nameds) { + f_status_t f_fss_nameds_resize(const f_array_length_t length, f_fss_nameds_t * const nameds) { #ifndef _di_level_0_parameter_checking_ if (!nameds) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_fss/c/fss/named.h b/level_0/f_fss/c/fss/named.h index 2f482cc..792922e 100644 --- a/level_0/f_fss/c/fss/named.h +++ b/level_0/f_fss/c/fss/named.h @@ -102,7 +102,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_named_adjust_ - extern f_status_t f_fss_named_adjust(const f_array_length_t length, f_fss_named_t *named); + extern f_status_t f_fss_named_adjust(const f_array_length_t length, f_fss_named_t * const named); #endif // _di_f_fss_named_adjust_ /** @@ -124,7 +124,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_named_decimate_by_ - extern f_status_t f_fss_named_decimate_by(const f_array_length_t amount, f_fss_named_t *named); + extern f_status_t f_fss_named_decimate_by(const f_array_length_t amount, f_fss_named_t * const named); #endif // _di_f_fss_named_decimate_by_ /** @@ -146,7 +146,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_named_decrease_by_ - extern f_status_t f_fss_named_decrease_by(const f_array_length_t amount, f_fss_named_t *named); + extern f_status_t f_fss_named_decrease_by(const f_array_length_t amount, f_fss_named_t * const named); #endif // _di_f_fss_named_decrease_by_ /** @@ -170,7 +170,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_named_increase_ - extern f_status_t f_fss_named_increase(const uint16_t step, f_fss_named_t *named); + extern f_status_t f_fss_named_increase(const uint16_t step, f_fss_named_t * const named); #endif // _di_f_fss_named_increase_ /** @@ -194,7 +194,7 @@ extern "C" { * F_array_too_large (with error bit) if the new array length is too large. */ #ifndef _di_f_fss_named_increase_by_ - extern f_status_t f_fss_named_increase_by(const f_array_length_t amount, f_fss_named_t *named); + extern f_status_t f_fss_named_increase_by(const f_array_length_t amount, f_fss_named_t * const named); #endif // _di_f_fss_named_increase_by_ /** @@ -212,7 +212,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_named_resize_ - extern f_status_t f_fss_named_resize(const f_array_length_t length, f_fss_named_t *named); + extern f_status_t f_fss_named_resize(const f_array_length_t length, f_fss_named_t * const named); #endif // _di_f_fss_named_resize_ /** @@ -230,7 +230,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nameds_adjust_ - extern f_status_t f_fss_nameds_adjust(const f_array_length_t length, f_fss_nameds_t *nameds); + extern f_status_t f_fss_nameds_adjust(const f_array_length_t length, f_fss_nameds_t * const nameds); #endif // _di_f_fss_nameds_adjust_ /** @@ -252,7 +252,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nameds_decimate_by_ - extern f_status_t f_fss_nameds_decimate_by(const f_array_length_t amount, f_fss_nameds_t *nameds); + extern f_status_t f_fss_nameds_decimate_by(const f_array_length_t amount, f_fss_nameds_t * const nameds); #endif // _di_f_fss_nameds_decimate_by_ /** @@ -274,7 +274,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nameds_decrease_by_ - extern f_status_t f_fss_nameds_decrease_by(const f_array_length_t amount, f_fss_nameds_t *nameds); + extern f_status_t f_fss_nameds_decrease_by(const f_array_length_t amount, f_fss_nameds_t * const nameds); #endif // _di_f_fss_nameds_decrease_by_ /** @@ -298,7 +298,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nameds_increase_ - extern f_status_t f_fss_nameds_increase(const uint16_t step, f_fss_nameds_t *nameds); + extern f_status_t f_fss_nameds_increase(const uint16_t step, f_fss_nameds_t * const nameds); #endif // _di_f_fss_nameds_increase_ /** @@ -322,7 +322,7 @@ extern "C" { * F_array_too_large (with error bit) if the new array length is too large. */ #ifndef _di_f_fss_nameds_increase_by_ - extern f_status_t f_fss_nameds_increase_by(const f_array_length_t amount, f_fss_nameds_t *nameds); + extern f_status_t f_fss_nameds_increase_by(const f_array_length_t amount, f_fss_nameds_t * const nameds); #endif // _di_f_fss_nameds_increase_by_ /** @@ -340,7 +340,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nameds_resize_ - extern f_status_t f_fss_nameds_resize(const f_array_length_t length, f_fss_nameds_t *nameds); + extern f_status_t f_fss_nameds_resize(const f_array_length_t length, f_fss_nameds_t * const nameds); #endif // _di_f_fss_nameds_resize_ #ifdef __cplusplus diff --git a/level_0/f_fss/c/fss/nest.c b/level_0/f_fss/c/fss/nest.c index e3ef8c0..04da6a8 100644 --- a/level_0/f_fss/c/fss/nest.c +++ b/level_0/f_fss/c/fss/nest.c @@ -6,7 +6,7 @@ extern "C" { #endif #ifndef _di_f_fss_items_adjust_ - f_status_t f_fss_items_adjust(const f_array_length_t length, f_fss_items_t *items) { + f_status_t f_fss_items_adjust(const f_array_length_t length, f_fss_items_t * const items) { #ifndef _di_level_0_parameter_checking_ if (!items) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -16,7 +16,7 @@ extern "C" { #endif // _di_f_fss_items_adjust_ #ifndef _di_f_fss_items_decimate_by_ - f_status_t f_fss_items_decimate_by(const f_array_length_t amount, f_fss_items_t *items) { + f_status_t f_fss_items_decimate_by(const f_array_length_t amount, f_fss_items_t * const items) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!items) return F_status_set_error(F_parameter); @@ -31,7 +31,7 @@ extern "C" { #endif // _di_f_fss_items_decimate_by_ #ifndef _di_f_fss_items_decrease_by_ - f_status_t f_fss_items_decrease_by(const f_array_length_t amount, f_fss_items_t *items) { + f_status_t f_fss_items_decrease_by(const f_array_length_t amount, f_fss_items_t * const items) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!items) return F_status_set_error(F_parameter); @@ -46,7 +46,7 @@ extern "C" { #endif // _di_f_fss_items_decrease_by_ #ifndef _di_f_fss_items_increase_ - f_status_t f_fss_items_increase(const uint16_t step, f_fss_items_t *items) { + f_status_t f_fss_items_increase(const uint16_t step, f_fss_items_t * const items) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!items) return F_status_set_error(F_parameter); @@ -71,7 +71,7 @@ extern "C" { #endif // _di_f_fss_items_increase_ #ifndef _di_f_fss_items_increase_by_ - f_status_t f_fss_items_increase_by(const f_array_length_t amount, f_fss_items_t *items) { + f_status_t f_fss_items_increase_by(const f_array_length_t amount, f_fss_items_t * const items) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!items) return F_status_set_error(F_parameter); @@ -90,7 +90,7 @@ extern "C" { #endif // _di_f_fss_items_increase_by_ #ifndef _di_f_fss_items_resize_ - f_status_t f_fss_items_resize(const f_array_length_t length, f_fss_items_t *items) { + f_status_t f_fss_items_resize(const f_array_length_t length, f_fss_items_t * const items) { #ifndef _di_level_0_parameter_checking_ if (!items) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -100,7 +100,7 @@ extern "C" { #endif // _di_f_fss_items_resize_ #ifndef _di_f_fss_nest_adjust_ - f_status_t f_fss_nest_adjust(const f_array_length_t length, f_fss_nest_t *nest) { + f_status_t f_fss_nest_adjust(const f_array_length_t length, f_fss_nest_t * const nest) { #ifndef _di_level_0_parameter_checking_ if (!nest) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -110,7 +110,7 @@ extern "C" { #endif // _di_f_fss_nest_adjust_ #ifndef _di_f_fss_nest_decimate_by_ - f_status_t f_fss_nest_decimate_by(const f_array_length_t amount, f_fss_nest_t *nest) { + f_status_t f_fss_nest_decimate_by(const f_array_length_t amount, f_fss_nest_t * const nest) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!nest) return F_status_set_error(F_parameter); @@ -125,7 +125,7 @@ extern "C" { #endif // _di_f_fss_nest_decimate_by_ #ifndef _di_f_fss_nest_decrease_by_ - f_status_t f_fss_nest_decrease_by(const f_array_length_t amount, f_fss_nest_t *nest) { + f_status_t f_fss_nest_decrease_by(const f_array_length_t amount, f_fss_nest_t * const nest) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!nest) return F_status_set_error(F_parameter); @@ -140,7 +140,7 @@ extern "C" { #endif // _di_f_fss_nest_decrease_by_ #ifndef _di_f_fss_nest_increase_ - f_status_t f_fss_nest_increase(const uint16_t step, f_fss_nest_t *nest) { + f_status_t f_fss_nest_increase(const uint16_t step, f_fss_nest_t * const nest) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!nest) return F_status_set_error(F_parameter); @@ -165,7 +165,7 @@ extern "C" { #endif // _di_f_fss_nest_increase_ #ifndef _di_f_fss_nest_increase_by_ - f_status_t f_fss_nest_increase_by(const f_array_length_t amount, f_fss_nest_t *nest) { + f_status_t f_fss_nest_increase_by(const f_array_length_t amount, f_fss_nest_t * const nest) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!nest) return F_status_set_error(F_parameter); @@ -184,7 +184,7 @@ extern "C" { #endif // _di_f_fss_nest_increase_by_ #ifndef _di_f_fss_nest_resize_ - f_status_t f_fss_nest_resize(const f_array_length_t length, f_fss_nest_t *nest) { + f_status_t f_fss_nest_resize(const f_array_length_t length, f_fss_nest_t * const nest) { #ifndef _di_level_0_parameter_checking_ if (!nest) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -194,7 +194,7 @@ extern "C" { #endif // _di_f_fss_nest_resize_ #ifndef _di_f_fss_nests_adjust_ - f_status_t f_fss_nests_adjust(const f_array_length_t length, f_fss_nests_t *nests) { + f_status_t f_fss_nests_adjust(const f_array_length_t length, f_fss_nests_t * const nests) { #ifndef _di_level_0_parameter_checking_ if (!nests) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -204,7 +204,7 @@ extern "C" { #endif // _di_f_fss_nests_adjust_ #ifndef _di_f_fss_nests_decimate_by_ - f_status_t f_fss_nests_decimate_by(const f_array_length_t amount, f_fss_nests_t *nests) { + f_status_t f_fss_nests_decimate_by(const f_array_length_t amount, f_fss_nests_t * const nests) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!nests) return F_status_set_error(F_parameter); @@ -219,7 +219,7 @@ extern "C" { #endif // _di_f_fss_nests_decimate_by_ #ifndef _di_f_fss_nests_decrease_by_ - f_status_t f_fss_nests_decrease_by(const f_array_length_t amount, f_fss_nests_t *nests) { + f_status_t f_fss_nests_decrease_by(const f_array_length_t amount, f_fss_nests_t * const nests) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!nests) return F_status_set_error(F_parameter); @@ -234,7 +234,7 @@ extern "C" { #endif // _di_f_fss_nests_decrease_by_ #ifndef _di_f_fss_nests_increase_ - f_status_t f_fss_nests_increase(const uint16_t step, f_fss_nests_t *nests) { + f_status_t f_fss_nests_increase(const uint16_t step, f_fss_nests_t * const nests) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!nests) return F_status_set_error(F_parameter); @@ -259,7 +259,7 @@ extern "C" { #endif // _di_f_fss_nests_increase_ #ifndef _di_f_fss_nests_increase_by_ - f_status_t f_fss_nests_increase_by(const f_array_length_t amount, f_fss_nests_t *nests) { + f_status_t f_fss_nests_increase_by(const f_array_length_t amount, f_fss_nests_t * const nests) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!nests) return F_status_set_error(F_parameter); @@ -278,7 +278,7 @@ extern "C" { #endif // _di_f_fss_nests_increase_by_ #ifndef _di_f_fss_nests_resize_ - f_status_t f_fss_nests_resize(const f_array_length_t length, f_fss_nests_t *nests) { + f_status_t f_fss_nests_resize(const f_array_length_t length, f_fss_nests_t * const nests) { #ifndef _di_level_0_parameter_checking_ if (!nests) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_fss/c/fss/nest.h b/level_0/f_fss/c/fss/nest.h index c64efcc..ce38da1 100644 --- a/level_0/f_fss/c/fss/nest.h +++ b/level_0/f_fss/c/fss/nest.h @@ -192,7 +192,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_items_adjust_ - extern f_status_t f_fss_items_adjust(const f_array_length_t length, f_fss_items_t *items); + extern f_status_t f_fss_items_adjust(const f_array_length_t length, f_fss_items_t * const items); #endif // _di_f_fss_items_adjust_ /** @@ -214,7 +214,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_items_decimate_by_ - extern f_status_t f_fss_items_decimate_by(const f_array_length_t amount, f_fss_items_t *items); + extern f_status_t f_fss_items_decimate_by(const f_array_length_t amount, f_fss_items_t * const items); #endif // _di_f_fss_items_decimate_by_ /** @@ -236,7 +236,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_items_decrease_by_ - extern f_status_t f_fss_items_decrease_by(const f_array_length_t amount, f_fss_items_t *items); + extern f_status_t f_fss_items_decrease_by(const f_array_length_t amount, f_fss_items_t * const items); #endif // _di_f_fss_items_decrease_by_ /** @@ -260,7 +260,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_items_increase_ - extern f_status_t f_fss_items_increase(const uint16_t step, f_fss_items_t *items); + extern f_status_t f_fss_items_increase(const uint16_t step, f_fss_items_t * const items); #endif // _di_f_fss_items_increase_ /** @@ -284,7 +284,7 @@ extern "C" { * F_array_too_large (with error bit) if the new array length is too large. */ #ifndef _di_f_fss_items_increase_by_ - extern f_status_t f_fss_items_increase_by(const f_array_length_t amount, f_fss_items_t *items); + extern f_status_t f_fss_items_increase_by(const f_array_length_t amount, f_fss_items_t * const items); #endif // _di_f_fss_items_increase_by_ /** @@ -302,7 +302,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_items_resize_ - extern f_status_t f_fss_items_resize(const f_array_length_t length, f_fss_items_t *items); + extern f_status_t f_fss_items_resize(const f_array_length_t length, f_fss_items_t * const items); #endif // _di_f_fss_items_resize_ /** @@ -320,7 +320,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nest_adjust_ - extern f_status_t f_fss_nest_adjust(const f_array_length_t length, f_fss_nest_t *nest); + extern f_status_t f_fss_nest_adjust(const f_array_length_t length, f_fss_nest_t * const nest); #endif // _di_f_fss_nest_adjust_ /** @@ -342,7 +342,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nest_decimate_by_ - extern f_status_t f_fss_nest_decimate_by(const f_array_length_t amount, f_fss_nest_t *nest); + extern f_status_t f_fss_nest_decimate_by(const f_array_length_t amount, f_fss_nest_t * const nest); #endif // _di_f_fss_nest_decimate_by_ /** @@ -364,7 +364,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nest_decrease_by_ - extern f_status_t f_fss_nest_decrease_by(const f_array_length_t amount, f_fss_nest_t *nest); + extern f_status_t f_fss_nest_decrease_by(const f_array_length_t amount, f_fss_nest_t * const nest); #endif // _di_f_fss_nest_decrease_by_ /** @@ -388,7 +388,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nest_increase_ - extern f_status_t f_fss_nest_increase(const uint16_t step, f_fss_nest_t *nest); + extern f_status_t f_fss_nest_increase(const uint16_t step, f_fss_nest_t * const nest); #endif // _di_f_fss_nest_increase_ /** @@ -412,7 +412,7 @@ extern "C" { * F_array_too_large (with error bit) if the new array length is too large. */ #ifndef _di_f_fss_nest_increase_by_ - extern f_status_t f_fss_nest_increase_by(const f_array_length_t amount, f_fss_nest_t *nest); + extern f_status_t f_fss_nest_increase_by(const f_array_length_t amount, f_fss_nest_t * const nest); #endif // _di_f_fss_nest_increase_by_ /** @@ -430,7 +430,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nest_resize_ - extern f_status_t f_fss_nest_resize(const f_array_length_t length, f_fss_nest_t *nest); + extern f_status_t f_fss_nest_resize(const f_array_length_t length, f_fss_nest_t * const nest); #endif // _di_f_fss_nest_resize_ /** @@ -448,7 +448,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nests_adjust_ - extern f_status_t f_fss_nests_adjust(const f_array_length_t length, f_fss_nests_t *nests); + extern f_status_t f_fss_nests_adjust(const f_array_length_t length, f_fss_nests_t * const nests); #endif // _di_f_fss_nests_adjust_ /** @@ -470,7 +470,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nests_decimate_by_ - extern f_status_t f_fss_nests_decimate_by(const f_array_length_t amount, f_fss_nests_t *nests); + extern f_status_t f_fss_nests_decimate_by(const f_array_length_t amount, f_fss_nests_t * const nests); #endif // _di_f_fss_nests_decimate_by_ /** @@ -492,7 +492,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nests_decrease_by_ - extern f_status_t f_fss_nests_decrease_by(const f_array_length_t amount, f_fss_nests_t *nests); + extern f_status_t f_fss_nests_decrease_by(const f_array_length_t amount, f_fss_nests_t * const nests); #endif // _di_f_fss_nests_decrease_by_ /** @@ -516,7 +516,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nests_increase_ - extern f_status_t f_fss_nests_increase(const uint16_t step, f_fss_nests_t *nests); + extern f_status_t f_fss_nests_increase(const uint16_t step, f_fss_nests_t * const nests); #endif // _di_f_fss_nests_increase_ /** @@ -540,7 +540,7 @@ extern "C" { * F_array_too_large (with error bit) if the new array length is too large. */ #ifndef _di_f_fss_nests_increase_by_ - extern f_status_t f_fss_nests_increase_by(const f_array_length_t amount, f_fss_nests_t *nests); + extern f_status_t f_fss_nests_increase_by(const f_array_length_t amount, f_fss_nests_t * const nests); #endif // _di_f_fss_nests_increase_by_ /** @@ -558,7 +558,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_nests_resize_ - extern f_status_t f_fss_nests_resize(const f_array_length_t length, f_fss_nests_t *nests); + extern f_status_t f_fss_nests_resize(const f_array_length_t length, f_fss_nests_t * const nests); #endif // _di_f_fss_nests_resize_ #ifdef __cplusplus diff --git a/level_0/f_fss/c/fss/set.c b/level_0/f_fss/c/fss/set.c index 1562a9e..2ec0998 100644 --- a/level_0/f_fss/c/fss/set.c +++ b/level_0/f_fss/c/fss/set.c @@ -6,7 +6,7 @@ extern "C" { #endif #ifndef _di_f_fss_set_adjust_ - f_status_t f_fss_set_adjust(const f_array_length_t length, f_fss_set_t *set) { + f_status_t f_fss_set_adjust(const f_array_length_t length, f_fss_set_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!set) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -16,7 +16,7 @@ extern "C" { #endif // _di_f_fss_set_adjust_ #ifndef _di_f_fss_set_decimate_by_ - f_status_t f_fss_set_decimate_by(const f_array_length_t amount, f_fss_set_t *set) { + f_status_t f_fss_set_decimate_by(const f_array_length_t amount, f_fss_set_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!set) return F_status_set_error(F_parameter); @@ -31,7 +31,7 @@ extern "C" { #endif // _di_f_fss_set_decimate_by_ #ifndef _di_f_fss_set_decrease_by_ - f_status_t f_fss_set_decrease_by(const f_array_length_t amount, f_fss_set_t *set) { + f_status_t f_fss_set_decrease_by(const f_array_length_t amount, f_fss_set_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!set) return F_status_set_error(F_parameter); @@ -46,7 +46,7 @@ extern "C" { #endif // _di_f_fss_set_decrease_by_ #ifndef _di_f_fss_set_increase_ - f_status_t f_fss_set_increase(const uint16_t step, f_fss_set_t *set) { + f_status_t f_fss_set_increase(const uint16_t step, f_fss_set_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!set) return F_status_set_error(F_parameter); @@ -71,7 +71,7 @@ extern "C" { #endif // _di_f_fss_set_increase_ #ifndef _di_f_fss_set_increase_by_ - f_status_t f_fss_set_increase_by(const f_array_length_t amount, f_fss_set_t *set) { + f_status_t f_fss_set_increase_by(const f_array_length_t amount, f_fss_set_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!set) return F_status_set_error(F_parameter); @@ -90,7 +90,7 @@ extern "C" { #endif // _di_f_fss_set_increase_by_ #ifndef _di_f_fss_set_resize_ - f_status_t f_fss_set_resize(const f_array_length_t length, f_fss_set_t *set) { + f_status_t f_fss_set_resize(const f_array_length_t length, f_fss_set_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!set) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -100,7 +100,7 @@ extern "C" { #endif // _di_f_fss_set_resize_ #ifndef _di_f_fss_set_quote_adjust_ - f_status_t f_fss_set_quote_adjust(const f_array_length_t length, f_fss_set_quote_t *set_quote) { + f_status_t f_fss_set_quote_adjust(const f_array_length_t length, f_fss_set_quote_t * const set_quote) { #ifndef _di_level_0_parameter_checking_ if (!set_quote) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -110,7 +110,7 @@ extern "C" { #endif // _di_f_fss_set_quote_adjust_ #ifndef _di_f_fss_set_quote_decimate_by_ - f_status_t f_fss_set_quote_decimate_by(const f_array_length_t amount, f_fss_set_quote_t *set_quote) { + f_status_t f_fss_set_quote_decimate_by(const f_array_length_t amount, f_fss_set_quote_t * const set_quote) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!set_quote) return F_status_set_error(F_parameter); @@ -125,7 +125,7 @@ extern "C" { #endif // _di_f_fss_set_quote_decimate_by_ #ifndef _di_f_fss_set_quote_decrease_by_ - f_status_t f_fss_set_quote_decrease_by(const f_array_length_t amount, f_fss_set_quote_t *set_quote) { + f_status_t f_fss_set_quote_decrease_by(const f_array_length_t amount, f_fss_set_quote_t * const set_quote) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!set_quote) return F_status_set_error(F_parameter); @@ -140,7 +140,7 @@ extern "C" { #endif // _di_f_fss_set_quote_decrease_by_ #ifndef _di_f_fss_set_quote_increase_ - f_status_t f_fss_set_quote_increase(const uint16_t step, f_fss_set_quote_t *set_quote) { + f_status_t f_fss_set_quote_increase(const uint16_t step, f_fss_set_quote_t * const set_quote) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!set_quote) return F_status_set_error(F_parameter); @@ -165,7 +165,7 @@ extern "C" { #endif // _di_f_fss_set_quote_increase_ #ifndef _di_f_fss_set_quote_increase_by_ - f_status_t f_fss_set_quote_increase_by(const f_array_length_t amount, f_fss_set_quote_t *set_quote) { + f_status_t f_fss_set_quote_increase_by(const f_array_length_t amount, f_fss_set_quote_t * const set_quote) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!set_quote) return F_status_set_error(F_parameter); @@ -184,7 +184,7 @@ extern "C" { #endif // _di_f_fss_set_quote_increase_by_ #ifndef _di_f_fss_set_quote_resize_ - f_status_t f_fss_set_quote_resize(const f_array_length_t length, f_fss_set_quote_t *set_quote) { + f_status_t f_fss_set_quote_resize(const f_array_length_t length, f_fss_set_quote_t * const set_quote) { #ifndef _di_level_0_parameter_checking_ if (!set_quote) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -194,7 +194,7 @@ extern "C" { #endif // _di_f_fss_set_quote_resize_ #ifndef _di_f_fss_set_quotes_adjust_ - f_status_t f_fss_set_quotes_adjust(const f_array_length_t length, f_fss_set_quotes_t *set_quotes) { + f_status_t f_fss_set_quotes_adjust(const f_array_length_t length, f_fss_set_quotes_t * const set_quotes) { #ifndef _di_level_0_parameter_checking_ if (!set_quotes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -204,7 +204,7 @@ extern "C" { #endif // _di_f_fss_set_quotes_adjust_ #ifndef _di_f_fss_set_quotes_decimate_by_ - f_status_t f_fss_set_quotes_decimate_by(const f_array_length_t amount, f_fss_set_quotes_t *set_quotes) { + f_status_t f_fss_set_quotes_decimate_by(const f_array_length_t amount, f_fss_set_quotes_t * const set_quotes) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!set_quotes) return F_status_set_error(F_parameter); @@ -219,7 +219,7 @@ extern "C" { #endif // _di_f_fss_set_quotes_decimate_by_ #ifndef _di_f_fss_set_quotes_decrease_by_ - f_status_t f_fss_set_quotes_decrease_by(const f_array_length_t amount, f_fss_set_quotes_t *set_quotes) { + f_status_t f_fss_set_quotes_decrease_by(const f_array_length_t amount, f_fss_set_quotes_t * const set_quotes) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!set_quotes) return F_status_set_error(F_parameter); @@ -234,7 +234,7 @@ extern "C" { #endif // _di_f_fss_set_quotes_decrease_by_ #ifndef _di_f_fss_set_quotes_increase_ - f_status_t f_fss_set_quotes_increase(const uint16_t step, f_fss_set_quotes_t *set_quotes) { + f_status_t f_fss_set_quotes_increase(const uint16_t step, f_fss_set_quotes_t * const set_quotes) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!set_quotes) return F_status_set_error(F_parameter); @@ -259,7 +259,7 @@ extern "C" { #endif // _di_f_fss_set_quotes_increase_ #ifndef _di_f_fss_set_quotes_increase_by_ - f_status_t f_fss_set_quotes_increase_by(const f_array_length_t amount, f_fss_set_quotes_t *set_quotes) { + f_status_t f_fss_set_quotes_increase_by(const f_array_length_t amount, f_fss_set_quotes_t * const set_quotes) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!set_quotes) return F_status_set_error(F_parameter); @@ -278,7 +278,7 @@ extern "C" { #endif // _di_f_fss_set_quotes_increase_by_ #ifndef _di_f_fss_set_quotes_resize_ - f_status_t f_fss_set_quotes_resize(const f_array_length_t length, f_fss_set_quotes_t *set_quotes) { + f_status_t f_fss_set_quotes_resize(const f_array_length_t length, f_fss_set_quotes_t * const set_quotes) { #ifndef _di_level_0_parameter_checking_ if (!set_quotes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -298,7 +298,7 @@ extern "C" { #endif // _di_f_fss_sets_adjust_ #ifndef _di_f_fss_sets_decimate_by_ - f_status_t f_fss_sets_decimate_by(const f_array_length_t amount, f_fss_sets_t *sets) { + f_status_t f_fss_sets_decimate_by(const f_array_length_t amount, f_fss_sets_t * const 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); @@ -313,7 +313,7 @@ extern "C" { #endif // _di_f_fss_sets_decimate_by_ #ifndef _di_f_fss_sets_decrease_by_ - f_status_t f_fss_sets_decrease_by(const f_array_length_t amount, f_fss_sets_t *sets) { + f_status_t f_fss_sets_decrease_by(const f_array_length_t amount, f_fss_sets_t * const 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); @@ -328,7 +328,7 @@ extern "C" { #endif // _di_f_fss_sets_decrease_by_ #ifndef _di_f_fss_sets_increase_ - f_status_t f_fss_sets_increase(const uint16_t step, f_fss_sets_t *sets) { + f_status_t f_fss_sets_increase(const uint16_t step, f_fss_sets_t * const sets) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!sets) return F_status_set_error(F_parameter); @@ -353,7 +353,7 @@ extern "C" { #endif // _di_f_fss_sets_increase_ #ifndef _di_f_fss_sets_increase_by_ - f_status_t f_fss_sets_increase_by(const f_array_length_t amount, f_fss_sets_t *sets) { + f_status_t f_fss_sets_increase_by(const f_array_length_t amount, f_fss_sets_t * const 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); @@ -372,7 +372,7 @@ extern "C" { #endif // _di_f_fss_sets_increase_by_ #ifndef _di_f_fss_sets_resize_ - f_status_t f_fss_sets_resize(const f_array_length_t length, f_fss_sets_t *sets) { + f_status_t f_fss_sets_resize(const f_array_length_t length, f_fss_sets_t * const sets) { #ifndef _di_level_0_parameter_checking_ if (!sets) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_fss/c/fss/set.h b/level_0/f_fss/c/fss/set.h index 73796f0..451056e 100644 --- a/level_0/f_fss/c/fss/set.h +++ b/level_0/f_fss/c/fss/set.h @@ -166,7 +166,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_adjust_ - extern f_status_t f_fss_set_adjust(const f_array_length_t length, f_fss_set_t *set); + extern f_status_t f_fss_set_adjust(const f_array_length_t length, f_fss_set_t * const set); #endif // _di_f_fss_set_adjust_ /** @@ -188,7 +188,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_decimate_by_ - extern f_status_t f_fss_set_decimate_by(const f_array_length_t amount, f_fss_set_t *set); + extern f_status_t f_fss_set_decimate_by(const f_array_length_t amount, f_fss_set_t * const set); #endif // _di_f_fss_set_decimate_by_ /** @@ -210,7 +210,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_decrease_by_ - extern f_status_t f_fss_set_decrease_by(const f_array_length_t amount, f_fss_set_t *set); + extern f_status_t f_fss_set_decrease_by(const f_array_length_t amount, f_fss_set_t * const set); #endif // _di_f_fss_set_decrease_by_ /** @@ -234,7 +234,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_increase_ - extern f_status_t f_fss_set_increase(const uint16_t step, f_fss_set_t *set); + extern f_status_t f_fss_set_increase(const uint16_t step, f_fss_set_t * const set); #endif // _di_f_fss_set_increase_ /** @@ -258,7 +258,7 @@ extern "C" { * F_array_too_large (with error bit) if the new array length is too large. */ #ifndef _di_f_fss_set_increase_by_ - extern f_status_t f_fss_set_increase_by(const f_array_length_t amount, f_fss_set_t *set); + extern f_status_t f_fss_set_increase_by(const f_array_length_t amount, f_fss_set_t * const set); #endif // _di_f_fss_set_increase_by_ /** @@ -276,7 +276,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_resize_ - extern f_status_t f_fss_set_resize(const f_array_length_t length, f_fss_set_t *set); + extern f_status_t f_fss_set_resize(const f_array_length_t length, f_fss_set_t * const set); #endif // _di_f_fss_set_resize_ /** @@ -294,7 +294,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_quote_adjust_ - extern f_status_t f_fss_set_quote_adjust(const f_array_length_t length, f_fss_set_quote_t *set_quote); + extern f_status_t f_fss_set_quote_adjust(const f_array_length_t length, f_fss_set_quote_t * const set_quote); #endif // _di_f_fss_set_quote_adjust_ /** @@ -316,7 +316,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_quote_decimate_by_ - extern f_status_t f_fss_set_quote_decimate_by(const f_array_length_t amount, f_fss_set_quote_t *set_quote); + extern f_status_t f_fss_set_quote_decimate_by(const f_array_length_t amount, f_fss_set_quote_t * const set_quote); #endif // _di_f_fss_set_quote_decimate_by_ /** @@ -338,7 +338,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_quote_decrease_by_ - extern f_status_t f_fss_set_quote_decrease_by(const f_array_length_t amount, f_fss_set_quote_t *set_quote); + extern f_status_t f_fss_set_quote_decrease_by(const f_array_length_t amount, f_fss_set_quote_t * const set_quote); #endif // _di_f_fss_set_quote_decrease_by_ /** @@ -362,7 +362,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_quote_increase_ - extern f_status_t f_fss_set_quote_increase(const uint16_t step, f_fss_set_quote_t *set_quote); + extern f_status_t f_fss_set_quote_increase(const uint16_t step, f_fss_set_quote_t * const set_quote); #endif // _di_f_fss_set_quote_increase_ /** @@ -386,7 +386,7 @@ extern "C" { * F_array_too_large (with error bit) if the new array length is too large. */ #ifndef _di_f_fss_set_quote_increase_by_ - extern f_status_t f_fss_set_quote_increase_by(const f_array_length_t amount, f_fss_set_quote_t *set_quote); + extern f_status_t f_fss_set_quote_increase_by(const f_array_length_t amount, f_fss_set_quote_t * const set_quote); #endif // _di_f_fss_set_quote_increase_by_ /** @@ -404,7 +404,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_quote_resize_ - extern f_status_t f_fss_set_quote_resize(const f_array_length_t length, f_fss_set_quote_t *set_quote); + extern f_status_t f_fss_set_quote_resize(const f_array_length_t length, f_fss_set_quote_t * const set_quote); #endif // _di_f_fss_set_quote_resize_ /** @@ -422,7 +422,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_quotes_adjust_ - extern f_status_t f_fss_set_quotes_adjust(const f_array_length_t length, f_fss_set_quotes_t *set_quotes); + extern f_status_t f_fss_set_quotes_adjust(const f_array_length_t length, f_fss_set_quotes_t * const set_quotes); #endif // _di_f_fss_set_quotes_adjust_ /** @@ -444,7 +444,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_quotes_decimate_by_ - extern f_status_t f_fss_set_quotes_decimate_by(const f_array_length_t amount, f_fss_set_quotes_t *set_quotes); + extern f_status_t f_fss_set_quotes_decimate_by(const f_array_length_t amount, f_fss_set_quotes_t * const set_quotes); #endif // _di_f_fss_set_quotes_decimate_by_ /** @@ -466,7 +466,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_quotes_decrease_by_ - extern f_status_t f_fss_set_quotes_decrease_by(const f_array_length_t amount, f_fss_set_quotes_t *set_quotes); + extern f_status_t f_fss_set_quotes_decrease_by(const f_array_length_t amount, f_fss_set_quotes_t * const set_quotes); #endif // _di_f_fss_set_quotes_decrease_by_ /** @@ -490,7 +490,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_quotes_increase_ - extern f_status_t f_fss_set_quotes_increase(const uint16_t step, f_fss_set_quotes_t *set_quotes); + extern f_status_t f_fss_set_quotes_increase(const uint16_t step, f_fss_set_quotes_t * const set_quotes); #endif // _di_f_fss_set_quotes_increase_ /** @@ -514,7 +514,7 @@ extern "C" { * F_array_too_large (with error bit) if the new array length is too large. */ #ifndef _di_f_fss_set_quotes_increase_by_ - extern f_status_t f_fss_set_quotes_increase_by(const f_array_length_t amount, f_fss_set_quotes_t *set_quotes); + extern f_status_t f_fss_set_quotes_increase_by(const f_array_length_t amount, f_fss_set_quotes_t * const set_quotes); #endif // _di_f_fss_set_quotes_increase_by_ /** @@ -532,7 +532,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_set_quotes_resize_ - extern f_status_t f_fss_set_quotes_resize(const f_array_length_t length, f_fss_set_quotes_t *set_quotes); + extern f_status_t f_fss_set_quotes_resize(const f_array_length_t length, f_fss_set_quotes_t * const set_quotes); #endif // _di_f_fss_set_quotes_resize_ /** @@ -550,7 +550,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_sets_adjust_ - extern f_status_t f_fss_sets_adjust(const f_array_length_t length, f_fss_sets_t *sets); + extern f_status_t f_fss_sets_adjust(const f_array_length_t length, f_fss_sets_t * const sets); #endif // _di_f_fss_sets_adjust_ /** @@ -572,7 +572,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_sets_decimate_by_ - extern f_status_t f_fss_sets_decimate_by(const f_array_length_t amount, f_fss_sets_t *sets); + extern f_status_t f_fss_sets_decimate_by(const f_array_length_t amount, f_fss_sets_t * const sets); #endif // _di_f_fss_sets_decimate_by_ /** @@ -594,7 +594,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_sets_decrease_by_ - extern f_status_t f_fss_sets_decrease_by(const f_array_length_t amount, f_fss_sets_t *sets); + extern f_status_t f_fss_sets_decrease_by(const f_array_length_t amount, f_fss_sets_t * const sets); #endif // _di_f_fss_sets_decrease_by_ /** @@ -618,7 +618,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_sets_increase_ - extern f_status_t f_fss_sets_increase(const uint16_t step, f_fss_sets_t *sets); + extern f_status_t f_fss_sets_increase(const uint16_t step, f_fss_sets_t * const sets); #endif // _di_f_fss_sets_increase_ /** @@ -642,7 +642,7 @@ extern "C" { * F_array_too_large (with error bit) if the new array length is too large. */ #ifndef _di_f_fss_sets_increase_by_ - extern f_status_t f_fss_sets_increase_by(const f_array_length_t amount, f_fss_sets_t *sets); + extern f_status_t f_fss_sets_increase_by(const f_array_length_t amount, f_fss_sets_t * const sets); #endif // _di_f_fss_sets_increase_by_ /** @@ -660,7 +660,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_fss_sets_resize_ - extern f_status_t f_fss_sets_resize(const f_array_length_t length, f_fss_sets_t *sets); + extern f_status_t f_fss_sets_resize(const f_array_length_t length, f_fss_sets_t * const sets); #endif // _di_f_fss_sets_resize_ #ifdef __cplusplus diff --git a/level_0/f_fss/c/private-fss.c b/level_0/f_fss/c/private-fss.c index 0a148d3..5c952fa 100644 --- a/level_0/f_fss/c/private-fss.c +++ b/level_0/f_fss/c/private-fss.c @@ -6,7 +6,7 @@ extern "C" { #endif #if !defined(_di_f_fss_items_adjust_) || !defined(_di_f_fss_items_decimate_by_) - f_status_t private_f_fss_items_adjust(const f_array_length_t length, f_fss_items_t *items) { + f_status_t private_f_fss_items_adjust(const f_array_length_t length, f_fss_items_t * const items) { f_status_t status = F_none; @@ -31,7 +31,7 @@ extern "C" { #endif // !defined(_di_f_fss_items_adjust_) || !defined(_di_f_fss_items_decimate_by_) #if !defined(_di_f_fss_items_decrease_by_) || !defined(_di_f_fss_items_increase_) || !defined(_di_f_fss_items_increase_by_) || !defined(_di_f_fss_items_resize_) - f_status_t private_f_fss_items_resize(const f_array_length_t length, f_fss_items_t *items) { + f_status_t private_f_fss_items_resize(const f_array_length_t length, f_fss_items_t * const items) { f_status_t status = F_none; @@ -56,7 +56,7 @@ extern "C" { #endif // !defined(_di_f_fss_items_decrease_by_) || !defined(_di_f_fss_items_increase_) || !defined(_di_f_fss_items_increase_by_) || !defined(_di_f_fss_items_resize_) #if !defined(_di_f_fss_nameds_adjust_) || !defined(_di_f_fss_nameds_decimate_by_) - f_status_t private_f_fss_named_adjust(const f_array_length_t length, f_fss_named_t *named) { + f_status_t private_f_fss_named_adjust(const f_array_length_t length, f_fss_named_t * const named) { f_status_t status = F_none; @@ -74,7 +74,7 @@ extern "C" { #endif // !defined(_di_f_fss_nameds_adjust_) || !defined(_di_f_fss_nameds_decimate_by_) #if !defined(_di_f_fss_nameds_decrease_by_) || !defined(_di_f_fss_nameds_increase_) || !defined(_di_f_fss_nameds_increase_by_) || !defined(_di_f_fss_nameds_resize_) - f_status_t private_f_fss_named_resize(const f_array_length_t length, f_fss_named_t *named) { + f_status_t private_f_fss_named_resize(const f_array_length_t length, f_fss_named_t * const named) { f_status_t status = F_none; @@ -92,7 +92,7 @@ extern "C" { #endif // !defined(_di_f_fss_nameds_decrease_by_) || !defined(_di_f_fss_nameds_increase_) || !defined(_di_f_fss_nameds_increase_by_) || !defined(_di_f_fss_nameds_resize_) #if !defined(_di_f_fss_nameds_adjust_) || !defined(_di_f_fss_nameds_decimate_by_) - f_status_t private_f_fss_nameds_adjust(const f_array_length_t length, f_fss_nameds_t *nameds) { + f_status_t private_f_fss_nameds_adjust(const f_array_length_t length, f_fss_nameds_t * const nameds) { f_status_t status = F_none; @@ -118,7 +118,7 @@ extern "C" { #endif // !defined(_di_f_fss_nameds_adjust_) || !defined(_di_f_fss_nameds_decimate_by_) #if !defined(_di_f_fss_nameds_decrease_by_) || !defined(_di_f_fss_nameds_increase_) || !defined(_di_f_fss_nameds_increase_by_) || !defined(_di_f_fss_nameds_resize_) - f_status_t private_f_fss_nameds_resize(const f_array_length_t length, f_fss_nameds_t *nameds) { + f_status_t private_f_fss_nameds_resize(const f_array_length_t length, f_fss_nameds_t * const nameds) { f_status_t status = F_none; @@ -144,7 +144,7 @@ extern "C" { #endif // !defined(_di_f_fss_nameds_decrease_by_) || !defined(_di_f_fss_nameds_increase_) || !defined(_di_f_fss_nameds_increase_by_) || !defined(_di_f_fss_nameds_resize_) #if !defined(_di_f_fss_nest_adjust_) || !defined(_di_f_fss_nest_decimate_by_) - f_status_t private_f_fss_nest_adjust(const f_array_length_t length, f_fss_nest_t *nest) { + f_status_t private_f_fss_nest_adjust(const f_array_length_t length, f_fss_nest_t * const nest) { f_status_t status = F_none; @@ -170,7 +170,7 @@ extern "C" { #endif // !defined(_di_f_fss_nest_adjust_) || !defined(_di_f_fss_nest_decimate_by_) #if !defined(_di_f_fss_nest_decrease_by_) || !defined(_di_f_fss_nest_increase_) || !defined(_di_f_fss_nest_increase_by_) || !defined(_di_f_fss_nest_resize_) - f_status_t private_f_fss_nest_resize(const f_array_length_t length, f_fss_nest_t *nest) { + f_status_t private_f_fss_nest_resize(const f_array_length_t length, f_fss_nest_t * const nest) { f_status_t status = F_none; @@ -222,7 +222,7 @@ extern "C" { #endif // !defined(_di_f_fss_nests_adjust_) || !defined(_di_f_fss_nests_decimate_by_) #if !defined(_di_f_fss_nests_decrease_by_) || !defined(_di_f_fss_nests_increase_) || !defined(_di_f_fss_nests_increase_by_) || !defined(_di_f_fss_nests_resize_) - f_status_t private_f_fss_nests_resize(const f_array_length_t length, f_fss_nests_t *nests) { + f_status_t private_f_fss_nests_resize(const f_array_length_t length, f_fss_nests_t * const nests) { f_status_t status = F_none; @@ -248,7 +248,7 @@ extern "C" { #endif // !defined(_di_f_fss_nests_decrease_by_) || !defined(_di_f_fss_nests_increase_) || !defined(_di_f_fss_nests_increase_by_) || !defined(_di_f_fss_nests_resize_) #if !defined(_di_f_fss_set_adjust_) || !defined(_di_f_fss_set_decimate_by_) - f_status_t private_f_fss_set_adjust(const f_array_length_t length, f_fss_set_t *set) { + f_status_t private_f_fss_set_adjust(const f_array_length_t length, f_fss_set_t * const set) { f_status_t status = F_none; @@ -278,7 +278,7 @@ extern "C" { #endif // !defined(_di_f_fss_set_decrease_by_) || !defined(_di_f_fss_set_increase_) || !defined(_di_f_fss_set_increase_by_) || !defined(_di_f_fss_set_resize_) #if !defined(_di_f_fss_set_quote_adjust_) || !defined(_di_f_fss_set_quote_decimate_by_) - f_status_t private_f_fss_set_quote_adjust(const f_array_length_t length, f_fss_set_quote_t *set_quote) { + f_status_t private_f_fss_set_quote_adjust(const f_array_length_t length, f_fss_set_quote_t * const set_quote) { f_status_t status = F_none; @@ -299,7 +299,7 @@ extern "C" { #endif // !defined(_di_f_fss_set_quote_adjust_) || !defined(_di_f_fss_set_quote_decimate_by_) #if !defined(_di_f_fss_set_quote_decrease_by_) || !defined(_di_f_fss_set_quote_increase_) || !defined(_di_f_fss_set_quote_increase_by_) || !defined(_di_f_fss_set_quote_resize_) - f_status_t private_f_fss_set_quote_resize(const f_array_length_t length, f_fss_set_quote_t *set_quote) { + f_status_t private_f_fss_set_quote_resize(const f_array_length_t length, f_fss_set_quote_t * const set_quote) { f_status_t status = F_none; @@ -320,7 +320,7 @@ extern "C" { #endif // !defined(_di_f_fss_set_quote_decrease_by_) || !defined(_di_f_fss_set_quote_increase_) || !defined(_di_f_fss_set_quote_increase_by_) || !defined(_di_f_fss_set_quote_resize_) #if !defined(_di_f_fss_set_quotes_adjust_) || !defined(_di_f_fss_set_quotes_decimate_by_) - f_status_t private_f_fss_set_quotes_adjust(const f_array_length_t length, f_fss_set_quotes_t *set_quotes) { + f_status_t private_f_fss_set_quotes_adjust(const f_array_length_t length, f_fss_set_quotes_t * const set_quotes) { f_status_t status = F_none; @@ -356,7 +356,7 @@ extern "C" { #endif // !defined(_di_f_fss_set_quotes_adjust_) || !defined(_di_f_fss_set_quotes_decimate_by_) #if !defined(_di_f_fss_set_quotes_decrease_by_) || !defined(_di_f_fss_set_quotes_increase_) || !defined(_di_f_fss_set_quotes_increase_by_) || !defined(_di_f_fss_set_quotes_resize_) - f_status_t private_f_fss_set_quotes_resize(const f_array_length_t length, f_fss_set_quotes_t *set_quotes) { + f_status_t private_f_fss_set_quotes_resize(const f_array_length_t length, f_fss_set_quotes_t * const set_quotes) { f_status_t status = F_none; for (f_array_length_t i = length; i < set_quotes->size; ++i) { @@ -391,7 +391,7 @@ extern "C" { #endif // !defined(_di_f_fss_set_quotes_decrease_by_) || !defined(_di_f_fss_set_quotes_increase_) || !defined(_di_f_fss_set_quotes_increase_by_) || !defined(_di_f_fss_set_quotes_resize_) #if !defined(_di_f_fss_sets_adjust_) || !defined(_di_f_fss_sets_decimate_by_) - f_status_t private_f_fss_sets_adjust(const f_array_length_t length, f_fss_sets_t *sets) { + f_status_t private_f_fss_sets_adjust(const f_array_length_t length, f_fss_sets_t * const sets) { f_status_t status = F_none; @@ -421,7 +421,7 @@ extern "C" { #endif // !defined(_di_f_fss_sets_adjust_) || !defined(_di_f_fss_sets_decimate_by_) #if !defined(_di_f_fss_sets_decrease_by_) || !defined(_di_f_fss_sets_increase_) || !defined(_di_f_fss_sets_increase_by_) || !defined(_di_f_fss_sets_resize_) - f_status_t private_f_fss_sets_resize(const f_array_length_t length, f_fss_sets_t *sets) { + f_status_t private_f_fss_sets_resize(const f_array_length_t length, f_fss_sets_t * const sets) { f_status_t status = F_none; diff --git a/level_0/f_fss/c/private-fss.h b/level_0/f_fss/c/private-fss.h index e826f6f..54dfa9b 100644 --- a/level_0/f_fss/c/private-fss.h +++ b/level_0/f_fss/c/private-fss.h @@ -38,7 +38,7 @@ extern "C" { * @see f_memory_adjust() */ #if !defined(_di_f_fss_items_adjust_) || !defined(_di_f_fss_items_decimate_by_) - extern f_status_t private_f_fss_items_adjust(const f_array_length_t length, f_fss_items_t *items) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_items_adjust(const f_array_length_t length, f_fss_items_t * const items) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_items_adjust_) || !defined(_di_f_fss_items_decimate_by_) /** @@ -66,7 +66,7 @@ extern "C" { * @see f_memory_resize() */ #if !defined(_di_f_fss_items_decrease_by_) || !defined(_di_f_fss_items_increase_) || !defined(_di_f_fss_items_increase_by_) || !defined(_di_f_fss_items_resize_) - extern f_status_t private_f_fss_items_resize(const f_array_length_t length, f_fss_items_t *items) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_items_resize(const f_array_length_t length, f_fss_items_t * const items) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_items_decrease_by_) || !defined(_di_f_fss_items_increase_) || !defined(_di_f_fss_items_increase_by_) || !defined(_di_f_fss_items_resize_) /** @@ -94,7 +94,7 @@ extern "C" { * @see f_fss_nameds_decimate_by() */ #if !defined(_di_f_fss_nameds_adjust_) || !defined(_di_f_fss_nameds_decimate_by_) - extern f_status_t private_f_fss_named_adjust(const f_array_length_t length, f_fss_named_t *named) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_named_adjust(const f_array_length_t length, f_fss_named_t * const named) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_nameds_adjust_) || !defined(_di_f_fss_nameds_decimate_by_) /** @@ -124,7 +124,7 @@ extern "C" { * @see f_fss_nameds_resize() */ #if !defined(_di_f_fss_nameds_decrease_by_) || !defined(_di_f_fss_nameds_increase_) || !defined(_di_f_fss_nameds_increase_by_) || !defined(_di_f_fss_nameds_resize_) - extern f_status_t private_f_fss_named_resize(const f_array_length_t length, f_fss_named_t *named) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_named_resize(const f_array_length_t length, f_fss_named_t * const named) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_nameds_decrease_by_) || !defined(_di_f_fss_nameds_increase_) || !defined(_di_f_fss_nameds_increase_by_) || !defined(_di_f_fss_nameds_resize_) /** @@ -150,7 +150,7 @@ extern "C" { * @see f_memory_adjust() */ #if !defined(_di_f_fss_nameds_adjust_) || !defined(_di_f_fss_nameds_decimate_by_) - extern f_status_t private_f_fss_nameds_adjust(const f_array_length_t length, f_fss_nameds_t *nameds) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_nameds_adjust(const f_array_length_t length, f_fss_nameds_t * const nameds) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_nameds_adjust_) || !defined(_di_f_fss_nameds_decimate_by_) /** @@ -178,7 +178,7 @@ extern "C" { * @see f_memory_resize() */ #if !defined(_di_f_fss_nameds_decrease_by_) || !defined(_di_f_fss_nameds_increase_) || !defined(_di_f_fss_nameds_increase_by_) || !defined(_di_f_fss_nameds_resize_) - extern f_status_t private_f_fss_nameds_resize(const f_array_length_t length, f_fss_nameds_t *nameds) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_nameds_resize(const f_array_length_t length, f_fss_nameds_t * const nameds) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_nameds_decrease_by_) || !defined(_di_f_fss_nameds_increase_) || !defined(_di_f_fss_nameds_increase_by_) || !defined(_di_f_fss_nameds_resize_) /** @@ -204,7 +204,7 @@ extern "C" { * @see f_memory_adjust() */ #if !defined(_di_f_fss_nest_adjust_) || !defined(_di_f_fss_nest_decimate_by_) - extern f_status_t private_f_fss_nest_adjust(const f_array_length_t length, f_fss_nest_t *nest) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_nest_adjust(const f_array_length_t length, f_fss_nest_t * const nest) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_nest_adjust_) || !defined(_di_f_fss_nest_decimate_by_) /** @@ -232,7 +232,7 @@ extern "C" { * @see f_memory_resize() */ #if !defined(_di_f_fss_nest_decrease_by_) || !defined(_di_f_fss_nest_increase_) || !defined(_di_f_fss_nest_increase_by_) || !defined(_di_f_fss_nest_resize_) - extern f_status_t private_f_fss_nest_resize(const f_array_length_t length, f_fss_nest_t *nest) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_nest_resize(const f_array_length_t length, f_fss_nest_t * const nest) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_nest_decrease_by_) || !defined(_di_f_fss_nest_increase_) || !defined(_di_f_fss_nest_increase_by_) || !defined(_di_f_fss_nest_resize_) /** @@ -258,7 +258,7 @@ extern "C" { * @see f_memory_adjust() */ #if !defined(_di_f_fss_nests_adjust_) || !defined(_di_f_fss_nests_decimate_by_) - extern f_status_t private_f_fss_nests_adjust(const f_array_length_t length, f_fss_nests_t *nests) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_nests_adjust(const f_array_length_t length, f_fss_nests_t * const nests) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_nests_adjust_) || !defined(_di_f_fss_nests_decimate_by_) /** @@ -286,7 +286,7 @@ extern "C" { * @see f_memory_resize() */ #if !defined(_di_f_fss_nests_decrease_by_) || !defined(_di_f_fss_nests_increase_) || !defined(_di_f_fss_nests_increase_by_) || !defined(_di_f_fss_nests_resize_) - extern f_status_t private_f_fss_nests_resize(const f_array_length_t length, f_fss_nests_t *nests) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_nests_resize(const f_array_length_t length, f_fss_nests_t * const nests) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_nests_decrease_by_) || !defined(_di_f_fss_nests_increase_) || !defined(_di_f_fss_nests_increase_by_) || !defined(_di_f_fss_nests_resize_) /** @@ -312,7 +312,7 @@ extern "C" { * @see f_fss_set_decimate_by() */ #if !defined(_di_f_fss_set_adjust_) || !defined(_di_f_fss_set_decimate_by_) - extern f_status_t private_f_fss_set_adjust(const f_array_length_t length, f_fss_set_t *set) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_set_adjust(const f_array_length_t length, f_fss_set_t * const set) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_set_adjust_) || !defined(_di_f_fss_set_decimate_by_) /** @@ -340,7 +340,7 @@ extern "C" { * @see f_fss_set_resize() */ #if !defined(_di_f_fss_set_decrease_by_) || !defined(_di_f_fss_set_increase_) || !defined(_di_f_fss_set_increase_by_) || !defined(_di_f_fss_set_resize_) - extern f_status_t private_f_fss_set_resize(const f_array_length_t length, f_fss_set_t *set) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_set_resize(const f_array_length_t length, f_fss_set_t * const set) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_set_decrease_by_) || !defined(_di_f_fss_set_increase_) || !defined(_di_f_fss_set_increase_by_) || !defined(_di_f_fss_set_resize_) /** @@ -370,7 +370,7 @@ extern "C" { * @see f_fss_set_quote_decimate_by() */ #if !defined(_di_f_fss_set_quote_adjust_) || !defined(_di_f_fss_set_quote_decimate_by_) - extern f_status_t private_f_fss_set_quote_adjust(const f_array_length_t length, f_fss_set_quote_t *set_quote) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_set_quote_adjust(const f_array_length_t length, f_fss_set_quote_t * const set_quote) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_set_quote_adjust_) || !defined(_di_f_fss_set_quote_decimate_by_) /** @@ -402,7 +402,7 @@ extern "C" { * @see f_fss_set_quote_resize() */ #if !defined(_di_f_fss_set_quote_decrease_by_) || !defined(_di_f_fss_set_quote_increase_) || !defined(_di_f_fss_set_quote_increase_by_) || !defined(_di_f_fss_set_quote_resize_) - extern f_status_t private_f_fss_set_quote_resize(const f_array_length_t length, f_fss_set_quote_t *set_quote) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_set_quote_resize(const f_array_length_t length, f_fss_set_quote_t * const set_quote) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_set_quote_decrease_by_) || !defined(_di_f_fss_set_quote_increase_) || !defined(_di_f_fss_set_quote_increase_by_) || !defined(_di_f_fss_set_quote_resize_) /** @@ -434,7 +434,7 @@ extern "C" { * @see f_memory_adjust() */ #if !defined(_di_f_fss_set_quotes_adjust_) || !defined(_di_f_fss_set_quotes_decimate_by_) - extern f_status_t private_f_fss_set_quotes_adjust(const f_array_length_t length, f_fss_set_quotes_t *set_quotes) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_set_quotes_adjust(const f_array_length_t length, f_fss_set_quotes_t * const set_quotes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_set_quotes_adjust_) || !defined(_di_f_fss_set_quotes_decimate_by_) /** @@ -468,7 +468,7 @@ extern "C" { * @see f_memory_resize() */ #if !defined(_di_f_fss_set_quotes_decrease_by_) || !defined(_di_f_fss_set_quotes_increase_) || !defined(_di_f_fss_set_quotes_increase_by_) || !defined(_di_f_fss_set_quotes_resize_) - extern f_status_t private_f_fss_set_quotes_resize(const f_array_length_t length, f_fss_set_quotes_t *set_quotes) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_set_quotes_resize(const f_array_length_t length, f_fss_set_quotes_t * const set_quotes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_set_quotes_decrease_by_) || !defined(_di_f_fss_set_quotes_increase_) || !defined(_di_f_fss_set_quotes_increase_by_) || !defined(_di_f_fss_set_quotes_resize_) /** @@ -496,7 +496,7 @@ extern "C" { * @see f_memory_adjust() */ #if !defined(_di_f_fss_sets_adjust_) || !defined(_di_f_fss_sets_decimate_by_) - extern f_status_t private_f_fss_sets_adjust(const f_array_length_t length, f_fss_sets_t *sets) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_sets_adjust(const f_array_length_t length, f_fss_sets_t * const sets) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_sets_adjust_) || !defined(_di_f_fss_sets_decimate_by_) /** @@ -526,7 +526,7 @@ extern "C" { * @see f_memory_resize() */ #if !defined(_di_f_fss_sets_decrease_by_) || !defined(_di_f_fss_sets_increase_) || !defined(_di_f_fss_sets_increase_by_) || !defined(_di_f_fss_sets_resize_) - extern f_status_t private_f_fss_sets_resize(const f_array_length_t length, f_fss_sets_t *sets) F_attribute_visibility_internal_d; + extern f_status_t private_f_fss_sets_resize(const f_array_length_t length, f_fss_sets_t * const sets) F_attribute_visibility_internal_d; #endif // !defined(_di_f_fss_sets_decrease_by_) || !defined(_di_f_fss_sets_increase_) || !defined(_di_f_fss_sets_increase_by_) || !defined(_di_f_fss_sets_resize_) #ifdef __cplusplus diff --git a/level_0/f_iki/c/iki.c b/level_0/f_iki/c/iki.c index 32672a5..58cc96d 100644 --- a/level_0/f_iki/c/iki.c +++ b/level_0/f_iki/c/iki.c @@ -52,7 +52,7 @@ extern "C" { #endif // _di_f_iki_object_partial_is_ #ifndef _di_f_iki_read_ - f_status_t f_iki_read(const f_state_t state, f_string_static_t * const buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_iki_delimits_t *delimits) { + f_status_t f_iki_read(const f_state_t state, f_string_static_t * const buffer, f_string_range_t * const range, f_iki_variable_t * const variable, f_iki_vocabulary_t * const vocabulary, f_iki_content_t * const content, f_iki_delimits_t * const delimits) { #ifndef _di_level_0_parameter_checking_ if (!buffer) return F_status_set_error(F_parameter); if (!range) return F_status_set_error(F_parameter); diff --git a/level_0/f_iki/c/iki.h b/level_0/f_iki/c/iki.h index 59965da..f087342 100644 --- a/level_0/f_iki/c/iki.h +++ b/level_0/f_iki/c/iki.h @@ -159,7 +159,7 @@ extern "C" { * 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_status_t f_iki_read(const f_state_t state, f_string_static_t * const buffer, f_string_range_t *range, f_iki_variable_t *variable, f_iki_vocabulary_t *vocabulary, f_iki_content_t *content, f_iki_delimits_t *delimits); + extern f_status_t f_iki_read(const f_state_t state, f_string_static_t * const buffer, f_string_range_t * const range, f_iki_variable_t * const variable, f_iki_vocabulary_t * const vocabulary, f_iki_content_t * const content, f_iki_delimits_t * const delimits); #endif // _di_f_iki_read_ #ifdef __cplusplus diff --git a/level_0/f_iki/c/private-iki.c b/level_0/f_iki/c/private-iki.c index d4e5b44..8970b49 100644 --- a/level_0/f_iki/c/private-iki.c +++ b/level_0/f_iki/c/private-iki.c @@ -6,7 +6,7 @@ extern "C" { #endif #if !defined(_di_f_iki_read_) - f_status_t private_f_iki_seek_special(const f_string_static_t buffer, f_string_range_t *range) { + f_status_t private_f_iki_seek_special(const f_string_static_t buffer, f_string_range_t * const range) { f_status_t status = F_none; f_array_length_t width_max = 0; diff --git a/level_0/f_iki/c/private-iki.h b/level_0/f_iki/c/private-iki.h index 346b5c3..b98ab16 100644 --- a/level_0/f_iki/c/private-iki.h +++ b/level_0/f_iki/c/private-iki.h @@ -86,7 +86,7 @@ extern "C" { * @see f_utf_is_word_dash_plus() */ #if !defined(_di_f_iki_read_) - extern f_status_t private_f_iki_seek_special(const f_string_static_t buffer, f_string_range_t *range) F_attribute_visibility_internal_d; + extern f_status_t private_f_iki_seek_special(const f_string_static_t buffer, f_string_range_t * const range) F_attribute_visibility_internal_d; #endif // !defined(_di_f_iki_read_) #ifdef __cplusplus diff --git a/level_0/f_limit/c/limit.c b/level_0/f_limit/c/limit.c index 4eef881..96cd5af 100644 --- a/level_0/f_limit/c/limit.c +++ b/level_0/f_limit/c/limit.c @@ -5,7 +5,7 @@ extern "C" { #endif #ifndef _di_f_limit_process_ - 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) { + f_status_t f_limit_process(const pid_t id, const int type, const f_limit_value_t * const value_next, f_limit_value_t * const 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_ @@ -24,7 +24,7 @@ extern "C" { #endif // _di_f_limit_process_ #ifndef _di_f_limit_sets_copy_ - f_status_t f_limit_sets_copy(const f_limit_sets_t source, f_limit_sets_t *destination) { + f_status_t f_limit_sets_copy(const f_limit_sets_t source, f_limit_sets_t * const destination) { #ifndef _di_level_0_parameter_checking_ if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -49,7 +49,7 @@ extern "C" { #endif // _di_f_limit_sets_copy_ #ifndef _di_f_limit_values_copy_ - f_status_t f_limit_values_copy(const f_limit_values_t source, f_limit_values_t *destination) { + f_status_t f_limit_values_copy(const f_limit_values_t source, f_limit_values_t * const destination) { #ifndef _di_level_0_parameter_checking_ if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_limit/c/limit.h b/level_0/f_limit/c/limit.h index 0ebcf9c..9a5985a 100644 --- a/level_0/f_limit/c/limit.h +++ b/level_0/f_limit/c/limit.h @@ -56,7 +56,7 @@ extern "C" { * @see prlimit() */ #ifndef _di_f_limit_process_ - 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); + extern f_status_t f_limit_process(const pid_t id, const int type, const f_limit_value_t * const value_next, f_limit_value_t * const value_current); #endif // _di_f_limit_process_ /** @@ -77,7 +77,7 @@ extern "C" { * @see f_memory_structure_increase_by() */ #ifndef _di_f_limit_sets_copy_ - extern f_status_t f_limit_sets_copy(const f_limit_sets_t source, f_limit_sets_t *destination); + extern f_status_t f_limit_sets_copy(const f_limit_sets_t source, f_limit_sets_t * const destination); #endif // _di_f_limit_sets_copy_ /** @@ -98,7 +98,7 @@ extern "C" { * @see f_memory_structure_increase_by() */ #ifndef _di_f_limit_values_copy_ - extern f_status_t f_limit_values_copy(const f_limit_values_t source, f_limit_values_t *destination); + extern f_status_t f_limit_values_copy(const f_limit_values_t source, f_limit_values_t * const destination); #endif // _di_f_limit_values_copy_ #ifdef __cplusplus diff --git a/level_0/f_memory/c/memory.c b/level_0/f_memory/c/memory.c index 9bc3121..bfada7c 100644 --- a/level_0/f_memory/c/memory.c +++ b/level_0/f_memory/c/memory.c @@ -6,7 +6,7 @@ extern "C" { #endif #ifndef _di_f_memory_adjust_ - f_status_t f_memory_adjust(const size_t old_length, const size_t new_length, const size_t size, void **pointer) { + f_status_t f_memory_adjust(const size_t old_length, const size_t new_length, const size_t size, void ** const pointer) { #ifndef _di_level_0_parameter_checking_ if (!size) return F_status_set_error(F_parameter); if (!pointer) return F_status_set_error(F_parameter); @@ -21,7 +21,7 @@ extern "C" { #endif // _di_f_memory_adjust_-#ifndef _di_f_memory_delete_ #ifndef _di_f_memory_delete_ - f_status_t f_memory_delete(const size_t length, const size_t size, void **pointer) { + f_status_t f_memory_delete(const size_t length, const size_t size, void ** const pointer) { #ifndef _di_level_0_parameter_checking_ if (!pointer) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -47,7 +47,7 @@ extern "C" { #endif // _di_f_memory_delete_ #ifndef _di_f_memory_destroy_ - f_status_t f_memory_destroy(const size_t length, const size_t size, void **pointer) { + f_status_t f_memory_destroy(const size_t length, const size_t size, void ** const pointer) { #ifndef _di_level_0_parameter_checking_ if (!size) return F_status_set_error(F_parameter); if (!pointer) return F_status_set_error(F_parameter); @@ -74,7 +74,7 @@ extern "C" { #endif // _di_f_memory_destroy_ #ifndef _di_f_memory_new_ - f_status_t f_memory_new(const size_t length, const size_t size, void **pointer) { + f_status_t f_memory_new(const size_t length, const size_t size, void ** const pointer) { #ifndef _di_level_0_parameter_checking_ if (!size) return F_status_set_error(F_parameter); if (!pointer) return F_status_set_error(F_parameter); @@ -97,7 +97,7 @@ extern "C" { #ifndef _di_f_memory_new_aligned_ - f_status_t f_memory_new_aligned(const size_t length, const size_t alignment, void **pointer) { + f_status_t f_memory_new_aligned(const size_t length, const size_t alignment, void ** const pointer) { #ifndef _di_level_0_parameter_checking_ if (!alignment) return F_status_set_error(F_parameter); if (!pointer) return F_status_set_error(F_parameter); @@ -141,7 +141,7 @@ extern "C" { #endif // _di_f_memory_new_aligned_ #ifndef _di_f_memory_resize_ - f_status_t f_memory_resize(const size_t old_length, const size_t new_length, const size_t size, void **pointer) { + f_status_t f_memory_resize(const size_t old_length, const size_t new_length, const size_t size, void ** const pointer) { #ifndef _di_level_0_parameter_checking_ if (!size) return F_status_set_error(F_parameter); if (!pointer) return F_status_set_error(F_parameter); diff --git a/level_0/f_memory/c/memory.h b/level_0/f_memory/c/memory.h index 1b74172..1aa1a0b 100644 --- a/level_0/f_memory/c/memory.h +++ b/level_0/f_memory/c/memory.h @@ -55,7 +55,7 @@ extern "C" { * @see realloc() */ #ifndef _di_f_memory_adjust_ - extern f_status_t f_memory_adjust(const size_t old_length, const size_t new_length, const size_t size, void **pointer); + extern f_status_t f_memory_adjust(const size_t old_length, const size_t new_length, const size_t size, void ** const pointer); #endif // _di_f_memory_adjust_ /** @@ -83,7 +83,7 @@ extern "C" { * @see free() */ #ifndef _di_f_memory_delete_ - extern f_status_t f_memory_delete(const size_t length, const size_t size, void **pointer); + extern f_status_t f_memory_delete(const size_t length, const size_t size, void ** const pointer); #endif // _di_f_memory_delete_ /** @@ -110,7 +110,7 @@ extern "C" { * @see memset() */ #ifndef _di_f_memory_destroy_ - extern f_status_t f_memory_destroy(const size_t length, const size_t size, void **pointer); + extern f_status_t f_memory_destroy(const size_t length, const size_t size, void ** const pointer); #endif // _di_f_memory_destroy_ /** @@ -136,7 +136,7 @@ extern "C" { * @see memset() */ #ifndef _di_f_memory_new_ - extern f_status_t f_memory_new(const size_t length, const size_t size, void **pointer); + extern f_status_t f_memory_new(const size_t length, const size_t size, void ** const pointer); #endif // _di_f_memory_new_ /** @@ -164,7 +164,7 @@ extern "C" { * @see memset() */ #ifndef _di_f_memory_new_aligned_ - extern f_status_t f_memory_new_aligned(const size_t length, const size_t alignment, void **pointer); + extern f_status_t f_memory_new_aligned(const size_t length, const size_t alignment, void ** const pointer); #endif // _di_f_memory_new_aligned_ /** @@ -195,7 +195,7 @@ extern "C" { * @see realloc() */ #ifndef _di_f_memory_resize_ - extern f_status_t f_memory_resize(const size_t old_length, const size_t new_length, const size_t size, void **pointer); + extern f_status_t f_memory_resize(const size_t old_length, const size_t new_length, const size_t size, void ** const pointer); #endif // _di_f_memory_resize_ #ifdef __cplusplus diff --git a/level_0/f_memory/c/memory/structure.c b/level_0/f_memory/c/memory/structure.c index a2ef196..c617b78 100644 --- a/level_0/f_memory/c/memory/structure.c +++ b/level_0/f_memory/c/memory/structure.c @@ -6,7 +6,7 @@ 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) { + f_status_t f_memory_structure_adjust(const size_t length_new, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const 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); @@ -19,7 +19,7 @@ extern "C" { #endif // _di_f_memory_structure_adjust_ #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) { + f_status_t f_memory_structure_decimate_by(const f_array_length_t amount, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const 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); @@ -36,7 +36,7 @@ extern "C" { #endif // _di_f_memory_structure_decimate_by_ #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) { + f_status_t f_memory_structure_decrease_by(const f_array_length_t amount, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const 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); @@ -53,7 +53,7 @@ extern "C" { #endif // _di_f_memory_structure_decrease_by_ #ifndef _di_f_memory_structure_increase_ - f_status_t f_memory_structure_increase(const uint16_t step, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size) { + f_status_t f_memory_structure_increase(const uint16_t step, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!type_size) return F_status_set_error(F_parameter); @@ -81,7 +81,7 @@ extern "C" { #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) { + f_status_t f_memory_structure_increase_by(const f_array_length_t amount, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const 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); @@ -102,7 +102,7 @@ extern "C" { #endif // _di_f_memory_structure_increase_by_ #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) { + f_status_t f_memory_structure_resize(const size_t length_new, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const 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); diff --git a/level_0/f_memory/c/memory/structure.h b/level_0/f_memory/c/memory/structure.h index 8ad5395..99bda4f 100644 --- a/level_0/f_memory/c/memory/structure.h +++ b/level_0/f_memory/c/memory/structure.h @@ -44,7 +44,7 @@ extern "C" { * @see memset() */ #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); + extern f_status_t f_memory_structure_adjust(const size_t length_new, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size); #endif // _di_f_memory_structure_adjust_ /** @@ -76,7 +76,7 @@ extern "C" { * @see memset() */ #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); + extern f_status_t f_memory_structure_decimate_by(const f_array_length_t amount, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size); #endif // _di_f_memory_structure_decimate_by_ /** @@ -108,7 +108,7 @@ extern "C" { * @see memset() */ #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); + extern f_status_t f_memory_structure_decrease_by(const f_array_length_t amount, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size); #endif // _di_f_memory_structure_decrease_by_ /** @@ -142,7 +142,7 @@ extern "C" { * @see memset() */ #ifndef _di_f_memory_structure_increase_ - extern f_status_t f_memory_structure_increase(const uint16_t step, const size_t type_size, void **structure, f_array_length_t *used, f_array_length_t *size); + extern f_status_t f_memory_structure_increase(const uint16_t step, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size); #endif // _di_f_memory_structure_increase_ /** @@ -176,7 +176,7 @@ extern "C" { * @see memset() */ #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); + extern f_status_t f_memory_structure_increase_by(const f_array_length_t amount, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size); #endif // _di_f_memory_structure_increase_by_ /** @@ -206,7 +206,7 @@ extern "C" { * @see memset() */ #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); + extern f_status_t f_memory_structure_resize(const size_t length_new, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size); #endif // _di_f_memory_structure_resize_ #ifdef __cplusplus diff --git a/level_0/f_memory/c/private-memory.c b/level_0/f_memory/c/private-memory.c index ad95869..a4cea45 100644 --- a/level_0/f_memory/c/private-memory.c +++ b/level_0/f_memory/c/private-memory.c @@ -6,7 +6,7 @@ extern "C" { #endif #if !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_by_) - 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_status_t private_f_memory_adjust(const size_t length_old, const size_t length_new, const size_t type_size, void ** const pointer) { if (length_old == length_new) { return F_data_not; @@ -63,7 +63,7 @@ extern "C" { #endif // !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_by_) #if !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !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) { + f_status_t private_f_memory_resize(const size_t length_old, const size_t length_new, const size_t type_size, void ** const pointer) { if (length_old == length_new) { return F_data_not; @@ -111,7 +111,7 @@ extern "C" { #endif // !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_resize_) #if !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_by_) - 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_status_t private_f_memory_structure_adjust(const size_t length_new, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size) { const f_status_t status = private_f_memory_adjust(*size, length_new, type_size, structure); @@ -128,7 +128,7 @@ extern "C" { #endif // !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_by_) #if !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !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_status_t private_f_memory_structure_resize(const size_t length_new, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size) { const f_status_t status = private_f_memory_resize(*size, length_new, type_size, structure); diff --git a/level_0/f_memory/c/private-memory.h b/level_0/f_memory/c/private-memory.h index b77538d..5a0d338 100644 --- a/level_0/f_memory/c/private-memory.h +++ b/level_0/f_memory/c/private-memory.h @@ -45,7 +45,7 @@ extern "C" { * @see f_memory_structure_decimate_by() */ #if !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_by_) - 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_attribute_visibility_internal_d; + extern f_status_t private_f_memory_adjust(const size_t length_old, const size_t length_new, const size_t type_size, void ** const pointer) F_attribute_visibility_internal_d; #endif // !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_by_) /** @@ -82,7 +82,7 @@ extern "C" { * @see private_f_memory_structure_resize() */ #if !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !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_attribute_visibility_internal_d; + extern f_status_t private_f_memory_resize(const size_t length_old, const size_t length_new, const size_t type_size, void ** const pointer) F_attribute_visibility_internal_d; #endif // !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_resize_) /** @@ -113,7 +113,7 @@ extern "C" { * @see private_f_memory_adjust() */ #if !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_by_) - 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_attribute_visibility_internal_d; + extern f_status_t private_f_memory_structure_adjust(const size_t length_new, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size) F_attribute_visibility_internal_d; #endif // !defined(_di_f_memory_structure_adjust_) || !defined(_di_f_memory_structure_decimate_by_) /** @@ -146,7 +146,7 @@ extern "C" { * @see private_f_memory_resize() */ #if !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !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_attribute_visibility_internal_d; + extern f_status_t private_f_memory_structure_resize(const size_t length_new, const size_t type_size, void ** const structure, f_array_length_t * const used, f_array_length_t * const size) F_attribute_visibility_internal_d; #endif // !defined(_di_memory_structure_decrease_by_) || !defined(_di_memory_structure_increase_) || !defined(_di_memory_structure_increase_by_) || !defined(_di_f_memory_structure_resize_) #ifdef __cplusplus diff --git a/level_0/f_path/c/path.c b/level_0/f_path/c/path.c index f2dc523..51bbd04 100644 --- a/level_0/f_path/c/path.c +++ b/level_0/f_path/c/path.c @@ -6,9 +6,9 @@ extern "C" { #endif #ifndef _di_f_path_change_ - f_status_t f_path_change(const f_string_t path) { + f_status_t f_path_change(const f_string_static_t path) { - if (chdir(path) < 0) { + if (chdir(path.string) < 0) { if (errno == EACCES) return F_status_set_error(F_access_denied); if (errno == EFAULT) return F_status_set_error(F_buffer); if (errno == EIO) return F_status_set_error(F_input_output); @@ -50,7 +50,7 @@ extern "C" { #endif // _di_f_path_change_at_ #ifndef _di_f_path_current_ - f_status_t f_path_current(const bool real, f_string_dynamic_t *path) { + f_status_t f_path_current(const bool real, f_string_dynamic_t * const path) { #ifndef _di_level_0_parameter_checking_ if (!path) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -75,11 +75,10 @@ extern "C" { const f_array_length_t length = strnlen(buffer, F_path_length_max_d); - if (length + 1 > path->size) { - f_status_t status = F_none; + { + path->used = 0; - macro_f_string_dynamic_t_clear((*path)) - macro_f_string_dynamic_t_resize(status, (*path), length + 1) + const f_status_t status = f_string_dynamic_increase_by(length + 1, path); if (F_status_is_error(status)) return status; } @@ -93,7 +92,7 @@ extern "C" { #endif // _di_f_path_current_ #ifndef _f_path_directory_cleanup_ - f_status_t f_path_directory_cleanup(const f_string_static_t argument, f_string_dynamic_t *directory) { + f_status_t f_path_directory_cleanup(const f_string_static_t argument, f_string_dynamic_t * const directory) { #ifndef _di_level_0_parameter_checking_ if (!directory) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -160,17 +159,14 @@ extern "C" { #endif // _f_path_directory_cleanup_ #ifndef _di_f_path_is_ - f_status_t f_path_is(const f_string_t path, const f_array_length_t length) { + f_status_t f_path_is(const f_string_static_t path) { - if (!path || !length) { + if (!path.string || !path.used) { return F_data_not; } - for (f_array_length_t i = 0; i < length; ++i) { - - if (path[i] == f_path_separator_s.string[0]) { - return F_true; - } + for (f_array_length_t i = 0; i < path.used; ++i) { + if (path.string[i] == f_path_separator_s.string[0]) return true; } // for return F_false; @@ -178,19 +174,19 @@ extern "C" { #endif // _di_f_path_is_ #ifndef _di_f_path_is_relative_ - f_status_t f_path_is_relative(const f_string_t path, const f_array_length_t length) { + f_status_t f_path_is_relative(const f_string_static_t path) { - if (!path || !length) { + if (!path.string || !path.used) { return F_data_not; } f_array_length_t i = 0; - for (; i < length; ++i) { - if (path[i]) break; + for (; i < path.used; ++i) { + if (path.string[i]) break; } // for - if (path[i] == f_path_separator_s.string[0]) { + if (path.string[i] == f_path_separator_s.string[0]) { return F_false; } @@ -199,37 +195,37 @@ extern "C" { #endif // _di_f_path_is_relative_ #ifndef _di_f_path_is_relative_current_ - f_status_t f_path_is_relative_current(const f_string_t path, const f_array_length_t length) { + f_status_t f_path_is_relative_current(const f_string_static_t path) { - if (!path || !length) { + if (!path.string || !path.used) { return F_data_not; } f_array_length_t i = 0; - for (; i < length; ++i) { - if (path[i]) break; + for (; i < path.used; ++i) { + if (path.string[i]) break; } // for - if (path[i] == f_path_separator_s.string[0]) { + if (path.string[i] == f_path_separator_s.string[0]) { return F_false; } - if (path[i] == f_path_separator_current_s.string[0]) { - for (; i < length; ++i) { - if (path[i]) break; + if (path.string[i] == f_path_separator_current_s.string[0]) { + for (; i < path.used; ++i) { + if (path.string[i]) break; } // for - if (path[i] == f_path_separator_s.string[0]) { + if (path.string[i] == f_path_separator_s.string[0]) { return F_true; } - if (path[i] == f_path_separator_current_s.string[0]) { - for (; i < length; ++i) { - if (path[i]) break; + if (path.string[i] == f_path_separator_current_s.string[0]) { + for (; i < path.used; ++i) { + if (path.string[i]) break; } // for - if (path[i] == f_path_separator_s.string[0]) { + if (path.string[i] == f_path_separator_s.string[0]) { return F_true; } } @@ -240,12 +236,12 @@ extern "C" { #endif // _di_f_path_is_relative_current_ #ifndef _di_f_path_real_ - f_status_t f_path_real(const f_string_t path, f_string_dynamic_t *real) { + f_status_t f_path_real(const f_string_static_t path, f_string_dynamic_t * const real) { #ifndef _di_level_0_parameter_checking_ if (!real) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ - return private_f_path_real(path, real); + return private_f_path_real(path.string, real); } #endif // _di_f_path_real_ diff --git a/level_0/f_path/c/path.h b/level_0/f_path/c/path.h index 9b4d06c..39ebd8f 100644 --- a/level_0/f_path/c/path.h +++ b/level_0/f_path/c/path.h @@ -56,7 +56,7 @@ extern "C" { * @see chdir() */ #ifndef _di_f_path_change_ - extern f_status_t f_path_change(const f_string_t path); + extern f_status_t f_path_change(const f_string_static_t path); #endif // _di_f_path_change_ /** @@ -115,7 +115,7 @@ extern "C" { * @see getcwd() */ #ifndef _di_f_path_current_ - extern f_status_t 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 * const path); #endif // _di_f_path_current_ /** @@ -144,7 +144,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _f_path_directory_cleanup_ - extern f_status_t f_path_directory_cleanup(const f_string_static_t source, f_string_dynamic_t *directory); + extern f_status_t f_path_directory_cleanup(const f_string_static_t source, f_string_dynamic_t * const directory); #endif // _f_path_directory_cleanup_ /** @@ -158,8 +158,6 @@ extern "C" { * * @param path * The string that may or may not represent a path. - * @param length - * Length of the string. * * @return * F_true if the string is a path string. @@ -167,7 +165,7 @@ extern "C" { * F_data_not if the string has a length of 0 or the string is NULL. */ #ifndef _di_f_path_is_ - extern f_status_t f_path_is(const f_string_t path, const f_array_length_t length); + extern f_status_t f_path_is(const f_string_static_t path); #endif // _di_f_path_is_ /** @@ -181,8 +179,6 @@ extern "C" { * * @param path * The string that may or may not represent a relative path. - * @param length - * Length of the path string. * * @return * F_true if the string is a relative path string. @@ -190,7 +186,7 @@ extern "C" { * F_data_not if the string has a length of 0 or the string is NULL. */ #ifndef _di_f_path_is_relative_ - extern f_status_t f_path_is_relative(const f_string_t path, const f_array_length_t length); + extern f_status_t f_path_is_relative(const f_string_static_t path); #endif // _di_f_path_is_relative_ /** @@ -205,8 +201,6 @@ extern "C" { * * @param path * The string that may or may not represent a relative path. - * @param length - * Length of the path string. * * @return * F_true if the string is a relative path string. @@ -214,7 +208,7 @@ extern "C" { * F_data_not if the string has a length of 0 or the string is NULL. */ #ifndef _di_f_path_is_relative_current_ - extern f_status_t f_path_is_relative_current(const f_string_t path, const f_array_length_t length); + extern f_status_t f_path_is_relative_current(const f_string_static_t path); #endif // _di_f_path_is_relative_current_ /** @@ -251,7 +245,7 @@ extern "C" { * @see realpath() */ #ifndef _di_f_path_real_ - extern f_status_t f_path_real(const f_string_t path, f_string_dynamic_t *real); + extern f_status_t f_path_real(const f_string_static_t path, f_string_dynamic_t * const real); #endif // _di_f_path_real_ #ifdef __cplusplus diff --git a/level_0/f_path/c/path/common.c b/level_0/f_path/c/path/common.c index bcbf96f..721fb55 100644 --- a/level_0/f_path/c/path/common.c +++ b/level_0/f_path/c/path/common.c @@ -19,7 +19,7 @@ extern "C" { #ifdef _di_path_tree_s_ - // KFS Root Level + // KFS Root Level. const f_string_static_t f_path_tree_devices_s = macro_f_string_static_t_initialize(F_path_tree_devices_s, 0, F_path_tree_devices_s_length); const f_string_static_t f_path_tree_external_s = macro_f_string_static_t_initialize(F_path_tree_external_s, 0, F_path_tree_external_s_length); const f_string_static_t f_path_tree_libraries_s = macro_f_string_static_t_initialize(F_path_tree_libraries_s, 0, F_path_tree_libraries_s_length); @@ -29,13 +29,13 @@ extern "C" { const f_string_static_t f_path_tree_run_s = macro_f_string_static_t_initialize(F_path_tree_run_s, 0, F_path_tree_run_s_length); const f_string_static_t f_path_tree_binary_s = macro_f_string_static_t_initialize(F_path_tree_binary_s, 0, F_path_tree_binary_s_length); - // FHS Root Level + // FHS Root Level. const f_string_static_t f_path_tree_boot_s = macro_f_string_static_t_initialize(F_path_tree_boot_s, 0, F_path_tree_boot_s_length); const f_string_static_t f_path_tree_hardware_s = macro_f_string_static_t_initialize(F_path_tree_hardware_s, 0, F_path_tree_hardware_s_length); const f_string_static_t f_path_tree_processes_s = macro_f_string_static_t_initialize(F_path_tree_processes_s, 0, F_path_tree_processes_s_length); const f_string_static_t f_path_tree_system_s = macro_f_string_static_t_initialize(F_path_tree_system_s, 0, F_path_tree_system_s_length); - // Program Level + // Program Level. const f_string_static_t f_path_tree_programs_public_s = macro_f_string_static_t_initialize(F_path_tree_programs_public_s, 0, F_path_tree_programs_public_s_length); const f_string_static_t f_path_tree_programs_system_s = macro_f_string_static_t_initialize(F_path_tree_programs_system_s, 0, F_path_tree_programs_system_s_length); const f_string_static_t f_path_tree_programs_remote_s = macro_f_string_static_t_initialize(F_path_tree_programs_remote_s, 0, F_path_tree_programs_remote_s_length); @@ -46,7 +46,7 @@ extern "C" { const f_string_static_t f_path_tree_programs_boot_s = macro_f_string_static_t_initialize(F_path_tree_programs_boot_s, 0, F_path_tree_programs_boot_s_length); const f_string_static_t f_path_tree_programs_sboot_s = macro_f_string_static_t_initialize(F_path_tree_programs_sboot_s, 0, F_path_tree_programs_sboot_s_length); - // Library Level + // Library Level. const f_string_static_t f_path_tree_libraries_public_s = macro_f_string_static_t_initialize(F_path_tree_libraries_public_s, 0, F_path_tree_libraries_public_s_length); const f_string_static_t f_path_tree_libraries_system_s = macro_f_string_static_t_initialize(F_path_tree_libraries_system_s, 0, F_path_tree_libraries_system_s_length); const f_string_static_t f_path_tree_libraries_remote_s = macro_f_string_static_t_initialize(F_path_tree_libraries_remote_s, 0, F_path_tree_libraries_remote_s_length); @@ -55,25 +55,25 @@ extern "C" { const f_string_static_t f_path_tree_libraries_users_s = macro_f_string_static_t_initialize(F_path_tree_libraries_users_s, 0, F_path_tree_libraries_users_s_length); const f_string_static_t f_path_tree_libraries_boot_s = macro_f_string_static_t_initialize(F_path_tree_libraries_boot_s, 0, F_path_tree_libraries_boot_s_length); - // Home Level + // Home Level. const f_string_static_t f_path_tree_home_services_s = macro_f_string_static_t_initialize(F_path_tree_home_services_s, 0, F_path_tree_home_services_s_length); const f_string_static_t f_path_tree_home_share_s = macro_f_string_static_t_initialize(F_path_tree_home_share_s, 0, F_path_tree_home_share_s_length); const f_string_static_t f_path_tree_home_users_s = macro_f_string_static_t_initialize(F_path_tree_home_users_s, 0, F_path_tree_home_users_s_length); const f_string_static_t f_path_tree_home_websites_s = macro_f_string_static_t_initialize(F_path_tree_home_websites_s, 0, F_path_tree_home_websites_s_length); - // System Level + // System Level. const f_string_static_t f_path_tree_system_logs_s = macro_f_string_static_t_initialize(F_path_tree_system_logs_s, 0, F_path_tree_system_logs_s_length); const f_string_static_t f_path_tree_system_settings_s = macro_f_string_static_t_initialize(F_path_tree_system_settings_s, 0, F_path_tree_system_settings_s_length); const f_string_static_t f_path_tree_system_data_s = macro_f_string_static_t_initialize(F_path_tree_system_data_s, 0, F_path_tree_system_data_s_length); const f_string_static_t f_path_tree_system_variables_s = macro_f_string_static_t_initialize(F_path_tree_system_variables_s, 0, F_path_tree_system_variables_s_length); - // Temporary Level + // Temporary Level. const f_string_static_t f_path_tree_temporary_public_s = macro_f_string_static_t_initialize(F_path_tree_temporary_public_s, 0, F_path_tree_temporary_public_s_length); const f_string_static_t f_path_tree_temporary_services_s = macro_f_string_static_t_initialize(F_path_tree_temporary_services_s, 0, F_path_tree_temporary_services_s_length); const f_string_static_t f_path_tree_temporary_users_s = macro_f_string_static_t_initialize(F_path_tree_temporary_users_s, 0, F_path_tree_temporary_users_s_length); const f_string_static_t f_path_tree_temporary_variables_s = macro_f_string_static_t_initialize(F_path_tree_temporary_variables_s, 0, F_path_tree_temporary_variables_s_length); - // Private User Directories + // Private User Directories. const f_string_static_t f_path_user_downloads_s = macro_f_string_static_t_initialize(F_path_user_downloads_s, 0, F_path_user_downloads_s_length); const f_string_static_t f_path_user_desktop_s = macro_f_string_static_t_initialize(F_path_user_desktop_s, 0, F_path_user_desktop_s_length); const f_string_static_t f_path_user_private_s = macro_f_string_static_t_initialize(F_path_user_private_s, 0, F_path_user_private_s_length); diff --git a/level_0/f_path/c/path/common.h b/level_0/f_path/c/path/common.h index 260795a..193767f 100644 --- a/level_0/f_path/c/path/common.h +++ b/level_0/f_path/c/path/common.h @@ -50,7 +50,7 @@ extern "C" { #define F_path_present_working_old_s "OLDPWD" #define F_path_environment_s_length 4 - #define F_path_home_wildcard_s_length 1 + #define F_path_home_wildcard_s_length F_string_ascii_tilde_s_length #define F_path_present_working_s_length 3 #define F_path_present_working_old_s_length 6 diff --git a/level_0/f_path/c/private-path.c b/level_0/f_path/c/private-path.c index a59b247..2b78028 100644 --- a/level_0/f_path/c/private-path.c +++ b/level_0/f_path/c/private-path.c @@ -6,7 +6,7 @@ extern "C" { #endif #if !defined(_di_f_path_current_) || !defined(_di_f_path_real_) - f_status_t 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 * const real) { char buffer[F_path_length_max_d]; @@ -25,10 +25,10 @@ extern "C" { const f_array_length_t length = strnlen(buffer, F_path_length_max_d); - if (length + 1 > real->size) { - f_status_t status = F_none; + { + real->used = 0; - macro_f_string_dynamic_t_resize(status, (*real), length + 1); + const f_status_t status = f_string_dynamic_increase_by(length + 1, real); if (F_status_is_error(status)) return status; } diff --git a/level_0/f_path/c/private-path.h b/level_0/f_path/c/private-path.h index 1196281..7dba2d8 100644 --- a/level_0/f_path/c/private-path.h +++ b/level_0/f_path/c/private-path.h @@ -42,7 +42,7 @@ extern "C" { * @see f_path_real() */ #if !defined(_di_f_path_current_) || !defined(_di_f_path_real_) - extern f_status_t private_f_path_real(const f_string_t path, f_string_dynamic_t *real) F_attribute_visibility_internal_d; + extern f_status_t private_f_path_real(const f_string_t path, f_string_dynamic_t * const real) F_attribute_visibility_internal_d; #endif // !defined(_di_f_path_current_) || !defined(_di_f_path_real_) #ifdef __cplusplus diff --git a/level_0/f_print/c/print.c b/level_0/f_print/c/print.c index c52f41e..5a19956 100644 --- a/level_0/f_print/c/print.c +++ b/level_0/f_print/c/print.c @@ -6,7 +6,7 @@ extern "C" { #endif #ifndef _di_f_print_ - f_status_t f_print(const f_string_t string, const f_array_length_t length, FILE *output) { + f_status_t f_print(const f_string_t string, const f_array_length_t length, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -20,7 +20,7 @@ extern "C" { #endif // _di_f_print_ #ifndef _di_f_print_character_ - f_status_t f_print_character(const char character, FILE *output) { + f_status_t f_print_character(const char character, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -34,7 +34,7 @@ extern "C" { #endif // _di_f_print_character_ #ifndef _di_f_print_character_safely_ - f_status_t f_print_character_safely(const char character, FILE *output) { + f_status_t f_print_character_safely(const char character, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -72,7 +72,7 @@ extern "C" { #endif // _di_f_print_character_safely_get_ #ifndef _di_f_print_dynamic_ - f_status_t f_print_dynamic(const f_string_static_t buffer, FILE *output) { + f_status_t f_print_dynamic(const f_string_static_t buffer, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -86,7 +86,7 @@ extern "C" { #endif // _di_f_print_dynamic_ #ifndef _di_f_print_dynamic_partial_ - f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE *output) { + f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -106,7 +106,7 @@ extern "C" { #endif // _di_f_print_dynamic_partial_ #ifndef _di_f_print_dynamic_partial_raw_ - f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE *output) { + f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -126,7 +126,7 @@ extern "C" { #endif // _di_f_print_dynamic_partial_raw_ #ifndef _di_f_print_dynamic_partial_raw_safely_ - f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output) { + f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -146,7 +146,7 @@ extern "C" { #endif // _di_f_print_dynamic_partial_raw_safely_ #ifndef _di_f_print_dynamic_partial_safely_ - f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output) { + f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -166,7 +166,7 @@ extern "C" { #endif // _di_f_print_dynamic_partial_safely_ #ifndef _di_f_print_dynamic_raw_ - f_status_t f_print_dynamic_raw(const f_string_static_t buffer, FILE *output) { + f_status_t f_print_dynamic_raw(const f_string_static_t buffer, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -180,7 +180,7 @@ extern "C" { #endif // _di_f_print_dynamic_raw_ #ifndef _di_f_print_dynamic_raw_safely_ - f_status_t f_print_dynamic_raw_safely(const f_string_static_t buffer, FILE *output) { + f_status_t f_print_dynamic_raw_safely(const f_string_static_t buffer, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -194,7 +194,7 @@ extern "C" { #endif // _di_f_print_dynamic_raw_safely_ #ifndef _di_f_print_dynamic_safely_ - f_status_t f_print_dynamic_safely(const f_string_static_t buffer, FILE *output) { + f_status_t f_print_dynamic_safely(const f_string_static_t buffer, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -208,7 +208,7 @@ extern "C" { #endif // _di_f_print_dynamic_safely_ #ifndef _di_f_print_except_ - f_status_t f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -222,7 +222,7 @@ extern "C" { #endif // _di_f_print_except_ #ifndef _di_f_print_except_dynamic_ - f_status_t f_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -234,7 +234,7 @@ extern "C" { #endif // _di_f_print_except_dynamic_ #ifndef _di_f_print_except_dynamic_partial_ - f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -254,7 +254,7 @@ extern "C" { #endif // _di_f_print_except_dynamic_partial_ #ifndef _di_f_print_except_dynamic_partial_raw_ - f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -274,7 +274,7 @@ extern "C" { #endif // _di_f_print_except_dynamic_partial_raw_ #ifndef _di_f_print_except_dynamic_partial_raw_safely_ - f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -294,7 +294,7 @@ extern "C" { #endif // _di_f_print_except_dynamic_partial_raw_safely_ #ifndef _di_f_print_except_dynamic_partial_safely_ - f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -314,7 +314,7 @@ extern "C" { #endif // _di_f_print_except_dynamic_partial_safely_ #ifndef _di_f_print_except_dynamic_raw_ - f_status_t f_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -326,7 +326,7 @@ extern "C" { #endif // _di_f_print_except_dynamic_raw_ #ifndef _di_f_print_except_dynamic_raw_safely_ - f_status_t f_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -338,7 +338,7 @@ extern "C" { #endif // _di_f_print_except_dynamic_raw_safely_ #ifndef _di_f_print_except_dynamic_safely_ - f_status_t f_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -350,7 +350,7 @@ extern "C" { #endif // _di_f_print_except_dynamic_safely_ #ifndef _di_f_print_except_in_ - f_status_t f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -364,7 +364,7 @@ extern "C" { #endif // _di_f_print_except_in_ #ifndef _di_f_print_except_in_dynamic_ - f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -376,7 +376,7 @@ extern "C" { #endif // _di_f_print_except_in_dynamic_ #ifndef _di_f_print_except_in_dynamic_partial_ - f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -396,7 +396,7 @@ extern "C" { #endif // _di_f_print_except_in_dynamic_partial_ #ifndef _di_f_print_except_in_dynamic_partial_raw_ - f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -416,7 +416,7 @@ extern "C" { #endif // _di_f_print_except_in_dynamic_partial_raw_ #ifndef _di_f_print_except_in_dynamic_partial_raw_safely_ - f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -436,7 +436,7 @@ extern "C" { #endif // _di_f_print_except_in_dynamic_partial_raw_safely_ #ifndef _di_f_print_except_in_dynamic_partial_safely_ - f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -456,7 +456,7 @@ extern "C" { #endif // _di_f_print_except_in_dynamic_partial_safely_ #ifndef _di_f_print_except_in_dynamic_raw_ - f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -468,7 +468,7 @@ extern "C" { #endif // _di_f_print_except_in_dynamic_raw_ #ifndef _di_f_print_except_in_dynamic_raw_safely_ - f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -480,7 +480,7 @@ extern "C" { #endif // _di_f_print_except_in_dynamic_raw_safely_ #ifndef _di_f_print_except_in_dynamic_safely_ - f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -492,7 +492,7 @@ extern "C" { #endif // _di_f_print_except_in_dynamic_safely_ #ifndef _di_f_print_except_in_raw_ - f_status_t f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -506,7 +506,7 @@ extern "C" { #endif // _di_f_print_except_in_raw_ #ifndef _di_f_print_except_in_raw_safely_ - f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -520,7 +520,7 @@ extern "C" { #endif // _di_f_print_except_in_raw_safely_ #ifndef _di_f_print_except_in_safely_ - f_status_t f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -534,7 +534,7 @@ extern "C" { #endif // _di_f_print_except_in_safely_ #ifndef _di_f_print_except_raw_ - f_status_t f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -548,7 +548,7 @@ extern "C" { #endif // _di_f_print_except_raw_ #ifndef _di_f_print_except_raw_safely_ - f_status_t f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -562,7 +562,7 @@ extern "C" { #endif // _di_f_print_except_raw_safely_ #ifndef _di_f_print_except_safely_ - f_status_t f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output) { + f_status_t f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -576,7 +576,7 @@ extern "C" { #endif // _di_f_print_except_safely_ #ifndef _di_f_print_raw_ - f_status_t f_print_raw(const f_string_t string, const f_array_length_t length, FILE *output) { + f_status_t f_print_raw(const f_string_t string, const f_array_length_t length, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -590,7 +590,7 @@ extern "C" { #endif // _di_f_print_raw_ #ifndef _di_f_print_raw_safely_ - f_status_t f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE *output) { + f_status_t f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -604,7 +604,7 @@ extern "C" { #endif // _di_f_print_raw_safely_ #ifndef _di_f_print_raw_terminated_ - f_status_t f_print_raw_terminated(const f_string_t string, FILE *output) { + f_status_t f_print_raw_terminated(const f_string_t string, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -619,7 +619,7 @@ extern "C" { #endif // _di_f_print_raw_terminated_ #ifndef _di_f_print_safely_ - f_status_t f_print_safely(const f_string_t string, const f_array_length_t length, FILE *output) { + f_status_t f_print_safely(const f_string_t string, const f_array_length_t length, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -640,7 +640,7 @@ extern "C" { #endif // _di_f_print_safely_get_ #ifndef _di_f_print_safely_terminated_ - f_status_t f_print_safely_terminated(const f_string_t string, FILE *output) { + f_status_t f_print_safely_terminated(const f_string_t string, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -733,7 +733,7 @@ extern "C" { #endif // _di_f_print_safely_terminated_ #ifndef _di_f_print_terminated_ - f_status_t f_print_terminated(const f_string_t string, FILE *output) { + f_status_t f_print_terminated(const f_string_t string, FILE * const output) { #ifndef _di_level_0_parameter_checking_ if (!output) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_print/c/print.h b/level_0/f_print/c/print.h index ea6e00b..65268a2 100644 --- a/level_0/f_print/c/print.h +++ b/level_0/f_print/c/print.h @@ -62,7 +62,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_ - extern f_status_t f_print(const f_string_t string, const f_array_length_t length, FILE *output); + extern f_status_t f_print(const f_string_t string, const f_array_length_t length, FILE * const output); #endif // _di_f_print_ /** @@ -85,7 +85,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_character_ - extern f_status_t f_print_character(const char character, FILE *output); + extern f_status_t f_print_character(const char character, FILE * const output); #endif // _di_f_print_character_ /** @@ -116,7 +116,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_character_safely_ - extern f_status_t f_print_character_safely(const char character, FILE *output); + extern f_status_t f_print_character_safely(const char character, FILE * const output); #endif // _di_f_print_character_safely_ /** @@ -167,7 +167,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_ - extern f_status_t f_print_dynamic(const f_string_static_t buffer, FILE *output); + extern f_status_t f_print_dynamic(const f_string_static_t buffer, FILE * const output); #endif // _di_f_print_dynamic_ /** @@ -196,7 +196,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_partial_ - extern f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE *output); + extern f_status_t f_print_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); #endif // _di_f_print_dynamic_partial_ /** @@ -227,7 +227,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_partial_raw_ - extern f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE *output); + extern f_status_t f_print_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); #endif // _di_f_print_dynamic_partial_raw_ /** @@ -263,7 +263,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_partial_raw_safely_ - extern f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output); + extern f_status_t f_print_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); #endif // _di_f_print_dynamic_partial_raw_safely_ /** @@ -297,7 +297,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_partial_safely_ - extern f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE *output); + extern f_status_t f_print_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, FILE * const output); #endif // _di_f_print_dynamic_partial_safely_ /** @@ -326,7 +326,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_raw_ - extern f_status_t f_print_dynamic_raw(const f_string_static_t buffer, FILE *output); + extern f_status_t f_print_dynamic_raw(const f_string_static_t buffer, FILE * const output); #endif // _di_f_print_dynamic_raw_ /** @@ -360,7 +360,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_raw_safely_ - extern f_status_t f_print_dynamic_raw_safely(const f_string_static_t buffer, FILE *output); + extern f_status_t f_print_dynamic_raw_safely(const f_string_static_t buffer, FILE * const output); #endif // _di_f_print_dynamic_raw_safely_ /** @@ -392,7 +392,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_safely_ - extern f_status_t f_print_dynamic_safely(const f_string_static_t buffer, FILE *output); + extern f_status_t f_print_dynamic_safely(const f_string_static_t buffer, FILE * const output); #endif // _di_f_print_dynamic_safely_ /** @@ -429,7 +429,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_ - extern f_status_t f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_ /** @@ -460,7 +460,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_dynamic_ - extern f_status_t f_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_dynamic(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_dynamic_ /** @@ -493,7 +493,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_except_partial_ - extern f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_dynamic_partial_ /** @@ -528,7 +528,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_except_partial_raw_ - extern f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_dynamic_partial_raw_ /** @@ -568,7 +568,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_except_partial_raw_safely_ - extern f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_dynamic_partial_raw_safely_ /** @@ -606,7 +606,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_except_partial_safely_ - extern f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_dynamic_partial_safely_ /** @@ -639,7 +639,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_dynamic_raw_ - extern f_status_t f_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_dynamic_raw_ /** @@ -677,7 +677,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_dynamic_raw_safely_ - extern f_status_t f_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_dynamic_raw_safely_ /** @@ -713,7 +713,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_dynamic_safely_ - extern f_status_t f_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_dynamic_safely_ /** @@ -754,7 +754,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_in_ - extern f_status_t f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_ /** @@ -789,7 +789,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_in_dynamic_ - extern f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_dynamic(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_dynamic_ /** @@ -826,7 +826,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_except_partial_ - extern f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_dynamic_partial(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_dynamic_partial_ /** @@ -865,7 +865,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_dynamic_except_partial_raw_ - extern f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_dynamic_partial_raw(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_dynamic_partial_raw_ /** @@ -906,7 +906,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_except_partial_raw_safely_ - extern f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_dynamic_partial_raw_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_dynamic_partial_raw_safely_ /** @@ -945,7 +945,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_dynamic_except_partial_safely_ - extern f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_dynamic_partial_safely(const f_string_static_t buffer, const f_string_range_t range, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_dynamic_partial_safely_ /** @@ -982,7 +982,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_in_dynamic_raw_ - extern f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_dynamic_raw(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_dynamic_raw_ /** @@ -1024,7 +1024,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_in_dynamic_raw_safely_ - extern f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_dynamic_raw_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_dynamic_raw_safely_ /** @@ -1064,7 +1064,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_in_dynamic_safely_ - extern f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_dynamic_safely(const f_string_static_t buffer, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_dynamic_safely_ /** @@ -1107,7 +1107,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_in_raw_ - extern f_status_t f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_raw_ /** @@ -1155,7 +1155,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_in_raw_safely_ - extern f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_raw_safely_ /** @@ -1201,7 +1201,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_in_safely_ - extern f_status_t f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output); + extern f_status_t f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output); #endif // _di_f_print_except_in_safely_ /** @@ -1240,7 +1240,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_except_raw_ - extern f_status_t f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_raw_ /** @@ -1282,7 +1282,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_raw_safely_ - extern f_status_t f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_raw_safely_ /** @@ -1322,7 +1322,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_except_safely_ - extern f_status_t f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE *output); + extern f_status_t f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t length, const f_array_lengths_t except, FILE * const output); #endif // _di_f_print_except_safely_ /** @@ -1353,7 +1353,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_raw_ - extern f_status_t f_print_raw(const f_string_t string, const f_array_length_t length, FILE *output); + extern f_status_t f_print_raw(const f_string_t string, const f_array_length_t length, FILE * const output); #endif // _di_f_print_raw_ /** @@ -1389,7 +1389,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_raw_safely_ - extern f_status_t f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE *output); + extern f_status_t f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output); #endif // _di_f_print_raw_safely_ /** @@ -1416,7 +1416,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_raw_terminated_ - extern f_status_t f_print_raw_terminated(const f_string_t string, FILE *output); + extern f_status_t f_print_raw_terminated(const f_string_t string, FILE * const output); #endif // _di_f_print_raw_terminated_ /** @@ -1450,7 +1450,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_safely_ - extern f_status_t f_print_safely(const f_string_t string, const f_array_length_t length, FILE *output); + extern f_status_t f_print_safely(const f_string_t string, const f_array_length_t length, FILE * const output); #endif // _di_f_print_safely_ /** @@ -1511,7 +1511,7 @@ extern "C" { * @see f_utf_is_valid() */ #ifndef _di_f_print_safely_terminated_ - extern f_status_t f_print_safely_terminated(const f_string_t string, FILE *output); + extern f_status_t f_print_safely_terminated(const f_string_t string, FILE * const output); #endif // _di_f_print_safely_terminated_ /** @@ -1538,7 +1538,7 @@ extern "C" { * @see fwrite_unlocked() */ #ifndef _di_f_print_terminated_ - extern f_status_t f_print_terminated(const f_string_t string, FILE *output); + extern f_status_t f_print_terminated(const f_string_t string, FILE * const output); #endif // _di_f_print_terminated_ #ifdef __cplusplus diff --git a/level_0/f_print/c/print/common.h b/level_0/f_print/c/print/common.h index 4a90acb..e5788ae 100644 --- a/level_0/f_print/c/print/common.h +++ b/level_0/f_print/c/print/common.h @@ -256,7 +256,7 @@ extern "C" { f_print_format_type_string_static_e, f_print_format_type_string_static_raw_e, f_print_format_type_string_static_safe_e, - f_print_format_type_string_static_safe_raw_e, // @todo not yet implemented. + f_print_format_type_string_static_safe_raw_e, f_print_format_type_unsigned_8_e, f_print_format_type_unsigned_16_e, f_print_format_type_unsigned_32_e, diff --git a/level_0/f_print/c/print/private-to.c b/level_0/f_print/c/print/private-to.c index f92dd4e..fc4ed2a 100644 --- a/level_0/f_print/c/print/private-to.c +++ b/level_0/f_print/c/print/private-to.c @@ -14,7 +14,7 @@ extern "C" { * @return * The appropriate status. */ -static inline f_status_t private_inline_f_print_to_error() { +static inline f_status_t private_inline_f_print_to_error(void) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); if (errno == EBADF) return F_status_set_error(F_file_descriptor); if (errno == EDESTADDRREQ) return F_status_set_error(F_socket_not); diff --git a/level_0/f_print/c/print/to.c b/level_0/f_print/c/print/to.c index 4411acb..c642899 100644 --- a/level_0/f_print/c/print/to.c +++ b/level_0/f_print/c/print/to.c @@ -14,7 +14,7 @@ extern "C" { * @return * The appropriate status. */ -static inline f_status_t private_inline_f_print_to_error() { +static inline f_status_t private_inline_f_print_to_error(void) { if (errno == EAGAIN || errno == EWOULDBLOCK) return F_status_set_error(F_block); if (errno == EBADF) return F_status_set_error(F_file_descriptor); if (errno == EDESTADDRREQ) return F_status_set_error(F_socket_not); diff --git a/level_0/f_print/c/private-print.c b/level_0/f_print/c/private-print.c index f171015..6bed169 100644 --- a/level_0/f_print/c/private-print.c +++ b/level_0/f_print/c/private-print.c @@ -6,7 +6,7 @@ extern "C" { #endif #if !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_) - f_status_t private_f_print(const f_string_t string, const f_array_length_t length, FILE *output) { + f_status_t private_f_print(const f_string_t string, const f_array_length_t length, FILE * const output) { f_array_length_t total = 0; @@ -58,7 +58,7 @@ extern "C" { #endif // !defined(_di_f_print_character_safely_get_) || !defined(_di_f_print_dynamic_partial_safely_) || !defined(_di_f_print_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_to_dynamic_partial_safely_) || !defined(_di_f_print_to_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_safely_) #if !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_) - f_status_t private_f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE *output) { + f_status_t private_f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const output) { register f_array_length_t i = offset; f_array_length_t j = 0; @@ -110,7 +110,7 @@ extern "C" { #endif // !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_) #if !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_in_dynamic_) || !defined(_di_f_print_except_in_dynamic_partial_) - f_status_t private_f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t private_f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { f_array_length_t i = offset; f_array_length_t at = 0; @@ -184,7 +184,7 @@ extern "C" { #endif // !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_in_dynamic_) || !defined(_di_f_print_except_in_dynamic_partial_) #if !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_in_dynamic_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_) - f_status_t private_f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t private_f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { f_array_length_t i = offset; f_array_length_t at = 0; @@ -256,7 +256,7 @@ extern "C" { #endif // !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_in_dynamic_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_) #if !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_) - f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { f_array_length_t i = offset; f_array_length_t at = 0; @@ -363,7 +363,7 @@ extern "C" { #endif // !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_) #if !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) - f_status_t private_f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE *output) { + f_status_t private_f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, const f_string_ranges_t except_in, FILE * const output) { f_array_length_t i = offset; f_array_length_t at = 0; @@ -479,7 +479,7 @@ extern "C" { #endif // !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) #if !defined(_di_f_print_except_raw_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) - f_status_t private_f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE *output) { + f_status_t private_f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const output) { register f_array_length_t i = offset; f_array_length_t j = 0; @@ -529,7 +529,7 @@ extern "C" { #endif // !defined(_di_f_print_except_raw_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) #if !defined(_di_f_print_except_raw_safely_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) - f_status_t private_f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE *output) { + f_status_t private_f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const output) { f_array_length_t i = offset; f_array_length_t j = 0; @@ -608,7 +608,7 @@ extern "C" { #endif // !defined(_di_f_print_except_raw_safely_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) #if !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) - f_status_t private_f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE *output) { + f_status_t private_f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const output) { f_array_length_t i = offset; f_array_length_t j = 0; @@ -696,7 +696,7 @@ extern "C" { #endif // !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) #if !defined(_di_f_print_raw_) || !defined(_di_f_print_raw_dynamic_) || !defined(_di_f_print_raw_dynamic_partial_) - f_status_t private_f_print_raw(const f_string_t string, const f_array_length_t length, FILE *output) { + f_status_t private_f_print_raw(const f_string_t string, const f_array_length_t length, FILE * const output) { if (length < F_print_write_max_d) { if (fwrite_unlocked(string, 1, length, output) < length) { @@ -726,7 +726,7 @@ extern "C" { #endif // !defined(_di_f_print_raw_) || !defined(_di_f_print_raw_dynamic_) || !defined(_di_f_print_raw_dynamic_partial_) #if !defined(_di_f_print_raw_safely_) || !defined(_di_f_print_raw_safely_dynamic_) || !defined(_di_f_print_raw_safely_dynamic_partial_) - f_status_t private_f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE *output) { + f_status_t private_f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output) { f_status_t status = F_none; @@ -793,7 +793,7 @@ extern "C" { #endif // !defined(_di_f_print_raw_safely_) || !defined(_di_f_print_raw_safely_dynamic_) || !defined(_di_f_print_raw_safely_dynamic_partial_) #if !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) - f_status_t private_f_print_safely(const f_string_t string, const f_array_length_t length, FILE *output) { + f_status_t private_f_print_safely(const f_string_t string, const f_array_length_t length, FILE * const output) { f_status_t status = F_none; @@ -892,7 +892,7 @@ extern "C" { #endif // !defined(_di_f_print_character_safely_get_) || !defined(_di_f_print_dynamic_partial_safely_) || !defined(_di_f_print_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_to_dynamic_partial_safely_) || !defined(_di_f_print_to_dynamic_safely_) || !defined(_di_f_print_to_except_dynamic_partial_safely_) || !defined(_di_f_print_to_except_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_safely_) || !defined(_di_f_print_to_except_in_dynamic_partial_safely_) || !defined(_di_f_print_to_except_in_safely_) || !defined(_di_f_print_to_except_safely_) || !defined(_di_f_print_to_safely_) #if !defined(_di_f_print_terminated_) || !defined(_di_f_print_raw_terminated_) - f_status_t private_f_print_terminated(const f_string_t string, FILE *output) { + f_status_t private_f_print_terminated(const f_string_t string, FILE * const output) { const size_t length = strlen(string); diff --git a/level_0/f_print/c/private-print.h b/level_0/f_print/c/private-print.h index a81affc..a729d1c 100644 --- a/level_0/f_print/c/private-print.h +++ b/level_0/f_print/c/private-print.h @@ -41,7 +41,7 @@ extern "C" { * @see f_print_dynamic_partial() */ #if !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_) - extern f_status_t private_f_print(const f_string_t string, const f_array_length_t length, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print(const f_string_t string, const f_array_length_t length, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_) || !defined(_di_f_print_dynamic_) || !defined(_di_f_print_dynamic_partial_) /** @@ -76,7 +76,7 @@ extern "C" { * @see f_print_except_in_dynamic_partial_safely() */ #if !defined(_di_f_print_character_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) - extern f_status_t private_f_print_character_safely(const char character, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_character_safely(const char character, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_character_safely_) || !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) || !defined(_di_f_print_safely_terminated_) || !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) || !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_in_dynamic_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) /** @@ -149,7 +149,7 @@ extern "C" { * @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_status_t private_f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_) || !defined(_di_f_print_except_dynamic_) || !defined(_di_f_print_except_dynamic_partial_) /** @@ -186,7 +186,7 @@ extern "C" { * @see f_print_except_in_dynamic_partial() */ #if !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_dynamic_in_) || !defined(_di_f_print_except_in_dynamic_partial_) - extern f_status_t private_f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_in(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_in_) || !defined(_di_f_print_except_dynamic_in_) || !defined(_di_f_print_except_in_dynamic_partial_) /** @@ -223,7 +223,7 @@ extern "C" { * @see f_print_except_in_dynamic_partial_raw() */ #if !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_dynamic_in_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_) - extern f_status_t private_f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_in_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_in_raw_) || !defined(_di_f_print_except_dynamic_in_raw_) || !defined(_di_f_print_except_in_dynamic_partial_raw_) /** @@ -261,7 +261,7 @@ extern "C" { * @see f_utf_is_valid() */ #if !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_dynamic_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_) - extern f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_in_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_in_raw_safely_) || !defined(_di_f_print_except_dynamic_in_raw_safely_) || !defined(_di_f_print_except_in_dynamic_partial_raw_safely_) /** @@ -299,7 +299,7 @@ extern "C" { * @see f_utf_is_valid() */ #if !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_dynamic_in_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) - extern f_status_t private_f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_in_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except_at, f_string_ranges_t except_in, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_in_safely_) || !defined(_di_f_print_except_dynamic_in_safely_) || !defined(_di_f_print_except_in_dynamic_partial_safely_) /** @@ -333,7 +333,7 @@ extern "C" { * @see f_print_except_dynamic_partial_raw() */ #if !defined(_di_f_print_except_raw_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) - extern f_status_t private_f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_raw(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_raw_) || !defined(_di_f_print_except_dynamic_raw_) || !defined(_di_f_print_except_dynamic_partial_raw_) /** @@ -367,7 +367,7 @@ extern "C" { * @see f_print_except_dynamic_partial_raw_safely() */ #if !defined(_di_f_print_except_raw_safely_) || !defined(_di_f_print_except_dynamic_raw_safely_) || !defined(_di_f_print_except_dynamic_partial_raw_safely_) - extern f_status_t private_f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_raw_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_raw_safely_) || !defined(_di_f_print_except_dynamic_raw_safely_) || !defined(_di_f_print_except_dynamic_partial_raw_safely_) /** @@ -402,7 +402,7 @@ extern "C" { * @see f_utf_is_valid() */ #if !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) - extern f_status_t private_f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_except_safely(const f_string_t string, const f_array_length_t offset, const f_array_length_t stop, const f_array_lengths_t except, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_except_safely_) || !defined(_di_f_print_except_dynamic_safely_) || !defined(_di_f_print_except_dynamic_partial_safely_) /** @@ -431,7 +431,7 @@ extern "C" { * @see f_print_raw_dynamic_partial() */ #if !defined(_di_f_print_raw_) || !defined(_di_f_print_raw_dynamic_) || !defined(_di_f_print_raw_dynamic_partial_) - extern f_status_t private_f_print_raw(const f_string_t string, const f_array_length_t length, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_raw(const f_string_t string, const f_array_length_t length, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_raw_) || !defined(_di_f_print_raw_dynamic_) || !defined(_di_f_print_raw_dynamic_partial_) /** @@ -461,7 +461,7 @@ extern "C" { * @see f_utf_is_valid() */ #if !defined(_di_f_print_raw_safely_) || !defined(_di_f_print_raw_safely_dynamic_) || !defined(_di_f_print_raw_safely_dynamic_partial_) - extern f_status_t private_f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_raw_safely(const f_string_t string, const f_array_length_t length, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_raw_safely_) || !defined(_di_f_print_raw_safely_dynamic_) || !defined(_di_f_print_raw_safely_dynamic_partial_) /** @@ -491,7 +491,7 @@ extern "C" { * @see f_utf_is_valid() */ #if !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) - extern f_status_t private_f_print_safely(const f_string_t string, const f_array_length_t length, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_safely(const f_string_t string, const f_array_length_t length, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_safely_) || !defined(_di_f_print_safely_dynamic_) || !defined(_di_f_print_safely_dynamic_partial_) /** @@ -559,7 +559,7 @@ extern "C" { * @see f_print_raw_terminated() */ #if !defined(_di_f_print_terminated_) || !defined(_di_f_print_raw_terminated_) - extern f_status_t private_f_print_terminated(const f_string_t string, FILE *output) F_attribute_visibility_internal_d; + extern f_status_t private_f_print_terminated(const f_string_t string, FILE * const output) F_attribute_visibility_internal_d; #endif // !defined(_di_f_print_terminated_) || !defined(_di_f_print_raw_terminated_) #ifdef __cplusplus diff --git a/level_0/f_serialize/c/private-serialize.c b/level_0/f_serialize/c/private-serialize.c index 875334c..2a19e0d 100644 --- a/level_0/f_serialize/c/private-serialize.c +++ b/level_0/f_serialize/c/private-serialize.c @@ -6,7 +6,7 @@ extern "C" { #endif #if !defined(_di_f_serialize_un_simple_find_) || !defined(_di_f_serialize_un_simple_get_) - 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 private_f_serialize_un_simple_find(const f_string_static_t serialize, const f_array_length_t index, f_string_range_t * const location) { f_array_length_t i = 0; f_array_length_t start = 0; diff --git a/level_0/f_serialize/c/private-serialize.h b/level_0/f_serialize/c/private-serialize.h index e578133..2bf9848 100644 --- a/level_0/f_serialize/c/private-serialize.h +++ b/level_0/f_serialize/c/private-serialize.h @@ -36,7 +36,7 @@ extern "C" { * 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_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_attribute_visibility_internal_d; + 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 * const location) F_attribute_visibility_internal_d; #endif // !defined(_di_f_serialize_un_simple_find_) || !defined(_di_f_serialize_un_simple_get_) #ifdef __cplusplus diff --git a/level_0/f_serialize/c/serialize.c b/level_0/f_serialize/c/serialize.c index dbfb7a6..a3ddc65 100644 --- a/level_0/f_serialize/c/serialize.c +++ b/level_0/f_serialize/c/serialize.c @@ -6,7 +6,7 @@ extern "C" { #endif #ifndef _di_f_serialize_simple_ - f_status_t 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 * const serialize) { #ifndef _di_level_0_parameter_checking_ if (!serialize) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -33,7 +33,7 @@ extern "C" { #endif // _di_f_serialize_simple_ #ifndef _di_f_serialize_un_simple_ - f_status_t 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 * const 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); @@ -102,7 +102,7 @@ extern "C" { #endif // _di_f_serialize_un_simple_ #ifndef _di_f_serialize_un_simple_map_ - f_status_t 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 * const 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); @@ -158,7 +158,7 @@ extern "C" { #endif // _di_f_serialize_un_simple_map_ #ifndef _di_f_serialize_un_simple_find_ - 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) { + f_status_t f_serialize_un_simple_find(const f_string_static_t serialize, const f_array_length_t index, f_string_range_t * const 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); @@ -169,7 +169,7 @@ extern "C" { #endif // _di_f_serialize_un_simple_find_ #ifndef _di_f_serialize_un_simple_get_ - 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) { + f_status_t f_serialize_un_simple_get(const f_string_static_t serialize, const f_array_length_t index, f_string_dynamic_t * const 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); diff --git a/level_0/f_serialize/c/serialize.h b/level_0/f_serialize/c/serialize.h index 4b482ae..677aad0 100644 --- a/level_0/f_serialize/c/serialize.h +++ b/level_0/f_serialize/c/serialize.h @@ -50,7 +50,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_serialize_simple_ - extern f_status_t 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 * const serialize); #endif // _di_f_serialize_simple_ /** @@ -76,7 +76,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_serialize_un_simple_ - extern f_status_t 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 * const strings); #endif // _di_f_serialize_un_simple_ /** @@ -102,7 +102,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_serialize_un_simple_map_ - extern f_status_t 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 * const locations); #endif // _di_f_serialize_un_simple_map_ /** @@ -130,7 +130,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_serialize_un_simple_find_ - 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); + 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 * const location); #endif // _di_f_serialize_un_simple_find_ /** @@ -159,7 +159,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_serialize_un_simple_get_ - 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); + 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 * const dynamic); #endif // _di_f_serialize_un_simple_get_ #ifdef __cplusplus diff --git a/level_0/f_signal/c/signal.c b/level_0/f_signal/c/signal.c index 3a9451a..bb792d5 100644 --- a/level_0/f_signal/c/signal.c +++ b/level_0/f_signal/c/signal.c @@ -5,7 +5,7 @@ extern "C" { #endif #ifndef _di_f_signal_close_ - f_status_t f_signal_close(f_signal_t *signal) { + f_status_t f_signal_close(f_signal_t * const signal) { #ifndef _di_level_0_parameter_checking_ if (!signal) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -31,7 +31,7 @@ extern "C" { #endif // _di_f_signal_close_ #ifndef _di_f_signal_open_ - f_status_t f_signal_open(f_signal_t *signal) { + f_status_t f_signal_open(f_signal_t * const signal) { #ifndef _di_level_0_parameter_checking_ if (!signal) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -55,7 +55,7 @@ extern "C" { #endif // _di_f_signal_open_ #ifndef _di_f_signal_read_ - f_status_t f_signal_read(const f_signal_t signal, const int timeout, struct signalfd_siginfo *information) { + f_status_t f_signal_read(const f_signal_t signal, const int timeout, struct signalfd_siginfo * const information) { if (!signal.id) { return F_data_not; @@ -117,7 +117,7 @@ extern "C" { #endif // _di_f_signal_send_ #ifndef _di_f_signal_set_add_ - f_status_t f_signal_set_add(const int signal, sigset_t *set) { + f_status_t f_signal_set_add(const int signal, sigset_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!set) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -133,7 +133,7 @@ extern "C" { #endif // _di_f_signal_set_add_ #ifndef _di_f_signal_set_delete_ - f_status_t f_signal_set_delete(const int signal, sigset_t *set) { + f_status_t f_signal_set_delete(const int signal, sigset_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!set) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -149,7 +149,7 @@ extern "C" { #endif // _di_f_signal_set_delete_ #ifndef _di_f_signal_set_empty_ - f_status_t f_signal_set_empty(sigset_t *set) { + f_status_t f_signal_set_empty(sigset_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!set) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -165,7 +165,7 @@ extern "C" { #endif // _di_f_signal_set_empty_ #ifndef _di_f_signal_set_fill_ - f_status_t f_signal_set_fill(sigset_t *set) { + f_status_t f_signal_set_fill(sigset_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!set) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -182,7 +182,7 @@ extern "C" { #endif // _di_f_signal_set_fill_ #ifndef _di_f_signal_mask_ - f_status_t 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 * const next, sigset_t * const current) { #ifndef _di_level_0_parameter_checking_ if (!next && !current) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -215,7 +215,7 @@ extern "C" { #endif // _di_f_signal_queue_ #ifndef _di_f_signal_set_has_ - f_status_t f_signal_set_has(const int signal, const sigset_t *set) { + f_status_t f_signal_set_has(const int signal, const sigset_t * const set) { #ifndef _di_level_0_parameter_checking_ if (!set) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -233,7 +233,7 @@ extern "C" { #endif // _di_f_signal_set_has_ #ifndef _di_f_signal_wait_ - f_status_t f_signal_wait(const sigset_t *set, siginfo_t *information) { + f_status_t f_signal_wait(const sigset_t *set, siginfo_t * const information) { if (sigwaitinfo(set, information) < 0) { if (errno == EINTR) return F_status_set_error(F_interrupt); @@ -247,7 +247,7 @@ extern "C" { #endif // _di_f_signal_wait_ #ifndef _di_f_signal_wait_until_ - f_status_t f_signal_wait_until(const sigset_t *set, const struct timespec *timeout, siginfo_t *information) { + f_status_t f_signal_wait_until(const sigset_t *set, const struct timespec * timeout, siginfo_t * const information) { if (sigtimedwait(set, information, timeout) < 0) { if (errno == EAGAIN) return F_time_out; diff --git a/level_0/f_signal/c/signal.h b/level_0/f_signal/c/signal.h index b736998..5d353d1 100644 --- a/level_0/f_signal/c/signal.h +++ b/level_0/f_signal/c/signal.h @@ -50,7 +50,7 @@ extern "C" { * @see close() */ #ifndef _di_f_signal_close_ - extern f_status_t f_signal_close(f_signal_t *signal); + extern f_status_t f_signal_close(f_signal_t * const signal); #endif // _di_f_signal_close_ /** @@ -76,7 +76,7 @@ extern "C" { * @see signalfd() */ #ifndef _di_f_signal_open_ - extern f_status_t f_signal_open(f_signal_t *signal); + extern f_status_t f_signal_open(f_signal_t * const signal); #endif // _di_f_signal_open_ /** @@ -110,7 +110,7 @@ extern "C" { * @see read() */ #ifndef _di_f_signal_read_ - extern f_status_t f_signal_read(const f_signal_t signal, const int timeout, struct signalfd_siginfo *information); + extern f_status_t f_signal_read(const f_signal_t signal, const int timeout, struct signalfd_siginfo * const information); #endif // _di_f_signal_read_ /** @@ -155,7 +155,7 @@ extern "C" { * @see sigaddset() */ #ifndef _di_f_signal_set_add_ - extern f_status_t f_signal_set_add(const int signal, sigset_t *set); + extern f_status_t f_signal_set_add(const int signal, sigset_t * const set); #endif // _di_f_signal_set_add_ /** @@ -176,7 +176,7 @@ extern "C" { * @see sigdelset() */ #ifndef _di_f_signal_set_delete_ - extern f_status_t f_signal_set_delete(const int signal, sigset_t *set); + extern f_status_t f_signal_set_delete(const int signal, sigset_t * const set); #endif // _di_f_signal_set_delete_ /** @@ -195,7 +195,7 @@ extern "C" { * @see sigemptyset() */ #ifndef _di_f_signal_set_empty_ - extern f_status_t f_signal_set_empty(sigset_t *set); + extern f_status_t f_signal_set_empty(sigset_t * const set); #endif // _di_f_signal_set_empty_ /** @@ -214,7 +214,7 @@ extern "C" { * @see sigfillset() */ #ifndef _di_f_signal_set_fill_ - extern f_status_t f_signal_set_fill(sigset_t *set); + extern f_status_t f_signal_set_fill(sigset_t * const set); #endif // _di_f_signal_set_fill_ /** @@ -242,7 +242,7 @@ extern "C" { * @see sigprocmask() */ #ifndef _di_f_signal_mask_ - extern f_status_t 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 * const next, sigset_t * const current); #endif // _di_f_signal_mask_ /** @@ -290,7 +290,7 @@ extern "C" { * @see sigismember() */ #ifndef _di_f_signal_set_has_ - extern f_status_t 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 * const set); #endif // _di_f_signal_set_has_ /** @@ -313,7 +313,7 @@ extern "C" { * @see sigwaitinfo() */ #ifndef _di_f_signal_wait_ - extern f_status_t f_signal_wait(const sigset_t *set, siginfo_t *information); + extern f_status_t f_signal_wait(const sigset_t * const set, siginfo_t * const information); #endif // _di_f_signal_wait_ /** @@ -339,7 +339,7 @@ extern "C" { * @see sigtimedwait() */ #ifndef _di_f_signal_wait_until_ - extern f_status_t f_signal_wait_until(const sigset_t *set, const struct timespec *timeout, siginfo_t *information); + extern f_status_t f_signal_wait_until(const sigset_t *set, const struct timespec *timeout, siginfo_t * const information); #endif // _di_f_signal_wait_until_ #ifdef __cplusplus diff --git a/level_0/f_socket/c/socket.c b/level_0/f_socket/c/socket.c index 107b3b1..30b0e8e 100644 --- a/level_0/f_socket/c/socket.c +++ b/level_0/f_socket/c/socket.c @@ -157,7 +157,7 @@ extern "C" { #endif // _di_f_socket_create_ #ifndef _di_f_socket_create_pair_ - f_status_t f_socket_create_pair(const int domain, const int protocol, const int type, int *id_1, int *id_2) { + f_status_t f_socket_create_pair(const int domain, const int protocol, const int type, int * const id_1, int * const id_2) { #ifndef _di_level_0_parameter_checking_ if (!id_1) return F_status_set_error(F_parameter); if (!id_2) return F_status_set_error(F_parameter); @@ -256,7 +256,7 @@ extern "C" { #endif // _di_f_socket_listen_ #ifndef _di_f_socket_option_get_ - f_status_t f_socket_option_get(f_socket_t * const socket, const int level, const int option, void *value, socklen_t *length) { + f_status_t f_socket_option_get(f_socket_t * const socket, const int level, const int option, void * const value, socklen_t * const length) { #ifndef _di_level_0_parameter_checking_ if (!socket) return F_status_set_error(F_parameter); if (!value) return F_status_set_error(F_parameter); @@ -278,7 +278,7 @@ extern "C" { #endif // _di_f_socket_option_get_ #ifndef _di_f_socket_option_set_ - f_status_t f_socket_option_set(f_socket_t * const socket, const int level, const int option, const void *value, const socklen_t length) { + f_status_t f_socket_option_set(f_socket_t * const socket, const int level, const int option, const void * const value, const socklen_t length) { #ifndef _di_level_0_parameter_checking_ if (!socket) return F_status_set_error(F_parameter); if (!value) return F_status_set_error(F_parameter); @@ -299,7 +299,7 @@ extern "C" { #endif // _di_f_socket_option_set_ #ifndef _di_f_socket_read_ - f_status_t f_socket_read(f_socket_t * const socket, const int flags, void *buffer, size_t *length) { + f_status_t f_socket_read(f_socket_t * const socket, const int flags, void * const buffer, size_t * const length) { #ifndef _di_level_0_parameter_checking_ if (!socket) return F_status_set_error(F_parameter); if (!buffer) return F_status_set_error(F_parameter); @@ -337,7 +337,7 @@ extern "C" { #endif // _di_f_socket_read_ #ifndef _di_f_socket_read_message_ - f_status_t f_socket_read_message(f_socket_t * const socket, const int flags, struct msghdr *header, size_t *length) { + f_status_t f_socket_read_message(f_socket_t * const socket, const int flags, struct msghdr * const header, size_t * const length) { #ifndef _di_level_0_parameter_checking_ if (!socket) return F_status_set_error(F_parameter); if (!header) return F_status_set_error(F_parameter); @@ -377,7 +377,7 @@ extern "C" { #endif // _di_f_socket_read_message_ #ifndef _di_f_socket_write_ - f_status_t f_socket_write(f_socket_t * const socket, const int flags, void *buffer, size_t *length) { + f_status_t f_socket_write(f_socket_t * const socket, const int flags, void * const buffer, size_t * const length) { #ifndef _di_level_0_parameter_checking_ if (!socket) return F_status_set_error(F_parameter); if (!buffer) return F_status_set_error(F_parameter); @@ -418,7 +418,7 @@ extern "C" { #endif // _di_f_socket_write_ #ifndef _di_f_socket_write_message_ - f_status_t f_socket_write_message(f_socket_t * const socket, const int flags, struct msghdr *header, size_t *length) { + f_status_t f_socket_write_message(f_socket_t * const socket, const int flags, struct msghdr * const header, size_t * const length) { #ifndef _di_level_0_parameter_checking_ if (!socket) return F_status_set_error(F_parameter); if (!header) return F_status_set_error(F_parameter); diff --git a/level_0/f_socket/c/socket.h b/level_0/f_socket/c/socket.h index 80ca69e..7ff2d0a 100644 --- a/level_0/f_socket/c/socket.h +++ b/level_0/f_socket/c/socket.h @@ -252,7 +252,7 @@ extern "C" { * @see socketpair() */ #ifndef _di_f_socket_create_pair_ - extern f_status_t f_socket_create_pair(const int domain, const int protocol, const int type, int *id_1, int *id_2); + extern f_status_t f_socket_create_pair(const int domain, const int protocol, const int type, int * const id_1, int * const id_2); #endif // _di_f_socket_create_pair_ /** @@ -360,7 +360,7 @@ extern "C" { * @see getsockopt() */ #ifndef _di_f_socket_option_get_ - extern f_status_t f_socket_option_get(f_socket_t * const socket, const int level, const int option, void *value, socklen_t *length); + extern f_status_t f_socket_option_get(f_socket_t * const socket, const int level, const int option, void * const value, socklen_t * const length); #endif // _di_f_socket_option_get_ /** @@ -393,7 +393,7 @@ extern "C" { * @see setsockopt() */ #ifndef _di_f_socket_option_set_ - extern f_status_t f_socket_option_set(f_socket_t * const socket, const int level, const int option, const void *value, const socklen_t length); + extern f_status_t f_socket_option_set(f_socket_t * const socket, const int level, const int option, const void * const value, const socklen_t length); #endif // _di_f_socket_option_set_ /** @@ -438,7 +438,7 @@ extern "C" { * @see recvfrom() */ #ifndef _di_f_socket_read_ - extern f_status_t f_socket_read(f_socket_t * const socket, const int flags, void *buffer, size_t *length); + extern f_status_t f_socket_read(f_socket_t * const socket, const int flags, void * const buffer, size_t * const length); #endif // _di_f_socket_read_ /** @@ -480,7 +480,7 @@ extern "C" { * @see recvmsg() */ #ifndef _di_f_socket_read_message_ - extern f_status_t f_socket_read_message(f_socket_t * const socket, const int flags, struct msghdr *header, size_t *length); + extern f_status_t f_socket_read_message(f_socket_t * const socket, const int flags, struct msghdr * const header, size_t * const length); #endif // _di_f_socket_read_message_ /** @@ -529,7 +529,7 @@ extern "C" { * @see sendto() */ #ifndef _di_f_socket_write_ - extern f_status_t f_socket_write(f_socket_t * const socket, const int flags, void *buffer, size_t *length); + extern f_status_t f_socket_write(f_socket_t * const socket, const int flags, void * const buffer, size_t * const length); #endif // _di_f_socket_write_ /** @@ -575,7 +575,7 @@ extern "C" { * @see sendmsg() */ #ifndef _di_f_socket_write_message_ - extern f_status_t f_socket_write_message(f_socket_t * const socket, const int flags, struct msghdr *header, size_t *length); + extern f_status_t f_socket_write_message(f_socket_t * const socket, const int flags, struct msghdr * const header, size_t * const length); #endif // _di_f_socket_write_message_ #ifdef __cplusplus diff --git a/level_0/f_status_string/c/status_string.c b/level_0/f_status_string/c/status_string.c index f4dd1ac..6aa91ce 100644 --- a/level_0/f_status_string/c/status_string.c +++ b/level_0/f_status_string/c/status_string.c @@ -591,7 +591,7 @@ extern "C" { #endif // _di_F_status_string_ #ifndef _di_f_status_string_to_ - f_status_t f_status_string_to(const f_status_t code, f_string_static_t *name) { + f_status_t f_status_string_to(const f_status_t code, f_string_static_t * const name) { #ifndef _di_level_0_parameter_checking_ if (!name) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_status_string/c/status_string.h b/level_0/f_status_string/c/status_string.h index 822e929..c15f7f9 100644 --- a/level_0/f_status_string/c/status_string.h +++ b/level_0/f_status_string/c/status_string.h @@ -1723,7 +1723,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_status_string_to_ - extern f_status_t f_status_string_to(const f_status_t code, f_string_static_t *name); + extern f_status_t f_status_string_to(const f_status_t code, f_string_static_t * const name); #endif // _di_f_status_string_to_ #ifdef __cplusplus diff --git a/level_0/f_string/c/private-string.c b/level_0/f_string/c/private-string.c index d404084..7e8291f 100644 --- a/level_0/f_string/c/private-string.c +++ b/level_0/f_string/c/private-string.c @@ -151,7 +151,7 @@ extern "C" { #endif // !defined(_di_f_string_dynamics_adjust_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_dynamics_decimate_by_) || !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_append_) #if !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_map_multis_append_) - f_status_t private_f_string_dynamics_append(const f_string_dynamics_t source, f_string_dynamics_t *destination) { + f_status_t private_f_string_dynamics_append(const f_string_dynamics_t source, f_string_dynamics_t * const destination) { f_status_t status = F_none; @@ -286,7 +286,7 @@ extern "C" { #endif // !defined(_di_f_string_dynamicss_decrease_by_) || !defined(_di_f_string_dynamicss_increase_) || !defined(_di_f_string_dynamicss_increase_by_) #if !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_decimate_by_) - f_status_t private_f_string_map_multis_adjust(const f_array_length_t length, f_string_map_multis_t *map_multis) { + f_status_t private_f_string_map_multis_adjust(const f_array_length_t length, f_string_map_multis_t * const map_multis) { if (map_multis->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -318,7 +318,7 @@ extern "C" { #endif // !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_decimate_by_) #if !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multis_append_) - f_status_t private_f_string_map_multis_append(const f_string_map_multis_t source, f_string_map_multis_t *destination) { + f_status_t private_f_string_map_multis_append(const f_string_map_multis_t source, f_string_map_multis_t * const destination) { f_status_t status = F_none; @@ -348,7 +348,7 @@ extern "C" { #endif // !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multis_append_) #if !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_terminate_) || !defined(_di_f_string_map_multis_terminate_after_) - f_status_t private_f_string_map_multis_resize(const f_array_length_t length, f_string_map_multis_t *map_multis) { + f_status_t private_f_string_map_multis_resize(const f_array_length_t length, f_string_map_multis_t * const map_multis) { if (map_multis->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -380,7 +380,7 @@ extern "C" { #endif // !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_terminate_) || !defined(_di_f_string_map_multis_terminate_after_) #if !defined(_di_f_string_map_multiss_adjust_) || !defined(_di_f_string_map_multiss_decimate_by_) - f_status_t private_f_string_map_multiss_adjust(const f_array_length_t length, f_string_map_multiss_t *map_multiss) { + f_status_t private_f_string_map_multiss_adjust(const f_array_length_t length, f_string_map_multiss_t * const map_multiss) { if (map_multiss->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -409,7 +409,7 @@ extern "C" { #endif // !defined(_di_f_string_map_multiss_adjust_) || !defined(_di_f_string_map_multiss_decimate_by_) #if !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_) || !defined(_di_f_string_map_multiss_terminate_) || !defined(_di_f_string_map_multiss_terminate_after_) - f_status_t private_f_string_map_multiss_resize(const f_array_length_t length, f_string_map_multiss_t *map_multiss) { + f_status_t private_f_string_map_multiss_resize(const f_array_length_t length, f_string_map_multiss_t * const map_multiss) { if (map_multiss->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -438,7 +438,7 @@ extern "C" { #endif // !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_) || !defined(_di_f_string_map_multiss_terminate_) || !defined(_di_f_string_map_multiss_terminate_after_) #if !defined(_di_f_string_maps_adjust_) || !defined(_di_f_string_maps_decimate_by_) - f_status_t private_f_string_maps_adjust(const f_array_length_t length, f_string_maps_t *maps) { + f_status_t private_f_string_maps_adjust(const f_array_length_t length, f_string_maps_t * const maps) { if (maps->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -470,7 +470,7 @@ extern "C" { #endif // !defined(_di_f_string_maps_adjust_) || !defined(_di_f_string_maps_decimate_by_) #if !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_maps_append_) - f_status_t private_f_string_maps_append(const f_string_maps_t source, f_string_maps_t *destination) { + f_status_t private_f_string_maps_append(const f_string_maps_t source, f_string_maps_t * const destination) { f_status_t status = F_none; @@ -500,7 +500,7 @@ extern "C" { #endif // !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_maps_append_) #if !defined(_di_f_string_maps_decrease_by_) || !defined(_di_f_string_maps_increase_) || !defined(_di_f_string_maps_increase_by_) || !defined(_di_f_string_maps_terminate_) || !defined(_di_f_string_maps_terminate_after_) - f_status_t private_f_string_maps_resize(const f_array_length_t length, f_string_maps_t *maps) { + f_status_t private_f_string_maps_resize(const f_array_length_t length, f_string_maps_t * const maps) { if (maps->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -532,7 +532,7 @@ extern "C" { #endif // !defined(_di_f_string_maps_decrease_by_) || !defined(_di_f_string_maps_increase_) || !defined(_di_f_string_maps_increase_by_) || !defined(_di_f_string_maps_terminate_) || !defined(_di_f_string_maps_terminate_after_) #if !defined(_di_f_string_mapss_adjust_) || !defined(_di_f_string_mapss_decimate_by_) - f_status_t private_f_string_mapss_adjust(const f_array_length_t length, f_string_mapss_t *mapss) { + f_status_t private_f_string_mapss_adjust(const f_array_length_t length, f_string_mapss_t * const mapss) { if (mapss->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -561,7 +561,7 @@ extern "C" { #endif // !defined(_di_f_string_mapss_adjust_) || !defined(_di_f_string_mapss_decimate_by_) #if !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_) || !defined(_di_f_string_mapss_terminate_) || !defined(_di_f_string_mapss_terminate_after_) - f_status_t private_f_string_mapss_resize(const f_array_length_t length, f_string_mapss_t *mapss) { + f_status_t private_f_string_mapss_resize(const f_array_length_t length, f_string_mapss_t * const mapss) { if (mapss->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -681,7 +681,7 @@ extern "C" { #endif // !defined(_di_f_string_dynamic_mish_nulless_) || !defined(_di_f_string_dynamic_partial_mish_nulless_) || !defined(_di_f_string_dynamic_partial_prepend_assure_nulless_) || !defined(_di_f_string_dynamic_partial_prepend_nulless_) || !defined(_di_f_string_dynamic_prepend_assure_nulless_) || !defined(_di_f_string_dynamic_prepend_nulless_) || !defined(_di_f_string_mish_nulless_) || !defined(_di_f_string_prepend_assure_nulless_) || !defined(_di_f_string_prepend_nulless_) #if !defined(_di_f_string_quantitys_adjust_) || !defined(_di_f_string_quantitys_decimate_by_) - f_status_t private_f_string_quantitys_adjust(const f_array_length_t length, f_string_quantitys_t *quantitys) { + f_status_t private_f_string_quantitys_adjust(const f_array_length_t length, f_string_quantitys_t * const quantitys) { if (quantitys->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -702,7 +702,7 @@ extern "C" { #endif // !defined(_di_f_string_quantitys_adjust_) || !defined(_di_f_string_quantitys_decimate_by_) #if !defined(_di_f_string_quantitys_decrease_) || !defined(_di_f_string_quantitys_decrease_by_) || !defined(_di_f_string_quantitys_increase_) || !defined(_di_f_string_quantitys_increase_by_) || !defined(_di_f_string_quantitys_terminate_) || !defined(_di_f_string_quantitys_terminate_after_) - f_status_t private_f_string_quantitys_resize(const f_array_length_t length, f_string_quantitys_t *quantitys) { + f_status_t private_f_string_quantitys_resize(const f_array_length_t length, f_string_quantitys_t * const quantitys) { if (quantitys->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -723,7 +723,7 @@ extern "C" { #endif // !defined(_di_f_string_quantitys_decrease_) || !defined(_di_f_string_quantitys_decrease_by_) || !defined(_di_f_string_quantitys_increase_) || !defined(_di_f_string_quantitys_increase_by_) || !defined(_di_f_string_quantitys_terminate_) || !defined(_di_f_string_quantitys_terminate_after_) #if !defined(_di_f_string_quantityss_adjust_) || !defined(_di_f_string_quantityss_decimate_by_) - f_status_t private_f_string_quantityss_adjust(const f_array_length_t length, f_string_quantityss_t *quantityss) { + f_status_t private_f_string_quantityss_adjust(const f_array_length_t length, f_string_quantityss_t * const quantityss) { if (quantityss->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -752,7 +752,7 @@ extern "C" { #endif // !defined(_di_f_string_quantityss_adjust_) || !defined(_di_f_string_quantityss_decimate_by_) #if !defined(_di_f_string_quantityss_decrease_) || !defined(_di_f_string_quantityss_decrease_by_) || !defined(_di_f_string_quantityss_increase_) || !defined(_di_f_string_quantityss_increase_by_) || !defined(_di_f_string_quantityss_terminate_) || !defined(_di_f_string_quantityss_terminate_after_) - f_status_t private_f_string_quantityss_resize(const f_array_length_t length, f_string_quantityss_t *quantityss) { + f_status_t private_f_string_quantityss_resize(const f_array_length_t length, f_string_quantityss_t * const quantityss) { if (quantityss->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -781,7 +781,7 @@ extern "C" { #endif // !defined(_di_f_string_quantityss_decrease_) || !defined(_di_f_string_quantityss_decrease_by_) || !defined(_di_f_string_quantityss_increase_) || !defined(_di_f_string_quantityss_increase_by_) || !defined(_di_f_string_quantityss_terminate_) || !defined(_di_f_string_quantityss_terminate_after_) #if !defined(_di_f_string_ranges_adjust_) || !defined(_di_f_string_ranges_decimate_by_) - f_status_t private_f_string_ranges_adjust(const f_array_length_t length, f_string_ranges_t *ranges) { + f_status_t private_f_string_ranges_adjust(const f_array_length_t length, f_string_ranges_t * const ranges) { if (ranges->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -802,7 +802,7 @@ extern "C" { #endif // !defined(_di_f_string_ranges_adjust_) || !defined(_di_f_string_ranges_decimate_by_) #if !defined(_di_f_string_ranges_decrease_) || !defined(_di_f_string_ranges_decrease_by_) || !defined(_di_f_string_ranges_increase_) || !defined(_di_f_string_ranges_increase_by_) || !defined(_di_f_string_ranges_terminate_) || !defined(_di_f_string_ranges_terminate_after_) - f_status_t private_f_string_ranges_resize(const f_array_length_t length, f_string_ranges_t *ranges) { + f_status_t private_f_string_ranges_resize(const f_array_length_t length, f_string_ranges_t * const ranges) { if (ranges->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -823,7 +823,7 @@ extern "C" { #endif // !defined(_di_f_string_ranges_decrease_) || !defined(_di_f_string_ranges_decrease_by_) || !defined(_di_f_string_ranges_increase_) || !defined(_di_f_string_ranges_increase_by_) || !defined(_di_f_string_ranges_terminate_) || !defined(_di_f_string_ranges_terminate_after_) #if !defined(_di_f_string_rangess_adjust_) || !defined(_di_f_string_rangess_decimate_by_) - f_status_t private_f_string_rangess_adjust(const f_array_length_t length, f_string_rangess_t *rangess) { + f_status_t private_f_string_rangess_adjust(const f_array_length_t length, f_string_rangess_t * const rangess) { if (rangess->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -852,7 +852,7 @@ extern "C" { #endif // !defined(_di_f_string_rangess_adjust_) || !defined(_di_f_string_rangess_decimate_by_) #if !defined(_di_f_string_rangess_decrease_) || !defined(_di_f_string_rangess_decrease_by_) || !defined(_di_f_string_rangess_increase_) || !defined(_di_f_string_rangess_increase_by_) || !defined(_di_f_string_rangess_terminate_) || !defined(_di_f_string_rangess_terminate_after_) - f_status_t private_f_string_rangess_resize(const f_array_length_t length, f_string_rangess_t *rangess) { + f_status_t private_f_string_rangess_resize(const f_array_length_t length, f_string_rangess_t * const rangess) { if (rangess->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -881,7 +881,7 @@ extern "C" { #endif // !defined(_di_f_string_rangess_decrease_) || !defined(_di_f_string_rangess_decrease_by_) || !defined(_di_f_string_rangess_increase_) || !defined(_di_f_string_rangess_increase_by_) || !defined(_di_f_string_rangess_terminate_) || !defined(_di_f_string_rangess_terminate_after_) #if !defined(_di_f_string_triples_adjust_) || !defined(_di_f_string_triples_decimate_by_) - f_status_t private_f_string_triples_adjust(const f_array_length_t length, f_string_triples_t *triples) { + f_status_t private_f_string_triples_adjust(const f_array_length_t length, f_string_triples_t * const triples) { if (triples->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); @@ -916,7 +916,7 @@ extern "C" { #endif // !defined(_di_f_string_triples_adjust_) || !defined(_di_f_string_triples_decimate_by_) #if !defined(_di_f_string_triples_decrease_) || !defined(_di_f_string_triples_decrease_by_) || !defined(_di_f_string_triples_increase_) || !defined(_di_f_string_triples_increase_by_) || !defined(_di_f_string_triples_terminate_) || !defined(_di_f_string_triples_terminate_after_) - f_status_t private_f_string_triples_resize(const f_array_length_t length, f_string_triples_t *triples) { + f_status_t private_f_string_triples_resize(const f_array_length_t length, f_string_triples_t * const triples) { if (triples->used + length > F_array_length_t_size_d) { return F_status_set_error(F_array_too_large); diff --git a/level_0/f_string/c/private-string.h b/level_0/f_string/c/private-string.h index 22228c9..607f75f 100644 --- a/level_0/f_string/c/private-string.h +++ b/level_0/f_string/c/private-string.h @@ -51,7 +51,7 @@ extern "C" { * @see f_string_triples_append() */ #if !defined(_di_f_string_append_) || !defined(_di_f_string_append_assure_) || !defined(_di_f_string_dynamic_append_) || !defined(_di_f_string_dynamic_append_assure_) || !defined(_di_f_string_dynamic_mash_) || !defined(f_string_dynamic_partial_append) || !defined(_di_f_string_dynamic_partial_append_assure_) || !defined(_di_f_string_dynamic_partial_mash_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_mash_) || !defined(_di_f_string_maps_append_) || !defined(_di_f_string_triples_append_) - extern f_status_t private_f_string_append(const f_string_t source, const f_array_length_t length, f_string_dynamic_t *destination) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_append(const f_string_t source, const f_array_length_t length, f_string_dynamic_t * const destination) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_append_) || !defined(_di_f_string_append_assure_) || !defined(_di_f_string_dynamic_append_) || !defined(_di_f_string_dynamic_append_assure_) || !defined(_di_f_string_dynamic_mash_) || !defined(f_string_dynamic_partial_append) || !defined(_di_f_string_dynamic_partial_append_assure_) || !defined(_di_f_string_dynamic_partial_mash_) || !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_map_multis_append_) || !defined(_di_f_string_mash_) || !defined(_di_f_string_maps_append_) || !defined(_di_f_string_triples_append_) /** @@ -263,7 +263,7 @@ extern "C" { * @see f_string_map_multis_append() */ #if !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_map_multis_append_) - extern f_status_t private_f_string_dynamics_append(const f_string_dynamics_t source, f_string_dynamics_t *destination) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_dynamics_append(const f_string_dynamics_t source, f_string_dynamics_t * const destination) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_dynamics_append_) || !defined(_di_f_string_map_multis_append_) /** @@ -342,7 +342,7 @@ extern "C" { * @see f_string_map_multis_append() */ #if !defined(_di_f_string_dynamicss_append_) || !defined(_di_f_string_map_multis_append_) - extern f_status_t private_f_string_dynamicss_append(const f_string_dynamicss_t source, f_string_dynamicss_t *destination) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_dynamicss_append(const f_string_dynamicss_t source, f_string_dynamicss_t * const destination) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_dynamicss_append_) || !defined(_di_f_string_map_multis_append_) /** @@ -392,7 +392,7 @@ extern "C" { * @see f_string_map_multis_adjust() */ #if !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_decimate_by_) - extern f_status_t private_f_string_map_multis_adjust(const f_array_length_t length, f_string_map_multis_t *map_multis) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_map_multis_adjust(const f_array_length_t length, f_string_map_multis_t * const map_multis) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_map_multis_adjust_) || !defined(_di_f_string_map_multis_decimate_by_) /** @@ -419,7 +419,7 @@ extern "C" { * @see f_string_map_multiss_append() */ #if !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multis_append_) - extern f_status_t private_f_string_map_multis_append(const f_string_map_multis_t source, f_string_map_multis_t *destination) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_map_multis_append(const f_string_map_multis_t source, f_string_map_multis_t * const destination) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_map_multiss_append_) || !defined(_di_f_string_map_multis_append_) /** @@ -447,7 +447,7 @@ extern "C" { * @see f_string_map_multis_terminate_after() */ #if !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_terminate_) || !defined(_di_f_string_map_multis_terminate_after_) - extern f_status_t private_f_string_map_multis_resize(const f_array_length_t length, f_string_map_multis_t *map_multis) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_map_multis_resize(const f_array_length_t length, f_string_map_multis_t * const map_multis) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_map_multis_decrease_by_) || !defined(_di_f_string_map_multis_increase_) || !defined(_di_f_string_map_multis_increase_by_) || !defined(_di_f_string_map_multis_terminate_) || !defined(_di_f_string_map_multis_terminate_after_) /** @@ -471,7 +471,7 @@ extern "C" { * @see f_string_map_multiss_adjust() */ #if !defined(_di_f_string_map_multiss_adjust_) || !defined(_di_f_string_map_multiss_decimate_by_) - extern f_status_t private_f_string_map_multiss_adjust(const f_array_length_t length, f_string_map_multiss_t *map_multiss) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_map_multiss_adjust(const f_array_length_t length, f_string_map_multiss_t * const map_multiss) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_map_multiss_adjust_) || !defined(_di_f_string_map_multiss_decimate_by_) /** @@ -499,7 +499,7 @@ extern "C" { * @see f_string_map_multiss_terminate_after() */ #if !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_) || !defined(_di_f_string_map_multiss_terminate_) || !defined(_di_f_string_map_multiss_terminate_after_) - extern f_status_t private_f_string_map_multiss_resize(const f_array_length_t length, f_string_map_multiss_t *map_multiss) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_map_multiss_resize(const f_array_length_t length, f_string_map_multiss_t * const map_multiss) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_map_multiss_decrease_by_) || !defined(_di_f_string_map_multiss_increase_) || !defined(_di_f_string_map_multiss_increase_by_) || !defined(_di_f_string_map_multiss_terminate_) || !defined(_di_f_string_map_multiss_terminate_after_) /** @@ -523,7 +523,7 @@ extern "C" { * @see f_string_maps_adjust() */ #if !defined(_di_f_string_maps_adjust_) || !defined(_di_f_string_maps_decimate_by_) - extern f_status_t private_f_string_maps_adjust(const f_array_length_t length, f_string_maps_t *maps) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_maps_adjust(const f_array_length_t length, f_string_maps_t * const maps) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_maps_adjust_) || !defined(_di_f_string_maps_decimate_by_) /** @@ -548,7 +548,7 @@ extern "C" { * @see f_string_mapss_append() */ #if !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_maps_append_) - extern f_status_t private_f_string_maps_append(const f_string_maps_t source, f_string_maps_t *destination) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_maps_append(const f_string_maps_t source, f_string_maps_t * const destination) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_mapss_append_) || !defined(_di_f_string_maps_append_) /** @@ -576,7 +576,7 @@ extern "C" { * @see f_string_maps_terminate_after() */ #if !defined(_di_f_string_maps_decrease_by_) || !defined(_di_f_string_maps_increase_) || !defined(_di_f_string_maps_increase_by_) || !defined(_di_f_string_maps_terminate_) || !defined(_di_f_string_maps_terminate_after_) - extern f_status_t private_f_string_maps_resize(const f_array_length_t length, f_string_maps_t *maps) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_maps_resize(const f_array_length_t length, f_string_maps_t * const maps) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_maps_decrease_by_) || !defined(_di_f_string_maps_increase_) || !defined(_di_f_string_maps_increase_by_) || !defined(_di_f_string_maps_terminate_) || !defined(_di_f_string_maps_terminate_after_) /** @@ -600,7 +600,7 @@ extern "C" { * @see f_string_mapss_adjust() */ #if !defined(_di_f_string_mapss_adjust_) || !defined(_di_f_string_mapss_decimate_by_) - extern f_status_t private_f_string_mapss_adjust(const f_array_length_t length, f_string_mapss_t *mapss) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_mapss_adjust(const f_array_length_t length, f_string_mapss_t * const mapss) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_mapss_adjust_) || !defined(_di_f_string_mapss_decimate_by_) /** @@ -628,7 +628,7 @@ extern "C" { * @see f_string_mapss_terminate_after() */ #if !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_) || !defined(_di_f_string_mapss_terminate_) || !defined(_di_f_string_mapss_terminate_after_) - extern f_status_t private_f_string_mapss_resize(const f_array_length_t length, f_string_mapss_t *mapss) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_mapss_resize(const f_array_length_t length, f_string_mapss_t * const mapss) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_mapss_decrease_by_) || !defined(_di_f_string_mapss_increase_) || !defined(_di_f_string_mapss_increase_by_) || !defined(_di_f_string_mapss_terminate_) || !defined(_di_f_string_mapss_terminate_after_) /** @@ -725,7 +725,7 @@ extern "C" { * @see f_string_quantitys_decimate_by() */ #if !defined(_di_f_string_quantitys_adjust_) || !defined(_di_f_string_quantitys_decimate_by_) - extern f_status_t private_f_string_quantitys_adjust(const f_array_length_t length, f_string_quantitys_t *quantitys) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_quantitys_adjust(const f_array_length_t length, f_string_quantitys_t * const quantitys) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_quantitys_adjust_) || !defined(_di_f_string_quantitys_decimate_by_) /** @@ -753,7 +753,7 @@ extern "C" { * @see f_string_quantitys_terminate_after() */ #if !defined(_di_f_string_quantitys_decrease_by_) || !defined(_di_f_string_quantitys_increase_) || !defined(_di_f_string_quantitys_increase_by_) || !defined(_di_f_string_quantitys_terminate_) || !defined(_di_f_string_quantitys_terminate_after_) - extern f_status_t private_f_string_quantitys_resize(const f_array_length_t length, f_string_quantitys_t *quantitys) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_quantitys_resize(const f_array_length_t length, f_string_quantitys_t * const quantitys) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_quantitys_decrease_by_) || !defined(_di_f_string_quantitys_increase_) || !defined(_di_f_string_quantitys_increase_by_) || !defined(_di_f_string_quantitys_terminate_) || !defined(_di_f_string_quantitys_terminate_after_) /** @@ -778,7 +778,7 @@ extern "C" { * @see f_string_quantityss_decimate_by() */ #if !defined(_di_f_string_quantityss_adjust_) || !defined(_di_f_string_quantityss_decimate_by_) - extern f_status_t private_f_string_quantityss_adjust(const f_array_length_t length, f_string_quantityss_t *quantityss) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_quantityss_adjust(const f_array_length_t length, f_string_quantityss_t * const quantityss) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_quantityss_adjust_) || !defined(_di_f_string_quantityss_decimate_by_) /** @@ -806,7 +806,7 @@ extern "C" { * @see f_string_quantityss_terminate_after() */ #if !defined(_di_f_string_quantityss_decrease_by_) || !defined(_di_f_string_quantityss_increase_) || !defined(_di_f_string_quantityss_increase_by_) || !defined(_di_f_string_quantityss_terminate_) || !defined(_di_f_string_quantityss_terminate_after_) - extern f_status_t private_f_string_quantityss_resize(const f_array_length_t length, f_string_quantityss_t *quantityss) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_quantityss_resize(const f_array_length_t length, f_string_quantityss_t * const quantityss) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_quantityss_decrease_by_) || !defined(_di_f_string_quantityss_increase_) || !defined(_di_f_string_quantityss_increase_by_) || !defined(_di_f_string_quantityss_terminate_) || !defined(_di_f_string_quantityss_terminate_after_) /** @@ -831,7 +831,7 @@ extern "C" { * @see f_string_ranges_decimate_by() */ #if !defined(_di_f_string_ranges_adjust_) || !defined(_di_f_string_ranges_decimate_by_) - extern f_status_t private_f_string_ranges_adjust(const f_array_length_t length, f_string_ranges_t *ranges) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_ranges_adjust(const f_array_length_t length, f_string_ranges_t * const ranges) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_ranges_adjust_) || !defined(_di_f_string_ranges_decimate_by_) /** @@ -859,7 +859,7 @@ extern "C" { * @see f_string_ranges_terminate_after() */ #if !defined(_di_f_string_ranges_decrease_by_) || !defined(_di_f_string_ranges_increase_) || !defined(_di_f_string_ranges_increase_by_) || !defined(_di_f_string_ranges_terminate_) || !defined(_di_f_string_ranges_terminate_after_) - extern f_status_t private_f_string_ranges_resize(const f_array_length_t length, f_string_ranges_t *ranges) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_ranges_resize(const f_array_length_t length, f_string_ranges_t * const ranges) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_ranges_decrease_by_) || !defined(_di_f_string_ranges_increase_) || !defined(_di_f_string_ranges_increase_by_) || !defined(_di_f_string_ranges_terminate_) || !defined(_di_f_string_ranges_terminate_after_) /** @@ -884,7 +884,7 @@ extern "C" { * @see f_string_rangess_decimate_by() */ #if !defined(_di_f_string_rangess_adjust_) || !defined(_di_f_string_rangess_decimate_by_) - extern f_status_t private_f_string_rangess_adjust(const f_array_length_t length, f_string_rangess_t *rangess) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_rangess_adjust(const f_array_length_t length, f_string_rangess_t * const rangess) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_rangess_adjust_) || !defined(_di_f_string_rangess_decimate_by_) /** @@ -912,7 +912,7 @@ extern "C" { * @see f_string_rangess_terminate_after() */ #if !defined(_di_f_string_rangess_decrease_by_) || !defined(_di_f_string_rangess_increase_) || !defined(_di_f_string_rangess_increase_by_) || !defined(_di_f_string_rangess_terminate_) || !defined(_di_f_string_rangess_terminate_after_) - extern f_status_t private_f_string_rangess_resize(const f_array_length_t length, f_string_rangess_t *rangess) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_rangess_resize(const f_array_length_t length, f_string_rangess_t * const rangess) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_rangess_decrease_by_) || !defined(_di_f_string_rangess_increase_) || !defined(_di_f_string_rangess_increase_by_) || !defined(_di_f_string_rangess_terminate_) || !defined(_di_f_string_rangess_terminate_after_) /** @@ -937,7 +937,7 @@ extern "C" { * @see f_string_triples_decimate_by() */ #if !defined(_di_f_string_triples_adjust_) || !defined(_di_f_string_triples_decimate_by_) - extern f_status_t private_f_string_triples_adjust(const f_array_length_t length, f_string_triples_t *triples) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_triples_adjust(const f_array_length_t length, f_string_triples_t * const triples) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_triples_adjust_) || !defined(_di_f_string_triples_decimate_by_) /** @@ -965,7 +965,7 @@ extern "C" { * @see f_string_triples_terminate_after() */ #if !defined(_di_f_string_triples_decrease_by_) || !defined(_di_f_string_triples_increase_) || !defined(_di_f_string_triples_increase_by_) || !defined(_di_f_string_triples_terminate_) || !defined(_di_f_string_triples_terminate_after_) - extern f_status_t private_f_string_triples_resize(const f_array_length_t length, f_string_triples_t *triples) F_attribute_visibility_internal_d; + extern f_status_t private_f_string_triples_resize(const f_array_length_t length, f_string_triples_t * const triples) F_attribute_visibility_internal_d; #endif // !defined(_di_f_string_triples_decrease_by_) || !defined(_di_f_string_triples_increase_) || !defined(_di_f_string_triples_increase_by_) || !defined(_di_f_string_triples_terminate_) || !defined(_di_f_string_triples_terminate_after_) #ifdef __cplusplus diff --git a/level_0/f_string/c/string.c b/level_0/f_string/c/string.c index 7aaa7a1..0ddd078 100644 --- a/level_0/f_string/c/string.c +++ b/level_0/f_string/c/string.c @@ -333,7 +333,7 @@ extern "C" { #endif // _di_f_string_seek_line_ #ifndef _di_f_string_seek_line_to_ - f_status_t f_string_seek_line_to(const f_string_t string, const uint8_t seek_to, f_string_range_t *range) { + f_status_t f_string_seek_line_to(const f_string_t string, const uint8_t seek_to, f_string_range_t * const range) { #ifndef _di_level_0_parameter_checking_ if (!range) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -360,7 +360,7 @@ extern "C" { #endif // _di_f_string_seek_line_to_ #ifndef _di_f_string_seek_to_ - f_status_t f_string_seek_to(const f_string_t string, const uint8_t seek_to, f_string_range_t *range) { + f_status_t f_string_seek_to(const f_string_t string, const uint8_t seek_to, f_string_range_t * const range) { #ifndef _di_level_0_parameter_checking_ if (!range) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_string/c/string.h b/level_0/f_string/c/string.h index d6433b5..8a853ec 100644 --- a/level_0/f_string/c/string.h +++ b/level_0/f_string/c/string.h @@ -380,7 +380,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_seek_line_ - extern f_status_t f_string_seek_line(const f_string_t string, f_string_range_t *range); + extern f_status_t f_string_seek_line(const f_string_t string, f_string_range_t * const range); #endif // _di_f_string_seek_line_ /** @@ -403,7 +403,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_string_seek_line_to_ - extern f_status_t f_string_seek_line_to(const f_string_t string, const uint8_t seek_to, f_string_range_t *range); + extern f_status_t f_string_seek_line_to(const f_string_t string, const uint8_t seek_to, f_string_range_t * const range); #endif // _di_f_string_seek_line_to_ /** @@ -427,7 +427,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_string_seek_to_ - extern f_status_t f_string_seek_to(const f_string_t string, const uint8_t seek_to, f_string_range_t *range); + extern f_status_t f_string_seek_to(const f_string_t string, const uint8_t seek_to, f_string_range_t * const range); #endif // _di_f_string_seek_to_ #ifdef __cplusplus diff --git a/level_0/f_string/c/string/dynamic.c b/level_0/f_string/c/string/dynamic.c index f94568d..8ad6380 100644 --- a/level_0/f_string/c/string/dynamic.c +++ b/level_0/f_string/c/string/dynamic.c @@ -6,7 +6,7 @@ extern "C" { #endif #ifndef _di_f_string_dynamic_adjust_ - f_status_t f_string_dynamic_adjust(const f_array_length_t length, f_string_dynamic_t *dynamic) { + f_status_t f_string_dynamic_adjust(const f_array_length_t length, f_string_dynamic_t * const dynamic) { #ifndef _di_level_0_parameter_checking_ if (!dynamic) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -130,7 +130,7 @@ extern "C" { #endif // _di_f_string_dynamic_append_nulless_ #ifndef _di_f_string_dynamic_decimate_by_ - f_status_t f_string_dynamic_decimate_by(const f_array_length_t amount, f_string_dynamic_t *dynamic) { + f_status_t f_string_dynamic_decimate_by(const f_array_length_t amount, f_string_dynamic_t * const dynamic) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!dynamic) return F_status_set_error(F_parameter); @@ -145,7 +145,7 @@ extern "C" { #endif // _di_f_string_dynamic_decimate_by_ #ifndef _di_f_string_dynamic_decrease_by_ - f_status_t f_string_dynamic_decrease_by(const f_array_length_t amount, f_string_dynamic_t *dynamic) { + f_status_t f_string_dynamic_decrease_by(const f_array_length_t amount, f_string_dynamic_t * const dynamic) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!dynamic) return F_status_set_error(F_parameter); @@ -160,7 +160,7 @@ extern "C" { #endif // _di_f_string_dynamic_decrease_by_ #ifndef _di_f_string_dynamic_increase_ - f_status_t f_string_dynamic_increase(const uint16_t step, f_string_dynamic_t *dynamic) { + f_status_t f_string_dynamic_increase(const uint16_t step, f_string_dynamic_t * const dynamic) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!dynamic) return F_status_set_error(F_parameter); @@ -185,7 +185,7 @@ extern "C" { #endif // _di_f_string_dynamic_increase_ #ifndef _di_f_string_dynamic_increase_by_ - f_status_t f_string_dynamic_increase_by(const f_array_length_t amount, f_string_dynamic_t *dynamic) { + f_status_t f_string_dynamic_increase_by(const f_array_length_t amount, f_string_dynamic_t * const dynamic) { #ifndef _di_level_0_parameter_checking_ if (!dynamic) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -755,7 +755,7 @@ extern "C" { #endif // _di_f_string_dynamic_prepend_nulless_ #ifndef _di_f_string_dynamic_resize_ - f_status_t f_string_dynamic_resize(const f_array_length_t length, f_string_dynamic_t *buffer) { + f_status_t f_string_dynamic_resize(const f_array_length_t length, f_string_dynamic_t * const buffer) { #ifndef _di_level_0_parameter_checking_ if (!buffer) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -765,7 +765,7 @@ extern "C" { #endif // _di_f_string_dynamic_resize_ #ifndef _di_f_string_dynamic_seek_line_ - f_status_t f_string_dynamic_seek_line(const f_string_static_t buffer, f_string_range_t *range) { + f_status_t f_string_dynamic_seek_line(const f_string_static_t buffer, f_string_range_t * const range) { #ifndef _di_level_0_parameter_checking_ if (!range) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -786,7 +786,7 @@ extern "C" { #endif // _di_f_string_dynamic_seek_line_ #ifndef _di_f_string_dynamic_seek_line_to_ - f_status_t f_string_dynamic_seek_line_to(const f_string_static_t buffer, const char seek_to_this, f_string_range_t *range) { + f_status_t f_string_dynamic_seek_line_to(const f_string_static_t buffer, const char seek_to_this, f_string_range_t * const range) { #ifndef _di_level_0_parameter_checking_ if (!range) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -809,7 +809,7 @@ extern "C" { #endif // _di_f_string_dynamic_seek_line_to_ #ifndef _di_f_string_dynamic_seek_to_ - f_status_t f_string_dynamic_seek_to(const f_string_static_t buffer, const char seek_to_this, f_string_range_t *range) { + f_status_t f_string_dynamic_seek_to(const f_string_static_t buffer, const char seek_to_this, f_string_range_t * const range) { #ifndef _di_level_0_parameter_checking_ if (!range) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -892,7 +892,7 @@ extern "C" { #endif // _di_f_string_dynamics_adjust_ #ifndef _di_f_string_dynamics_append_ - f_status_t f_string_dynamics_append(const f_string_dynamics_t source, f_string_dynamics_t *destination) { + f_status_t f_string_dynamics_append(const f_string_dynamics_t source, f_string_dynamics_t * const destination) { #ifndef _di_level_0_parameter_checking_ if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -999,7 +999,7 @@ extern "C" { #endif // _di_f_string_dynamicss_adjust_ #ifndef _di_f_string_dynamicss_append_ - f_status_t f_string_dynamicss_append(const f_string_dynamicss_t source, f_string_dynamicss_t *destination) { + f_status_t f_string_dynamicss_append(const f_string_dynamicss_t source, f_string_dynamicss_t * const destination) { #ifndef _di_level_0_parameter_checking_ if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_string/c/string/dynamic.h b/level_0/f_string/c/string/dynamic.h index 84817fa..ca50835 100644 --- a/level_0/f_string/c/string/dynamic.h +++ b/level_0/f_string/c/string/dynamic.h @@ -114,7 +114,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_string_dynamic_adjust_ - extern f_status_t f_string_dynamic_adjust(const f_array_length_t length, f_string_dynamic_t *dynamic); + extern f_status_t f_string_dynamic_adjust(const f_array_length_t length, f_string_dynamic_t * const dynamic); #endif // _di_f_string_dynamic_adjust_ /** @@ -226,7 +226,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_dynamic_decrease_by_ - extern f_status_t f_string_dynamic_decrease_by(const f_array_length_t amount, f_string_dynamic_t *dynamic); + extern f_status_t f_string_dynamic_decrease_by(const f_array_length_t amount, f_string_dynamic_t * const dynamic); #endif // _di_f_string_dynamic_decrease_by_ /** @@ -252,7 +252,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_dynamic_increase_ - extern f_status_t f_string_dynamic_increase(const uint16_t step, f_string_dynamic_t *dynamic); + extern f_status_t f_string_dynamic_increase(const uint16_t step, f_string_dynamic_t * const dynamic); #endif // _di_f_string_dynamic_increase_ /** @@ -277,7 +277,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_dynamic_increase_by_ - extern f_status_t f_string_dynamic_increase_by(const f_array_length_t amount, f_string_dynamic_t *dynamic); + extern f_status_t f_string_dynamic_increase_by(const f_array_length_t amount, f_string_dynamic_t * const dynamic); #endif // _di_f_string_dynamic_increase_by_ /** @@ -828,7 +828,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_dynamic_resize_ - extern f_status_t f_string_dynamic_resize(const f_array_length_t length, f_string_dynamic_t *buffer); + extern f_status_t f_string_dynamic_resize(const f_array_length_t length, f_string_dynamic_t * const buffer); #endif // _di_f_string_dynamic_resize_ /** @@ -852,7 +852,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_dynamic_seek_line_ - extern f_status_t f_string_dynamic_seek_line(const f_string_static_t buffer, f_string_range_t *range); + extern f_status_t f_string_dynamic_seek_line(const f_string_static_t buffer, f_string_range_t * const range); #endif // _di_f_string_dynamic_seek_line_ /** @@ -878,7 +878,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_dynamic_seek_line_to_ - extern f_status_t f_string_dynamic_seek_line_to(const f_string_static_t buffer, const char seek_to_this, f_string_range_t *range); + extern f_status_t f_string_dynamic_seek_line_to(const f_string_static_t buffer, const char seek_to_this, f_string_range_t * const range); #endif // _di_f_string_dynamic_seek_line_to_ /** @@ -904,7 +904,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_dynamic_seek_to_ - extern f_status_t f_string_dynamic_seek_to(const f_string_static_t buffer, const char seek_to_this, f_string_range_t *range); + extern f_status_t f_string_dynamic_seek_to(const f_string_static_t buffer, const char seek_to_this, f_string_range_t * const range); #endif // _di_f_string_dynamic_seek_to_ /** @@ -992,7 +992,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_dynamics_append_ - extern f_status_t f_string_dynamics_append(const f_string_dynamics_t source, f_string_dynamics_t *destination); + extern f_status_t f_string_dynamics_append(const f_string_dynamics_t source, f_string_dynamics_t * const destination); #endif // _di_f_string_dynamics_append_ /** @@ -1149,7 +1149,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_dynamicss_append_ - extern f_status_t f_string_dynamicss_append(const f_string_dynamicss_t source, f_string_dynamicss_t *destination); + extern f_status_t f_string_dynamicss_append(const f_string_dynamicss_t source, f_string_dynamicss_t * const destination); #endif // _di_f_string_dynamicss_append_ /** diff --git a/level_0/f_string/c/string/quantity.c b/level_0/f_string/c/string/quantity.c index 8bd193e..3624b12 100644 --- a/level_0/f_string/c/string/quantity.c +++ b/level_0/f_string/c/string/quantity.c @@ -16,7 +16,7 @@ extern "C" { #endif // _di_f_string_quantitys_adjust_ #ifndef _di_f_string_quantitys_append_ - f_status_t f_string_quantitys_append(const f_string_quantitys_t source, f_string_quantitys_t *destination) { + f_status_t f_string_quantitys_append(const f_string_quantitys_t source, f_string_quantitys_t * const destination) { #ifndef _di_level_0_parameter_checking_ if (!destination) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -127,7 +127,7 @@ extern "C" { #endif // _di_f_string_quantitys_resize_ #ifndef _di_f_string_quantityss_adjust_ - f_status_t f_string_quantityss_adjust(const f_array_length_t length, f_string_quantityss_t *quantityss) { + f_status_t f_string_quantityss_adjust(const f_array_length_t length, f_string_quantityss_t * const quantityss) { #ifndef _di_level_0_parameter_checking_ if (!quantityss) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_string/c/string/range.h b/level_0/f_string/c/string/range.h index dddae56..82420d0 100644 --- a/level_0/f_string/c/string/range.h +++ b/level_0/f_string/c/string/range.h @@ -119,7 +119,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_string_ranges_adjust_ - extern f_status_t f_string_ranges_adjust(const f_array_length_t length, f_string_ranges_t *ranges); + extern f_status_t f_string_ranges_adjust(const f_array_length_t length, f_string_ranges_t * const ranges); #endif // _di_f_string_ranges_adjust_ /** @@ -139,7 +139,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_ranges_append_ - extern f_status_t f_string_ranges_append(const f_string_ranges_t source, f_string_ranges_t *destination); + extern f_status_t f_string_ranges_append(const f_string_ranges_t source, f_string_ranges_t * const destination); #endif // _di_f_string_ranges_append_ /** @@ -162,7 +162,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_ranges_decimate_by_ - extern f_status_t f_string_ranges_decimate_by(const f_array_length_t amount, f_string_ranges_t *ranges); + extern f_status_t f_string_ranges_decimate_by(const f_array_length_t amount, f_string_ranges_t * const ranges); #endif // _di_f_string_ranges_decimate_by_ /** @@ -185,7 +185,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_ranges_decrease_by_ - extern f_status_t f_string_ranges_decrease_by(const f_array_length_t amount, f_string_ranges_t *ranges); + extern f_status_t f_string_ranges_decrease_by(const f_array_length_t amount, f_string_ranges_t * const ranges); #endif // _di_f_string_ranges_decrease_by_ /** @@ -210,7 +210,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_ranges_increase_ - extern f_status_t f_string_ranges_increase(const uint16_t step, f_string_ranges_t *ranges); + extern f_status_t f_string_ranges_increase(const uint16_t step, f_string_ranges_t * const ranges); #endif // _di_f_string_ranges_increase_ /** @@ -235,7 +235,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_ranges_increase_by_ - extern f_status_t f_string_ranges_increase_by(const f_array_length_t amount, f_string_ranges_t *ranges); + extern f_status_t f_string_ranges_increase_by(const f_array_length_t amount, f_string_ranges_t * const ranges); #endif // _di_f_string_ranges_increase_by_ /** @@ -254,7 +254,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_ranges_resize_ - extern f_status_t f_string_ranges_resize(const f_array_length_t length, f_string_ranges_t *ranges); + extern f_status_t f_string_ranges_resize(const f_array_length_t length, f_string_ranges_t * const ranges); #endif // _di_f_string_ranges_resize_ /** @@ -273,7 +273,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_rangess_adjust_ - extern f_status_t f_string_rangess_adjust(const f_array_length_t length, f_string_rangess_t *rangess); + extern f_status_t f_string_rangess_adjust(const f_array_length_t length, f_string_rangess_t * const rangess); #endif // _di_f_string_rangess_adjust_ /** @@ -296,7 +296,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_rangess_decimate_by_ - extern f_status_t f_string_rangess_decimate_by(const f_array_length_t amount, f_string_rangess_t *rangess); + extern f_status_t f_string_rangess_decimate_by(const f_array_length_t amount, f_string_rangess_t * const rangess); #endif // _di_f_string_rangess_decimate_by_ /** @@ -319,7 +319,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_rangess_decrease_by_ - extern f_status_t f_string_rangess_decrease_by(const f_array_length_t amount, f_string_rangess_t *rangess); + extern f_status_t f_string_rangess_decrease_by(const f_array_length_t amount, f_string_rangess_t * const rangess); #endif // _di_f_string_rangess_decrease_by_ /** @@ -344,7 +344,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_rangess_increase_ - extern f_status_t f_string_rangess_increase(const uint16_t step, f_string_rangess_t *rangess); + extern f_status_t f_string_rangess_increase(const uint16_t step, f_string_rangess_t * const rangess); #endif // _di_f_string_rangess_increase_ /** @@ -369,7 +369,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_rangess_increase_by_ - extern f_status_t f_string_rangess_increase_by(const f_array_length_t amount, f_string_rangess_t *rangess); + extern f_status_t f_string_rangess_increase_by(const f_array_length_t amount, f_string_rangess_t * const rangess); #endif // _di_f_string_rangess_increase_by_ /** @@ -388,7 +388,7 @@ extern "C" { * Errors (with error bit) from: f_memory_resize(). */ #ifndef _di_f_string_rangess_resize_ - extern f_status_t f_string_rangess_resize(const f_array_length_t length, f_string_rangess_t *rangess); + extern f_status_t f_string_rangess_resize(const f_array_length_t length, f_string_rangess_t * const rangess); #endif // _di_f_string_rangess_resize_ #ifdef __cplusplus diff --git a/level_0/f_thread/c/private-thread.c b/level_0/f_thread/c/private-thread.c index 5f7e31c..8336058 100644 --- a/level_0/f_thread/c/private-thread.c +++ b/level_0/f_thread/c/private-thread.c @@ -19,7 +19,7 @@ extern "C" { #endif // !defined(_di_f_thread_attributes_adjust_) || !defined(_di_f_thread_attributes_decimate_by_) || !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_) || !defined(_di_f_thread_attributes_resize_) || !defined(_di_f_thread_sets_adjust_) || !defined(_di_f_thread_sets_decimate_by_) || !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_) || !defined(_di_f_thread_sets_resize_) #if !defined(_di_f_thread_attributes_adjust_) || !defined(_di_f_thread_attributes_decimate_by_) - f_status_t private_f_thread_attributes_adjust(const f_array_length_t length, f_thread_attributes_t *attributes) { + f_status_t private_f_thread_attributes_adjust(const f_array_length_t length, f_thread_attributes_t * const attributes) { f_status_t status = F_none; for (f_array_length_t i = length; i < attributes->size; ++i) { @@ -43,7 +43,7 @@ extern "C" { #endif // !defined(_di_f_thread_attributes_adjust_) || !defined(_di_f_thread_attributes_decimate_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_) - f_status_t private_f_thread_attributes_resize(const f_array_length_t length, f_thread_attributes_t *attributes) { + f_status_t private_f_thread_attributes_resize(const f_array_length_t length, f_thread_attributes_t * const attributes) { f_status_t status = F_none; for (f_array_length_t i = length; i < attributes->size; ++i) { @@ -80,7 +80,7 @@ extern "C" { #endif // !defined(_di_f_thread_barriers_adjust_) || !defined(_di_f_thread_barriers_decimate_by_) || !defined(_di_f_thread_barriers_decrease_) || !defined(_di_f_thread_barriers_decrease_by_) || !defined(_di_f_thread_barriers_increase_) || !defined(_di_f_thread_barriers_increase_by_) || !defined(_di_f_thread_barriers_resize_) #if !defined(_di_f_thread_barriers_adjust_) || !defined(_di_f_thread_barriers_decimate_by_) - f_status_t private_f_thread_barriers_adjust(const f_array_length_t length, f_thread_barriers_t *barriers) { + f_status_t private_f_thread_barriers_adjust(const f_array_length_t length, f_thread_barriers_t * const barriers) { f_status_t status = F_none; for (f_array_length_t i = length; i < barriers->size; ++i) { @@ -104,7 +104,7 @@ extern "C" { #endif // !defined(_di_f_thread_barriers_adjust_) || !defined(_di_f_thread_barriers_decimate_by_) #if !defined(_di_f_thread_barriers_decrease_) || !defined(_di_f_thread_barriers_decrease_by_) || !defined(_di_f_thread_barriers_increase_) || !defined(_di_f_thread_barriers_increase_by_) - f_status_t private_f_thread_barriers_resize(const f_array_length_t length, f_thread_barriers_t *barriers) { + f_status_t private_f_thread_barriers_resize(const f_array_length_t length, f_thread_barriers_t * const barriers) { f_status_t status = F_none; for (f_array_length_t i = length; i < barriers->size; ++i) { @@ -141,7 +141,7 @@ extern "C" { #endif // !defined(_di_f_thread_barrier_attributes_adjust_) || !defined(_di_f_thread_barrier_attributes_decimate_by_) || !defined(_di_f_thread_barrier_attributes_decrease_) || !defined(_di_f_thread_barrier_attributes_decrease_by_) || !defined(_di_f_thread_barrier_attributes_increase_) || !defined(_di_f_thread_barrier_attributes_increase_by_) || !defined(_di_f_thread_barrier_attributes_resize_) #if !defined(_di_f_thread_barrier_attributes_adjust_) || !defined(_di_f_thread_barrier_attributes_decimate_by_) - f_status_t private_f_thread_barrier_attributes_adjust(const f_array_length_t length, f_thread_barrier_attributes_t *attributes) { + f_status_t private_f_thread_barrier_attributes_adjust(const f_array_length_t length, f_thread_barrier_attributes_t * const attributes) { f_status_t status = F_none; for (f_array_length_t i = length; i < attributes->size; ++i) { @@ -165,7 +165,7 @@ extern "C" { #endif // !defined(_di_f_thread_barrier_attributes_adjust_) || !defined(_di_f_thread_barrier_attributes_decimate_by_) #if !defined(_di_f_thread_barrier_attributes_decrease_) || !defined(_di_f_thread_barrier_attributes_decrease_by_) || !defined(_di_f_thread_barrier_attributes_increase_) || !defined(_di_f_thread_barrier_attributes_increase_by_) - f_status_t private_f_thread_barrier_attributes_resize(const f_array_length_t length, f_thread_barrier_attributes_t *attributes) { + f_status_t private_f_thread_barrier_attributes_resize(const f_array_length_t length, f_thread_barrier_attributes_t * const attributes) { f_status_t status = F_none; for (f_array_length_t i = length; i < attributes->size; ++i) { @@ -189,7 +189,7 @@ extern "C" { #endif // !defined(_di_f_thread_barrier_attributes_decrease_) || !defined(_di_f_thread_barrier_attributes_decrease_by_) || !defined(_di_f_thread_barrier_attributes_increase_) || !defined(_di_f_thread_barrier_attributes_increase_by_) #if !defined(_di_f_thread_condition_attributes_adjust_) || !defined(_di_f_thread_condition_attributes_decimate_by_) || !defined(_di_f_thread_condition_attributes_decrease_) || !defined(_di_f_thread_condition_attributes_decrease_by_) || !defined(_di_f_thread_condition_attributes_increase_) || !defined(_di_f_thread_condition_attributes_increase_by_) || !defined(_di_f_thread_condition_attributes_resize_) - f_status_t private_f_thread_condition_attribute_delete(f_thread_condition_attribute_t *attribute) { + f_status_t private_f_thread_condition_attribute_delete(f_thread_condition_attribute_t * const attribute) { const int error = pthread_condattr_destroy(attribute); @@ -205,7 +205,7 @@ extern "C" { #endif // !defined(_di_f_thread_condition_attributes_adjust_) || !defined(_di_f_thread_condition_attributes_decimate_by_) || !defined(_di_f_thread_condition_attributes_decrease_) || !defined(_di_f_thread_condition_attributes_decrease_by_) || !defined(_di_f_thread_condition_attributes_increase_) || !defined(_di_f_thread_condition_attributes_increase_by_) || !defined(_di_f_thread_condition_attributes_resize_) #if !defined(_di_f_thread_condition_attributes_adjust_) || !defined(_di_f_thread_condition_attributes_decimate_by_) - f_status_t private_f_thread_condition_attributes_adjust(const f_array_length_t length, f_thread_condition_attributes_t *attributes) { + f_status_t private_f_thread_condition_attributes_adjust(const f_array_length_t length, f_thread_condition_attributes_t * const attributes) { f_status_t status = F_none; for (f_array_length_t i = length; i < attributes->size; ++i) { @@ -229,7 +229,7 @@ extern "C" { #endif // !defined(_di_f_thread_condition_attributes_adjust_) || !defined(_di_f_thread_condition_attributes_decimate_by_) #if !defined(_di_f_thread_condition_attributes_decrease_) || !defined(_di_f_thread_condition_attributes_decrease_by_) || !defined(_di_f_thread_condition_attributes_increase_) || !defined(_di_f_thread_condition_attributes_increase_by_) - f_status_t private_f_thread_condition_attributes_resize(const f_array_length_t length, f_thread_condition_attributes_t *attributes) { + f_status_t private_f_thread_condition_attributes_resize(const f_array_length_t length, f_thread_condition_attributes_t * const attributes) { f_status_t status = F_none; for (f_array_length_t i = length; i < attributes->size; ++i) { @@ -269,7 +269,7 @@ extern "C" { #endif // !defined(_di_f_thread_conditions_adjust_) || !defined(_di_f_thread_conditions_decimate_by_) || !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_) || !defined(_di_f_thread_conditions_resize_) #if !defined(_di_f_thread_conditions_adjust_) || !defined(_di_f_thread_conditions_decimate_by_) - f_status_t private_f_thread_conditions_adjust(const f_array_length_t length, f_thread_conditions_t *conditions) { + f_status_t private_f_thread_conditions_adjust(const f_array_length_t length, f_thread_conditions_t * const conditions) { f_status_t status = F_none; for (f_array_length_t i = length; i < conditions->size; ++i) { @@ -293,7 +293,7 @@ extern "C" { #endif // !defined(_di_f_thread_conditions_adjust_) || !defined(_di_f_thread_conditions_decimate_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_) - f_status_t private_f_thread_conditions_resize(const f_array_length_t length, f_thread_conditions_t *conditions) { + f_status_t private_f_thread_conditions_resize(const f_array_length_t length, f_thread_conditions_t * const conditions) { f_status_t status = F_none; for (f_array_length_t i = length; i < conditions->size; ++i) { @@ -330,7 +330,7 @@ extern "C" { #endif // !defined(_di_f_thread_keys_adjust_) || !defined(_di_f_thread_keys_decimate_by_) || !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_) || !defined(_di_f_thread_keys_resize_) #if !defined(_di_f_thread_keys_adjust_) || !defined(_di_f_thread_keys_decimate_by_) - f_status_t private_f_thread_keys_adjust(const f_array_length_t length, f_thread_keys_t *keys) { + f_status_t private_f_thread_keys_adjust(const f_array_length_t length, f_thread_keys_t * const keys) { f_status_t status = F_none; for (f_array_length_t i = length; i < keys->size; ++i) { @@ -354,7 +354,7 @@ extern "C" { #endif // !defined(_di_f_thread_keys_adjust_) || !defined(_di_f_thread_keys_decimate_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_) - f_status_t private_f_thread_keys_resize(const f_array_length_t length, f_thread_keys_t *keys) { + f_status_t private_f_thread_keys_resize(const f_array_length_t length, f_thread_keys_t * const keys) { f_status_t status = F_none; for (f_array_length_t i = length; i < keys->size; ++i) { @@ -394,7 +394,7 @@ extern "C" { #endif // !defined(_di_f_thread_locks_adjust_) || !defined(_di_f_thread_locks_decimate_by_) || !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_) || !defined(_di_f_thread_locks_resize_) #if !defined(_di_f_thread_locks_adjust_) || !defined(_di_f_thread_locks_decimate_by_) - f_status_t private_f_thread_locks_adjust(const f_array_length_t length, f_thread_locks_t *locks) { + f_status_t private_f_thread_locks_adjust(const f_array_length_t length, f_thread_locks_t * const locks) { f_status_t status = F_none; for (f_array_length_t i = length; i < locks->size; ++i) { @@ -418,7 +418,7 @@ extern "C" { #endif // !defined(_di_f_thread_locks_adjust_) || !defined(_di_f_thread_locks_decimate_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_) - f_status_t private_f_thread_locks_resize(const f_array_length_t length, f_thread_locks_t *locks) { + f_status_t private_f_thread_locks_resize(const f_array_length_t length, f_thread_locks_t * const locks) { f_status_t status = F_none; for (f_array_length_t i = length; i < locks->size; ++i) { @@ -458,7 +458,7 @@ extern "C" { #endif // !defined(_di_f_thread_lock_attributes_adjust_) || !defined(_di_f_thread_lock_attributes_decimate_by_) || !defined(_di_f_thread_lock_attributes_decrease_) || !defined(_di_f_thread_lock_attributes_decrease_by_) || !defined(_di_f_thread_lock_attributes_increase_) || !defined(_di_f_thread_lock_attributes_increase_by_) || !defined(_di_f_thread_lock_attributes_resize_) #if !defined(_di_f_thread_lock_attributes_adjust_) || !defined(_di_f_thread_lock_attributes_decimate_by_) - f_status_t private_f_thread_lock_attributes_adjust(const f_array_length_t length, f_thread_lock_attributes_t *attributes) { + f_status_t private_f_thread_lock_attributes_adjust(const f_array_length_t length, f_thread_lock_attributes_t * const attributes) { f_status_t status = F_none; for (f_array_length_t i = length; i < attributes->size; ++i) { @@ -482,7 +482,7 @@ extern "C" { #endif // !defined(_di_f_thread_lock_attributes_adjust_) || !defined(_di_f_thread_lock_attributes_decimate_by_) #if !defined(_di_f_thread_lock_attributes_decrease_) || !defined(_di_f_thread_lock_attributes_decrease_by_) || !defined(_di_f_thread_lock_attributes_increase_) || !defined(_di_f_thread_lock_attributes_increase_by_) - f_status_t private_f_thread_lock_attributes_resize(const f_array_length_t length, f_thread_lock_attributes_t *attributes) { + f_status_t private_f_thread_lock_attributes_resize(const f_array_length_t length, f_thread_lock_attributes_t * const attributes) { f_status_t status = F_none; for (f_array_length_t i = length; i < attributes->size; ++i) { @@ -522,7 +522,7 @@ extern "C" { #endif // !defined(_di_f_thread_mutex_attributes_adjust_) || !defined(_di_f_thread_mutex_attributes_decimate_by_) || !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_) || !defined(_di_f_thread_mutex_attributes_resize_) #if !defined(_di_f_thread_mutex_attributes_adjust_) || !defined(_di_f_thread_mutex_attributes_decimate_by_) - f_status_t private_f_thread_mutex_attributes_adjust(const f_array_length_t length, f_thread_mutex_attributes_t *attributes) { + f_status_t private_f_thread_mutex_attributes_adjust(const f_array_length_t length, f_thread_mutex_attributes_t * const attributes) { f_status_t status = F_none; for (f_array_length_t i = length; i < attributes->size; ++i) { @@ -546,7 +546,7 @@ extern "C" { #endif // !defined(_di_f_thread_mutex_attributes_adjust_) || !defined(_di_f_thread_mutex_attributes_decimate_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_) - f_status_t private_f_thread_mutex_attributes_resize(const f_array_length_t length, f_thread_mutex_attributes_t *attributes) { + f_status_t private_f_thread_mutex_attributes_resize(const f_array_length_t length, f_thread_mutex_attributes_t * const attributes) { f_status_t status = F_none; for (f_array_length_t i = length; i < attributes->size; ++i) { @@ -586,7 +586,7 @@ extern "C" { #endif // !defined(_di_f_thread_mutexs_adjust_) || !defined(_di_f_thread_mutexs_decimate_by_) || !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_) || !defined(_di_f_thread_mutexs_resize_) #if !defined(_di_f_thread_mutexs_adjust_) || !defined(_di_f_thread_mutexs_decimate_by_) - f_status_t private_f_thread_mutexs_adjust(const f_array_length_t length, f_thread_mutexs_t *mutexs) { + f_status_t private_f_thread_mutexs_adjust(const f_array_length_t length, f_thread_mutexs_t * const mutexs) { f_status_t status = F_none; for (f_array_length_t i = length; i < mutexs->size; ++i) { @@ -610,7 +610,7 @@ extern "C" { #endif // !defined(_di_f_thread_mutexs_adjust_) || !defined(_di_f_thread_mutexs_decimate_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_) - f_status_t private_f_thread_mutexs_resize(const f_array_length_t length, f_thread_mutexs_t *mutexs) { + f_status_t private_f_thread_mutexs_resize(const f_array_length_t length, f_thread_mutexs_t * const mutexs) { f_status_t status = F_none; for (f_array_length_t i = length; i < mutexs->size; ++i) { @@ -649,7 +649,7 @@ extern "C" { #endif // !defined(_di_f_thread_semaphores_adjust_) || !defined(_di_f_thread_semaphores_decimate_by_) || !defined(_di_f_thread_semaphores_decrease_) || !defined(_di_f_thread_semaphores_decrease_by_) || !defined(_di_f_thread_semaphores_increase_) || !defined(_di_f_thread_semaphores_increase_by_) || !defined(_di_f_thread_semaphores_resize_) #if !defined(_di_f_thread_semaphores_adjust_) || !defined(_di_f_thread_semaphores_decimate_by_) - f_status_t private_f_thread_semaphores_adjust(const f_array_length_t length, f_thread_semaphores_t *semaphores) { + f_status_t private_f_thread_semaphores_adjust(const f_array_length_t length, f_thread_semaphores_t * const semaphores) { f_status_t status = F_none; for (f_array_length_t i = length; i < semaphores->size; ++i) { @@ -673,7 +673,7 @@ extern "C" { #endif // !defined(_di_f_thread_semaphores_adjust_) || !defined(_di_f_thread_semaphores_decimate_by_) #if !defined(_di_f_thread_semaphores_decrease_) || !defined(_di_f_thread_semaphores_decrease_by_) || !defined(_di_f_thread_semaphores_increase_) || !defined(_di_f_thread_semaphores_increase_by_) - f_status_t private_f_thread_semaphores_resize(const f_array_length_t length, f_thread_semaphores_t *semaphores) { + f_status_t private_f_thread_semaphores_resize(const f_array_length_t length, f_thread_semaphores_t * const semaphores) { f_status_t status = F_none; for (f_array_length_t i = length; i < semaphores->size; ++i) { @@ -697,7 +697,7 @@ extern "C" { #endif // !defined(_di_f_thread_semaphores_decrease_) || !defined(_di_f_thread_semaphores_decrease_by_) || !defined(_di_f_thread_semaphores_increase_) || !defined(_di_f_thread_semaphores_increase_by_) #if !defined(_di_f_thread_sets_adjust_) || !defined(_di_f_thread_sets_decimate_by_) - f_status_t private_f_thread_sets_adjust(const f_array_length_t length, f_thread_sets_t *sets) { + f_status_t private_f_thread_sets_adjust(const f_array_length_t length, f_thread_sets_t * const sets) { f_status_t status = F_none; for (f_array_length_t i = length; i < sets->size; ++i) { @@ -721,7 +721,7 @@ extern "C" { #endif // !defined(_di_f_thread_sets_adjust_) || !defined(_di_f_thread_sets_decimate_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_) - f_status_t private_f_thread_sets_resize(const f_array_length_t length, f_thread_sets_t *sets) { + f_status_t private_f_thread_sets_resize(const f_array_length_t length, f_thread_sets_t * const sets) { f_status_t status = F_none; for (f_array_length_t i = length; i < sets->size; ++i) { @@ -761,7 +761,7 @@ extern "C" { #endif // !defined(_di_f_thread_spins_adjust_) || !defined(_di_f_thread_spins_decimate_by_) || !defined(_di_f_thread_spins_decrease_) || !defined(_di_f_thread_spins_decrease_by_) || !defined(_di_f_thread_spins_increase_) || !defined(_di_f_thread_spins_increase_by_) || !defined(_di_f_thread_spins_resize_) #if !defined(_di_f_thread_spins_adjust_) || !defined(_di_f_thread_spins_decimate_by_) - f_status_t private_f_thread_spins_adjust(const f_array_length_t length, f_thread_spins_t *spins) { + f_status_t private_f_thread_spins_adjust(const f_array_length_t length, f_thread_spins_t * const spins) { f_status_t status = F_none; for (f_array_length_t i = length; i < spins->size; ++i) { @@ -785,7 +785,7 @@ extern "C" { #endif // !defined(_di_f_thread_spins_adjust_) || !defined(_di_f_thread_spins_decimate_by_) #if !defined(_di_f_thread_spins_decrease_) || !defined(_di_f_thread_spins_decrease_by_) || !defined(_di_f_thread_spins_increase_) || !defined(_di_f_thread_spins_increase_by_) - f_status_t private_f_thread_spins_resize(const f_array_length_t length, f_thread_spins_t *spins) { + f_status_t private_f_thread_spins_resize(const f_array_length_t length, f_thread_spins_t * const spins) { f_status_t status = F_none; diff --git a/level_0/f_thread/c/private-thread.h b/level_0/f_thread/c/private-thread.h index 6f9182b..f54fd5e 100644 --- a/level_0/f_thread/c/private-thread.h +++ b/level_0/f_thread/c/private-thread.h @@ -73,7 +73,7 @@ extern "C" { * @see f_thread_attributes_decimate_by() */ #if !defined(_di_f_thread_attributes_adjust_) || !defined(_di_f_thread_attributes_decimate_by_) - extern f_status_t private_f_thread_attributes_adjust(const f_array_length_t length, f_thread_attributes_t *attributes) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_attributes_adjust(const f_array_length_t length, f_thread_attributes_t * const attributes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_attributes_adjust_) || !defined(_di_f_thread_attributes_decimate_by_) /** @@ -97,7 +97,7 @@ extern "C" { * @see f_thread_attributes_increase_by() */ #if !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_increase_) || !defined(_di_f_thread_attributes_increase_by_) - extern f_status_t private_f_thread_attributes_resize(const f_array_length_t length, f_thread_attributes_t *attributes) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_attributes_resize(const f_array_length_t length, f_thread_attributes_t * const attributes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_attributes_decrease_by_) || !defined(_di_f_thread_attributes_increase_) || !defined(_di_f_thread_attributes_increase_by_) /** @@ -151,7 +151,7 @@ extern "C" { * @see f_thread_barriers_decimate_by() */ #if !defined(_di_f_thread_barriers_adjust_) || !defined(_di_f_thread_barriers_decimate_by_) - extern f_status_t private_f_thread_barriers_adjust(const f_array_length_t length, f_thread_barriers_t *barriers) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_barriers_adjust(const f_array_length_t length, f_thread_barriers_t * const barriers) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_barriers_adjust_) || !defined(_di_f_thread_barriers_decimate_by_) /** @@ -175,7 +175,7 @@ extern "C" { * @see f_thread_barriers_increase_by() */ #if !defined(_di_f_thread_barriers_decrease_by_) || !defined(_di_f_thread_barriers_increase_) || !defined(_di_f_thread_barriers_increase_by_) - extern f_status_t private_f_thread_barriers_resize(const f_array_length_t length, f_thread_barriers_t *barriers) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_barriers_resize(const f_array_length_t length, f_thread_barriers_t * const barriers) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_barriers_decrease_by_) || !defined(_di_f_thread_barriers_increase_) || !defined(_di_f_thread_barriers_increase_by_) /** @@ -229,7 +229,7 @@ extern "C" { * @see f_thread_barrier_attributes_decimate_by() */ #if !defined(_di_f_thread_barrier_attributes_adjust_) || !defined(_di_f_thread_barrier_attributes_decimate_by_) - extern f_status_t private_f_thread_barrier_attributes_adjust(const f_array_length_t length, f_thread_barrier_attributes_t *attributes) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_barrier_attributes_adjust(const f_array_length_t length, f_thread_barrier_attributes_t * const attributes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_barrier_attributes_adjust_) || !defined(_di_f_thread_barrier_attributes_decimate_by_) /** @@ -253,7 +253,7 @@ extern "C" { * @see f_thread_barrier_attributes_increase_by() */ #if !defined(_di_f_thread_barrier_attributes_decrease_by_) || !defined(_di_f_thread_barrier_attributes_increase_) || !defined(_di_f_thread_barrier_attributes_increase_by_) - extern f_status_t private_f_thread_barrier_attributes_resize(const f_array_length_t length, f_thread_barrier_attributes_t *attributes) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_barrier_attributes_resize(const f_array_length_t length, f_thread_barrier_attributes_t * const attributes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_barrier_attributes_decrease_by_) || !defined(_di_f_thread_barrier_attributes_increase_) || !defined(_di_f_thread_barrier_attributes_increase_by_) /** @@ -307,7 +307,7 @@ extern "C" { * @see f_thread_condition_attributes_decimate_by() */ #if !defined(_di_f_thread_condition_attributes_adjust_) || !defined(_di_f_thread_condition_attributes_decimate_by_) - extern f_status_t private_f_thread_condition_attributes_adjust(const f_array_length_t length, f_thread_condition_attributes_t *attributes) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_condition_attributes_adjust(const f_array_length_t length, f_thread_condition_attributes_t * const attributes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_condition_attributes_adjust_) || !defined(_di_f_thread_condition_attributes_decimate_by_) /** @@ -331,7 +331,7 @@ extern "C" { * @see f_thread_condition_attributes_increase_by() */ #if !defined(_di_f_thread_condition_attributes_decrease_by_) || !defined(_di_f_thread_condition_attributes_increase_) || !defined(_di_f_thread_condition_attributes_increase_by_) - extern f_status_t private_f_thread_condition_attributes_resize(const f_array_length_t length, f_thread_condition_attributes_t *attributes) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_condition_attributes_resize(const f_array_length_t length, f_thread_condition_attributes_t * const attributes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_condition_attributes_decrease_by_) || !defined(_di_f_thread_condition_attributes_increase_) || !defined(_di_f_thread_condition_attributes_increase_by_) /** @@ -385,7 +385,7 @@ extern "C" { * @see f_thread_conditions_decimate_by() */ #if !defined(_di_f_thread_conditions_adjust_) || !defined(_di_f_thread_conditions_decimate_by_) - extern f_status_t private_f_thread_conditions_adjust(const f_array_length_t length, f_thread_conditions_t *conditions) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_conditions_adjust(const f_array_length_t length, f_thread_conditions_t * const conditions) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_conditions_adjust_) || !defined(_di_f_thread_conditions_decimate_by_) /** @@ -409,7 +409,7 @@ extern "C" { * @see f_thread_conditions_increase_by() */ #if !defined(_di_f_thread_conditions_decrease_by_) || !defined(_di_f_thread_conditions_increase_) || !defined(_di_f_thread_conditions_increase_by_) - extern f_status_t private_f_thread_conditions_resize(const f_array_length_t length, f_thread_conditions_t *conditions) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_conditions_resize(const f_array_length_t length, f_thread_conditions_t * const conditions) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_conditions_decrease_by_) || !defined(_di_f_thread_conditions_increase_) || !defined(_di_f_thread_conditions_increase_by_) /** @@ -461,7 +461,7 @@ extern "C" { * @see f_thread_keys_decimate_by() */ #if !defined(_di_f_thread_keys_adjust_) || !defined(_di_f_thread_keys_decimate_by_) - extern f_status_t private_f_thread_keys_adjust(const f_array_length_t length, f_thread_keys_t *keys) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_keys_adjust(const f_array_length_t length, f_thread_keys_t * const keys) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_keys_adjust_) || !defined(_di_f_thread_keys_decimate_by_) /** @@ -485,7 +485,7 @@ extern "C" { * @see f_thread_keys_increase_by() */ #if !defined(_di_f_thread_keys_decrease_by_) || !defined(_di_f_thread_keys_increase_) || !defined(_di_f_thread_keys_increase_by_) - extern f_status_t private_f_thread_keys_resize(const f_array_length_t length, f_thread_keys_t *keys) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_keys_resize(const f_array_length_t length, f_thread_keys_t * const keys) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_keys_decrease_by_) || !defined(_di_f_thread_keys_increase_) || !defined(_di_f_thread_keys_increase_by_) /** @@ -537,7 +537,7 @@ extern "C" { * @see f_thread_locks_decimate_by() */ #if !defined(_di_f_thread_locks_adjust_) || !defined(_di_f_thread_locks_decimate_by_) - extern f_status_t private_f_thread_locks_adjust(const f_array_length_t length, f_thread_locks_t *locks) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_locks_adjust(const f_array_length_t length, f_thread_locks_t * const locks) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_locks_adjust_) || !defined(_di_f_thread_locks_decimate_by_) /** @@ -561,7 +561,7 @@ extern "C" { * @see f_thread_locks_increase_by() */ #if !defined(_di_f_thread_locks_decrease_by_) || !defined(_di_f_thread_locks_increase_) || !defined(_di_f_thread_locks_increase_by_) - extern f_status_t private_f_thread_locks_resize(const f_array_length_t length, f_thread_locks_t *locks) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_locks_resize(const f_array_length_t length, f_thread_locks_t * const locks) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_locks_decrease_by_) || !defined(_di_f_thread_locks_increase_) || !defined(_di_f_thread_locks_increase_by_) /** @@ -613,7 +613,7 @@ extern "C" { * @see f_thread_lock_attributes_decimate_by() */ #if !defined(_di_f_thread_lock_attributes_adjust_) || !defined(_di_f_thread_lock_attributes_decimate_by_) - extern f_status_t private_f_thread_lock_attributes_adjust(const f_array_length_t length, f_thread_lock_attributes_t *attributes) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_lock_attributes_adjust(const f_array_length_t length, f_thread_lock_attributes_t * const attributes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_lock_attributes_adjust_) || !defined(_di_f_thread_lock_attributes_decimate_by_) /** @@ -637,7 +637,7 @@ extern "C" { * @see f_thread_lock_attributes_increase_by() */ #if !defined(_di_f_thread_lock_attributes_decrease_by_) || !defined(_di_f_thread_lock_attributes_increase_) || !defined(_di_f_thread_lock_attributes_increase_by_) - extern f_status_t private_f_thread_lock_attributes_resize(const f_array_length_t length, f_thread_lock_attributes_t *attributes) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_lock_attributes_resize(const f_array_length_t length, f_thread_lock_attributes_t * const attributes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_lock_attributes_decrease_by_) || !defined(_di_f_thread_lock_attributes_increase_) || !defined(_di_f_thread_lock_attributes_increase_by_) /** @@ -689,7 +689,7 @@ extern "C" { * @see f_thread_mutex_attributes_decimate_by() */ #if !defined(_di_f_thread_mutex_attributes_adjust_) || !defined(_di_f_thread_mutex_attributes_decimate_by_) - extern f_status_t private_f_thread_mutex_attributes_adjust(const f_array_length_t length, f_thread_mutex_attributes_t *attributes) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_mutex_attributes_adjust(const f_array_length_t length, f_thread_mutex_attributes_t * const attributes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_mutex_attributes_adjust_) || !defined(_di_f_thread_mutex_attributes_decimate_by_) /** @@ -713,7 +713,7 @@ extern "C" { * @see f_thread_mutex_attributes_increase_by() */ #if !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_status_t private_f_thread_mutex_attributes_resize(const f_array_length_t length, f_thread_mutex_attributes_t *attributes) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_mutex_attributes_resize(const f_array_length_t length, f_thread_mutex_attributes_t * const attributes) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_mutex_attributes_decrease_by_) || !defined(_di_f_thread_mutex_attributes_increase_) || !defined(_di_f_thread_mutex_attributes_increase_by_) /** @@ -765,7 +765,7 @@ extern "C" { * @see f_thread_mutexs_decimate_by() */ #if !defined(_di_f_thread_mutexs_adjust_) || !defined(_di_f_thread_mutexs_decimate_by_) - extern f_status_t private_f_thread_mutexs_adjust(const f_array_length_t length, f_thread_mutexs_t *mutexs) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_mutexs_adjust(const f_array_length_t length, f_thread_mutexs_t * const mutexs) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_mutexs_adjust_) || !defined(_di_f_thread_mutexs_decimate_by_) /** @@ -789,7 +789,7 @@ extern "C" { * @see f_thread_mutexs_increase_by() */ #if !defined(_di_f_thread_mutexs_decrease_by_) || !defined(_di_f_thread_mutexs_increase_) || !defined(_di_f_thread_mutexs_increase_by_) - extern f_status_t private_f_thread_mutexs_resize(const f_array_length_t length, f_thread_mutexs_t *mutexs) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_mutexs_resize(const f_array_length_t length, f_thread_mutexs_t * const mutexs) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_mutexs_decrease_by_) || !defined(_di_f_thread_mutexs_increase_) || !defined(_di_f_thread_mutexs_increase_by_) /** @@ -841,7 +841,7 @@ extern "C" { * @see f_thread_semaphores_decimate_by() */ #if !defined(_di_f_thread_semaphores_adjust_) || !defined(_di_f_thread_semaphores_decimate_by_) - extern f_status_t private_f_thread_semaphores_adjust(const f_array_length_t length, f_thread_semaphores_t *semaphores) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_semaphores_adjust(const f_array_length_t length, f_thread_semaphores_t * const semaphores) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_semaphores_adjust_) || !defined(_di_f_thread_semaphores_decimate_by_) /** @@ -865,7 +865,7 @@ extern "C" { * @see f_thread_semaphores_increase_by() */ #if !defined(_di_f_thread_semaphores_decrease_by_) || !defined(_di_f_thread_semaphores_increase_) || !defined(_di_f_thread_semaphores_increase_by_) - extern f_status_t private_f_thread_semaphores_resize(const f_array_length_t length, f_thread_semaphores_t *semaphores) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_semaphores_resize(const f_array_length_t length, f_thread_semaphores_t * const semaphores) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_semaphores_decrease_by_) || !defined(_di_f_thread_semaphores_increase_) || !defined(_di_f_thread_semaphores_increase_by_) /** @@ -888,7 +888,7 @@ extern "C" { * @see f_thread_sets_decimate_by() */ #if !defined(_di_f_thread_sets_adjust_) || !defined(_di_f_thread_sets_decimate_by_) - extern f_status_t private_f_thread_sets_adjust(const f_array_length_t length, f_thread_sets_t *sets) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_sets_adjust(const f_array_length_t length, f_thread_sets_t * const sets) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_sets_adjust_) || !defined(_di_f_thread_sets_decimate_by_) /** @@ -912,7 +912,7 @@ extern "C" { * @see f_thread_sets_increase_by() */ #if !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_increase_) || !defined(_di_f_thread_sets_increase_by_) - extern f_status_t private_f_thread_sets_resize(const f_array_length_t length, f_thread_sets_t *sets) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_sets_resize(const f_array_length_t length, f_thread_sets_t * const sets) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_sets_decrease_by_) || !defined(_di_f_thread_sets_increase_) || !defined(_di_f_thread_sets_increase_by_) /** @@ -964,7 +964,7 @@ extern "C" { * @see f_thread_spins_decimate_by() */ #if !defined(_di_f_thread_spins_adjust_) || !defined(_di_f_thread_spins_decimate_by_) - extern f_status_t private_f_thread_spins_adjust(const f_array_length_t length, f_thread_spins_t *spins) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_spins_adjust(const f_array_length_t length, f_thread_spins_t * const spins) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_spins_adjust_) || !defined(_di_f_thread_spins_decimate_by_) /** @@ -988,7 +988,7 @@ extern "C" { * @see f_thread_spins_increase_by() */ #if !defined(_di_f_thread_spins_decrease_by_) || !defined(_di_f_thread_spins_increase_) || !defined(_di_f_thread_spins_increase_by_) - extern f_status_t private_f_thread_spins_resize(const f_array_length_t length, f_thread_spins_t *spins) F_attribute_visibility_internal_d; + extern f_status_t private_f_thread_spins_resize(const f_array_length_t length, f_thread_spins_t * const spins) F_attribute_visibility_internal_d; #endif // !defined(_di_f_thread_spins_decrease_by_) || !defined(_di_f_thread_spins_increase_) || !defined(_di_f_thread_spins_increase_by_) #ifdef __cplusplus diff --git a/level_0/f_thread/c/thread.c b/level_0/f_thread/c/thread.c index 1f301fe..577eb01 100644 --- a/level_0/f_thread/c/thread.c +++ b/level_0/f_thread/c/thread.c @@ -26,7 +26,7 @@ extern "C" { #endif // _di_f_thread_key_create_ #if defined(_pthread_attr_unsupported_) && !defined(_di_f_thread_attribute_affinity_get_) - f_status_t 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 * const affinity_set) { #ifndef _di_level_0_parameter_checking_ if (!affinity_set) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -34,7 +34,7 @@ extern "C" { return F_status_set_error(F_implemented_not); } #elif !defined(_di_f_thread_attribute_affinity_get_) - f_status_t 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 * const affinity_set) { #ifndef _di_level_0_parameter_checking_ if (!affinity_set) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -52,7 +52,7 @@ extern "C" { #endif // defined(_pthread_attr_unsupported_) && !defined(_di_f_thread_attribute_affinity_get_) #if defined(_pthread_attr_unsupported_) && !defined(_di_f_thread_attribute_affinity_set_) - f_status_t 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 * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -60,7 +60,7 @@ extern "C" { return F_status_set_error(F_implemented_not); } #elif !defined(_di_f_thread_attribute_affinity_set_) - f_status_t 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 * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -79,7 +79,7 @@ extern "C" { #endif // defined(_pthread_attr_unsupported_) && !defined(_di_f_thread_attribute_affinity_set_) #ifndef _di_f_thread_attribute_clock_get_ - f_status_t f_thread_attribute_clock_get(const f_thread_condition_attribute_t *attribute, clockid_t *id) { + f_status_t f_thread_attribute_clock_get(const f_thread_condition_attribute_t *attribute, clockid_t * const id) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); if (!id) return F_status_set_error(F_parameter); @@ -94,7 +94,7 @@ extern "C" { #endif // _di_f_thread_attribute_clock_get_ #ifndef _di_f_thread_attribute_clock_set_ - f_status_t f_thread_attribute_clock_set(const clockid_t id, f_thread_condition_attribute_t *attribute) { + f_status_t f_thread_attribute_clock_set(const clockid_t id, f_thread_condition_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -112,7 +112,7 @@ extern "C" { #endif // _di_f_thread_attribute_clock_set_ #ifndef _di_f_thread_attribute_condition_shared_get_ - f_status_t f_thread_attribute_condition_shared_get(const f_thread_condition_attribute_t *attribute, int *shared) { + f_status_t f_thread_attribute_condition_shared_get(const f_thread_condition_attribute_t *attribute, int * const shared) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); if (!shared) return F_status_set_error(F_parameter); @@ -127,7 +127,7 @@ extern "C" { #endif // _di_f_thread_attribute_condition_shared_get_ #ifndef _di_f_thread_attribute_condition_shared_set_ - f_status_t f_thread_attribute_condition_shared_set(const int shared, f_thread_condition_attribute_t *attribute) { + f_status_t f_thread_attribute_condition_shared_set(const int shared, f_thread_condition_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -145,7 +145,7 @@ extern "C" { #endif // _di_f_thread_attribute_condition_shared_set_ #ifndef _di_f_thread_attribute_create_ - f_status_t f_thread_attribute_create(f_thread_attribute_t *attribute) { + f_status_t f_thread_attribute_create(f_thread_attribute_t * const attribute) { const int error = pthread_attr_init(attribute); @@ -160,7 +160,7 @@ extern "C" { #endif // _di_f_thread_attribute_create_ #ifndef _di_f_thread_attribute_default_get_ - f_status_t f_thread_attribute_default_get(f_thread_attribute_t *attribute) { + f_status_t f_thread_attribute_default_get(f_thread_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -178,7 +178,7 @@ extern "C" { #endif // _di_f_thread_attribute_default_get_ #ifndef _di_f_thread_attribute_default_set_ - f_status_t f_thread_attribute_default_set(f_thread_attribute_t *attribute) { + f_status_t f_thread_attribute_default_set(f_thread_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -207,7 +207,7 @@ extern "C" { #endif // _di_f_thread_attribute_delete_ #ifndef _di_f_thread_attribute_detach_get_ - f_status_t 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 * const state) { #ifndef _di_level_0_parameter_checking_ if (!state) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -225,7 +225,7 @@ extern "C" { #endif // _di_f_thread_attribute_detach_get_ #ifndef _di_f_thread_attribute_detach_set_ - f_status_t 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 * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -243,7 +243,7 @@ extern "C" { #endif // _di_f_thread_attribute_detach_set_ #ifndef _di_f_thread_attribute_guard_get_ - f_status_t 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 * const guard) { #ifndef _di_level_0_parameter_checking_ if (!guard) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -261,7 +261,7 @@ extern "C" { #endif // _di_f_thread_attribute_guard_get_ #ifndef _di_f_thread_attribute_guard_set_ - f_status_t 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 * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -279,7 +279,7 @@ extern "C" { #endif // _di_f_thread_attribute_guard_set_ #ifndef _di_f_thread_attribute_scheduler_inherit_get_ - f_status_t 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 * const inherit) { #ifndef _di_level_0_parameter_checking_ if (!inherit) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -297,7 +297,7 @@ extern "C" { #endif // _di_f_thread_attribute_scheduler_inherit_get_ #ifndef _di_f_thread_attribute_scheduler_inherit_set_ - f_status_t 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 * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -315,7 +315,7 @@ extern "C" { #endif // _di_f_thread_attribute_scheduler_inherit_set_ #ifndef _di_f_thread_attribute_scheduler_parameter_get_ - f_status_t 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 * const parameter) { #ifndef _di_level_0_parameter_checking_ if (!parameter) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -333,7 +333,7 @@ extern "C" { #endif // _di_f_thread_attribute_scheduler_parameter_get_ #ifndef _di_f_thread_attribute_scheduler_parameter_set_ - f_status_t 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 * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -351,7 +351,7 @@ extern "C" { #endif // _di_f_thread_attribute_scheduler_parameter_set_ #ifndef _di_f_thread_attribute_scheduler_policy_get_ - f_status_t 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 * const policy) { #ifndef _di_level_0_parameter_checking_ if (!policy) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -369,7 +369,7 @@ extern "C" { #endif // _di_f_thread_attribute_scheduler_policy_get_ #ifndef _di_f_thread_attribute_scheduler_policy_set_ - f_status_t 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 * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -387,7 +387,7 @@ extern "C" { #endif // _di_f_thread_attribute_scheduler_policy_set_ #ifndef _di_f_thread_attribute_scope_get_ - f_status_t 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 * const scope) { #ifndef _di_level_0_parameter_checking_ if (!scope) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -405,7 +405,7 @@ extern "C" { #endif // _di_f_thread_attribute_scope_get_ #ifndef _di_f_thread_attribute_scope_set_ - f_status_t 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 * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -424,7 +424,7 @@ extern "C" { #endif // _di_f_thread_attribute_scope_set_ #ifndef _di_f_thread_attribute_stack_get_ - f_status_t 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 * const 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_ @@ -443,7 +443,7 @@ extern "C" { #endif // _di_f_thread_attribute_stack_get_ #ifndef _di_f_thread_attribute_stack_set_ - f_status_t 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 * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -462,7 +462,7 @@ extern "C" { #endif // _di_f_thread_attribute_stack_set_ #ifndef _di_f_thread_attribute_stack_size_get_ - f_status_t f_thread_attribute_stack_size_get(const f_thread_attribute_t attribute, size_t *stack_size) { + f_status_t f_thread_attribute_stack_size_get(const f_thread_attribute_t attribute, size_t * const stack_size) { #ifndef _di_level_0_parameter_checking_ if (!stack_size) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -478,7 +478,7 @@ extern "C" { #endif // _di_f_thread_attribute_stack_size_get_ #ifndef _di_f_thread_attribute_stack_size_set_ - f_status_t f_thread_attribute_stack_size_set(const size_t stack_size, f_thread_attribute_t *attribute) { + f_status_t f_thread_attribute_stack_size_set(const size_t stack_size, f_thread_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -496,7 +496,7 @@ extern "C" { #endif // _di_f_thread_attribute_stack_size_set_ #ifndef _di_f_thread_attributes_adjust_ - f_status_t f_thread_attributes_adjust(const f_array_length_t length, f_thread_attributes_t *attributes) { + f_status_t f_thread_attributes_adjust(const f_array_length_t length, f_thread_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!attributes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -506,7 +506,7 @@ extern "C" { #endif // _di_f_thread_attributes_adjust_ #ifndef _di_f_thread_attributes_decimate_by_ - f_status_t f_thread_attributes_decimate_by(const f_array_length_t amount, f_thread_attributes_t *attributes) { + f_status_t f_thread_attributes_decimate_by(const f_array_length_t amount, f_thread_attributes_t * const 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); @@ -521,7 +521,7 @@ extern "C" { #endif // _di_f_thread_attributes_decimate_by_ #ifndef _di_f_thread_attributes_decrease_by_ - f_status_t f_thread_attributes_decrease_by(const f_array_length_t amount, f_thread_attributes_t *attributes) { + f_status_t f_thread_attributes_decrease_by(const f_array_length_t amount, f_thread_attributes_t * const 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); @@ -536,7 +536,7 @@ extern "C" { #endif // _di_f_thread_attributes_decrease_by_ #ifndef _di_f_thread_attributes_increase_ - f_status_t f_thread_attributes_increase(const uint16_t step, f_thread_attributes_t *attributes) { + f_status_t f_thread_attributes_increase(const uint16_t step, f_thread_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!attributes) return F_status_set_error(F_parameter); @@ -561,7 +561,7 @@ extern "C" { #endif // _di_f_thread_attributes_increase_ #ifndef _di_f_thread_attributes_increase_by_ - f_status_t f_thread_attributes_increase_by(const f_array_length_t amount, f_thread_attributes_t *attributes) { + f_status_t f_thread_attributes_increase_by(const f_array_length_t amount, f_thread_attributes_t * const 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); @@ -580,7 +580,7 @@ extern "C" { #endif // _di_f_thread_attributes_increase_by_ #ifndef _di_f_thread_attributes_resize_ - f_status_t f_thread_attributes_resize(const f_array_length_t length, f_thread_attributes_t *attributes) { + f_status_t f_thread_attributes_resize(const f_array_length_t length, f_thread_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!attributes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -590,7 +590,7 @@ extern "C" { #endif // _di_f_thread_attributes_resize_ #ifndef _di_f_thread_barrier_attribute_create_ - f_status_t f_thread_barrier_attribute_create(f_thread_barrier_attribute_t *attribute) { + f_status_t f_thread_barrier_attribute_create(f_thread_barrier_attribute_t * const attribute) { const int error = pthread_barrierattr_init(attribute); @@ -615,7 +615,7 @@ extern "C" { #endif // _di_f_thread_barrier_attribute_delete_ #ifndef _di_f_thread_barrier_attribute_shared_get_ - f_status_t f_thread_barrier_attribute_shared_get(const f_thread_barrier_attribute_t *attribute, int *shared) { + f_status_t f_thread_barrier_attribute_shared_get(const f_thread_barrier_attribute_t * const attribute, int * const shared) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); if (!shared) return F_status_set_error(F_parameter); @@ -630,7 +630,7 @@ extern "C" { #endif // _di_f_thread_barrier_attribute_shared_get_ #ifndef _di_f_thread_barrier_attribute_shared_set_ - f_status_t f_thread_barrier_attribute_shared_set(const int shared, f_thread_barrier_attribute_t *attribute) { + f_status_t f_thread_barrier_attribute_shared_set(const int shared, f_thread_barrier_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -648,7 +648,7 @@ extern "C" { #endif // _di_f_thread_barrier_attribute_shared_set_ #ifndef _di_f_thread_barrier_attributes_adjust_ - f_status_t f_thread_barrier_attributes_adjust(const f_array_length_t length, f_thread_barrier_attributes_t *attributes) { + f_status_t f_thread_barrier_attributes_adjust(const f_array_length_t length, f_thread_barrier_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!attributes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -658,7 +658,7 @@ extern "C" { #endif // _di_f_thread_barrier_attributes_adjust_ #ifndef _di_f_thread_barrier_attributes_decimate_by_ - f_status_t f_thread_barrier_attributes_decimate_by(const f_array_length_t amount, f_thread_barrier_attributes_t *attributes) { + f_status_t f_thread_barrier_attributes_decimate_by(const f_array_length_t amount, f_thread_barrier_attributes_t * const 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); @@ -673,7 +673,7 @@ extern "C" { #endif // _di_f_thread_barrier_attributes_decimate_by_ #ifndef _di_f_thread_barrier_attributes_decrease_by_ - f_status_t f_thread_barrier_attributes_decrease_by(const f_array_length_t amount, f_thread_barrier_attributes_t *attributes) { + f_status_t f_thread_barrier_attributes_decrease_by(const f_array_length_t amount, f_thread_barrier_attributes_t * const 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); @@ -688,7 +688,7 @@ extern "C" { #endif // _di_f_thread_barrier_attributes_decrease_by_ #ifndef _di_f_thread_barrier_attributes_increase_ - f_status_t f_thread_barrier_attributes_increase(const uint16_t step, f_thread_barrier_attributes_t *attributes) { + f_status_t f_thread_barrier_attributes_increase(const uint16_t step, f_thread_barrier_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!attributes) return F_status_set_error(F_parameter); @@ -713,7 +713,7 @@ extern "C" { #endif // _di_f_thread_barrier_attributes_increase_ #ifndef _di_f_thread_barrier_attributes_increase_by_ - f_status_t f_thread_barrier_attributes_increase_by(const f_array_length_t amount, f_thread_barrier_attributes_t *attributes) { + f_status_t f_thread_barrier_attributes_increase_by(const f_array_length_t amount, f_thread_barrier_attributes_t * const 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); @@ -732,7 +732,7 @@ extern "C" { #endif // _di_f_thread_barrier_attributes_increase_by_ #ifndef _di_f_thread_barrier_attributes_resize_ - f_status_t f_thread_barrier_attributes_resize(const f_array_length_t length, f_thread_barrier_attributes_t *attributes) { + f_status_t f_thread_barrier_attributes_resize(const f_array_length_t length, f_thread_barrier_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!attributes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -742,7 +742,7 @@ extern "C" { #endif // _di_f_thread_barrier_attributes_resize_ #ifndef _di_f_thread_barrier_create_ - f_status_t f_thread_barrier_create(const unsigned int count, f_thread_barrier_attribute_t * const attribute, f_thread_barrier_t *barrier) { + f_status_t f_thread_barrier_create(const unsigned int count, f_thread_barrier_attribute_t * const attribute, f_thread_barrier_t * const barrier) { const int error = pthread_barrier_init(barrier, attribute, count); @@ -767,7 +767,7 @@ extern "C" { #endif // _di_f_thread_barrier_delete_ #ifndef _di_f_thread_barrier_wait_ - f_status_t f_thread_barrier_wait(f_thread_barrier_t *barrier, int *result) { + f_status_t f_thread_barrier_wait(f_thread_barrier_t * const barrier, int * const result) { #ifndef _di_level_0_parameter_checking_ if (!barrier) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -784,7 +784,7 @@ extern "C" { #endif // _di_f_thread_barrier_wait_ #ifndef _di_f_thread_barriers_adjust_ - f_status_t f_thread_barriers_adjust(const f_array_length_t length, f_thread_barriers_t *barriers) { + f_status_t f_thread_barriers_adjust(const f_array_length_t length, f_thread_barriers_t * const barriers) { #ifndef _di_level_0_parameter_checking_ if (!barriers) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -794,7 +794,7 @@ extern "C" { #endif // _di_f_thread_barriers_adjust_ #ifndef _di_f_thread_barriers_decimate_by_ - f_status_t f_thread_barriers_decimate_by(const f_array_length_t amount, f_thread_barriers_t *barriers) { + f_status_t f_thread_barriers_decimate_by(const f_array_length_t amount, f_thread_barriers_t * const barriers) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!barriers) return F_status_set_error(F_parameter); @@ -809,7 +809,7 @@ extern "C" { #endif // _di_f_thread_barriers_decimate_by_ #ifndef _di_f_thread_barriers_decrease_by_ - f_status_t f_thread_barriers_decrease_by(const f_array_length_t amount, f_thread_barriers_t *barriers) { + f_status_t f_thread_barriers_decrease_by(const f_array_length_t amount, f_thread_barriers_t * const barriers) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!barriers) return F_status_set_error(F_parameter); @@ -824,7 +824,7 @@ extern "C" { #endif // _di_f_thread_barriers_decrease_by_ #ifndef _di_f_thread_barriers_increase_ - f_status_t f_thread_barriers_increase(const uint16_t step, f_thread_barriers_t *barriers) { + f_status_t f_thread_barriers_increase(const uint16_t step, f_thread_barriers_t * const barriers) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!barriers) return F_status_set_error(F_parameter); @@ -849,7 +849,7 @@ extern "C" { #endif // _di_f_thread_barriers_increase_ #ifndef _di_f_thread_barriers_increase_by_ - f_status_t f_thread_barriers_increase_by(const f_array_length_t amount, f_thread_barriers_t *barriers) { + f_status_t f_thread_barriers_increase_by(const f_array_length_t amount, f_thread_barriers_t * const barriers) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!barriers) return F_status_set_error(F_parameter); @@ -868,7 +868,7 @@ extern "C" { #endif // _di_f_thread_barriers_increase_by_ #ifndef _di_f_thread_barriers_resize_ - f_status_t f_thread_barriers_resize(const f_array_length_t length, f_thread_barriers_t *barriers) { + f_status_t f_thread_barriers_resize(const f_array_length_t length, f_thread_barriers_t * const barriers) { #ifndef _di_level_0_parameter_checking_ if (!barriers) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -899,7 +899,7 @@ extern "C" { #endif // _di_f_thread_cancel_ #ifndef _di_f_thread_cancel_state_set_ - f_status_t f_thread_cancel_state_set(const int state, int *previous) { + f_status_t f_thread_cancel_state_set(const int state, int * const previous) { int error = 0; @@ -933,7 +933,7 @@ extern "C" { #endif // _di_f_thread_cancel_test_ #ifndef _di_f_thread_cancel_type_set_ - f_status_t f_thread_cancel_type_set(const int type, int *previous) { + f_status_t f_thread_cancel_type_set(const int type, int * const previous) { const int error = pthread_setcanceltype(type, previous); @@ -948,7 +948,7 @@ extern "C" { #endif // _di_f_thread_cancel_type_set_ #ifndef _di_f_thread_clock_get_id_ - f_status_t 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 * const id_clock) { const int error = pthread_getcpuclockid(id_thread, id_clock); @@ -975,7 +975,7 @@ extern "C" { #endif // _di_f_thread_compare_ #ifndef _di_f_thread_attribute_concurrency_get_ - f_status_t f_thread_attribute_concurrency_get(int *level) { + f_status_t f_thread_attribute_concurrency_get(int * const level) { #ifndef _di_level_0_parameter_checking_ if (!level) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1003,7 +1003,7 @@ extern "C" { #endif // _di_f_thread_attribute_concurrency_set_ #ifndef _di_f_thread_condition_attribute_create_ - f_status_t f_thread_condition_attribute_create(f_thread_condition_attribute_t *attribute) { + f_status_t f_thread_condition_attribute_create(f_thread_condition_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1032,7 +1032,7 @@ extern "C" { #endif // _di_f_thread_condition_attribute_delete_ #ifndef _di_f_thread_condition_attributes_adjust_ - f_status_t f_thread_condition_attributes_adjust(const f_array_length_t length, f_thread_condition_attributes_t *attributes) { + f_status_t f_thread_condition_attributes_adjust(const f_array_length_t length, f_thread_condition_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!attributes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1042,7 +1042,7 @@ extern "C" { #endif // _di_f_thread_condition_attributes_adjust_ #ifndef _di_f_thread_condition_attributes_decimate_by_ - f_status_t f_thread_condition_attributes_decimate_by(const f_array_length_t amount, f_thread_condition_attributes_t *attributes) { + f_status_t f_thread_condition_attributes_decimate_by(const f_array_length_t amount, f_thread_condition_attributes_t * const 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); @@ -1057,7 +1057,7 @@ extern "C" { #endif // _di_f_thread_condition_attributes_decimate_by_ #ifndef _di_f_thread_condition_attributes_decrease_by_ - f_status_t f_thread_condition_attributes_decrease_by(const f_array_length_t amount, f_thread_condition_attributes_t *attributes) { + f_status_t f_thread_condition_attributes_decrease_by(const f_array_length_t amount, f_thread_condition_attributes_t * const 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); @@ -1072,7 +1072,7 @@ extern "C" { #endif // _di_f_thread_condition_attributes_decrease_by_ #ifndef _di_f_thread_condition_attributes_increase_ - f_status_t f_thread_condition_attributes_increase(const uint16_t step, f_thread_condition_attributes_t *attributes) { + f_status_t f_thread_condition_attributes_increase(const uint16_t step, f_thread_condition_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!attributes) return F_status_set_error(F_parameter); @@ -1097,7 +1097,7 @@ extern "C" { #endif // _di_f_thread_condition_attributes_increase_ #ifndef _di_f_thread_condition_attributes_increase_by_ - f_status_t f_thread_condition_attributes_increase_by(const f_array_length_t amount, f_thread_condition_attributes_t *attributes) { + f_status_t f_thread_condition_attributes_increase_by(const f_array_length_t amount, f_thread_condition_attributes_t * const 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); @@ -1116,7 +1116,7 @@ extern "C" { #endif // _di_f_thread_condition_attributes_increase_by_ #ifndef _di_f_thread_condition_attributes_resize_ - f_status_t f_thread_condition_attributes_resize(const f_array_length_t length, f_thread_condition_attributes_t *attributes) { + f_status_t f_thread_condition_attributes_resize(const f_array_length_t length, f_thread_condition_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!attributes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1126,7 +1126,7 @@ extern "C" { #endif // _di_f_thread_condition_attributes_resize_ #ifndef _di_f_thread_condition_create_ - f_status_t f_thread_condition_create(const f_thread_condition_attribute_t *attribute, f_thread_condition_t *condition) { + f_status_t f_thread_condition_create(const f_thread_condition_attribute_t *attribute, f_thread_condition_t * const condition) { #ifndef _di_level_0_parameter_checking_ if (!condition) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1157,7 +1157,7 @@ extern "C" { #endif // _di_f_thread_condition_delete_ #ifndef _di_f_thread_condition_signal_all_ - f_status_t f_thread_condition_signal_all(f_thread_condition_t *condition) { + f_status_t f_thread_condition_signal_all(f_thread_condition_t * const condition) { #ifndef _di_level_0_parameter_checking_ if (!condition) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1175,7 +1175,7 @@ extern "C" { #endif // _di_f_thread_condition_signal_all_ #ifndef _di_f_thread_condition_signal_ - f_status_t f_thread_condition_signal(f_thread_condition_t *condition) { + f_status_t f_thread_condition_signal(f_thread_condition_t * const condition) { #ifndef _di_level_0_parameter_checking_ if (!condition) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1193,7 +1193,7 @@ extern "C" { #endif // _di_f_thread_condition_signal_ #ifndef _di_f_thread_condition_wait_ - f_status_t 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 * const condition, f_thread_mutex_t * const 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); @@ -1215,7 +1215,7 @@ extern "C" { #endif // _di_f_thread_condition_wait_ #ifndef _di_f_thread_condition_wait_timed_ - f_status_t 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 * const condition, f_thread_mutex_t * const 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); @@ -1238,7 +1238,7 @@ extern "C" { #endif // _di_f_thread_condition_wait_timed_ #ifndef _di_f_thread_conditions_adjust_ - f_status_t f_thread_conditions_adjust(const f_array_length_t length, f_thread_conditions_t *conditions) { + f_status_t f_thread_conditions_adjust(const f_array_length_t length, f_thread_conditions_t * const conditions) { #ifndef _di_level_0_parameter_checking_ if (!conditions) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1248,7 +1248,7 @@ extern "C" { #endif // _di_f_thread_conditions_adjust_ #ifndef _di_f_thread_conditions_decimate_by_ - f_status_t f_thread_conditions_decimate_by(const f_array_length_t amount, f_thread_conditions_t *conditions) { + f_status_t f_thread_conditions_decimate_by(const f_array_length_t amount, f_thread_conditions_t * const 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); @@ -1263,7 +1263,7 @@ extern "C" { #endif // _di_f_thread_conditions_decimate_by_ #ifndef _di_f_thread_conditions_decrease_by_ - f_status_t f_thread_conditions_decrease_by(const f_array_length_t amount, f_thread_conditions_t *conditions) { + f_status_t f_thread_conditions_decrease_by(const f_array_length_t amount, f_thread_conditions_t * const 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); @@ -1278,7 +1278,7 @@ extern "C" { #endif // _di_f_thread_conditions_decrease_by_ #ifndef _di_f_thread_conditions_increase_ - f_status_t f_thread_conditions_increase(const uint16_t step, f_thread_conditions_t *conditions) { + f_status_t f_thread_conditions_increase(const uint16_t step, f_thread_conditions_t * const conditions) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!conditions) return F_status_set_error(F_parameter); @@ -1303,7 +1303,7 @@ extern "C" { #endif // _di_f_thread_conditions_increase_ #ifndef _di_f_thread_conditions_increase_by_ - f_status_t f_thread_conditions_increase_by(const f_array_length_t amount, f_thread_conditions_t *conditions) { + f_status_t f_thread_conditions_increase_by(const f_array_length_t amount, f_thread_conditions_t * const 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); @@ -1322,7 +1322,7 @@ extern "C" { #endif // _di_f_thread_conditions_increase_by_ #ifndef _di_f_thread_conditions_resize_ - f_status_t f_thread_conditions_resize(const f_array_length_t length, f_thread_conditions_t *conditions) { + f_status_t f_thread_conditions_resize(const f_array_length_t length, f_thread_conditions_t * const conditions) { #ifndef _di_level_0_parameter_checking_ if (!conditions) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1332,7 +1332,7 @@ extern "C" { #endif // _di_f_thread_conditions_resize_ #ifndef _di_f_thread_create_ - f_status_t 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 * const id, void *(*routine) (void *), void *argument) { #ifndef _di_level_0_parameter_checking_ if (!id) return F_status_set_error(F_parameter); if (!routine) return F_status_set_error(F_parameter); @@ -1438,7 +1438,7 @@ extern "C" { #endif // _di_f_thread_join_timed_ #ifndef _di_f_thread_key_create_ - f_status_t 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 * const 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); @@ -1498,7 +1498,7 @@ extern "C" { #endif // _di_f_thread_key_set_ #ifndef _di_f_thread_keys_adjust_ - f_status_t f_thread_keys_adjust(const f_array_length_t length, f_thread_keys_t *keys) { + f_status_t f_thread_keys_adjust(const f_array_length_t length, f_thread_keys_t * const keys) { #ifndef _di_level_0_parameter_checking_ if (!keys) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1508,7 +1508,7 @@ extern "C" { #endif // _di_f_thread_keys_adjust_ #ifndef _di_f_thread_keys_decimate_by_ - f_status_t f_thread_keys_decimate_by(const f_array_length_t amount, f_thread_keys_t *keys) { + f_status_t f_thread_keys_decimate_by(const f_array_length_t amount, f_thread_keys_t * const 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); @@ -1523,7 +1523,7 @@ extern "C" { #endif // _di_f_thread_keys_decimate_by_ #ifndef _di_f_thread_keys_decrease_by_ - f_status_t f_thread_keys_decrease_by(const f_array_length_t amount, f_thread_keys_t *keys) { + f_status_t f_thread_keys_decrease_by(const f_array_length_t amount, f_thread_keys_t * const 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); @@ -1538,7 +1538,7 @@ extern "C" { #endif // _di_f_thread_keys_decrease_by_ #ifndef _di_f_thread_keys_increase_ - f_status_t f_thread_keys_increase(const uint16_t step, f_thread_keys_t *keys) { + f_status_t f_thread_keys_increase(const uint16_t step, f_thread_keys_t * const keys) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!keys) return F_status_set_error(F_parameter); @@ -1563,7 +1563,7 @@ extern "C" { #endif // _di_f_thread_keys_increase_ #ifndef _di_f_thread_keys_increase_by_ - f_status_t f_thread_keys_increase_by(const f_array_length_t amount, f_thread_keys_t *keys) { + f_status_t f_thread_keys_increase_by(const f_array_length_t amount, f_thread_keys_t * const 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); @@ -1582,7 +1582,7 @@ extern "C" { #endif // _di_f_thread_keys_increase_by_ #ifndef _di_f_thread_keys_resize_ - f_status_t f_thread_keys_resize(const f_array_length_t length, f_thread_keys_t *keys) { + f_status_t f_thread_keys_resize(const f_array_length_t length, f_thread_keys_t * const keys) { #ifndef _di_level_0_parameter_checking_ if (!keys) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1592,7 +1592,7 @@ extern "C" { #endif // _di_f_thread_keys_resize_ #ifndef _di_f_thread_lock_attribute_create_ - f_status_t f_thread_lock_attribute_create(f_thread_lock_attribute_t *attribute) { + f_status_t f_thread_lock_attribute_create(f_thread_lock_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1625,7 +1625,7 @@ extern "C" { #endif // _di_f_thread_lock_attribute_delete_ #ifndef _di_f_thread_lock_attribute_shared_get_ - f_status_t f_thread_lock_attribute_shared_get(const f_thread_lock_attribute_t *attribute, int *shared) { + f_status_t f_thread_lock_attribute_shared_get(const f_thread_lock_attribute_t *attribute, int * const shared) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); if (!shared) return F_status_set_error(F_parameter); @@ -1640,7 +1640,7 @@ extern "C" { #endif // _di_f_thread_lock_attribute_shared_get_ #ifndef _di_f_thread_lock_attribute_shared_set_ - f_status_t f_thread_lock_attribute_shared_set(const int shared, f_thread_lock_attribute_t *attribute) { + f_status_t f_thread_lock_attribute_shared_set(const int shared, f_thread_lock_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1658,7 +1658,7 @@ extern "C" { #endif // _di_f_thread_lock_attribute_shared_set_ #ifndef _di_f_thread_lock_attributes_adjust_ - f_status_t f_thread_lock_attributes_adjust(const f_array_length_t length, f_thread_lock_attributes_t *attributes) { + f_status_t f_thread_lock_attributes_adjust(const f_array_length_t length, f_thread_lock_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!attributes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1668,7 +1668,7 @@ extern "C" { #endif // _di_f_thread_lock_attributes_adjust_ #ifndef _di_f_thread_lock_attributes_decimate_by_ - f_status_t f_thread_lock_attributes_decimate_by(const f_array_length_t amount, f_thread_lock_attributes_t *attributes) { + f_status_t f_thread_lock_attributes_decimate_by(const f_array_length_t amount, f_thread_lock_attributes_t * const 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); @@ -1683,7 +1683,7 @@ extern "C" { #endif // _di_f_thread_lock_attributes_decimate_by_ #ifndef _di_f_thread_lock_attributes_decrease_by_ - f_status_t f_thread_lock_attributes_decrease_by(const f_array_length_t amount, f_thread_lock_attributes_t *attributes) { + f_status_t f_thread_lock_attributes_decrease_by(const f_array_length_t amount, f_thread_lock_attributes_t * const 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); @@ -1698,7 +1698,7 @@ extern "C" { #endif // _di_f_thread_lock_attributes_decrease_by_ #ifndef _di_f_thread_lock_attributes_increase_ - f_status_t f_thread_lock_attributes_increase(const uint16_t step, f_thread_lock_attributes_t *attributes) { + f_status_t f_thread_lock_attributes_increase(const uint16_t step, f_thread_lock_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!attributes) return F_status_set_error(F_parameter); @@ -1723,7 +1723,7 @@ extern "C" { #endif // _di_f_thread_lock_attributes_increase_ #ifndef _di_f_thread_lock_attributes_increase_by_ - f_status_t f_thread_lock_attributes_increase_by(const f_array_length_t amount, f_thread_lock_attributes_t *attributes) { + f_status_t f_thread_lock_attributes_increase_by(const f_array_length_t amount, f_thread_lock_attributes_t * const 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); @@ -1742,7 +1742,7 @@ extern "C" { #endif // _di_f_thread_lock_attributes_increase_by_ #ifndef _di_f_thread_lock_attributes_resize_ - f_status_t f_thread_lock_attributes_resize(const f_array_length_t length, f_thread_lock_attributes_t *attributes) { + f_status_t f_thread_lock_attributes_resize(const f_array_length_t length, f_thread_lock_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!attributes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1752,7 +1752,7 @@ extern "C" { #endif // _di_f_thread_lock_attributes_resize_ #ifndef _di_f_thread_lock_create_ - f_status_t f_thread_lock_create(const f_thread_lock_attribute_t *attribute, f_thread_lock_t *lock) { + f_status_t f_thread_lock_create(const f_thread_lock_attribute_t *attribute, f_thread_lock_t * const lock) { #ifndef _di_level_0_parameter_checking_ if (!lock) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1781,7 +1781,7 @@ extern "C" { #endif // _di_f_thread_lock_delete_ #ifndef _di_f_thread_lock_read_ - f_status_t f_thread_lock_read(f_thread_lock_t *lock) { + f_status_t f_thread_lock_read(f_thread_lock_t * const lock) { #ifndef _di_level_0_parameter_checking_ if (!lock) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1802,7 +1802,7 @@ extern "C" { #endif // _di_f_thread_lock_read_ #ifndef _di_f_thread_lock_read_timed_ - f_status_t f_thread_lock_read_timed(const struct timespec *timeout, f_thread_lock_t *lock) { + f_status_t f_thread_lock_read_timed(const struct timespec *timeout, f_thread_lock_t * const lock) { #ifndef _di_level_0_parameter_checking_ if (!timeout) return F_status_set_error(F_parameter); if (!lock) return F_status_set_error(F_parameter); @@ -1824,7 +1824,7 @@ extern "C" { #endif // _di_f_thread_lock_read_timed_ #ifndef _di_f_thread_lock_read_try_ - f_status_t f_thread_lock_read_try(f_thread_lock_t *lock) { + f_status_t f_thread_lock_read_try(f_thread_lock_t * const lock) { #ifndef _di_level_0_parameter_checking_ if (!lock) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1844,7 +1844,7 @@ extern "C" { #endif // _di_f_thread_lock_read_try_ #ifndef _di_f_thread_lock_write_ - f_status_t f_thread_lock_write(f_thread_lock_t *lock) { + f_status_t f_thread_lock_write(f_thread_lock_t * const lock) { #ifndef _di_level_0_parameter_checking_ if (!lock) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1864,7 +1864,7 @@ extern "C" { #endif // _di_f_thread_lock_write_ #ifndef _di_f_thread_lock_write_timed_ - f_status_t f_thread_lock_write_timed(const struct timespec *timeout, f_thread_lock_t *lock) { + f_status_t f_thread_lock_write_timed(const struct timespec *timeout, f_thread_lock_t * const lock) { #ifndef _di_level_0_parameter_checking_ if (!timeout) return F_status_set_error(F_parameter); if (!lock) return F_status_set_error(F_parameter); @@ -1885,7 +1885,7 @@ extern "C" { #endif // _di_f_thread_lock_write_timed_ #ifndef _di_f_thread_lock_write_try_ - f_status_t f_thread_lock_write_try(f_thread_lock_t *lock) { + f_status_t f_thread_lock_write_try(f_thread_lock_t * const lock) { #ifndef _di_level_0_parameter_checking_ if (!lock) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1905,7 +1905,7 @@ extern "C" { #endif // _di_f_thread_lock_write_try_ #ifndef _di_f_thread_locks_adjust_ - f_status_t f_thread_locks_adjust(const f_array_length_t length, f_thread_locks_t *locks) { + f_status_t f_thread_locks_adjust(const f_array_length_t length, f_thread_locks_t * const locks) { #ifndef _di_level_0_parameter_checking_ if (!locks) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1915,7 +1915,7 @@ extern "C" { #endif // _di_f_thread_locks_adjust_ #ifndef _di_f_thread_locks_decimate_by_ - f_status_t f_thread_locks_decimate_by(const f_array_length_t amount, f_thread_locks_t *locks) { + f_status_t f_thread_locks_decimate_by(const f_array_length_t amount, f_thread_locks_t * const 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); @@ -1930,7 +1930,7 @@ extern "C" { #endif // _di_f_thread_locks_decimate_by_ #ifndef _di_f_thread_locks_decrease_by_ - f_status_t f_thread_locks_decrease_by(const f_array_length_t amount, f_thread_locks_t *locks) { + f_status_t f_thread_locks_decrease_by(const f_array_length_t amount, f_thread_locks_t * const 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); @@ -1945,7 +1945,7 @@ extern "C" { #endif // _di_f_thread_locks_decrease_by_ #ifndef _di_f_thread_locks_increase_ - f_status_t f_thread_locks_increase(const uint16_t step, f_thread_locks_t *locks) { + f_status_t f_thread_locks_increase(const uint16_t step, f_thread_locks_t * const locks) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!locks) return F_status_set_error(F_parameter); @@ -1970,7 +1970,7 @@ extern "C" { #endif // _di_f_thread_locks_increase_ #ifndef _di_f_thread_locks_increase_by_ - f_status_t f_thread_locks_increase_by(const f_array_length_t amount, f_thread_locks_t *locks) { + f_status_t f_thread_locks_increase_by(const f_array_length_t amount, f_thread_locks_t * const 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); @@ -1989,7 +1989,7 @@ extern "C" { #endif // _di_f_thread_locks_increase_by_ #ifndef _di_f_thread_locks_resize_ - f_status_t f_thread_locks_resize(const f_array_length_t length, f_thread_locks_t *locks) { + f_status_t f_thread_locks_resize(const f_array_length_t length, f_thread_locks_t * const locks) { #ifndef _di_level_0_parameter_checking_ if (!locks) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -1999,7 +1999,7 @@ extern "C" { #endif // _di_f_thread_locks_resize_ #ifndef _di_f_thread_mutex_attribute_create_ - f_status_t f_thread_mutex_attribute_create(f_thread_mutex_attribute_t *attribute) { + f_status_t f_thread_mutex_attribute_create(f_thread_mutex_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2032,7 +2032,7 @@ extern "C" { #endif // _di_f_thread_mutex_attribute_delete_ #ifndef _di_f_thread_mutex_attribute_priority_ceiling_get_ - f_status_t f_thread_mutex_attribute_priority_ceiling_get(const f_thread_mutex_attribute_t *attribute, int *ceiling) { + f_status_t f_thread_mutex_attribute_priority_ceiling_get(const f_thread_mutex_attribute_t *attribute, int * const ceiling) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); if (!ceiling) return F_status_set_error(F_parameter); @@ -2052,7 +2052,7 @@ extern "C" { #endif // _di_f_thread_mutex_attribute_priority_ceiling_get_ #ifndef _di_f_thread_mutex_attribute_priority_ceiling_set_ - f_status_t f_thread_mutex_attribute_priority_ceiling_set(const int ceiling, f_thread_mutex_attribute_t *attribute) { + f_status_t f_thread_mutex_attribute_priority_ceiling_set(const int ceiling, f_thread_mutex_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2071,7 +2071,7 @@ extern "C" { #endif // _di_f_thread_mutex_attribute_priority_ceiling_set_ #ifndef _di_f_thread_mutex_attribute_shared_get_ - f_status_t f_thread_mutex_attribute_shared_get(const f_thread_mutex_attribute_t *attribute, int *shared) { + f_status_t f_thread_mutex_attribute_shared_get(const f_thread_mutex_attribute_t *attribute, int * const shared) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); if (!shared) return F_status_set_error(F_parameter); @@ -2086,7 +2086,7 @@ extern "C" { #endif // _di_f_thread_mutex_attribute_shared_get_ #ifndef _di_f_thread_mutex_attribute_shared_set_ - f_status_t f_thread_mutex_attribute_shared_set(const int shared, f_thread_mutex_attribute_t *attribute) { + f_status_t f_thread_mutex_attribute_shared_set(const int shared, f_thread_mutex_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2104,7 +2104,7 @@ extern "C" { #endif // _di_f_thread_mutex_attribute_shared_set_ #ifndef _di_f_thread_mutex_attribute_type_get_ - f_status_t f_thread_mutex_attribute_type_get(const f_thread_mutex_attribute_t *attribute, int *type) { + f_status_t f_thread_mutex_attribute_type_get(const f_thread_mutex_attribute_t *attribute, int * const type) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); if (!type) return F_status_set_error(F_parameter); @@ -2119,7 +2119,7 @@ extern "C" { #endif // _di_f_thread_mutex_attribute_type_get_ #ifndef _di_f_thread_mutex_attribute_type_set_ - f_status_t f_thread_mutex_attribute_type_set(const int type, f_thread_mutex_attribute_t *attribute) { + f_status_t f_thread_mutex_attribute_type_set(const int type, f_thread_mutex_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2137,7 +2137,7 @@ extern "C" { #endif // _di_f_thread_mutex_attribute_type_set_ #ifndef _di_f_thread_mutex_attribute_protocol_get_ - f_status_t f_thread_mutex_attribute_protocol_get(const f_thread_mutex_attribute_t *attribute, int *protocol) { + f_status_t f_thread_mutex_attribute_protocol_get(const f_thread_mutex_attribute_t *attribute, int * const protocol) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); if (!protocol) return F_status_set_error(F_parameter); @@ -2157,7 +2157,7 @@ extern "C" { #endif // _di_f_thread_mutex_attribute_protocol_get_ #ifndef _di_f_thread_mutex_attribute_protocol_set_ - f_status_t f_thread_mutex_attribute_protocol_set(const int protocol, f_thread_mutex_attribute_t *attribute) { + f_status_t f_thread_mutex_attribute_protocol_set(const int protocol, f_thread_mutex_attribute_t * const attribute) { #ifndef _di_level_0_parameter_checking_ if (!attribute) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2177,7 +2177,7 @@ extern "C" { #endif // _di_f_thread_mutex_attribute_protocol_set_ #ifndef _di_f_thread_mutex_attributes_adjust_ - f_status_t f_thread_mutex_attributes_adjust(const f_array_length_t length, f_thread_mutex_attributes_t *attributes) { + f_status_t f_thread_mutex_attributes_adjust(const f_array_length_t length, f_thread_mutex_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!attributes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2187,7 +2187,7 @@ extern "C" { #endif // _di_f_thread_mutex_attributes_adjust_ #ifndef _di_f_thread_mutex_attributes_decimate_by_ - f_status_t f_thread_mutex_attributes_decimate_by(const f_array_length_t amount, f_thread_mutex_attributes_t *attributes) { + f_status_t f_thread_mutex_attributes_decimate_by(const f_array_length_t amount, f_thread_mutex_attributes_t * const 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); @@ -2202,7 +2202,7 @@ extern "C" { #endif // _di_f_thread_mutex_attributes_decimate_by_ #ifndef _di_f_thread_mutex_attributes_decrease_by_ - f_status_t f_thread_mutex_attributes_decrease_by(const f_array_length_t amount, f_thread_mutex_attributes_t *attributes) { + f_status_t f_thread_mutex_attributes_decrease_by(const f_array_length_t amount, f_thread_mutex_attributes_t * const 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); @@ -2217,7 +2217,7 @@ extern "C" { #endif // _di_f_thread_mutex_attributes_decrease_by_ #ifndef _di_f_thread_mutex_attributes_increase_ - f_status_t f_thread_mutex_attributes_increase(const uint16_t step, f_thread_mutex_attributes_t *attributes) { + f_status_t f_thread_mutex_attributes_increase(const uint16_t step, f_thread_mutex_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!attributes) return F_status_set_error(F_parameter); @@ -2242,7 +2242,7 @@ extern "C" { #endif // _di_f_thread_mutex_attributes_increase_ #ifndef _di_f_thread_mutex_attributes_increase_by_ - f_status_t f_thread_mutex_attributes_increase_by(const f_array_length_t amount, f_thread_mutex_attributes_t *attributes) { + f_status_t f_thread_mutex_attributes_increase_by(const f_array_length_t amount, f_thread_mutex_attributes_t * const 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); @@ -2261,7 +2261,7 @@ extern "C" { #endif // _di_f_thread_mutex_attributes_increase_by_ #ifndef _di_f_thread_mutex_attributes_resize_ - f_status_t f_thread_mutex_attributes_resize(const f_array_length_t length, f_thread_mutex_attributes_t *attributes) { + f_status_t f_thread_mutex_attributes_resize(const f_array_length_t length, f_thread_mutex_attributes_t * const attributes) { #ifndef _di_level_0_parameter_checking_ if (!attributes) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2271,7 +2271,7 @@ extern "C" { #endif // _di_f_thread_mutex_attributes_resize_ #ifndef _di_f_thread_mutex_create_ - f_status_t 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 * const mutex) { #ifndef _di_level_0_parameter_checking_ if (!mutex) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2303,7 +2303,7 @@ extern "C" { #endif // _di_f_thread_mutex_delete_ #ifndef _di_f_thread_mutex_lock_ - f_status_t f_thread_mutex_lock(f_thread_mutex_t *mutex) { + f_status_t f_thread_mutex_lock(f_thread_mutex_t * const mutex) { #ifndef _di_level_0_parameter_checking_ if (!mutex) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2323,7 +2323,7 @@ extern "C" { #endif // _di_f_thread_mutex_lock_ #ifndef _di_f_thread_mutex_lock_timed_ - f_status_t f_thread_mutex_lock_timed(const struct timespec *timeout, f_thread_mutex_t *mutex) { + f_status_t f_thread_mutex_lock_timed(const struct timespec *timeout, f_thread_mutex_t * const mutex) { #ifndef _di_level_0_parameter_checking_ if (!timeout) return F_status_set_error(F_parameter); if (!mutex) return F_status_set_error(F_parameter); @@ -2347,7 +2347,7 @@ extern "C" { #endif // _di_f_thread_mutex_lock_timed_ #ifndef _di_f_thread_mutex_lock_try_ - f_status_t f_thread_mutex_lock_try(f_thread_mutex_t *mutex) { + f_status_t f_thread_mutex_lock_try(f_thread_mutex_t * const mutex) { #ifndef _di_level_0_parameter_checking_ if (!mutex) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2367,7 +2367,7 @@ extern "C" { #endif // _di_f_thread_mutex_lock_try_ #ifndef _di_f_thread_semaphore_create_ - f_status_t f_thread_semaphore_create(const bool shared, const unsigned int value, f_thread_semaphore_t *semaphore) { + f_status_t f_thread_semaphore_create(const bool shared, const unsigned int value, f_thread_semaphore_t * const semaphore) { #ifndef _di_level_0_parameter_checking_ if (!semaphore) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2394,16 +2394,16 @@ extern "C" { #endif // _di_f_thread_semaphore_delete_ #ifndef _di_f_thread_semaphore_file_create_ - f_status_t f_thread_semaphore_file_create(const f_string_t name, const int flag, mode_t mode, unsigned int value, f_thread_semaphore_t *semaphore) { + f_status_t f_thread_semaphore_file_create(const f_string_static_t name, const int flag, mode_t mode, unsigned int value, f_thread_semaphore_t *semaphore) { #ifndef _di_level_0_parameter_checking_ if (!semaphore) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ if (flag & O_CREAT) { - semaphore = sem_open(name, flag, mode, value); + semaphore = sem_open(name.string, flag, mode, value); } else { - semaphore = sem_open(name, flag); + semaphore = sem_open(name.string, flag); } if (semaphore == SEM_FAILED) { @@ -2440,9 +2440,9 @@ extern "C" { #endif // _di_f_thread_semaphore_file_delete_ #ifndef _di_f_thread_semaphore_file_destroy_ - f_status_t f_thread_semaphore_file_destroy(const f_string_t name) { + f_status_t f_thread_semaphore_file_destroy(const f_string_static_t name) { - if (sem_unlink(name) == -1) { + if (sem_unlink(name.string) == -1) { if (errno == EACCES) return F_status_set_error(F_access_denied); if (errno == EINVAL) return F_status_set_error(F_parameter); if (errno == ENAMETOOLONG) return F_status_set_error(F_name_not); @@ -2456,7 +2456,7 @@ extern "C" { #endif // _di_f_thread_semaphore_file_destroy_ #ifndef _di_f_thread_semaphore_lock_ - f_status_t f_thread_semaphore_lock(f_thread_semaphore_t *semaphore) { + f_status_t f_thread_semaphore_lock(f_thread_semaphore_t * const semaphore) { #ifndef _di_level_0_parameter_checking_ if (!semaphore) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2473,7 +2473,7 @@ extern "C" { #endif // _di_f_thread_semaphore_lock_ #ifndef _di_f_thread_semaphore_lock_timed_ - f_status_t f_thread_semaphore_lock_timed(const struct timespec *timeout, f_thread_semaphore_t *semaphore) { + f_status_t f_thread_semaphore_lock_timed(const struct timespec *timeout, f_thread_semaphore_t * const semaphore) { #ifndef _di_level_0_parameter_checking_ if (!timeout) return F_status_set_error(F_parameter); if (!semaphore) return F_status_set_error(F_parameter); @@ -2492,7 +2492,7 @@ extern "C" { #endif // _di_f_thread_semaphore_lock_timed_ #ifndef _di_f_thread_semaphore_lock_try_ - f_status_t f_thread_semaphore_lock_try(f_thread_semaphore_t *semaphore) { + f_status_t f_thread_semaphore_lock_try(f_thread_semaphore_t * const semaphore) { #ifndef _di_level_0_parameter_checking_ if (!semaphore) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2510,7 +2510,7 @@ extern "C" { #endif // _di_f_thread_semaphore_lock_try_ #ifndef _di_f_thread_semaphore_unlock_ - f_status_t f_thread_semaphore_unlock(f_thread_semaphore_t *semaphore) { + f_status_t f_thread_semaphore_unlock(f_thread_semaphore_t * const semaphore) { #ifndef _di_level_0_parameter_checking_ if (!semaphore) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2527,7 +2527,7 @@ extern "C" { #endif // _di_f_thread_semaphore_unlock_ #ifndef _di_f_thread_semaphore_value_get_ - f_status_t f_thread_semaphore_value_get(f_thread_semaphore_t *semaphore, int *value) { + f_status_t f_thread_semaphore_value_get(f_thread_semaphore_t * const semaphore, int * const value) { #ifndef _di_level_0_parameter_checking_ if (!semaphore) return F_status_set_error(F_parameter); if (!value) return F_status_set_error(F_parameter); @@ -2544,7 +2544,7 @@ extern "C" { #endif // _di_f_thread_semaphore_value_get_ #ifndef _di_f_thread_mutex_priority_ceiling_get_ - f_status_t f_thread_mutex_priority_ceiling_get(f_thread_mutex_t *mutex, int *ceiling) { + f_status_t f_thread_mutex_priority_ceiling_get(f_thread_mutex_t * const mutex, int * const ceiling) { #ifndef _di_level_0_parameter_checking_ if (!mutex) return F_status_set_error(F_parameter); if (!ceiling) return F_status_set_error(F_parameter); @@ -2564,7 +2564,7 @@ extern "C" { #endif // _di_f_thread_mutex_priority_ceiling_get_ #ifndef _di_f_thread_mutex_priority_ceiling_set_ - f_status_t f_thread_mutex_priority_ceiling_set(const int ceiling, f_thread_mutex_t *mutex, int *previous) { + f_status_t f_thread_mutex_priority_ceiling_set(const int ceiling, f_thread_mutex_t * const mutex, int * const previous) { #ifndef _di_level_0_parameter_checking_ if (!mutex) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2587,7 +2587,7 @@ extern "C" { #endif // _di_f_thread_mutex_priority_ceiling_set_ #ifndef _di_f_thread_mutex_unlock_ - f_status_t f_thread_mutex_unlock(f_thread_mutex_t *mutex) { + f_status_t f_thread_mutex_unlock(f_thread_mutex_t * const mutex) { #ifndef _di_level_0_parameter_checking_ if (!mutex) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2608,7 +2608,7 @@ extern "C" { #endif // _di_f_thread_mutex_unlock_ #ifndef _di_f_thread_mutexs_adjust_ - f_status_t f_thread_mutexs_adjust(const f_array_length_t length, f_thread_mutexs_t *mutexs) { + f_status_t f_thread_mutexs_adjust(const f_array_length_t length, f_thread_mutexs_t * const mutexs) { #ifndef _di_level_0_parameter_checking_ if (!mutexs) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2618,7 +2618,7 @@ extern "C" { #endif // _di_f_thread_mutexs_adjust_ #ifndef _di_f_thread_mutexs_decimate_by_ - f_status_t f_thread_mutexs_decimate_by(const f_array_length_t amount, f_thread_mutexs_t *mutexs) { + f_status_t f_thread_mutexs_decimate_by(const f_array_length_t amount, f_thread_mutexs_t * const 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); @@ -2633,7 +2633,7 @@ extern "C" { #endif // _di_f_thread_mutexs_decimate_by_ #ifndef _di_f_thread_mutexs_decrease_by_ - f_status_t f_thread_mutexs_decrease_by(const f_array_length_t amount, f_thread_mutexs_t *mutexs) { + f_status_t f_thread_mutexs_decrease_by(const f_array_length_t amount, f_thread_mutexs_t * const 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); @@ -2648,7 +2648,7 @@ extern "C" { #endif // _di_f_thread_mutexs_decrease_by_ #ifndef _di_f_thread_mutexs_increase_ - f_status_t f_thread_mutexs_increase(const uint16_t step, f_thread_mutexs_t *mutexs) { + f_status_t f_thread_mutexs_increase(const uint16_t step, f_thread_mutexs_t * const mutexs) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!mutexs) return F_status_set_error(F_parameter); @@ -2673,7 +2673,7 @@ extern "C" { #endif // _di_f_thread_mutexs_increase_ #ifndef _di_f_thread_mutexs_increase_by_ - f_status_t f_thread_mutexs_increase_by(const f_array_length_t amount, f_thread_mutexs_t *mutexs) { + f_status_t f_thread_mutexs_increase_by(const f_array_length_t amount, f_thread_mutexs_t * const 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); @@ -2692,7 +2692,7 @@ extern "C" { #endif // _di_f_thread_mutexs_increase_by_ #ifndef _di_f_thread_mutexs_resize_ - f_status_t f_thread_mutexs_resize(const f_array_length_t length, f_thread_mutexs_t *mutexs) { + f_status_t f_thread_mutexs_resize(const f_array_length_t length, f_thread_mutexs_t * const mutexs) { #ifndef _di_level_0_parameter_checking_ if (!mutexs) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2702,7 +2702,7 @@ extern "C" { #endif // _di_f_thread_mutexs_resize_ #ifndef _di_f_thread_once_ - f_status_t f_thread_once(void (*routine) (void), f_thread_once_t *once) { + f_status_t f_thread_once(void (*routine) (void), f_thread_once_t * const 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); @@ -2721,7 +2721,7 @@ extern "C" { #endif // _di_f_thread_once_ #ifndef _di_f_thread_scheduler_parameter_get_ - f_status_t f_thread_scheduler_parameter_get(const f_thread_id_t id, int *policy, struct sched_param *parameter) { + f_status_t f_thread_scheduler_parameter_get(const f_thread_id_t id, int * const policy, struct sched_param * const parameter) { #ifndef _di_level_0_parameter_checking_ if (!policy) return F_status_set_error(F_parameter); if (!parameter) return F_status_set_error(F_parameter); @@ -2740,7 +2740,7 @@ extern "C" { #endif // _di_f_thread_scheduler_parameter_get_ #ifndef _di_f_thread_scheduler_parameter_set_ - f_status_t f_thread_scheduler_parameter_set(const f_thread_id_t id, const int policy, const struct sched_param *parameter) { + f_status_t f_thread_scheduler_parameter_set(const f_thread_id_t id, const int policy, const struct sched_param * const parameter) { #ifndef _di_level_0_parameter_checking_ if (!policy) return F_status_set_error(F_parameter); if (!parameter) return F_status_set_error(F_parameter); @@ -2777,7 +2777,7 @@ extern "C" { #endif // _di_f_thread_scheduler_priority_set_ #ifndef _di_f_thread_semaphores_adjust_ - f_status_t f_thread_semaphores_adjust(const f_array_length_t length, f_thread_semaphores_t *semaphores) { + f_status_t f_thread_semaphores_adjust(const f_array_length_t length, f_thread_semaphores_t * const semaphores) { #ifndef _di_level_0_parameter_checking_ if (!semaphores) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2787,7 +2787,7 @@ extern "C" { #endif // _di_f_thread_semaphores_adjust_ #ifndef _di_f_thread_semaphores_decimate_by_ - f_status_t f_thread_semaphores_decimate_by(const f_array_length_t amount, f_thread_semaphores_t *semaphores) { + f_status_t f_thread_semaphores_decimate_by(const f_array_length_t amount, f_thread_semaphores_t * const semaphores) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!semaphores) return F_status_set_error(F_parameter); @@ -2802,7 +2802,7 @@ extern "C" { #endif // _di_f_thread_semaphores_decimate_by_ #ifndef _di_f_thread_semaphores_decrease_by_ - f_status_t f_thread_semaphores_decrease_by(const f_array_length_t amount, f_thread_semaphores_t *semaphores) { + f_status_t f_thread_semaphores_decrease_by(const f_array_length_t amount, f_thread_semaphores_t * const semaphores) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!semaphores) return F_status_set_error(F_parameter); @@ -2817,7 +2817,7 @@ extern "C" { #endif // _di_f_thread_semaphores_decrease_by_ #ifndef _di_f_thread_semaphores_increase_ - f_status_t f_thread_semaphores_increase(const uint16_t step, f_thread_semaphores_t *semaphores) { + f_status_t f_thread_semaphores_increase(const uint16_t step, f_thread_semaphores_t * const semaphores) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!semaphores) return F_status_set_error(F_parameter); @@ -2842,7 +2842,7 @@ extern "C" { #endif // _di_f_thread_semaphores_increase_ #ifndef _di_f_thread_semaphores_increase_by_ - f_status_t f_thread_semaphores_increase_by(const f_array_length_t amount, f_thread_semaphores_t *semaphores) { + f_status_t f_thread_semaphores_increase_by(const f_array_length_t amount, f_thread_semaphores_t * const semaphores) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!semaphores) return F_status_set_error(F_parameter); @@ -2861,7 +2861,7 @@ extern "C" { #endif // _di_f_thread_semaphores_increase_by_ #ifndef _di_f_thread_semaphores_resize_ - f_status_t f_thread_semaphores_resize(const f_array_length_t length, f_thread_semaphores_t *semaphores) { + f_status_t f_thread_semaphores_resize(const f_array_length_t length, f_thread_semaphores_t * const semaphores) { #ifndef _di_level_0_parameter_checking_ if (!semaphores) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2871,7 +2871,7 @@ extern "C" { #endif // _di_f_thread_semaphores_resize_ #ifndef _di_f_thread_sets_adjust_ - f_status_t f_thread_sets_adjust(const f_array_length_t length, f_thread_sets_t *sets) { + f_status_t f_thread_sets_adjust(const f_array_length_t length, f_thread_sets_t * const sets) { #ifndef _di_level_0_parameter_checking_ if (!sets) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2881,7 +2881,7 @@ extern "C" { #endif // _di_f_thread_sets_adjust_ #ifndef _di_f_thread_sets_decimate_by_ - f_status_t f_thread_sets_decimate_by(const f_array_length_t amount, f_thread_sets_t *sets) { + f_status_t f_thread_sets_decimate_by(const f_array_length_t amount, f_thread_sets_t * const 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); @@ -2896,7 +2896,7 @@ extern "C" { #endif // _di_f_thread_sets_decimate_by_ #ifndef _di_f_thread_sets_decrease_by_ - f_status_t f_thread_sets_decrease_by(const f_array_length_t amount, f_thread_sets_t *sets) { + f_status_t f_thread_sets_decrease_by(const f_array_length_t amount, f_thread_sets_t * const 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); @@ -2911,7 +2911,7 @@ extern "C" { #endif // _di_f_thread_sets_decrease_by_ #ifndef _di_f_thread_sets_increase_ - f_status_t f_thread_sets_increase(const uint16_t step, f_thread_sets_t *sets) { + f_status_t f_thread_sets_increase(const uint16_t step, f_thread_sets_t * const sets) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!sets) return F_status_set_error(F_parameter); @@ -2936,7 +2936,7 @@ extern "C" { #endif // _di_f_thread_sets_increase_ #ifndef _di_f_thread_sets_increase_by_ - f_status_t f_thread_sets_increase_by(const f_array_length_t amount, f_thread_sets_t *sets) { + f_status_t f_thread_sets_increase_by(const f_array_length_t amount, f_thread_sets_t * const 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); @@ -2955,7 +2955,7 @@ extern "C" { #endif // _di_f_thread_sets_increase_by_ #ifndef _di_f_thread_sets_resize_ - f_status_t f_thread_sets_resize(const f_array_length_t length, f_thread_sets_t *sets) { + f_status_t f_thread_sets_resize(const f_array_length_t length, f_thread_sets_t * const sets) { #ifndef _di_level_0_parameter_checking_ if (!sets) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -2990,7 +2990,7 @@ extern "C" { #endif // _di_f_thread_signal_ #ifndef _di_f_thread_signal_mask_ - f_status_t 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 * const current) { #ifndef _di_level_0_parameter_checking_ if (!next && !current) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -3030,7 +3030,7 @@ extern "C" { #endif // defined(_pthread_sigqueue_unsupported_) && !defined(_di_f_thread_signal_queue_) #ifndef _di_f_thread_spin_create_ - f_status_t f_thread_spin_create(const int shared, f_thread_spin_t *spin) { + f_status_t f_thread_spin_create(const int shared, f_thread_spin_t * const spin) { #ifndef _di_level_0_parameter_checking_ if (!spin) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -3059,7 +3059,7 @@ extern "C" { #endif // _di_f_thread_spin_delete_ #ifndef _di_f_thread_spin_lock_ - f_status_t f_thread_spin_lock(f_thread_spin_t *spin) { + f_status_t f_thread_spin_lock(f_thread_spin_t * const spin) { #ifndef _di_level_0_parameter_checking_ if (!spin) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -3079,7 +3079,7 @@ extern "C" { #endif // _di_f_thread_spin_lock_ #ifndef _di_f_thread_spin_lock_try_ - f_status_t f_thread_spin_lock_try(f_thread_spin_t *spin) { + f_status_t f_thread_spin_lock_try(f_thread_spin_t * const spin) { #ifndef _di_level_0_parameter_checking_ if (!spin) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -3099,7 +3099,7 @@ extern "C" { #endif // _di_f_thread_spin_lock_try_ #ifndef _di_f_thread_spin_unlock_ - f_status_t f_thread_spin_unlock(f_thread_spin_t *spin) { + f_status_t f_thread_spin_unlock(f_thread_spin_t * const spin) { #ifndef _di_level_0_parameter_checking_ if (!spin) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -3120,7 +3120,7 @@ extern "C" { #endif // _di_f_thread_spin_unlock_ #ifndef _di_f_thread_spins_adjust_ - f_status_t f_thread_spins_adjust(const f_array_length_t length, f_thread_spins_t *spins) { + f_status_t f_thread_spins_adjust(const f_array_length_t length, f_thread_spins_t * const spins) { #ifndef _di_level_0_parameter_checking_ if (!spins) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -3130,7 +3130,7 @@ extern "C" { #endif // _di_f_thread_spins_adjust_ #ifndef _di_f_thread_spins_decimate_by_ - f_status_t f_thread_spins_decimate_by(const f_array_length_t amount, f_thread_spins_t *spins) { + f_status_t f_thread_spins_decimate_by(const f_array_length_t amount, f_thread_spins_t * const spins) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!spins) return F_status_set_error(F_parameter); @@ -3145,7 +3145,7 @@ extern "C" { #endif // _di_f_thread_spins_decimate_by_ #ifndef _di_f_thread_spins_decrease_by_ - f_status_t f_thread_spins_decrease_by(const f_array_length_t amount, f_thread_spins_t *spins) { + f_status_t f_thread_spins_decrease_by(const f_array_length_t amount, f_thread_spins_t * const spins) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!spins) return F_status_set_error(F_parameter); @@ -3160,7 +3160,7 @@ extern "C" { #endif // _di_f_thread_spins_decrease_by_ #ifndef _di_f_thread_spins_increase_ - f_status_t f_thread_spins_increase(const uint16_t step, f_thread_spins_t *spins) { + f_status_t f_thread_spins_increase(const uint16_t step, f_thread_spins_t * const spins) { #ifndef _di_level_0_parameter_checking_ if (!step) return F_status_set_error(F_parameter); if (!spins) return F_status_set_error(F_parameter); @@ -3185,7 +3185,7 @@ extern "C" { #endif // _di_f_thread_spins_increase_ #ifndef _di_f_thread_spins_increase_by_ - f_status_t f_thread_spins_increase_by(const f_array_length_t amount, f_thread_spins_t *spins) { + f_status_t f_thread_spins_increase_by(const f_array_length_t amount, f_thread_spins_t * const spins) { #ifndef _di_level_0_parameter_checking_ if (!amount) return F_status_set_error(F_parameter); if (!spins) return F_status_set_error(F_parameter); @@ -3204,7 +3204,7 @@ extern "C" { #endif // _di_f_thread_spins_increase_by_ #ifndef _di_f_thread_spins_resize_ - f_status_t f_thread_spins_resize(const f_array_length_t length, f_thread_spins_t *spins) { + f_status_t f_thread_spins_resize(const f_array_length_t length, f_thread_spins_t * const spins) { #ifndef _di_level_0_parameter_checking_ if (!spins) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ @@ -3214,7 +3214,7 @@ extern "C" { #endif // _di_f_thread_spins_resize_ #ifndef _di_f_thread_unlock_ - f_status_t f_thread_unlock(f_thread_lock_t *lock) { + f_status_t f_thread_unlock(f_thread_lock_t * const lock) { #ifndef _di_level_0_parameter_checking_ if (!lock) return F_status_set_error(F_parameter); #endif // _di_level_0_parameter_checking_ diff --git a/level_0/f_thread/c/thread.h b/level_0/f_thread/c/thread.h index b81901c..5cef3b3 100644 --- a/level_0/f_thread/c/thread.h +++ b/level_0/f_thread/c/thread.h @@ -79,7 +79,7 @@ extern "C" { * @see pthread_attr_getaffinity_np() */ #ifndef _di_f_thread_attribute_affinity_get_ - 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); + extern f_status_t f_thread_attribute_affinity_get(const f_thread_attribute_t attribute, const size_t affinity_size, cpu_set_t * const affinity_set); #endif // _di_f_thread_attribute_affinity_get_ /** @@ -103,7 +103,7 @@ extern "C" { * @see pthread_attr_setaffinity_np() */ #ifndef _di_f_thread_attribute_affinity_set_ - 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); + extern f_status_t f_thread_attribute_affinity_set(const size_t affinity_size, const cpu_set_t *affinity_set, f_thread_attribute_t * const attribute); #endif // _di_f_thread_attribute_affinity_set_ /** @@ -124,7 +124,7 @@ extern "C" { * @see pthread_condattr_getclock() */ #ifndef _di_f_thread_attribute_clock_get_ - extern f_status_t f_thread_attribute_clock_get(const f_thread_condition_attribute_t *attribute, clockid_t *id); + extern f_status_t f_thread_attribute_clock_get(const f_thread_condition_attribute_t *attribute, clockid_t * const id); #endif // _di_f_thread_attribute_clock_get_ /** @@ -145,7 +145,7 @@ extern "C" { * @see pthread_condattr_setclock() */ #ifndef _di_f_thread_attribute_clock_set_ - extern f_status_t f_thread_attribute_clock_set(const clockid_t id, f_thread_condition_attribute_t *attribute); + extern f_status_t f_thread_attribute_clock_set(const clockid_t id, f_thread_condition_attribute_t * const attribute); #endif // _di_f_thread_attribute_clock_set_ /** @@ -166,7 +166,7 @@ extern "C" { * @see pthread_condattr_getpshared() */ #ifndef _di_f_thread_attribute_condition_shared_get_ - extern f_status_t f_thread_attribute_condition_shared_get(const f_thread_condition_attribute_t *attribute, int *shared); + extern f_status_t f_thread_attribute_condition_shared_get(const f_thread_condition_attribute_t *attribute, int * const shared); #endif // _di_f_thread_attribute_condition_shared_get_ /** @@ -187,7 +187,7 @@ extern "C" { * @see pthread_condattr_setpshared() */ #ifndef _di_f_thread_attribute_condition_shared_set_ - extern f_status_t f_thread_attribute_condition_shared_set(const int shared, f_thread_condition_attribute_t *attribute); + extern f_status_t f_thread_attribute_condition_shared_set(const int shared, f_thread_condition_attribute_t * const attribute); #endif // _di_f_thread_attribute_condition_shared_set_ /** @@ -208,7 +208,7 @@ extern "C" { * @see pthread_attr_init() */ #ifndef _di_f_thread_attribute_create_ - extern f_status_t f_thread_attribute_create(f_thread_attribute_t *attribute); + extern f_status_t f_thread_attribute_create(f_thread_attribute_t * const attribute); #endif // _di_f_thread_attribute_create_ /** @@ -227,7 +227,7 @@ extern "C" { * @see pthread_getattr_default_np() */ #ifndef _di_f_thread_attribute_default_get_ - extern f_status_t f_thread_attribute_default_get(f_thread_attribute_t *attribute); + extern f_status_t f_thread_attribute_default_get(f_thread_attribute_t * const attribute); #endif // _di_f_thread_attribute_default_get_ /** @@ -247,7 +247,7 @@ extern "C" { * @see pthread_setattr_default_np() */ #ifndef _di_f_thread_attribute_default_set_ - extern f_status_t f_thread_attribute_default_set(f_thread_attribute_t *attribute); + extern f_status_t f_thread_attribute_default_set(f_thread_attribute_t * const attribute); #endif // _di_f_thread_attribute_default_set_ /** @@ -271,7 +271,7 @@ extern "C" { * @see pthread_attr_destroy() */ #ifndef _di_f_thread_attribute_delete_ - extern f_status_t f_thread_attribute_delete(f_thread_attribute_t *attribute); + extern f_status_t f_thread_attribute_delete(f_thread_attribute_t * const attribute); #endif // _di_f_thread_attribute_delete_ /** @@ -292,7 +292,7 @@ extern "C" { * @see pthread_attr_getdetachstate() */ #ifndef _di_f_thread_attribute_detach_get_ - extern f_status_t 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 * const state); #endif // _di_f_thread_attribute_detach_get_ /** @@ -313,7 +313,7 @@ extern "C" { * @see pthread_attr_setdetachstate() */ #ifndef _di_f_thread_attribute_detach_set_ - extern f_status_t 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 * const attribute); #endif // _di_f_thread_attribute_detach_set_ /** @@ -334,7 +334,7 @@ extern "C" { * @see pthread_attr_getguardsize() */ #ifndef _di_f_thread_attribute_guard_get_ - extern f_status_t 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 * const guard); #endif // _di_f_thread_attribute_guard_get_ /** @@ -355,7 +355,7 @@ extern "C" { * @see pthread_attr_setguardsize() */ #ifndef _di_f_thread_attribute_guard_set_ - extern f_status_t 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 * const attribute); #endif // _di_f_thread_attribute_guard_set_ /** @@ -376,7 +376,7 @@ extern "C" { * @see pthread_attr_getinheritsched() */ #ifndef _di_f_thread_attribute_scheduler_inherit_get_ - extern f_status_t 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 * const inherit); #endif // _di_f_thread_attribute_scheduler_inherit_get_ /** @@ -397,7 +397,7 @@ extern "C" { * @see pthread_attr_setinheritsched() */ #ifndef _di_f_thread_attribute_scheduler_inherit_set_ - extern f_status_t 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 * const attribute); #endif // _di_f_thread_attribute_scheduler_inherit_set_ /** @@ -418,7 +418,7 @@ extern "C" { * @see pthread_attr_getschedparam() */ #ifndef _di_f_thread_attribute_scheduler_parameter_get_ - extern f_status_t 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 * const parameter); #endif // _di_f_thread_attribute_scheduler_parameter_get_ /** @@ -439,7 +439,7 @@ extern "C" { * @see pthread_attr_setschedparam() */ #ifndef _di_f_thread_attribute_scheduler_parameter_set_ - extern f_status_t 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 * const attribute); #endif // _di_f_thread_attribute_scheduler_parameter_set_ /** @@ -460,7 +460,7 @@ extern "C" { * @see pthread_attr_getschedpolicy() */ #ifndef _di_f_thread_attribute_scheduler_policy_get_ - extern f_status_t 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 * const policy); #endif // _di_f_thread_attribute_scheduler_policy_get_ /** @@ -481,7 +481,7 @@ extern "C" { * @see pthread_attr_setschedpolicy() */ #ifndef _di_f_thread_attribute_scheduler_policy_set_ - extern f_status_t 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 * const attribute); #endif // _di_f_thread_attribute_scheduler_policy_set_ /** @@ -502,7 +502,7 @@ extern "C" { * @see pthread_attr_getscope() */ #ifndef _di_f_thread_attribute_scope_get_ - extern f_status_t 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 * const scope); #endif // _di_f_thread_attribute_scope_get_ /** @@ -524,7 +524,7 @@ extern "C" { * @see pthread_attr_setscope() */ #ifndef _di_f_thread_attribute_scope_set_ - extern f_status_t 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 * const attribute); #endif // _di_f_thread_attribute_scope_set_ /** @@ -548,7 +548,7 @@ extern "C" { * @see pthread_attr_getstack() */ #ifndef _di_f_thread_attribute_stack_get_ - extern f_status_t 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 * const stack_size, void **stack); #endif // _di_f_thread_attribute_stack_get_ /** @@ -572,7 +572,7 @@ extern "C" { * @see pthread_attr_setstack() */ #ifndef _di_f_thread_attribute_stack_set_ - extern f_status_t 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 * const attribute); #endif // _di_f_thread_attribute_stack_set_ /** @@ -593,7 +593,7 @@ extern "C" { * @see pthread_attr_getstacksize() */ #ifndef _di_f_thread_attribute_stack_size_get_ - extern f_status_t f_thread_attribute_stack_size_get(const f_thread_attribute_t attribute, size_t *stack_size); + extern f_status_t f_thread_attribute_stack_size_get(const f_thread_attribute_t attribute, size_t * const stack_size); #endif // _di_f_thread_attribute_stack_size_get_ /** @@ -614,7 +614,7 @@ extern "C" { * @see pthread_attr_setstacksize() */ #ifndef _di_f_thread_attribute_stack_size_set_ - extern f_status_t f_thread_attribute_stack_size_set(const size_t stack_size, f_thread_attribute_t *attribute); + extern f_status_t f_thread_attribute_stack_size_set(const size_t stack_size, f_thread_attribute_t * const attribute); #endif // _di_f_thread_attribute_stack_size_set_ /** @@ -632,7 +632,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_attributes_adjust_ - extern f_status_t f_thread_attributes_adjust(const f_array_length_t length, f_thread_attributes_t *attributes); + extern f_status_t f_thread_attributes_adjust(const f_array_length_t length, f_thread_attributes_t * const attributes); #endif // _di_f_thread_attributes_adjust_ /** @@ -654,7 +654,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_attributes_decimate_by_ - extern f_status_t f_thread_attributes_decimate_by(const f_array_length_t amount, f_thread_attributes_t *attributes); + extern f_status_t f_thread_attributes_decimate_by(const f_array_length_t amount, f_thread_attributes_t * const attributes); #endif // _di_f_thread_attributes_decimate_by_ /** @@ -676,7 +676,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_attributes_decrease_by_ - extern f_status_t f_thread_attributes_decrease_by(const f_array_length_t amount, f_thread_attributes_t *attributes); + extern f_status_t f_thread_attributes_decrease_by(const f_array_length_t amount, f_thread_attributes_t * const attributes); #endif // _di_f_thread_attributes_decrease_by_ /** @@ -700,7 +700,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_attributes_increase_ - extern f_status_t f_thread_attributes_increase(const uint16_t step, f_thread_attributes_t *attributes); + extern f_status_t f_thread_attributes_increase(const uint16_t step, f_thread_attributes_t * const attributes); #endif // _di_f_thread_attributes_increase_ /** @@ -724,7 +724,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_attributes_increase_by_ - extern f_status_t f_thread_attributes_increase_by(const f_array_length_t amount, f_thread_attributes_t *attributes); + extern f_status_t f_thread_attributes_increase_by(const f_array_length_t amount, f_thread_attributes_t * const attributes); #endif // _di_f_thread_attributes_increase_by_ /** @@ -742,7 +742,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_attributes_resize_ - extern f_status_t f_thread_attributes_resize(const f_array_length_t length, f_thread_attributes_t *attributes); + extern f_status_t f_thread_attributes_resize(const f_array_length_t length, f_thread_attributes_t * const attributes); #endif // _di_f_thread_attributes_resize_ /** @@ -763,7 +763,7 @@ extern "C" { * @see pthread_barrierattr_init() */ #ifndef _di_f_thread_barrier_attribute_create_ - extern f_status_t f_thread_barrier_attribute_create(f_thread_barrier_attribute_t *attribute); + extern f_status_t f_thread_barrier_attribute_create(f_thread_barrier_attribute_t * const attribute); #endif // _di_f_thread_barrier_attribute_create_ /** @@ -808,7 +808,7 @@ extern "C" { * @see pthread_barrierattr_getpshared() */ #ifndef _di_f_thread_barrier_attribute_shared_get_ - extern f_status_t f_thread_barrier_attribute_shared_get(const f_thread_barrier_attribute_t *attribute, int *shared); + extern f_status_t f_thread_barrier_attribute_shared_get(const f_thread_barrier_attribute_t *attribute, int * const shared); #endif // _di_f_thread_barrier_attribute_shared_get_ /** @@ -829,7 +829,7 @@ extern "C" { * @see pthread_barrierattr_setpshared() */ #ifndef _di_f_thread_barrier_attribute_shared_set_ - extern f_status_t f_thread_barrier_attribute_shared_set(const int shared, f_thread_barrier_attribute_t *attribute); + extern f_status_t f_thread_barrier_attribute_shared_set(const int shared, f_thread_barrier_attribute_t * const attribute); #endif // _di_f_thread_barrier_attribute_shared_set_ /** @@ -847,7 +847,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barrier_attributes_adjust_ - extern f_status_t f_thread_barrier_attributes_adjust(const f_array_length_t length, f_thread_barrier_attributes_t *attributes); + extern f_status_t f_thread_barrier_attributes_adjust(const f_array_length_t length, f_thread_barrier_attributes_t * const attributes); #endif // _di_f_thread_barrier_attributes_adjust_ /** @@ -869,7 +869,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barrier_attributes_decimate_by_ - extern f_status_t f_thread_barrier_attributes_decimate_by(const f_array_length_t amount, f_thread_barrier_attributes_t *attributes); + extern f_status_t f_thread_barrier_attributes_decimate_by(const f_array_length_t amount, f_thread_barrier_attributes_t * const attributes); #endif // _di_f_thread_barrier_attributes_decimate_by_ /** @@ -891,7 +891,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barrier_attributes_decrease_by_ - extern f_status_t f_thread_barrier_attributes_decrease_by(const f_array_length_t amount, f_thread_barrier_attributes_t *attributes); + extern f_status_t f_thread_barrier_attributes_decrease_by(const f_array_length_t amount, f_thread_barrier_attributes_t * const attributes); #endif // _di_f_thread_barrier_attributes_decrease_by_ /** @@ -915,7 +915,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barrier_attributes_increase_ - extern f_status_t f_thread_barrier_attributes_increase(const uint16_t step, f_thread_barrier_attributes_t *attributes); + extern f_status_t f_thread_barrier_attributes_increase(const uint16_t step, f_thread_barrier_attributes_t * const attributes); #endif // _di_f_thread_barrier_attributes_increase_ /** @@ -939,7 +939,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barrier_attributes_increase_by_ - extern f_status_t f_thread_barrier_attributes_increase_by(const f_array_length_t amount, f_thread_barrier_attributes_t *attributes); + extern f_status_t f_thread_barrier_attributes_increase_by(const f_array_length_t amount, f_thread_barrier_attributes_t * const attributes); #endif // _di_f_thread_barrier_attributes_increase_by_ /** @@ -957,7 +957,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barrier_attributes_resize_ - extern f_status_t f_thread_barrier_attributes_resize(const f_array_length_t length, f_thread_barrier_attributes_t *attributes); + extern f_status_t f_thread_barrier_attributes_resize(const f_array_length_t length, f_thread_barrier_attributes_t * const attributes); #endif // _di_f_thread_barrier_attributes_resize_ /** @@ -978,7 +978,7 @@ extern "C" { * @see pthread_barrier_init() */ #ifndef _di_f_thread_barrier_create_ - extern f_status_t f_thread_barrier_create(const unsigned int count, f_thread_barrier_attribute_t * const attribute, f_thread_barrier_t *barrier); + extern f_status_t f_thread_barrier_create(const unsigned int count, f_thread_barrier_attribute_t * const attribute, f_thread_barrier_t * const barrier); #endif // _di_f_thread_barrier_create_ /** @@ -1022,7 +1022,7 @@ extern "C" { * @see pthread_barrier_wait() */ #ifndef _di_f_thread_barrier_wait_ - extern f_status_t f_thread_barrier_wait(f_thread_barrier_t *barrier, int *result); + extern f_status_t f_thread_barrier_wait(f_thread_barrier_t * const barrier, int * const result); #endif // _di_f_thread_barrier_wait_ /** @@ -1040,7 +1040,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barriers_adjust_ - extern f_status_t f_thread_barriers_adjust(const f_array_length_t length, f_thread_barriers_t *barriers); + extern f_status_t f_thread_barriers_adjust(const f_array_length_t length, f_thread_barriers_t * const barriers); #endif // _di_f_thread_barriers_adjust_ /** @@ -1062,7 +1062,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barriers_decimate_by_ - extern f_status_t f_thread_barriers_decimate_by(const f_array_length_t amount, f_thread_barriers_t *barriers); + extern f_status_t f_thread_barriers_decimate_by(const f_array_length_t amount, f_thread_barriers_t * const barriers); #endif // _di_f_thread_barriers_decimate_by_ /** @@ -1084,7 +1084,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barriers_decrease_by_ - extern f_status_t f_thread_barriers_decrease_by(const f_array_length_t amount, f_thread_barriers_t *barriers); + extern f_status_t f_thread_barriers_decrease_by(const f_array_length_t amount, f_thread_barriers_t * const barriers); #endif // _di_f_thread_barriers_decrease_by_ /** @@ -1108,7 +1108,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barriers_increase_ - extern f_status_t f_thread_barriers_increase(const uint16_t step, f_thread_barriers_t *barriers); + extern f_status_t f_thread_barriers_increase(const uint16_t step, f_thread_barriers_t * const barriers); #endif // _di_f_thread_barriers_increase_ /** @@ -1132,7 +1132,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barriers_increase_by_ - extern f_status_t f_thread_barriers_increase_by(const f_array_length_t amount, f_thread_barriers_t *barriers); + extern f_status_t f_thread_barriers_increase_by(const f_array_length_t amount, f_thread_barriers_t * const barriers); #endif // _di_f_thread_barriers_increase_by_ /** @@ -1150,7 +1150,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_barriers_resize_ - extern f_status_t f_thread_barriers_resize(const f_array_length_t length, f_thread_barriers_t *barriers); + extern f_status_t f_thread_barriers_resize(const f_array_length_t length, f_thread_barriers_t * const barriers); #endif // _di_f_thread_barriers_resize_ /** @@ -1203,7 +1203,7 @@ extern "C" { * @see pthread_setcancelstate() */ #ifndef _di_f_thread_cancel_state_set_ - extern f_status_t f_thread_cancel_state_set(const int state, int *previous); + extern f_status_t f_thread_cancel_state_set(const int state, int * const previous); #endif // _di_f_thread_cancel_state_set_ /** @@ -1241,7 +1241,7 @@ extern "C" { * @see pthread_setcanceltype() */ #ifndef _di_f_thread_cancel_type_set_ - extern f_status_t f_thread_cancel_type_set(const int type, int *previous); + extern f_status_t f_thread_cancel_type_set(const int type, int * const previous); #endif // _di_f_thread_cancel_type_set_ /** @@ -1263,7 +1263,7 @@ extern "C" { * @see pthread_getcpuclockid() */ #ifndef _di_f_thread_clock_get_id_ - extern f_status_t 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 * const id_clock); #endif // _di_f_thread_clock_get_id_ /** @@ -1302,7 +1302,7 @@ extern "C" { * @see pthread_getconcurrency() */ #ifndef _di_f_thread_attribute_concurrency_get_ - extern f_status_t f_thread_attribute_concurrency_get(int *level); + extern f_status_t f_thread_attribute_concurrency_get(int * const level); #endif // _di_f_thread_attribute_concurrency_get_ /** @@ -1344,7 +1344,7 @@ extern "C" { * @see pthread_condattr_init() */ #ifndef _di_f_thread_condition_attribute_create_ - extern f_status_t f_thread_condition_attribute_create(f_thread_condition_attribute_t *attribute); + extern f_status_t f_thread_condition_attribute_create(f_thread_condition_attribute_t * const attribute); #endif // _di_f_thread_condition_attribute_create_ /** @@ -1385,7 +1385,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_condition_attributes_adjust_ - extern f_status_t f_thread_condition_attributes_adjust(const f_array_length_t length, f_thread_condition_attributes_t *attributes); + extern f_status_t f_thread_condition_attributes_adjust(const f_array_length_t length, f_thread_condition_attributes_t * const attributes); #endif // _di_f_thread_condition_attributes_adjust_ /** @@ -1407,7 +1407,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_condition_attributes_decimate_by_ - extern f_status_t f_thread_condition_attributes_decimate_by(const f_array_length_t amount, f_thread_condition_attributes_t *attributes); + extern f_status_t f_thread_condition_attributes_decimate_by(const f_array_length_t amount, f_thread_condition_attributes_t * const attributes); #endif // _di_f_thread_condition_attributes_decimate_by_ /** @@ -1429,7 +1429,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_condition_attributes_decrease_by_ - extern f_status_t f_thread_condition_attributes_decrease_by(const f_array_length_t amount, f_thread_condition_attributes_t *attributes); + extern f_status_t f_thread_condition_attributes_decrease_by(const f_array_length_t amount, f_thread_condition_attributes_t * const attributes); #endif // _di_f_thread_condition_attributes_decrease_by_ /** @@ -1453,7 +1453,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_condition_attributes_increase_ - extern f_status_t f_thread_condition_attributes_increase(const uint16_t step, f_thread_condition_attributes_t *attributes); + extern f_status_t f_thread_condition_attributes_increase(const uint16_t step, f_thread_condition_attributes_t * const attributes); #endif // _di_f_thread_condition_attributes_increase_ /** @@ -1477,7 +1477,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_condition_attributes_increase_by_ - extern f_status_t f_thread_condition_attributes_increase_by(const f_array_length_t amount, f_thread_condition_attributes_t *attributes); + extern f_status_t f_thread_condition_attributes_increase_by(const f_array_length_t amount, f_thread_condition_attributes_t * const attributes); #endif // _di_f_thread_condition_attributes_increase_by_ /** @@ -1495,7 +1495,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_condition_attributes_resize_ - extern f_status_t f_thread_condition_attributes_resize(const f_array_length_t length, f_thread_condition_attributes_t *attributes); + extern f_status_t f_thread_condition_attributes_resize(const f_array_length_t length, f_thread_condition_attributes_t * const attributes); #endif // _di_f_thread_condition_attributes_resize_ /** @@ -1517,7 +1517,7 @@ extern "C" { * @see pthread_cond_init() */ #ifndef _di_f_thread_condition_create_ - extern f_status_t f_thread_condition_create(const f_thread_condition_attribute_t *attribute, f_thread_condition_t *condition); + extern f_status_t f_thread_condition_create(const f_thread_condition_attribute_t *attribute, f_thread_condition_t * const condition); #endif // _di_f_thread_condition_create_ /** @@ -1558,7 +1558,7 @@ extern "C" { * @see pthread_cond_broadcast() */ #ifndef _di_f_thread_condition_signal_all_ - extern f_status_t f_thread_condition_signal_all(f_thread_condition_t *condition); + extern f_status_t f_thread_condition_signal_all(f_thread_condition_t * const condition); #endif // _di_f_thread_condition_signal_all_ /** @@ -1579,7 +1579,7 @@ extern "C" { * @see pthread_cond_signal() */ #ifndef _di_f_thread_condition_signal_ - extern f_status_t f_thread_condition_signal(f_thread_condition_t *condition); + extern f_status_t f_thread_condition_signal(f_thread_condition_t * const condition); #endif // _di_f_thread_condition_signal_ /** @@ -1605,7 +1605,7 @@ extern "C" { * @see pthread_cond_wait() */ #ifndef _di_f_thread_condition_wait_ - extern f_status_t 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 * const condition, f_thread_mutex_t * const mutex); #endif // _di_f_thread_condition_wait_ /** @@ -1636,7 +1636,7 @@ extern "C" { * @see pthread_cond_timedwait() */ #ifndef _di_f_thread_condition_wait_timed_ - extern f_status_t 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 * const condition, f_thread_mutex_t * const mutex); #endif // _di_f_thread_condition_wait_timed_ /** @@ -1654,7 +1654,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_conditions_adjust_ - extern f_status_t f_thread_conditions_adjust(const f_array_length_t length, f_thread_conditions_t *conditions); + extern f_status_t f_thread_conditions_adjust(const f_array_length_t length, f_thread_conditions_t * const conditions); #endif // _di_f_thread_conditions_adjust_ /** @@ -1676,7 +1676,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_conditions_decimate_by_ - extern f_status_t f_thread_conditions_decimate_by(const f_array_length_t amount, f_thread_conditions_t *conditions); + extern f_status_t f_thread_conditions_decimate_by(const f_array_length_t amount, f_thread_conditions_t * const conditions); #endif // _di_f_thread_conditions_decimate_by_ /** @@ -1698,7 +1698,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_conditions_decrease_by_ - extern f_status_t f_thread_conditions_decrease_by(const f_array_length_t amount, f_thread_conditions_t *conditions); + extern f_status_t f_thread_conditions_decrease_by(const f_array_length_t amount, f_thread_conditions_t * const conditions); #endif // _di_f_thread_conditions_decrease_by_ /** @@ -1722,7 +1722,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_conditions_increase_ - extern f_status_t f_thread_conditions_increase(const uint16_t step, f_thread_conditions_t *conditions); + extern f_status_t f_thread_conditions_increase(const uint16_t step, f_thread_conditions_t * const conditions); #endif // _di_f_thread_conditions_increase_ /** @@ -1746,7 +1746,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_conditions_increase_by_ - extern f_status_t f_thread_conditions_increase_by(const f_array_length_t amount, f_thread_conditions_t *conditions); + extern f_status_t f_thread_conditions_increase_by(const f_array_length_t amount, f_thread_conditions_t * const conditions); #endif // _di_f_thread_conditions_increase_by_ /** @@ -1764,7 +1764,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_conditions_resize_ - extern f_status_t f_thread_conditions_resize(const f_array_length_t length, f_thread_conditions_t *conditions); + extern f_status_t f_thread_conditions_resize(const f_array_length_t length, f_thread_conditions_t * const conditions); #endif // _di_f_thread_conditions_resize_ /** @@ -1794,7 +1794,7 @@ extern "C" { * @see pthread_create() */ #ifndef _di_f_thread_create_ - extern f_status_t 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 * const attribute, f_thread_id_t * const id, void *(*routine) (void *), void *argument); #endif // _di_f_thread_create_ /** @@ -1951,7 +1951,7 @@ extern "C" { * @see pthread_key_create() */ #ifndef _di_f_thread_key_create_ - extern f_status_t 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 * const key); #endif // _di_f_thread_key_create_ /** @@ -2031,7 +2031,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_keys_adjust_ - extern f_status_t f_thread_keys_adjust(const f_array_length_t length, f_thread_keys_t *keys); + extern f_status_t f_thread_keys_adjust(const f_array_length_t length, f_thread_keys_t * const keys); #endif // _di_f_thread_keys_adjust_ /** @@ -2053,7 +2053,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_keys_decimate_by_ - extern f_status_t f_thread_keys_decimate_by(const f_array_length_t amount, f_thread_keys_t *keys); + extern f_status_t f_thread_keys_decimate_by(const f_array_length_t amount, f_thread_keys_t * const keys); #endif // _di_f_thread_keys_decimate_by_ /** @@ -2075,7 +2075,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_keys_decrease_by_ - extern f_status_t f_thread_keys_decrease_by(const f_array_length_t amount, f_thread_keys_t *keys); + extern f_status_t f_thread_keys_decrease_by(const f_array_length_t amount, f_thread_keys_t * const keys); #endif // _di_f_thread_keys_decrease_by_ /** @@ -2099,7 +2099,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_keys_increase_ - extern f_status_t f_thread_keys_increase(const uint16_t step, f_thread_keys_t *keys); + extern f_status_t f_thread_keys_increase(const uint16_t step, f_thread_keys_t * const keys); #endif // _di_f_thread_keys_increase_ /** @@ -2123,7 +2123,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_keys_increase_by_ - extern f_status_t f_thread_keys_increase_by(const f_array_length_t amount, f_thread_keys_t *keys); + extern f_status_t f_thread_keys_increase_by(const f_array_length_t amount, f_thread_keys_t * const keys); #endif // _di_f_thread_keys_increase_by_ /** @@ -2141,7 +2141,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_keys_resize_ - extern f_status_t f_thread_keys_resize(const f_array_length_t length, f_thread_keys_t *keys); + extern f_status_t f_thread_keys_resize(const f_array_length_t length, f_thread_keys_t * const keys); #endif // _di_f_thread_keys_resize_ /** @@ -2164,7 +2164,7 @@ extern "C" { * @see pthread_rwlockattr_init() */ #ifndef _di_f_thread_lock_attribute_create_ - extern f_status_t f_thread_lock_attribute_create(f_thread_lock_attribute_t *attribute); + extern f_status_t f_thread_lock_attribute_create(f_thread_lock_attribute_t * const attribute); #endif // _di_f_thread_lock_attribute_create_ /** @@ -2208,7 +2208,7 @@ extern "C" { * @see pthread_rwlockattr_getpshared() */ #ifndef _di_f_thread_lock_attribute_shared_get_ - extern f_status_t f_thread_lock_attribute_shared_get(const f_thread_lock_attribute_t *attribute, int *shared); + extern f_status_t f_thread_lock_attribute_shared_get(const f_thread_lock_attribute_t *attribute, int * const shared); #endif // _di_f_thread_lock_attribute_shared_get_ /** @@ -2229,7 +2229,7 @@ extern "C" { * @see pthread_rwlockattr_setpshared() */ #ifndef _di_f_thread_lock_attribute_shared_set_ - extern f_status_t f_thread_lock_attribute_shared_set(const int shared, f_thread_lock_attribute_t *attribute); + extern f_status_t f_thread_lock_attribute_shared_set(const int shared, f_thread_lock_attribute_t * const attribute); #endif // _di_f_thread_lock_attribute_shared_set_ /** @@ -2247,7 +2247,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_lock_attributes_adjust_ - extern f_status_t f_thread_lock_attributes_adjust(const f_array_length_t length, f_thread_lock_attributes_t *attributes); + extern f_status_t f_thread_lock_attributes_adjust(const f_array_length_t length, f_thread_lock_attributes_t * const attributes); #endif // _di_f_thread_lock_attributes_adjust_ /** @@ -2269,7 +2269,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_lock_attributes_decimate_by_ - extern f_status_t f_thread_lock_attributes_decimate_by(const f_array_length_t amount, f_thread_lock_attributes_t *attributes); + extern f_status_t f_thread_lock_attributes_decimate_by(const f_array_length_t amount, f_thread_lock_attributes_t * const attributes); #endif // _di_f_thread_lock_attributes_decimate_by_ /** @@ -2291,7 +2291,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_lock_attributes_decrease_by_ - extern f_status_t f_thread_lock_attributes_decrease_by(const f_array_length_t amount, f_thread_lock_attributes_t *attributes); + extern f_status_t f_thread_lock_attributes_decrease_by(const f_array_length_t amount, f_thread_lock_attributes_t * const attributes); #endif // _di_f_thread_lock_attributes_decrease_by_ /** @@ -2315,7 +2315,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_lock_attributes_increase_ - extern f_status_t f_thread_lock_attributes_increase(const uint16_t step, f_thread_lock_attributes_t *attributes); + extern f_status_t f_thread_lock_attributes_increase(const uint16_t step, f_thread_lock_attributes_t * const attributes); #endif // _di_f_thread_lock_attributes_increase_ /** @@ -2339,7 +2339,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_lock_attributes_increase_by_ - extern f_status_t f_thread_lock_attributes_increase_by(const f_array_length_t amount, f_thread_lock_attributes_t *attributes); + extern f_status_t f_thread_lock_attributes_increase_by(const f_array_length_t amount, f_thread_lock_attributes_t * const attributes); #endif // _di_f_thread_lock_attributes_increase_by_ /** @@ -2357,7 +2357,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_lock_attributes_resize_ - extern f_status_t f_thread_lock_attributes_resize(const f_array_length_t length, f_thread_lock_attributes_t *attributes); + extern f_status_t f_thread_lock_attributes_resize(const f_array_length_t length, f_thread_lock_attributes_t * const attributes); #endif // _di_f_thread_lock_attributes_resize_ /** @@ -2380,7 +2380,7 @@ extern "C" { * @see pthread_rwlock_init() */ #ifndef _di_f_thread_lock_create_ - extern f_status_t f_thread_lock_create(const f_thread_lock_attribute_t *attribute, f_thread_lock_t *lock); + extern f_status_t f_thread_lock_create(const f_thread_lock_attribute_t *attribute, f_thread_lock_t * const lock); #endif // _di_f_thread_lock_create_ /** @@ -2426,7 +2426,7 @@ extern "C" { * @see pthread_rwlock_rdlock() */ #ifndef _di_f_thread_lock_read_ - extern f_status_t f_thread_lock_read(f_thread_lock_t *lock); + extern f_status_t f_thread_lock_read(f_thread_lock_t * const lock); #endif // _di_f_thread_lock_read_ /** @@ -2454,7 +2454,7 @@ extern "C" { * @see pthread_rwlock_timedrdlock() */ #ifndef _di_f_thread_lock_read_timed_ - extern f_status_t f_thread_lock_read_timed(const struct timespec *timeout, f_thread_lock_t *lock); + extern f_status_t f_thread_lock_read_timed(const struct timespec *timeout, f_thread_lock_t * const lock); #endif // _di_f_thread_lock_read_timed_ /** @@ -2479,7 +2479,7 @@ extern "C" { * @see pthread_rwlock_tryrdlock() */ #ifndef _di_f_thread_lock_read_try_ - extern f_status_t f_thread_lock_read_try(f_thread_lock_t *lock); + extern f_status_t f_thread_lock_read_try(f_thread_lock_t * const lock); #endif // _di_f_thread_lock_read_try_ /** @@ -2502,7 +2502,7 @@ extern "C" { * @see pthread_rwlock_wrlock() */ #ifndef _di_f_thread_lock_write_ - extern f_status_t f_thread_lock_write(f_thread_lock_t *lock); + extern f_status_t f_thread_lock_write(f_thread_lock_t * const lock); #endif // _di_f_thread_lock_write_ /** @@ -2529,7 +2529,7 @@ extern "C" { * @see pthread_rwlock_timedwrlock() */ #ifndef _di_f_thread_lock_write_timed_ - extern f_status_t f_thread_lock_write_timed(const struct timespec *timeout, f_thread_lock_t *lock); + extern f_status_t f_thread_lock_write_timed(const struct timespec *timeout, f_thread_lock_t * const lock); #endif // _di_f_thread_lock_write_timed_ /** @@ -2554,7 +2554,7 @@ extern "C" { * @see pthread_rwlock_trywrlock() */ #ifndef _di_f_thread_lock_write_try_ - extern f_status_t f_thread_lock_write_try(f_thread_lock_t *lock); + extern f_status_t f_thread_lock_write_try(f_thread_lock_t * const lock); #endif // _di_f_thread_lock_write_try_ /** @@ -2572,7 +2572,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_locks_adjust_ - extern f_status_t f_thread_locks_adjust(const f_array_length_t length, f_thread_locks_t *locks); + extern f_status_t f_thread_locks_adjust(const f_array_length_t length, f_thread_locks_t * const locks); #endif // _di_f_thread_locks_adjust_ /** @@ -2594,7 +2594,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_locks_decimate_by_ - extern f_status_t f_thread_locks_decimate_by(const f_array_length_t amount, f_thread_locks_t *locks); + extern f_status_t f_thread_locks_decimate_by(const f_array_length_t amount, f_thread_locks_t * const locks); #endif // _di_f_thread_locks_decimate_by_ /** @@ -2616,7 +2616,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_locks_decrease_by_ - extern f_status_t f_thread_locks_decrease_by(const f_array_length_t amount, f_thread_locks_t *locks); + extern f_status_t f_thread_locks_decrease_by(const f_array_length_t amount, f_thread_locks_t * const locks); #endif // _di_f_thread_locks_decrease_by_ /** @@ -2640,7 +2640,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_locks_increase_ - extern f_status_t f_thread_locks_increase(const uint16_t step, f_thread_locks_t *locks); + extern f_status_t f_thread_locks_increase(const uint16_t step, f_thread_locks_t * const locks); #endif // _di_f_thread_locks_increase_ /** @@ -2664,7 +2664,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_locks_increase_by_ - extern f_status_t f_thread_locks_increase_by(const f_array_length_t amount, f_thread_locks_t *locks); + extern f_status_t f_thread_locks_increase_by(const f_array_length_t amount, f_thread_locks_t * const locks); #endif // _di_f_thread_locks_increase_by_ /** @@ -2682,7 +2682,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_locks_resize_ - extern f_status_t f_thread_locks_resize(const f_array_length_t length, f_thread_locks_t *locks); + extern f_status_t f_thread_locks_resize(const f_array_length_t length, f_thread_locks_t * const locks); #endif // _di_f_thread_locks_resize_ /** @@ -2704,7 +2704,7 @@ extern "C" { * @see pthread_mutexattr_init() */ #ifndef _di_f_thread_mutex_attribute_create_ - extern f_status_t f_thread_mutex_attribute_create(f_thread_mutex_attribute_t *attribute); + extern f_status_t f_thread_mutex_attribute_create(f_thread_mutex_attribute_t * const attribute); #endif // _di_f_thread_mutex_attribute_create_ /** @@ -2746,7 +2746,7 @@ extern "C" { * @see pthread_mutexattr_getprioceiling() */ #ifndef _di_f_thread_mutex_attribute_priority_ceiling_get_ - extern f_status_t f_thread_mutex_attribute_priority_ceiling_get(const f_thread_mutex_attribute_t *attribute, int *ceiling); + extern f_status_t f_thread_mutex_attribute_priority_ceiling_get(const f_thread_mutex_attribute_t *attribute, int * const ceiling); #endif // _di_f_thread_mutex_attribute_priority_ceiling_get_ /** @@ -2766,7 +2766,7 @@ extern "C" { * @see pthread_mutexattr_setprioceiling() */ #ifndef _di_f_thread_mutex_attribute_priority_ceiling_set_ - extern f_status_t f_thread_mutex_attribute_priority_ceiling_set(const int ceiling, f_thread_mutex_attribute_t *attribute); + extern f_status_t f_thread_mutex_attribute_priority_ceiling_set(const int ceiling, f_thread_mutex_attribute_t * const attribute); #endif // _di_f_thread_mutex_attribute_priority_ceiling_set_ /** @@ -2787,7 +2787,7 @@ extern "C" { * @see pthread_mutexattr_getpshared() */ #ifndef _di_f_thread_mutex_attribute_shared_get_ - extern f_status_t f_thread_mutex_attribute_shared_get(const f_thread_mutex_attribute_t *attribute, int *shared); + extern f_status_t f_thread_mutex_attribute_shared_get(const f_thread_mutex_attribute_t *attribute, int * const shared); #endif // _di_f_thread_mutex_attribute_shared_get_ /** @@ -2808,7 +2808,7 @@ extern "C" { * @see pthread_mutexattr_setpshared() */ #ifndef _di_f_thread_mutex_attribute_shared_set_ - extern f_status_t f_thread_mutex_attribute_shared_set(const int shared, f_thread_mutex_attribute_t *attribute); + extern f_status_t f_thread_mutex_attribute_shared_set(const int shared, f_thread_mutex_attribute_t * const attribute); #endif // _di_f_thread_mutex_attribute_shared_set_ /** @@ -2829,7 +2829,7 @@ extern "C" { * @see pthread_mutexattr_gettype() */ #ifndef _di_f_thread_mutex_attribute_type_get_ - extern f_status_t f_thread_mutex_attribute_type_get(const f_thread_mutex_attribute_t *attribute, int *type); + extern f_status_t f_thread_mutex_attribute_type_get(const f_thread_mutex_attribute_t *attribute, int * const type); #endif // _di_f_thread_mutex_attribute_type_get_ /** @@ -2850,7 +2850,7 @@ extern "C" { * @see pthread_mutexattr_settype() */ #ifndef _di_f_thread_mutex_attribute_type_set_ - extern f_status_t f_thread_mutex_attribute_type_set(const int type, f_thread_mutex_attribute_t *attribute); + extern f_status_t f_thread_mutex_attribute_type_set(const int type, f_thread_mutex_attribute_t * const attribute); #endif // _di_f_thread_mutex_attribute_type_set_ /** @@ -2872,7 +2872,7 @@ extern "C" { * @see pthread_mutexattr_getprotocol() */ #ifndef _di_f_thread_mutex_attribute_protocol_get_ - extern f_status_t f_thread_mutex_attribute_protocol_get(const f_thread_mutex_attribute_t *attribute, int *protocol); + extern f_status_t f_thread_mutex_attribute_protocol_get(const f_thread_mutex_attribute_t *attribute, int * const protocol); #endif // _di_f_thread_mutex_attribute_protocol_get_ /** @@ -2895,7 +2895,7 @@ extern "C" { * @see pthread_mutexattr_setprotocol() */ #ifndef _di_f_thread_mutex_attribute_protocol_set_ - extern f_status_t f_thread_mutex_attribute_protocol_set(const int protocol, f_thread_mutex_attribute_t *attribute); + extern f_status_t f_thread_mutex_attribute_protocol_set(const int protocol, f_thread_mutex_attribute_t * const attribute); #endif // _di_f_thread_mutex_attribute_protocol_set_ /** @@ -2913,7 +2913,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutex_attributes_adjust_ - extern f_status_t f_thread_mutex_attributes_adjust(const f_array_length_t length, f_thread_mutex_attributes_t *attributes); + extern f_status_t f_thread_mutex_attributes_adjust(const f_array_length_t length, f_thread_mutex_attributes_t * const attributes); #endif // _di_f_thread_mutex_attributes_adjust_ /** @@ -2935,7 +2935,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutex_attributes_decimate_by_ - extern f_status_t f_thread_mutex_attributes_decimate_by(const f_array_length_t amount, f_thread_mutex_attributes_t *attributes); + extern f_status_t f_thread_mutex_attributes_decimate_by(const f_array_length_t amount, f_thread_mutex_attributes_t * const attributes); #endif // _di_f_thread_mutex_attributes_decimate_by_ /** @@ -2957,7 +2957,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutex_attributes_decrease_by_ - extern f_status_t f_thread_mutex_attributes_decrease_by(const f_array_length_t amount, f_thread_mutex_attributes_t *attributes); + extern f_status_t f_thread_mutex_attributes_decrease_by(const f_array_length_t amount, f_thread_mutex_attributes_t * const attributes); #endif // _di_f_thread_mutex_attributes_decrease_by_ /** @@ -2981,7 +2981,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutex_attributes_increase_ - extern f_status_t f_thread_mutex_attributes_increase(const uint16_t step, f_thread_mutex_attributes_t *attributes); + extern f_status_t f_thread_mutex_attributes_increase(const uint16_t step, f_thread_mutex_attributes_t * const attributes); #endif // _di_f_thread_mutex_attributes_increase_ /** @@ -3005,7 +3005,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutex_attributes_increase_by_ - extern f_status_t f_thread_mutex_attributes_increase_by(const f_array_length_t amount, f_thread_mutex_attributes_t *attributes); + extern f_status_t f_thread_mutex_attributes_increase_by(const f_array_length_t amount, f_thread_mutex_attributes_t * const attributes); #endif // _di_f_thread_mutex_attributes_increase_by_ /** @@ -3023,7 +3023,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutex_attributes_resize_ - extern f_status_t f_thread_mutex_attributes_resize(const f_array_length_t length, f_thread_mutex_attributes_t *attributes); + extern f_status_t f_thread_mutex_attributes_resize(const f_array_length_t length, f_thread_mutex_attributes_t * const attributes); #endif // _di_f_thread_mutex_attributes_resize_ /** @@ -3049,7 +3049,7 @@ extern "C" { * @see pthread_mutex_init() */ #ifndef _di_f_thread_mutex_create_ - extern f_status_t 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 * const mutex); #endif // _di_f_thread_mutex_create_ /** @@ -3095,7 +3095,7 @@ extern "C" { * @see pthread_mutex_lock() */ #ifndef _di_f_thread_mutex_lock_ - extern f_status_t f_thread_mutex_lock(f_thread_mutex_t *mutex); + extern f_status_t f_thread_mutex_lock(f_thread_mutex_t * const mutex); #endif // _di_f_thread_mutex_lock_ /** @@ -3126,7 +3126,7 @@ extern "C" { * @see pthread_mutex_timedlock() */ #ifndef _di_f_thread_mutex_lock_timed_ - extern f_status_t f_thread_mutex_lock_timed(const struct timespec *timeout, f_thread_mutex_t *mutex); + extern f_status_t f_thread_mutex_lock_timed(const struct timespec *timeout, f_thread_mutex_t * const mutex); #endif // _di_f_thread_mutex_lock_timed_ /** @@ -3151,7 +3151,7 @@ extern "C" { * @see pthread_mutex_trylock() */ #ifndef _di_f_thread_mutex_lock_try_ - extern f_status_t f_thread_mutex_lock_try(f_thread_mutex_t *mutex); + extern f_status_t f_thread_mutex_lock_try(f_thread_mutex_t * const mutex); #endif // _di_f_thread_mutex_lock_try_ /** @@ -3173,7 +3173,7 @@ extern "C" { * @see pthread_mutex_getprioceiling() */ #ifndef _di_f_thread_mutex_priority_ceiling_get_ - extern f_status_t f_thread_mutex_priority_ceiling_get(f_thread_mutex_t *mutex, int *ceiling); + extern f_status_t f_thread_mutex_priority_ceiling_get(f_thread_mutex_t * const mutex, int * const ceiling); #endif // _di_f_thread_mutex_priority_ceiling_get_ /** @@ -3202,7 +3202,7 @@ extern "C" { * @see pthread_mutex_setprioceiling() */ #ifndef _di_f_thread_mutex_priority_ceiling_set_ - extern f_status_t f_thread_mutex_priority_ceiling_set(const int ceiling, f_thread_mutex_t *mutex, int *previous); + extern f_status_t f_thread_mutex_priority_ceiling_set(const int ceiling, f_thread_mutex_t * const mutex, int * const previous); #endif // _di_f_thread_mutex_priority_ceiling_set_ /** @@ -3223,7 +3223,7 @@ extern "C" { * @see pthread_mutex_unlock() */ #ifndef _di_f_thread_mutex_unlock_ - extern f_status_t f_thread_mutex_unlock(f_thread_mutex_t *mutex); + extern f_status_t f_thread_mutex_unlock(f_thread_mutex_t * const mutex); #endif // _di_f_thread_mutex_unlock_ /** @@ -3241,7 +3241,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutexs_adjust_ - extern f_status_t f_thread_mutexs_adjust(const f_array_length_t length, f_thread_mutexs_t *mutexs); + extern f_status_t f_thread_mutexs_adjust(const f_array_length_t length, f_thread_mutexs_t * const mutexs); #endif // _di_f_thread_mutexs_adjust_ /** @@ -3263,7 +3263,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutexs_decimate_by_ - extern f_status_t f_thread_mutexs_decimate_by(const f_array_length_t amount, f_thread_mutexs_t *mutexs); + extern f_status_t f_thread_mutexs_decimate_by(const f_array_length_t amount, f_thread_mutexs_t * const mutexs); #endif // _di_f_thread_mutexs_decimate_by_ /** @@ -3285,7 +3285,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutexs_decrease_by_ - extern f_status_t f_thread_mutexs_decrease_by(const f_array_length_t amount, f_thread_mutexs_t *mutexs); + extern f_status_t f_thread_mutexs_decrease_by(const f_array_length_t amount, f_thread_mutexs_t * const mutexs); #endif // _di_f_thread_mutexs_decrease_by_ /** @@ -3309,7 +3309,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutexs_increase_ - extern f_status_t f_thread_mutexs_increase(const uint16_t step, f_thread_mutexs_t *mutexs); + extern f_status_t f_thread_mutexs_increase(const uint16_t step, f_thread_mutexs_t * const mutexs); #endif // _di_f_thread_mutexs_increase_ /** @@ -3333,7 +3333,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutexs_increase_by_ - extern f_status_t f_thread_mutexs_increase_by(const f_array_length_t amount, f_thread_mutexs_t *mutexs); + extern f_status_t f_thread_mutexs_increase_by(const f_array_length_t amount, f_thread_mutexs_t * const mutexs); #endif // _di_f_thread_mutexs_increase_by_ /** @@ -3351,7 +3351,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_mutexs_resize_ - extern f_status_t f_thread_mutexs_resize(const f_array_length_t length, f_thread_mutexs_t *mutexs); + extern f_status_t f_thread_mutexs_resize(const f_array_length_t length, f_thread_mutexs_t * const mutexs); #endif // _di_f_thread_mutexs_resize_ /** @@ -3372,7 +3372,7 @@ extern "C" { * @see pthread_once() */ #ifndef _di_f_thread_once_ - extern f_status_t 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 * const once); #endif // _di_f_thread_once_ /** @@ -3396,7 +3396,7 @@ extern "C" { * @see pthread_getschedparam() */ #ifndef _di_f_thread_scheduler_parameter_get_ - extern f_status_t f_thread_scheduler_parameter_get(const f_thread_id_t id, int *policy, struct sched_param *parameter); + extern f_status_t f_thread_scheduler_parameter_get(const f_thread_id_t id, int * const policy, struct sched_param * const parameter); #endif // _di_f_thread_scheduler_parameter_get_ /** @@ -3469,7 +3469,7 @@ extern "C" { * @see sem_init() */ #ifndef _di_f_thread_semaphore_create_ - extern f_status_t f_thread_semaphore_create(const bool shared, const unsigned int value, f_thread_semaphore_t *semaphore); + extern f_status_t f_thread_semaphore_create(const bool shared, const unsigned int value, f_thread_semaphore_t * const semaphore); #endif // _di_f_thread_semaphore_create_ /** @@ -3531,7 +3531,7 @@ extern "C" { * @see sem_open() */ #ifndef _di_f_thread_semaphore_file_create_ - extern f_status_t f_thread_semaphore_file_create(const f_string_t name, const int flag, mode_t mode, unsigned int value, f_thread_semaphore_t *semaphore); + extern f_status_t f_thread_semaphore_file_create(const f_string_static_t name, const int flag, mode_t mode, unsigned int value, f_thread_semaphore_t *semaphore); #endif // _di_f_thread_semaphore_file_create_ /** @@ -3584,7 +3584,7 @@ extern "C" { * @see f_thread_semaphore_file_delete() */ #ifndef _di_f_thread_semaphore_file_destroy_ - extern f_status_t f_thread_semaphore_file_destroy(const f_string_t name); + extern f_status_t f_thread_semaphore_file_destroy(const f_string_static_t name); #endif // _di_f_thread_semaphore_file_destroy_ /** @@ -3606,7 +3606,7 @@ extern "C" { * @see sem_wait() */ #ifndef _di_f_thread_semaphore_lock_ - extern f_status_t f_thread_semaphore_lock(f_thread_semaphore_t *semaphore); + extern f_status_t f_thread_semaphore_lock(f_thread_semaphore_t * const semaphore); #endif // _di_f_thread_semaphore_lock_ /** @@ -3633,7 +3633,7 @@ extern "C" { * @see sem_timedwait() */ #ifndef _di_f_thread_semaphore_lock_timed_ - extern f_status_t f_thread_semaphore_lock_timed(const struct timespec *timeout, f_thread_semaphore_t *semaphore); + extern f_status_t f_thread_semaphore_lock_timed(const struct timespec *timeout, f_thread_semaphore_t * const semaphore); #endif // _di_f_thread_semaphore_lock_timed_ /** @@ -3658,7 +3658,7 @@ extern "C" { * @see sem_trywait() */ #ifndef _di_f_thread_semaphore_lock_try_ - extern f_status_t f_thread_semaphore_lock_try(f_thread_semaphore_t *semaphore); + extern f_status_t f_thread_semaphore_lock_try(f_thread_semaphore_t * const semaphore); #endif // _di_f_thread_semaphore_lock_try_ /** @@ -3678,7 +3678,7 @@ extern "C" { * @see sem_post() */ #ifndef _di_f_thread_semaphore_unlock_ - extern f_status_t f_thread_semaphore_unlock(f_thread_semaphore_t *semaphore); + extern f_status_t f_thread_semaphore_unlock(f_thread_semaphore_t * const semaphore); #endif // _di_f_thread_semaphore_unlock_ /** @@ -3699,7 +3699,7 @@ extern "C" { * @see sem_getvalue() */ #ifndef _di_f_thread_semaphore_value_get_ - extern f_status_t f_thread_semaphore_value_get(f_thread_semaphore_t *semaphore, int *value); + extern f_status_t f_thread_semaphore_value_get(f_thread_semaphore_t * const semaphore, int * const value); #endif // _di_f_thread_semaphore_value_get_ /** @@ -3717,7 +3717,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_semaphores_adjust_ - extern f_status_t f_thread_semaphores_adjust(const f_array_length_t length, f_thread_semaphores_t *semaphores); + extern f_status_t f_thread_semaphores_adjust(const f_array_length_t length, f_thread_semaphores_t * const semaphores); #endif // _di_f_thread_semaphores_adjust_ /** @@ -3739,7 +3739,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_semaphores_decimate_by_ - extern f_status_t f_thread_semaphores_decimate_by(const f_array_length_t amount, f_thread_semaphores_t *semaphores); + extern f_status_t f_thread_semaphores_decimate_by(const f_array_length_t amount, f_thread_semaphores_t * const semaphores); #endif // _di_f_thread_semaphores_decimate_by_ /** @@ -3761,7 +3761,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_semaphores_decrease_by_ - extern f_status_t f_thread_semaphores_decrease_by(const f_array_length_t amount, f_thread_semaphores_t *semaphores); + extern f_status_t f_thread_semaphores_decrease_by(const f_array_length_t amount, f_thread_semaphores_t * const semaphores); #endif // _di_f_thread_semaphores_decrease_by_ /** @@ -3785,7 +3785,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_semaphores_increase_ - extern f_status_t f_thread_semaphores_increase(const uint16_t step, f_thread_semaphores_t *semaphores); + extern f_status_t f_thread_semaphores_increase(const uint16_t step, f_thread_semaphores_t * const semaphores); #endif // _di_f_thread_semaphores_increase_ /** @@ -3809,7 +3809,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_semaphores_increase_by_ - extern f_status_t f_thread_semaphores_increase_by(const f_array_length_t amount, f_thread_semaphores_t *semaphores); + extern f_status_t f_thread_semaphores_increase_by(const f_array_length_t amount, f_thread_semaphores_t * const semaphores); #endif // _di_f_thread_semaphores_increase_by_ /** @@ -3827,7 +3827,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_semaphores_resize_ - extern f_status_t f_thread_semaphores_resize(const f_array_length_t length, f_thread_semaphores_t *semaphores); + extern f_status_t f_thread_semaphores_resize(const f_array_length_t length, f_thread_semaphores_t * const semaphores); #endif // _di_f_thread_semaphores_resize_ /** @@ -3845,7 +3845,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_sets_adjust_ - extern f_status_t f_thread_sets_adjust(const f_array_length_t length, f_thread_sets_t *sets); + extern f_status_t f_thread_sets_adjust(const f_array_length_t length, f_thread_sets_t * const sets); #endif // _di_f_thread_sets_adjust_ /** @@ -3867,7 +3867,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_sets_decimate_by_ - extern f_status_t f_thread_sets_decimate_by(const f_array_length_t amount, f_thread_sets_t *sets); + extern f_status_t f_thread_sets_decimate_by(const f_array_length_t amount, f_thread_sets_t * const sets); #endif // _di_f_thread_sets_decimate_by_ /** @@ -3889,7 +3889,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_sets_decrease_by_ - extern f_status_t f_thread_sets_decrease_by(const f_array_length_t amount, f_thread_sets_t *sets); + extern f_status_t f_thread_sets_decrease_by(const f_array_length_t amount, f_thread_sets_t * const sets); #endif // _di_f_thread_sets_decrease_by_ /** @@ -3913,7 +3913,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_sets_increase_ - extern f_status_t f_thread_sets_increase(const uint16_t step, f_thread_sets_t *sets); + extern f_status_t f_thread_sets_increase(const uint16_t step, f_thread_sets_t * const sets); #endif // _di_f_thread_sets_increase_ /** @@ -3937,7 +3937,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_sets_increase_by_ - extern f_status_t f_thread_sets_increase_by(const f_array_length_t amount, f_thread_sets_t *sets); + extern f_status_t f_thread_sets_increase_by(const f_array_length_t amount, f_thread_sets_t * const sets); #endif // _di_f_thread_sets_increase_by_ /** @@ -3955,7 +3955,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_sets_resize_ - extern f_status_t f_thread_sets_resize(const f_array_length_t length, f_thread_sets_t *sets); + extern f_status_t f_thread_sets_resize(const f_array_length_t length, f_thread_sets_t * const sets); #endif // _di_f_thread_sets_resize_ /** @@ -4006,7 +4006,7 @@ extern "C" { * @see pthread_sigmask() */ #ifndef _di_f_thread_signal_mask_ - extern f_status_t 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 * const next, sigset_t * const current); #endif // _di_f_thread_signal_mask_ /** @@ -4055,7 +4055,7 @@ extern "C" { * @see pthread_spin_init() */ #ifndef _di_f_thread_spin_create_ - extern f_status_t f_thread_spin_create(const int shared, f_thread_spin_t *spin); + extern f_status_t f_thread_spin_create(const int shared, f_thread_spin_t * const spin); #endif // _di_f_thread_spin_create_ /** @@ -4101,7 +4101,7 @@ extern "C" { * @see pthread_spin_lock() */ #ifndef _di_f_thread_spin_lock_ - extern f_status_t f_thread_spin_lock(f_thread_spin_t *spin); + extern f_status_t f_thread_spin_lock(f_thread_spin_t * const spin); #endif // _di_f_thread_spin_lock_ /** @@ -4126,7 +4126,7 @@ extern "C" { * @see pthread_spin_trylock() */ #ifndef _di_f_thread_spin_lock_try_ - extern f_status_t f_thread_spin_lock_try(f_thread_spin_t *spin); + extern f_status_t f_thread_spin_lock_try(f_thread_spin_t * const spin); #endif // _di_f_thread_spin_lock_try_ /** @@ -4147,7 +4147,7 @@ extern "C" { * @see pthread_spin_unlock() */ #ifndef _di_f_thread_spin_unlock_ - extern f_status_t f_thread_spin_unlock(f_thread_spin_t *spin); + extern f_status_t f_thread_spin_unlock(f_thread_spin_t * const spin); #endif // _di_f_thread_spin_unlock_ /** @@ -4165,7 +4165,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_spins_adjust_ - extern f_status_t f_thread_spins_adjust(const f_array_length_t length, f_thread_spins_t *spins); + extern f_status_t f_thread_spins_adjust(const f_array_length_t length, f_thread_spins_t * const spins); #endif // _di_f_thread_spins_adjust_ /** @@ -4187,7 +4187,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_spins_decimate_by_ - extern f_status_t f_thread_spins_decimate_by(const f_array_length_t amount, f_thread_spins_t *spins); + extern f_status_t f_thread_spins_decimate_by(const f_array_length_t amount, f_thread_spins_t * const spins); #endif // _di_f_thread_spins_decimate_by_ /** @@ -4209,7 +4209,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_spins_decrease_by_ - extern f_status_t f_thread_spins_decrease_by(const f_array_length_t amount, f_thread_spins_t *spins); + extern f_status_t f_thread_spins_decrease_by(const f_array_length_t amount, f_thread_spins_t * const spins); #endif // _di_f_thread_spins_decrease_by_ /** @@ -4233,7 +4233,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_spins_increase_ - extern f_status_t f_thread_spins_increase(const uint16_t step, f_thread_spins_t *spins); + extern f_status_t f_thread_spins_increase(const uint16_t step, f_thread_spins_t * const spins); #endif // _di_f_thread_spins_increase_ /** @@ -4257,7 +4257,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_spins_increase_by_ - extern f_status_t f_thread_spins_increase_by(const f_array_length_t amount, f_thread_spins_t *spins); + extern f_status_t f_thread_spins_increase_by(const f_array_length_t amount, f_thread_spins_t * const spins); #endif // _di_f_thread_spins_increase_by_ /** @@ -4275,7 +4275,7 @@ extern "C" { * F_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_f_thread_spins_resize_ - extern f_status_t f_thread_spins_resize(const f_array_length_t length, f_thread_spins_t *spins); + extern f_status_t f_thread_spins_resize(const f_array_length_t length, f_thread_spins_t * const spins); #endif // _di_f_thread_spins_resize_ /** @@ -4296,7 +4296,7 @@ extern "C" { * @see pthread_rwlock_unlock() */ #ifndef _di_f_thread_unlock_ - extern f_status_t f_thread_unlock(f_thread_lock_t *lock); + extern f_status_t f_thread_unlock(f_thread_lock_t * const lock); #endif // _di_f_thread_unlock_ #ifdef __cplusplus diff --git a/level_3/controller/c/entry/private-entry.c b/level_3/controller/c/entry/private-entry.c index d68c9c4..572568e 100644 --- a/level_3/controller/c/entry/private-entry.c +++ b/level_3/controller/c/entry/private-entry.c @@ -2016,7 +2016,7 @@ extern "C" { break; } - if (f_path_is_relative(global.setting->path_control.string, global.setting->path_control.used) == F_true) { + if (f_path_is_relative(global.setting->path_control) == F_true) { // Use the PID file path for creating a relative path to the control socket. status = f_file_name_directory(global.setting->path_pid, &cache->action.generic); diff --git a/level_3/fake/c/private-fake-path_generate.c b/level_3/fake/c/private-fake-path_generate.c index f5fd737..830a122 100644 --- a/level_3/fake/c/private-fake-path_generate.c +++ b/level_3/fake/c/private-fake-path_generate.c @@ -174,11 +174,11 @@ extern "C" { } // When custom fakefile or settings are used and they are paths to a file, remove the default path. - if (f_path_is(main->fakefile.string, main->fakefile.used) == F_true) { + if (f_path_is(main->fakefile) == F_true) { main->file_data_build_fakefile.used = 0; } - if (f_path_is(main->settings.string, main->settings.used) == F_true) { + if (f_path_is(main->settings) == F_true) { main->file_data_build_settings.used = 0; } diff --git a/level_3/fake/c/private-make-operate_process_type.c b/level_3/fake/c/private-make-operate_process_type.c index f00daa1..cd91f4d 100644 --- a/level_3/fake/c/private-make-operate_process_type.c +++ b/level_3/fake/c/private-make-operate_process_type.c @@ -1235,7 +1235,7 @@ extern "C" { --data_make->path.stack.used; - status = f_path_change(argument->string); + status = f_path_change(*argument); if (F_status_is_error(status)) { fake_print_message_section_operation_path_stack_max(data_make->main, data_make->error, F_status_set_fine(status), "f_path_change", *argument); @@ -1277,7 +1277,7 @@ extern "C" { return status; } - status = f_path_change(arguments.array[0].string); + status = f_path_change(arguments.array[0]); if (F_status_is_error(status)) { fake_print_message_section_operation_path_stack_max(data_make->main, data_make->error, F_status_set_fine(status), "f_path_change", arguments.array[0]);