]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
980707-1.c: Don't use isspace().
authorZack Weinberg <zack@codesourcery.com>
Mon, 22 Apr 2002 17:40:50 +0000 (17:40 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Mon, 22 Apr 2002 17:40:50 +0000 (17:40 +0000)
* gcc.c-torture/execute/980707-1.c: Don't use isspace().
Include stdlib.h, not stdio.h or ctype.h.

From-SVN: r52619

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/980707-1.c

index 247cadef4b2c60195de94400458c0ef54fedb617..ca26c2f1d6073bfc5d555492f526ae0b18a8cd02 100644 (file)
@@ -1,3 +1,8 @@
+2002-04-22  Zack Weinberg  <zack@codesourcery.com>
+
+       * gcc.c-torture/execute/980707-1.c: Don't use isspace().
+       Include stdlib.h, not stdio.h or ctype.h.
+
 2002-04-22  Hans-Peter Nilsson  <hp@axis.com>
 
        * gcc.dg/20020415-1.c: Expect warning for unsupported -fpic on
index 3af163a3767ac509367cdab35245b8dd9797ac16..5095abe46e13cf793d8f9e5576128b4b855c2368 100644 (file)
@@ -1,5 +1,4 @@
-#include <stdio.h>
-#include <ctype.h>
+#include <stdlib.h>
 #include <string.h>
 
 char **
@@ -10,12 +9,12 @@ buildargv (char *input)
 
   while (1)
     {
-      while (isspace ((unsigned char)*input) && *input != 0)
+      while (*input == ' ')
        input++;
       if (*input == 0)
        break;
       arglist [numargs++] = input;
-      while (!isspace ((unsigned char)*input) && *input != 0)
+      while (*input != ' ' && *input != 0)
        input++;
       if (*input == 0)
        break;