[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/XS/xspara.c (xspara__add_next, xspar
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/Texinfo/XS/xspara.c (xspara__add_next, xspara_add_next): Remove unnecessary casts to ucs4_t when calling uc_width. Advice from Bruno. |
Date: |
Sun, 12 Nov 2023 05:11:24 -0500 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 19a14189a4 * tp/Texinfo/XS/xspara.c (xspara__add_next,
xspara_add_next): Remove unnecessary casts to ucs4_t when calling uc_width.
Advice from Bruno.
19a14189a4 is described below
commit 19a14189a4baf8760c60c173eed5c0585e6d12b0
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sun Nov 12 10:08:42 2023 +0000
* tp/Texinfo/XS/xspara.c (xspara__add_next, xspara_add_next):
Remove unnecessary casts to ucs4_t when calling uc_width. Advice
from Bruno.
---
ChangeLog | 6 ++++++
tp/Texinfo/XS/xspara.c | 4 ++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index aa7290fb2e..2b27d88939 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-11-12 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/XS/xspara.c (xspara__add_next, xspara_add_next):
+ Remove unnecessary casts to ucs4_t when calling uc_width. Advice
+ from Bruno.
+
2023-11-11 Gavin Smith <gavinsmith0123@gmail.com>
Update required gnulib modules for XS
diff --git a/tp/Texinfo/XS/xspara.c b/tp/Texinfo/XS/xspara.c
index 42ff6dea7e..f313d03046 100644
--- a/tp/Texinfo/XS/xspara.c
+++ b/tp/Texinfo/XS/xspara.c
@@ -681,7 +681,7 @@ xspara__add_next (TEXT *result, char *word, int word_len,
int transparent)
}
left -= char_len;
- columns = uc_width ((ucs4_t) w, "UTF-8");
+ columns = uc_width (w, "UTF-8");
if (columns > 0)
len += columns;
@@ -859,7 +859,7 @@ xspara_add_text (char *text, int len)
/* Note: width == 0 includes accent characters which should not
properly increase the column count. This is not what the pure
Perl code does, though. */
- width = uc_width ((ucs4_t) wc, "UTF-8");
+ width = uc_width (wc, "UTF-8");
if (width == 1 || width == 0)
next_type = type_regular;
else if (width == 2)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/XS/xspara.c (xspara__add_next, xspara_add_next): Remove unnecessary casts to ucs4_t when calling uc_width. Advice from Bruno.,
Gavin D. Smith <=