From: Jarkko Hietaniemi Date: Sun, 16 Jan 2000 19:12:58 +0000 (+0000) Subject: Know strtoll. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=76d49b1cacfde5868001c5aa0ec48417c762179b;p=p5sagit%2Fp5-mst-13.2.git Know strtoll. p4raw-id: //depot/cfgperl@4808 --- diff --git a/Configure b/Configure index 29a59fb..d4741cb 100755 --- a/Configure +++ b/Configure @@ -20,7 +20,7 @@ # $Id: Head.U,v 3.0.1.9 1997/02/28 15:02:09 ram Exp $ # -# Generated on Sun Jan 16 18:22:25 EET 2000 [metaconfig 3.0 PL70] +# Generated on Sun Jan 16 21:08:34 EET 2000 [metaconfig 3.0 PL70] # (with additional metaconfig patches by perlbug@perl.com) cat >/tmp/c1$$ <config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un- */ #$d_strtold HAS_STRTOLD /**/ +/* HAS_STRTOLL: + * This symbol, if defined, indicates that the strtoll routine is + * available to convert strings to long longs. + */ +#$d_strtoll HAS_STRTOLL /**/ + /* HAS_STRTOULL: * This symbol, if defined, indicates that the strtoull routine is * available to convert strings to unsigned long longs. diff --git a/perl.h b/perl.h index 3310aab..f0292f3 100644 --- a/perl.h +++ b/perl.h @@ -1089,7 +1089,7 @@ typedef NVTYPE NV; # define Perl_fmod fmod #endif -#if defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE) +#if !defined(Perl_atof) && defined(USE_LONG_DOUBLE) && defined(HAS_LONG_DOUBLE) # if !defined(Perl_atof) && defined(HAS_STRTOLD) # define Perl_atof(s) strtold(s, (char*)0) # endif @@ -2985,9 +2985,13 @@ typedef struct am_table_short AMTS; #endif /* !USE_LOCALE_NUMERIC */ -#if !defined(Atol) && defined(USE_LONG_LONG) && defined(HAS_LONG_LONG) \ - && defined(HAS_ATOLL) -# define Atol atoll +#if !defined(Atol) && defined(USE_LONG_LONG) && defined(HAS_LONG_LONG) +# if !defined(Atol) && defined(HAS_STRTOLL) +# define Atol(s) strtoll(s, (char*)0) +# endif +# if !defined(Atol) && defined(HAS_ATOLL) +# define Atol atoll +# endif #endif /* is there atoq() anywhere? */ #if !defined(Atol) @@ -2998,6 +3002,7 @@ typedef struct am_table_short AMTS; && defined(HAS_STRTOULL) # define Strtoul strtoull #endif +/* is there atouq() anywhere? */ #if !defined(Strtoul) && defined(USE_64_BITS) && defined(HAS_STRTOUQ) # define Strtoul strtouq #endif