From 5a81f6bb01d6ca925a1a5745a64b6c0ca1776964 Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Tue, 6 Dec 2022 23:53:37 -0600 Subject: [PATCH] Bugfix: The private is_zero_width function is also needed by the is_graph functions. --- level_0/f_utf/c/private-utf_zero_width.c | 4 ++-- level_0/f_utf/c/private-utf_zero_width.h | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/level_0/f_utf/c/private-utf_zero_width.c b/level_0/f_utf/c/private-utf_zero_width.c index 2aa2e35..e646453 100644 --- a/level_0/f_utf/c/private-utf_zero_width.c +++ b/level_0/f_utf/c/private-utf_zero_width.c @@ -6,7 +6,7 @@ extern "C" { #endif -#if !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_zero_width_) +#if !defined(_di_f_utf_character_is_graph_) || !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_graph_) || !defined(_di_f_utf_is_zero_width_) f_status_t private_f_utf_character_is_zero_width(const f_utf_char_t sequence) { if (macro_f_utf_char_t_width_is(sequence) == 3) { @@ -35,7 +35,7 @@ extern "C" { return F_false; } -#endif // !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_zero_width_) +#endif // !defined(_di_f_utf_character_is_graph_) || !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_graph_) || !defined(_di_f_utf_is_zero_width_) #ifdef __cplusplus } // extern "C" diff --git a/level_0/f_utf/c/private-utf_zero_width.h b/level_0/f_utf/c/private-utf_zero_width.h index cf1eee8..b455950 100644 --- a/level_0/f_utf/c/private-utf_zero_width.h +++ b/level_0/f_utf/c/private-utf_zero_width.h @@ -34,12 +34,14 @@ extern "C" { * F_utf_fragment (with error bit) if character is a UTF-8 fragment. * F_utf_not (with error bit) if unicode is an invalid Unicode character. * + * @see f_utf_character_is_graph() * @see f_utf_character_is_zero_width() + * @see f_utf_is_graph() * @see f_utf_is_zero_width() */ -#if !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_zero_width_) +#if !defined(_di_f_utf_character_is_graph_) || !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_graph_) || !defined(_di_f_utf_is_zero_width_) extern f_status_t private_f_utf_character_is_zero_width(const f_utf_char_t sequence) F_attribute_visibility_internal_d; -#endif // !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_zero_width_) +#endif // !defined(_di_f_utf_character_is_graph_) || !defined(_di_f_utf_character_is_zero_width_) || !defined(_di_f_utf_is_graph_) || !defined(_di_f_utf_is_zero_width_) #ifdef __cplusplus } // extern "C" -- 1.8.3.1