From: Bruno Haible Date: Wed, 19 Jun 2024 12:39:02 +0000 (+0200) Subject: u*-vasnprintf: Improve comments. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=983a290f1e55997d5648807a7ef95c3b96a7295c;p=gnulib.git u*-vasnprintf: Improve comments. * lib/vasnprintf.c (VASNPRINTF): Improve comments. --- diff --git a/ChangeLog b/ChangeLog index 3c50f00eb3..a449920c84 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-06-19 Bruno Haible + + u*-vasnprintf: Improve comments. + * lib/vasnprintf.c (VASNPRINTF): Improve comments. + 2024-06-19 Bruno Haible u*-vasnprintf tests: Add more tests of %U, %lU, %llU directives. diff --git a/lib/vasnprintf.c b/lib/vasnprintf.c index 059c1a9cb3..c49beddd26 100644 --- a/lib/vasnprintf.c +++ b/lib/vasnprintf.c @@ -2538,7 +2538,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, { /* Use the entire string. */ arg_end = arg + u8_strlen (arg); - /* The number of characters doesn't matter. */ + /* The number of characters doesn't matter, + because !has_width and therefore width==0. */ characters = 0; } @@ -2640,7 +2641,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, { /* Use the entire string. */ arg_end = arg + u16_strlen (arg); - /* The number of characters doesn't matter. */ + /* The number of characters doesn't matter, + because !has_width and therefore width==0. */ characters = 0; } @@ -2742,7 +2744,8 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp, { /* Use the entire string. */ arg_end = arg + u32_strlen (arg); - /* The number of characters doesn't matter. */ + /* The number of characters doesn't matter, + because !has_width and therefore width==0. */ characters = 0; }