summaryrefslogtreecommitdiff
path: root/src/fmt.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:03:20 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2006-07-09 17:03:20 +0000
commit925076c5d6accb0058a49e7826bd944b20a48609 (patch)
tree4ce8f84567f594017ee054b058f4df68ccea2539 /src/fmt.c
parent55755b03cde03c69e562d4b0508cce1bd186e8e6 (diff)
downloadcoreutils-925076c5d6accb0058a49e7826bd944b20a48609.tar.xz
(check_punctuation): Don't assume that isprint etc. return
booleans (needed for pre-C99 hosts).
Diffstat (limited to 'src/fmt.c')
-rw-r--r--src/fmt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fmt.c b/src/fmt.c
index 276f12cae..9a6c1c0fd 100644
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -1,5 +1,5 @@
/* GNU fmt -- simple text formatter.
- Copyright (C) 1994-2005 Free Software Foundation, Inc.
+ Copyright (C) 1994-2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -668,7 +668,7 @@ get_line (FILE *f, int c)
*wptr++ = c;
c = getc (f);
}
- while (c != EOF && !ISSPACE (c));
+ while (c != EOF && !isspace (c));
in_column += word_limit->length = wptr - word_limit->text;
check_punctuation (word_limit);
@@ -756,7 +756,7 @@ check_punctuation (WORD *w)
unsigned char fin = *finish;
w->paren = isopen (*start);
- w->punct = ISPUNCT (fin);
+ w->punct = !! ispunct (fin);
while (start < finish && isclose (*finish))
finish--;
w->period = isperiod (*finish);