summaryrefslogtreecommitdiff
path: root/bootstrap.conf
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-08-29 15:22:23 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-08-30 10:32:18 -0700
commit37ff1120ad3512971a0468cb50540ffaa41b6d89 (patch)
tree51a8837664a75760f69463cfd81fdaa612adf2eb /bootstrap.conf
parent078321ebeb4d9e83e900278154dbf47ec2758295 (diff)
downloaddiffutils-37ff1120ad3512971a0468cb50540ffaa41b6d89.tar.gz
diff: use variable arg list for messages
This simplifies the code by using varargs. * bootstrap.conf (gnulib_modules): Add flexmember. (XGETTEXT_OPTIONS): Do not flag message5. * src/util.c: Include flexmember.h, stdarg.h. (struct msg): New members msgid, argbytes. args is now FLEXIBLE_ARRAY_MEMBER, and does not contain msgid. All uses changed. (message): Now varargs. Detect number of args by counting '%'s. Use FLEXSIZEOF, to avoid problems on systems with buggy allocators. Avoid redundant ‘*p = 0’ when *p is already zero after stpcpy. (message5): Remove; all callers changed to use ‘message’. (print_message_queue): Abort if too many args were passed; this cannot happen with current diffutils.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r--bootstrap.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap.conf b/bootstrap.conf
index e51b2d8..9234a43 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -36,6 +36,7 @@ error
exclude
exitfail
extensions
+flexmember
fcntl
fdl
file-type
@@ -103,7 +104,6 @@ XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
--flag=asprintf:2:c-format\\\
--from-code=UTF-8\\\
--flag=message:1:c-format\\\
- --flag=message5:1:c-format\\\
--flag=try_help:1:c-format\\\
--flag=vasprintf:2:c-format\\\
--flag=vasnprintf:3:c-format\\\