mirror of
https://github.com/mirror/make.git
synced 2025-01-01 07:50:52 +08:00
Formerly misc.c.~31~
This commit is contained in:
parent
1944def8db
commit
c71c43c0b5
22
misc.c
22
misc.c
@ -395,25 +395,9 @@ char *
|
|||||||
end_of_token (s)
|
end_of_token (s)
|
||||||
char *s;
|
char *s;
|
||||||
{
|
{
|
||||||
register char *p = s;
|
while (*s != '\0' && !isblank (*s))
|
||||||
register int backslash = 0;
|
++s;
|
||||||
|
return s;
|
||||||
while (*p != '\0' && (backslash || !isblank (*p)))
|
|
||||||
{
|
|
||||||
if (*p++ == '\\')
|
|
||||||
{
|
|
||||||
backslash = !backslash;
|
|
||||||
while (*p == '\\')
|
|
||||||
{
|
|
||||||
backslash = !backslash;
|
|
||||||
++p;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
backslash = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
return p;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Return the address of the first nonwhitespace or null in the string S. */
|
/* Return the address of the first nonwhitespace or null in the string S. */
|
||||||
|
Loading…
Reference in New Issue
Block a user