diff options
author | Jari Aalto <jari.aalto@cante.net> | 2001-11-13 17:56:06 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:54 +0000 |
commit | f73dda092b33638d2d5e9c35375f687a607b5403 (patch) | |
tree | f21584e70a444d6a1ecba0fb5e2cf79e8cce91db /lib/sh/strtod.c | |
parent | 28ef6c316f1aff914bb95ac09787a3c83c1815fd (diff) | |
download | android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.gz android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.bz2 android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.zip |
Imported from ../bash-2.05a.tar.gz.
Diffstat (limited to 'lib/sh/strtod.c')
-rw-r--r-- | lib/sh/strtod.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sh/strtod.c b/lib/sh/strtod.c index fe0f09d..cc3bec9 100644 --- a/lib/sh/strtod.c +++ b/lib/sh/strtod.c @@ -25,7 +25,7 @@ extern int errno; #endif -#include <ctype.h> +#include <chartypes.h> #include <math.h> #if HAVE_FLOAT_H @@ -73,7 +73,7 @@ strtod (nptr, endptr) s = nptr; /* Eat whitespace. */ - while (isspace (*s)) + while (ISSPACE ((unsigned char)*s)) ++s; /* Get the sign. */ @@ -87,7 +87,7 @@ strtod (nptr, endptr) exponent = 0; for (;; ++s) { - if (isdigit (*s)) + if (DIGIT (*s)) { got_digit = 1; @@ -120,7 +120,7 @@ strtod (nptr, endptr) if (!got_digit) goto noconv; - if (tolower (*s) == 'e') + if (TOLOWER ((unsigned char)*s) == 'e') { /* Get the exponent specified after the `e' or `E'. */ int save = errno; |