diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-07-09 17:03:20 +0000 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2006-07-09 17:03:20 +0000 |
commit | 925076c5d6accb0058a49e7826bd944b20a48609 (patch) | |
tree | 4ce8f84567f594017ee054b058f4df68ccea2539 /src | |
parent | 55755b03cde03c69e562d4b0508cce1bd186e8e6 (diff) | |
download | coreutils-925076c5d6accb0058a49e7826bd944b20a48609.tar.xz |
(check_punctuation): Don't assume that isprint etc. return
booleans (needed for pre-C99 hosts).
Diffstat (limited to 'src')
-rw-r--r-- | src/fmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |