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
This commit is contained in:
parent
a2761d6826
commit
74b273d68f
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user