summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h3
1 files changed, 3 insertions, 0 deletions
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]);