Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/gas/atof-generic.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.1.1.2
    r608 r609  
    11/* 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
    33   Free Software Foundation, Inc.
    44
     
    2020   02111-1307, USA.  */
    2121
    22 #include <ctype.h>
    2322#include <string.h>
    2423
    2524#include "as.h"
     25#include "safe-ctype.h"
    2626
    2727#ifndef FALSE
     
    172172       p++)
    173173    {
    174       if (isdigit ((unsigned char) c))
     174      if (ISDIGIT (c))
    175175        {
    176176          if (seen_significant_digit || c > '0')
     
    201201      unsigned int zeros = 0;   /* Length of current string of zeros */
    202202
    203       for (p++; (c = *p) && isdigit ((unsigned char) c); p++)
     203      for (p++; (c = *p) && ISDIGIT (c); p++)
    204204        {
    205205          if (c == '0')
     
    222222           p++)
    223223        {
    224           if (isdigit ((unsigned char) c))
     224          if (ISDIGIT (c))
    225225            {
    226226              /* This may be retracted below.  */
     
    276276      for (; (c); c = *++p)
    277277        {
    278           if (isdigit ((unsigned char) c))
     278          if (ISDIGIT (c))
    279279            {
    280280              decimal_exponent = decimal_exponent * 10 + c - '0';
     
    401401        {
    402402          c = *p;
    403           if (isdigit ((unsigned char) c))
     403          if (ISDIGIT (c))
    404404            {
    405405              /*
     
    435435                   * This should never happen.
    436436                   */
    437                   as_fatal (_("failed sanity check."));
     437                  as_fatal (_("failed sanity check"));
    438438                }
    439439            }
Note: See TracChangeset for help on using the changeset viewer.