From 32361869d6bf2e37648fdf42344d9842d8758ccb Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Fri, 11 Feb 2022 18:06:46 -0600 Subject: [PATCH] Bugfix: Missing "extern" in const static strings. --- .../fll_fss_status_string/c/fss_status_string.c | 4 +-- .../fll_fss_status_string/c/fss_status_string.h | 32 +++++++++++----------- level_3/fss_identify/c/common.h | 6 ++-- level_3/fss_status_code/c/common.h | 4 +-- 4 files changed, 23 insertions(+), 23 deletions(-) diff --git a/level_2/fll_fss_status_string/c/fss_status_string.c b/level_2/fll_fss_status_string/c/fss_status_string.c index cbf6775..a3a859c 100644 --- a/level_2/fll_fss_status_string/c/fss_status_string.c +++ b/level_2/fll_fss_status_string/c/fss_status_string.c @@ -16,11 +16,11 @@ extern "C" { #endif // _di_fll_fss_status_warning_ #ifndef _di_fll_fss_status_success_ - const f_string_static_t fll_fss_status_found_object_s = macro_f_string_static_t_initialize(FLL_fss_status_found_object_s, 0, FLL_fss_status_found_object_s_length); const f_string_static_t fll_fss_status_found_content_s = macro_f_string_static_t_initialize(FLL_fss_status_found_content_s, 0, FLL_fss_status_found_content_s_length); - const f_string_static_t fll_fss_status_found_object_not_s = macro_f_string_static_t_initialize(FLL_fss_status_found_object_not_s, 0, FLL_fss_status_found_object_not_s_length); const f_string_static_t fll_fss_status_found_content_not_s = macro_f_string_static_t_initialize(FLL_fss_status_found_content_not_s, 0, FLL_fss_status_found_content_not_s_length); + const f_string_static_t fll_fss_status_found_object_s = macro_f_string_static_t_initialize(FLL_fss_status_found_object_s, 0, FLL_fss_status_found_object_s_length); const f_string_static_t fll_fss_status_found_object_content_not_s = macro_f_string_static_t_initialize(FLL_fss_status_found_object_content_not_s, 0, FLL_fss_status_found_object_content_not_s_length); + const f_string_static_t fll_fss_status_found_object_not_s = macro_f_string_static_t_initialize(FLL_fss_status_found_object_not_s, 0, FLL_fss_status_found_object_not_s_length); #endif // _di_fll_fss_status_success_ #ifndef _di_fll_fss_status_codes_ diff --git a/level_2/fll_fss_status_string/c/fss_status_string.h b/level_2/fll_fss_status_string/c/fss_status_string.h index 260bad8..71f34ff 100644 --- a/level_2/fll_fss_status_string/c/fss_status_string.h +++ b/level_2/fll_fss_status_string/c/fss_status_string.h @@ -35,8 +35,8 @@ extern "C" { #define FLL_fss_status_format_s_length 12 #define FLL_fss_status_format_eos_s_length 16 - const f_string_static_t fll_fss_status_format_s; - const f_string_static_t fll_fss_status_format_eos_s; + extern const f_string_static_t fll_fss_status_format_s; + extern const f_string_static_t fll_fss_status_format_eos_s; #endif // _di_fll_fss_status_error_ #ifndef _di_fll_fss_status_warning_ @@ -46,28 +46,28 @@ extern "C" { #define FLL_fss_status_accepted_invalid_s_length 22 #define FLL_fss_status_accepted_invalid_eos_s_length 26 - const f_string_static_t fll_fss_status_accepted_invalid_s; - const f_string_static_t fll_fss_status_accepted_invalid_eos_s; + extern const f_string_static_t fll_fss_status_accepted_invalid_s; + extern const f_string_static_t fll_fss_status_accepted_invalid_eos_s; #endif // _di_fll_fss_status_warning_ #ifndef _di_fll_fss_status_success_ - #define FLL_fss_status_found_object_s "F_fss_found_object" #define FLL_fss_status_found_content_s "F_fss_found_content" - #define FLL_fss_status_found_object_not_s "F_fss_found_object_not" #define FLL_fss_status_found_content_not_s "F_fss_found_content_not" + #define FLL_fss_status_found_object_s "F_fss_found_object" #define FLL_fss_status_found_object_content_not_s "F_fss_found_object_content_not" + #define FLL_fss_status_found_object_not_s "F_fss_found_object_not" - #define FLL_fss_status_found_object_s_length 18 #define FLL_fss_status_found_content_s_length 19 - #define FLL_fss_status_found_object_not_s_length 22 #define FLL_fss_status_found_content_not_s_length 23 + #define FLL_fss_status_found_object_s_length 18 #define FLL_fss_status_found_object_content_not_s_length 30 + #define FLL_fss_status_found_object_not_s_length 22 - const f_string_static_t fll_fss_status_found_object_s; - const f_string_static_t fll_fss_status_found_content_s; - const f_string_static_t fll_fss_status_found_object_not_s; - const f_string_static_t fll_fss_status_found_content_not_s; - const f_string_static_t fll_fss_status_found_object_content_not_s; + extern const f_string_static_t fll_fss_status_found_content_s; + extern const f_string_static_t fll_fss_status_found_content_not_s; + extern const f_string_static_t fll_fss_status_found_object_s; + extern const f_string_static_t fll_fss_status_found_object_content_not_s; + extern const f_string_static_t fll_fss_status_found_object_not_s; #endif // _di_fll_fss_status_success_ #ifndef _di_fll_fss_status_codes_ @@ -75,7 +75,7 @@ extern "C" { #define FLL_fss_status_found_comment_s_length 19 - const f_string_static_t fll_fss_status_found_comment_s; + extern const f_string_static_t fll_fss_status_found_comment_s; #endif // _di_fll_fss_status_codes_ #define FLL_fss_status_status_code_first_s "F_fss_status_code_first" @@ -84,8 +84,8 @@ extern "C" { #define FLL_fss_status_status_code_first_s_length 23 #define FLL_fss_status_status_code_last_s_length 21 - const f_string_static_t fll_fss_status_status_code_first_s; - const f_string_static_t fll_fss_status_status_code_last_s; + extern const f_string_static_t fll_fss_status_status_code_first_s; + extern const f_string_static_t fll_fss_status_status_code_last_s; #endif // _di_fll_fss_status_string_ /** diff --git a/level_3/fss_identify/c/common.h b/level_3/fss_identify/c/common.h index 5d51e21..993790e 100644 --- a/level_3/fss_identify/c/common.h +++ b/level_3/fss_identify/c/common.h @@ -42,7 +42,7 @@ extern "C" { #define FSS_IDENTIFY_program_version_s_length FSS_IDENTIFY_program_version_major_s_length + F_string_ascii_period_s_length + FSS_IDENTIFY_program_version_minor_s_length + F_string_ascii_period_s_length + FSS_IDENTIFY_program_version_micro_s_length + FSS_IDENTIFY_program_version_nano_prefix_s_length + FSS_IDENTIFY_program_version_nano_s_length - const f_string_static_t fss_identify_program_version_s; + extern const f_string_static_t fss_identify_program_version_s; #endif // _di_fss_identify_program_version_ /** @@ -55,8 +55,8 @@ extern "C" { #define FSS_IDENTIFY_program_name_s_length 12 #define FSS_IDENTIFY_program_name_long_s_length 12 - const f_string_static_t fss_identify_program_name_s; - const f_string_static_t fss_identify_program_name_long_s; + extern const f_string_static_t fss_identify_program_name_s; + extern const f_string_static_t fss_identify_program_name_long_s; #endif // _di_fss_identify_program_name_ /** diff --git a/level_3/fss_status_code/c/common.h b/level_3/fss_status_code/c/common.h index 12246be..439fad6 100644 --- a/level_3/fss_status_code/c/common.h +++ b/level_3/fss_status_code/c/common.h @@ -55,8 +55,8 @@ extern "C" { #define FSS_STATUS_CODE_program_name_s_length 15 #define FSS_STATUS_CODE_program_name_long_s_length 15 - const f_string_static_t fss_status_code_program_name_s; - const f_string_static_t fss_status_code_program_name_long_s; + extern const f_string_static_t fss_status_code_program_name_s; + extern const f_string_static_t fss_status_code_program_name_long_s; #endif // _di_fss_status_code_program_name_ /** -- 1.8.3.1