OSDN Git Service

Locale changes from Bruno Haible <haible@clisp.cons.org>.
[pf3gnuchains/pf3gnuchains4x.git] / ld / mpw-eppcmac.c
index 0062ff3..1278097 100644 (file)
@@ -1,7 +1,7 @@
 /* This file is is generated by a shell script.  DO NOT EDIT! */
 
 /* AIX emulation code for ppcmacos
-   Copyright 1991, 1993, 1995, 1996, 1997, 2000
+   Copyright 1991, 1993, 1995, 1996, 1997, 2000, 2001
    Free Software Foundation, Inc.
    Written by Steve Chamberlain <sac@cygnus.com>
    AIX support by Ian Lance Taylor <ian@cygnus.com>
@@ -27,11 +27,10 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "bfd.h"
 #include "sysdep.h"
 #include "libiberty.h"
+#include "safe-ctype.h"
 #include "getopt.h"
 #include "bfdlink.h"
 
-#include <ctype.h>
-
 #include "ld.h"
 #include "ldmain.h"
 #include "ldmisc.h"
@@ -708,7 +707,7 @@ gldppcmacos_read_file (filename, import)
       ++lineno;
 
       s = (char *) obstack_base (o);
-      while (isspace ((unsigned char) *s))
+      while (ISSPACE (*s))
        ++s;
       if (*s == '\0'
          || *s == '*'
@@ -722,7 +721,7 @@ gldppcmacos_read_file (filename, import)
       if (*s == '#' && s[1] == '!')
        {
          s += 2;
-         while (isspace ((unsigned char) *s))
+         while (ISSPACE (*s))
            ++s;
          if (*s == '\0')
            {
@@ -743,7 +742,7 @@ gldppcmacos_read_file (filename, import)
              keep = true;
              imppath = s;
              file = NULL;
-             while (! isspace ((unsigned char) *s) && *s != '(' && *s != '\0')
+             while (! ISSPACE (*s) && *s != '(' && *s != '\0')
                {
                  if (*s == '/')
                    file = s + 1;
@@ -763,7 +762,7 @@ gldppcmacos_read_file (filename, import)
                }
              cs = *s;
              *s = '\0';
-             while (isspace ((unsigned char) cs))
+             while (ISSPACE (cs))
                {
                  ++s;
                  cs = *s;
@@ -797,7 +796,7 @@ gldppcmacos_read_file (filename, import)
       syscall = false;
       address = (bfd_vma) -1;
 
-      while (! isspace ((unsigned char) *s) && *s != '\0')
+      while (! ISSPACE (*s) && *s != '\0')
        ++s;
       if (*s != '\0')
        {
@@ -805,16 +804,16 @@ gldppcmacos_read_file (filename, import)
 
          *s++ = '\0';
 
-         while (isspace ((unsigned char) *s))
+         while (ISSPACE (*s))
            ++s;
 
          se = s;
-         while (! isspace ((unsigned char) *se) && *se != '\0')
+         while (! ISSPACE (*se) && *se != '\0')
            ++se;
          if (*se != '\0')
            {
              *se++ = '\0';
-             while (isspace ((unsigned char) *se))
+             while (ISSPACE (*se))
                ++se;
              if (*se != '\0')
                einfo (_("%s%d: warning: syntax error in import/export file\n"),