summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1994-03-04 05:10:20 +0000
committerRoland McGrath <roland@redhat.com>1994-03-04 05:10:20 +0000
commitc71c43c0b53e9108b150afd842f7f38034ad5d08 (patch)
tree61b37095b7b260385500bd45c20c1923b1dcf0ac /misc.c
parent1944def8dbbd84ef8a55185163856694ca9b9900 (diff)
downloadgunmake-c71c43c0b53e9108b150afd842f7f38034ad5d08.tar.gz
Formerly misc.c.~31~
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/misc.c b/misc.c
index 977e7dc..c5372ed 100644
--- a/misc.c
+++ b/misc.c
@@ -395,25 +395,9 @@ char *
end_of_token (s)
char *s;
{
- register char *p = s;
- register int backslash = 0;
-
- while (*p != '\0' && (backslash || !isblank (*p)))
- {
- if (*p++ == '\\')
- {
- backslash = !backslash;
- while (*p == '\\')
- {
- backslash = !backslash;
- ++p;
- }
- }
- else
- backslash = 0;
- }
-
- return p;
+ while (*s != '\0' && !isblank (*s))
+ ++s;
+ return s;
}
/* Return the address of the first nonwhitespace or null in the string S. */