summaryrefslogtreecommitdiff
path: root/tests/test-xstrtoll.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-01-23 11:52:44 +0100
committerJim Meyering <meyering@redhat.com>2010-01-25 12:04:15 +0100
commit99b7042563670fc4e315685f771d1708909ea3ec (patch)
treead5707b6c3db5fb165b43cca8be381085ce7271b /tests/test-xstrtoll.c
parent0d92ff0717ae44fc7098f1f00aec634e5e79f2e9 (diff)
downloadgnulib-99b7042563670fc4e315685f771d1708909ea3ec.tar.gz
xstrtoll: new module
* modules/xstrtoll: New file. * MODULES.html.sh (Numeric conversion functions): Add xstrtoll. * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull. * lib/xstrtoll.c, lib/xstrtoull.c: New files. ./configure fails if you use this module and lack "long long". * modules/xstrtoll-tests: New module. * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files. * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the new init.sh-based test framework.
Diffstat (limited to 'tests/test-xstrtoll.c')
-rw-r--r--tests/test-xstrtoll.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test-xstrtoll.c b/tests/test-xstrtoll.c
new file mode 100644
index 0000000000..03dd232aee
--- /dev/null
+++ b/tests/test-xstrtoll.c
@@ -0,0 +1,4 @@
+#define __xstrtol xstrtoll
+#define __strtol_t long long int
+#define __spec PRId64
+#include "test-xstrtol.c"