diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-10 16:44:36 -0500 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-09-10 18:54:21 -0500 |
commit | 705bb093174004275009510bdaab6e8046ab37f8 (patch) | |
tree | b3499801c18e2aa22354e522c3635f6681fe5030 | |
parent | 4ba281eca3246a9037e2eb10be2c8caa9b8c9c20 (diff) | |
download | tar-705bb093174004275009510bdaab6e8046ab37f8.tar.gz |
build: update submodules to latest
* src/common.h: Include <inttostr.h> since paxutils no longer does.
(STRINGIFY_BIGINT): New macro, copied from older paxutils.
(UINTMAX_STRSIZE_BOUND): New constant, also from older paxutils.
m--------- | gnulib | 0 | ||||
m--------- | paxutils | 0 | ||||
-rw-r--r-- | src/common.h | 3 |
3 files changed, 3 insertions, 0 deletions
diff --git a/gnulib b/gnulib -Subproject d682f8de7f9d384f4cfc482a3ba2960329a8db2 +Subproject 60e9cc86d91d23465bb79751c772ec87d05bae1 diff --git a/paxutils b/paxutils -Subproject 9ae062098da4383a6c9b39e245c1a2888a64535 +Subproject 6fba6e940684a4e6bd8d924d2d49f16de824251 diff --git a/src/common.h b/src/common.h index 259655f9..7471820e 100644 --- a/src/common.h +++ b/src/common.h @@ -54,6 +54,7 @@ #include <exclude.h> #include <full-write.h> #include <idx.h> +#include <inttostr.h> #include <modechange.h> #include <quote.h> #include <safe-read.h> @@ -673,6 +674,8 @@ represent_uintmax (uintmax_t n) } } +#define STRINGIFY_BIGINT(i, b) umaxtostr (i, b) +enum { UINTMAX_STRSIZE_BOUND = INT_BUFSIZE_BOUND (intmax_t) }; enum { SYSINT_BUFSIZE = max (UINTMAX_STRSIZE_BOUND, INT_BUFSIZE_BOUND (intmax_t)) }; char *sysinttostr (uintmax_t, intmax_t, uintmax_t, char buf[SYSINT_BUFSIZE]); |