From a279d7d134eaa4668cb7181185a730cfb5c7baa3 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sun, 26 Apr 2020 00:26:57 -0500 Subject: [PATCH] Update: Ensure internal visibility is used in private functions and fix header inconsistency in status code --- level_3/byte_dump/c/private-byte_dump.h | 8 ++++---- level_3/fss_status_code/c/private-fss_status_code.h | 8 ++++---- level_3/status_code/c/private-status_code.h | 8 ++++---- level_3/status_code/c/status_code.h | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/level_3/byte_dump/c/private-byte_dump.h b/level_3/byte_dump/c/private-byte_dump.h index 6b1c98e..51b9451 100644 --- a/level_3/byte_dump/c/private-byte_dump.h +++ b/level_3/byte_dump/c/private-byte_dump.h @@ -70,7 +70,7 @@ extern "C" { * f_failure (with error bit) on failure, usually when read() fails. */ #ifndef _di_byte_dump_file_ - extern f_return_status byte_dump_file(const byte_dump_data data, const f_string file_name, f_file file); + extern f_return_status byte_dump_file(const byte_dump_data data, const f_string file_name, f_file file) f_gcc_attribute_visibility_internal; #endif // _di_byte_dump_file_ /** @@ -111,7 +111,7 @@ extern "C" { * @see byte_dump_print_text() */ #ifndef _di_byte_dump_print_character_fragment_ - extern bool byte_dump_print_character_fragment(const byte_dump_data data, const f_utf_string_dynamic characters, const uint8_t invalid[], const int8_t width_utf, const int8_t byte_current, byte_dump_previous *previous, byte_dump_cell *cell, uint8_t *offset); + extern bool byte_dump_print_character_fragment(const byte_dump_data data, const f_utf_string_dynamic characters, const uint8_t invalid[], const int8_t width_utf, const int8_t byte_current, byte_dump_previous *previous, byte_dump_cell *cell, uint8_t *offset) f_gcc_attribute_visibility_internal; #endif // _di_byte_dump_print_character_fragment_ /** @@ -133,7 +133,7 @@ extern "C" { * Will be reduced to 0 once used. */ #ifndef _di_byte_dump_print_text_ - extern void byte_dump_print_text(const byte_dump_data data, const f_utf_string_dynamic characters, const uint8_t invalid[], byte_dump_previous *previous, uint8_t *offset); + extern void byte_dump_print_text(const byte_dump_data data, const f_utf_string_dynamic characters, const uint8_t invalid[], byte_dump_previous *previous, uint8_t *offset) f_gcc_attribute_visibility_internal; #endif // _di_byte_dump_print_text_ /** @@ -155,7 +155,7 @@ extern "C" { * f_false if error has not been printed. */ #ifndef _di_byte_dump_print_file_error_ - extern void byte_dump_print_file_error(const fl_color_context context, const f_string function, const f_string file_name, const f_status status); + extern void byte_dump_print_file_error(const fl_color_context context, const f_string function, const f_string file_name, const f_status status) f_gcc_attribute_visibility_internal; #endif // _di_byte_dump_print_file_error_ #ifdef __cplusplus diff --git a/level_3/fss_status_code/c/private-fss_status_code.h b/level_3/fss_status_code/c/private-fss_status_code.h index 3e3c10f..1c8f109 100644 --- a/level_3/fss_status_code/c/private-fss_status_code.h +++ b/level_3/fss_status_code/c/private-fss_status_code.h @@ -30,7 +30,7 @@ extern "C" { * f_incomplete_utf (with error bit) if an incomplete UTF-8 fragment is found. */ #ifndef _di_fss_status_code_process_check_ - extern f_return_status fss_status_code_process_check(const fss_status_code_data data, const f_string value); + extern f_return_status fss_status_code_process_check(const fss_status_code_data data, const f_string value) f_gcc_attribute_visibility_internal; #endif // _di_fss_status_code_process_check_ /** @@ -47,7 +47,7 @@ extern "C" { * f_invalid_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_fss_status_code_process_number_ - extern f_return_status fss_status_code_process_number(const fss_status_code_data data, const f_string value); + extern f_return_status fss_status_code_process_number(const fss_status_code_data data, const f_string value) f_gcc_attribute_visibility_internal; #endif // _di_fss_status_code_process_number_ /** @@ -68,7 +68,7 @@ extern "C" { * f_incomplete_utf (with error bit) if an incomplete UTF-8 fragment is found. */ #ifndef _di_fss_status_code_process_normal_ - extern f_return_status fss_status_code_process_normal(const fss_status_code_data data, const f_string value); + extern f_return_status fss_status_code_process_normal(const fss_status_code_data data, const f_string value) f_gcc_attribute_visibility_internal; #endif // _di_fss_status_code_process_normal_ /** @@ -92,7 +92,7 @@ extern "C" { * f_incomplete_utf (with error bit) if an incomplete UTF-8 fragment is found. */ #ifndef _di_fss_status_code_convert_number_ - extern f_return_status fss_status_code_convert_number(const fss_status_code_data data, const f_string value, f_number_unsigned *number); + extern f_return_status fss_status_code_convert_number(const fss_status_code_data data, const f_string value, f_number_unsigned *number) f_gcc_attribute_visibility_internal; #endif // _di_fss_status_code_convert_number_ #ifdef __cplusplus diff --git a/level_3/status_code/c/private-status_code.h b/level_3/status_code/c/private-status_code.h index 09fd4ab..f06baf7 100644 --- a/level_3/status_code/c/private-status_code.h +++ b/level_3/status_code/c/private-status_code.h @@ -30,7 +30,7 @@ extern "C" { * f_incomplete_utf (with error bit) if an incomplete UTF-8 fragment is found. */ #ifndef _di_status_code_process_check_ - extern f_return_status status_code_process_check(const status_code_data data, const f_string value); + extern f_return_status status_code_process_check(const status_code_data data, const f_string value) f_gcc_attribute_visibility_internal; #endif // _di_status_code_process_check_ /** @@ -47,7 +47,7 @@ extern "C" { * f_invalid_parameter (with error bit) if a parameter is invalid. */ #ifndef _di_status_code_process_number_ - extern f_return_status status_code_process_number(const status_code_data data, const f_string value); + extern f_return_status status_code_process_number(const status_code_data data, const f_string value) f_gcc_attribute_visibility_internal; #endif // _di_status_code_process_number_ /** @@ -68,7 +68,7 @@ extern "C" { * f_incomplete_utf (with error bit) if an incomplete UTF-8 fragment is found. */ #ifndef _di_status_code_process_normal_ - extern f_return_status status_code_process_normal(const status_code_data data, const f_string value); + extern f_return_status status_code_process_normal(const status_code_data data, const f_string value) f_gcc_attribute_visibility_internal; #endif // _di_status_code_process_normal_ /** @@ -92,7 +92,7 @@ extern "C" { * f_incomplete_utf (with error bit) if an incomplete UTF-8 fragment is found. */ #ifndef _di_status_code_convert_number_ - extern f_return_status status_code_convert_number(const status_code_data data, const f_string value, f_number_unsigned *number); + extern f_return_status status_code_convert_number(const status_code_data data, const f_string value, f_number_unsigned *number) f_gcc_attribute_visibility_internal; #endif // _di_status_code_convert_number_ #ifdef __cplusplus diff --git a/level_3/status_code/c/status_code.h b/level_3/status_code/c/status_code.h index e6e7452..19f7d77 100644 --- a/level_3/status_code/c/status_code.h +++ b/level_3/status_code/c/status_code.h @@ -118,7 +118,7 @@ extern "C" { * f_none on success. */ #ifndef _di_status_code_print_help_ - extern f_return_status status_code_print_help(const status_code_data data); + extern f_return_status status_code_print_help(const fl_color_context context); #endif // _di_status_code_print_help_ /** -- 1.8.3.1