diff options
author | Jim Meyering <meyering@redhat.com> | 2010-01-23 11:52:44 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-01-25 12:04:15 +0100 |
commit | 99b7042563670fc4e315685f771d1708909ea3ec (patch) | |
tree | ad5707b6c3db5fb165b43cca8be381085ce7271b /lib/xstrtoll.c | |
parent | 0d92ff0717ae44fc7098f1f00aec634e5e79f2e9 (diff) | |
download | gnulib-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 'lib/xstrtoll.c')
-rw-r--r-- | lib/xstrtoll.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/xstrtoll.c b/lib/xstrtoll.c new file mode 100644 index 0000000000..344e5a4b7c --- /dev/null +++ b/lib/xstrtoll.c @@ -0,0 +1,6 @@ +#define __strtol strtoll +#define __strtol_t long long int +#define __xstrtol xstrtoll +#define STRTOL_T_MINIMUM LONG_LONG_MIN +#define STRTOL_T_MAXIMUM LONG_LONG_MAX +#include "xstrtol.c" |