From 5b28849589e7577a222685852b8601a1e7568726 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Wed, 25 Oct 2000 18:35:30 -0400 Subject: snapshot of project "lynx", label v2-8-4dev_12 --- src/LYNews.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/LYNews.c') 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; /* -- cgit 1.4.1-2-gfad0