diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2000-10-25 18:35:30 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2000-10-25 18:35:30 -0400 |
commit | 5b28849589e7577a222685852b8601a1e7568726 (patch) | |
tree | cce74bbe5bf3c32f82c79a94c22eb29ca458c6ee /src/LYNews.c | |
parent | c16270eee5ad3c6a3b992a9684ff8bd60e60de96 (diff) | |
download | lynx-snapshots-5b28849589e7577a222685852b8601a1e7568726.tar.gz |
snapshot of project "lynx", label v2-8-4dev_12
Diffstat (limited to 'src/LYNews.c')
-rw-r--r-- | src/LYNews.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/LYNews.c b/src/LYNews.c index 119b4bf8..14b88930 100644 --- a/src/LYNews.c +++ b/src/LYNews.c @@ -50,9 +50,9 @@ PRIVATE BOOLEAN message_has_content ARGS2( if (*cp == '\n') { break; } else if (*cp != ' ') { - if (!firstnonblank && isgraph((unsigned char)*cp)) { + if (!firstnonblank && isgraph(UCH(*cp))) { firstnonblank = *cp; - } else if (!isspace((unsigned char)*cp)) { + } else if (!isspace(UCH(*cp))) { *nonspaces = TRUE; } } @@ -60,9 +60,9 @@ PRIVATE BOOLEAN message_has_content ARGS2( if (*cp != '\n') { int c; while ((c = getc(fp)) != EOF && c != '\n') { - if (!firstnonblank && isgraph((unsigned char)c)) { + if (!firstnonblank && isgraph(UCH(c))) { firstnonblank = (char)c; - } else if (!isspace((unsigned char)*cp)) { + } else if (!isspace(UCH(*cp))) { *nonspaces = TRUE; } } @@ -177,7 +177,7 @@ PUBLIC char *LYNewsPost ARGS2( } HTUnEscape(References); if (!((cp = strchr(References, '@')) && cp > References + 1 && - isalnum(cp[1]))) { + isalnum(UCH(cp[1])))) { FREE(References); } } @@ -366,7 +366,7 @@ PUBLIC char *LYNewsPost ARGS2( } LYCloseTempFP(fd); /* Close the temp file. */ scrollok(stdscr, FALSE); /* Stop scrolling. */ - if (term_message || c == 7 || c == 3) + if (term_message || LYCharIsINTERRUPT(c)) goto cleanup; /* |