]> Savannah Git Hosting - gnulib.git/commitdiff
u*-vasnprintf: Improve comments.
authorBruno Haible <bruno@clisp.org>
Wed, 19 Jun 2024 12:39:02 +0000 (14:39 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 19 Jun 2024 12:39:02 +0000 (14:39 +0200)
* lib/vasnprintf.c (VASNPRINTF): Improve comments.

ChangeLog
lib/vasnprintf.c

index 3c50f00eb3542e4a30f7ab07b0a3875176c1d60c..a449920c842578572d7ba07c8d5b80f0e8d299e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-19  Bruno Haible  <bruno@clisp.org>
+
+       u*-vasnprintf: Improve comments.
+       * lib/vasnprintf.c (VASNPRINTF): Improve comments.
+
 2024-06-19  Bruno Haible  <bruno@clisp.org>
 
        u*-vasnprintf tests: Add more tests of %U, %lU, %llU directives.
index 059c1a9cb3a7dbd0069e75927f44d8f15cc10879..c49beddd26a21ca3859dd61900d1c46742142fbb 100644 (file)
@@ -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;
                         }