Changeset 609 for branches/GNU/src/binutils/gas/atof-generic.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/gas/atof-generic.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* atof_generic.c - turn a string of digits into a Flonum 2 Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000 2 Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999, 2000, 2001 3 3 Free Software Foundation, Inc. 4 4 … … 20 20 02111-1307, USA. */ 21 21 22 #include <ctype.h>23 22 #include <string.h> 24 23 25 24 #include "as.h" 25 #include "safe-ctype.h" 26 26 27 27 #ifndef FALSE … … 172 172 p++) 173 173 { 174 if ( isdigit ((unsigned char)c))174 if (ISDIGIT (c)) 175 175 { 176 176 if (seen_significant_digit || c > '0') … … 201 201 unsigned int zeros = 0; /* Length of current string of zeros */ 202 202 203 for (p++; (c = *p) && isdigit ((unsigned char)c); p++)203 for (p++; (c = *p) && ISDIGIT (c); p++) 204 204 { 205 205 if (c == '0') … … 222 222 p++) 223 223 { 224 if ( isdigit ((unsigned char)c))224 if (ISDIGIT (c)) 225 225 { 226 226 /* This may be retracted below. */ … … 276 276 for (; (c); c = *++p) 277 277 { 278 if ( isdigit ((unsigned char)c))278 if (ISDIGIT (c)) 279 279 { 280 280 decimal_exponent = decimal_exponent * 10 + c - '0'; … … 401 401 { 402 402 c = *p; 403 if ( isdigit ((unsigned char)c))403 if (ISDIGIT (c)) 404 404 { 405 405 /* … … 435 435 * This should never happen. 436 436 */ 437 as_fatal (_("failed sanity check ."));437 as_fatal (_("failed sanity check")); 438 438 } 439 439 } -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.