OSDN Git Service

* gcc.c-torture/execute/980707-1.c: Don't use isspace().
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Apr 2002 17:40:50 +0000 (17:40 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Apr 2002 17:40:50 +0000 (17:40 +0000)
Include stdlib.h, not stdio.h or ctype.h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52619 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 247cade..ca26c2f 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 3af163a..5095abe 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;