diff options
author | Zack Weinberg <zack@codesourcery.com> | 2002-04-22 17:40:50 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2002-04-22 17:40:50 +0000 |
commit | 74b273d68f6a479fa9a563ff87ef3e9561408c2c (patch) | |
tree | 57b52bf0eebefe114f15558823a4322ab65f8cb7 | |
parent | a2761d68260d30936bae7d598a6055cf5dead60b (diff) | |
download | gcc-74b273d68f6a479fa9a563ff87ef3e9561408c2c.zip gcc-74b273d68f6a479fa9a563ff87ef3e9561408c2c.tar.gz gcc-74b273d68f6a479fa9a563ff87ef3e9561408c2c.tar.bz2 |
980707-1.c: Don't use isspace().
* gcc.c-torture/execute/980707-1.c: Don't use isspace().
Include stdlib.h, not stdio.h or ctype.h.
From-SVN: r52619
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/980707-1.c | 7 |
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 247cade..ca26c2f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.c-torture/execute/980707-1.c b/gcc/testsuite/gcc.c-torture/execute/980707-1.c index 3af163a..5095abe 100644 --- a/gcc/testsuite/gcc.c-torture/execute/980707-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/980707-1.c @@ -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; |