diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-10-12 13:00:38 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-10-12 13:00:38 -0700 |
commit | 46e5e833d91758f31fbbea3c894cd0c90e78c484 (patch) | |
tree | ada8756fe35e7b4c60b77a3344e3ec7beaecf11e /lib/strtoimax.c | |
parent | 2f4586ad044ba5deedadbccd4ad913c565ca3367 (diff) | |
download | emacs-46e5e833d91758f31fbbea3c894cd0c90e78c484.tar.gz emacs-46e5e833d91758f31fbbea3c894cd0c90e78c484.tar.bz2 emacs-46e5e833d91758f31fbbea3c894cd0c90e78c484.zip |
Merge from gnulib.
This incorporates:
2013-10-10 strtoumax: port to Solaris 8
2013-10-09 strtoimax, strtoumax: port to HP-UX 11.11
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* lib/inttypes.in.h, lib/strtoimax.c, m4/inttypes.m4, m4/strtoimax.m4:
* m4/strtoumax.m4:
Update from gnulib.
Diffstat (limited to 'lib/strtoimax.c')
-rw-r--r-- | lib/strtoimax.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/lib/strtoimax.c b/lib/strtoimax.c index c9bd2ad3b1c..b4feaf361f7 100644 --- a/lib/strtoimax.c +++ b/lib/strtoimax.c @@ -48,28 +48,31 @@ long long int strtoll (char const *, char **, int); #ifdef UNSIGNED # define Have_long_long HAVE_UNSIGNED_LONG_LONG_INT # define Int uintmax_t +# define Strtoimax strtoumax +# define Strtol strtoul +# define Strtoll strtoull # define Unsigned unsigned -# define strtoimax strtoumax -# define strtol strtoul -# define strtoll strtoull #else # define Have_long_long HAVE_LONG_LONG_INT # define Int intmax_t +# define Strtoimax strtoimax +# define Strtol strtol +# define Strtoll strtoll # define Unsigned #endif Int -strtoimax (char const *ptr, char **endptr, int base) +Strtoimax (char const *ptr, char **endptr, int base) { #if Have_long_long verify (sizeof (Int) == sizeof (Unsigned long int) || sizeof (Int) == sizeof (Unsigned long long int)); if (sizeof (Int) != sizeof (Unsigned long int)) - return strtoll (ptr, endptr, base); + return Strtoll (ptr, endptr, base); #else verify (sizeof (Int) == sizeof (Unsigned long int)); #endif - return strtol (ptr, endptr, base); + return Strtol (ptr, endptr, base); } |