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: r52620
This commit is contained in:
Zack Weinberg 2002-04-22 17:41:52 +00:00 committed by Zack Weinberg
parent 8a0c9c4307
commit c589790ef3
2 changed files with 8 additions and 4 deletions

View 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

View 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;