summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-06-07 05:43:37 +0000
committerPaul Smith <psmith@gnu.org>2000-06-07 05:43:37 +0000
commit4a5550c8225d762f684d4047e20cc45274b6a785 (patch)
tree943515aca19373ad0fe0dce0cb852c2eca7b0cab /misc.c
parente5c40f6e5ad9d485f7caada51e2361758baa67dd (diff)
downloadgunmake-4a5550c8225d762f684d4047e20cc45274b6a785.tar.gz
* Lots of bug fixes and cleanup; new i18n files, etc.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/misc.c b/misc.c
index 6310f28..98dc7a9 100644
--- a/misc.c
+++ b/misc.c
@@ -120,7 +120,7 @@ collapse_continuations (line)
if (backslash)
{
in = next_token (in);
- while (out > line && isblank (out[-1]))
+ while (out > line && isblank ((unsigned char)out[-1]))
--out;
*out++ = ' ';
}
@@ -478,7 +478,7 @@ char *
end_of_token (s)
char *s;
{
- while (*s != '\0' && !isblank (*s))
+ while (*s != '\0' && !isblank ((unsigned char)*s))
++s;
return s;
}
@@ -495,7 +495,8 @@ end_of_token_w32 (s, stopchar)
register char *p = s;
register int backslash = 0;
- while (*p != '\0' && *p != stopchar && (backslash || !isblank (*p)))
+ while (*p != '\0' && *p != stopchar
+ && (backslash || !isblank ((unsigned char)*p)))
{
if (*p++ == '\\')
{
@@ -522,7 +523,7 @@ next_token (s)
{
register char *p = s;
- while (isblank (*p))
+ while (isblank ((unsigned char)*p))
++p;
return p;
}