summaryrefslogtreecommitdiff
path: root/src/fmt.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-18 08:43:57 +0000
committerJim Meyering <jim@meyering.net>2003-03-18 08:43:57 +0000
commitba840923261515adb8fb61f76ac26921d7111e52 (patch)
treedd5ba2d6fadc761a06a91ee73191b33451926e7b /src/fmt.c
parent8f33b715b12f3191d1abf4d629fab754ec61db56 (diff)
downloadcoreutils-ba840923261515adb8fb61f76ac26921d7111e52.tar.gz
coreutils-ba840923261515adb8fb61f76ac26921d7111e52.tar.bz2
coreutils-ba840923261515adb8fb61f76ac26921d7111e52.zip
[struct Word] (paren, period, punct, final): Change the
type of each member from bool <MEMBER>:1 to unsigned int <MEMBER>:1. AIX 5.1's xlc could not compile the former.
Diffstat (limited to 'src/fmt.c')
-rw-r--r--src/fmt.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fmt.c b/src/fmt.c
index 66f0983e0..c6fe5ba40 100644
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -1,5 +1,5 @@
/* GNU fmt -- simple text formatter.
- Copyright (C) 1994-2002 Free Software Foundation, Inc.
+ Copyright (C) 1994-2003 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
@@ -134,10 +134,10 @@ struct Word
const char *text; /* the text of the word */
int length; /* length of this word */
int space; /* the size of the following space */
- bool paren:1; /* starts with open paren */
- bool period:1; /* ends in [.?!])* */
- bool punct:1; /* ends in punctuation */
- bool final:1; /* end of sentence */
+ unsigned int paren:1; /* starts with open paren */
+ unsigned int period:1; /* ends in [.?!])* */
+ unsigned int punct:1; /* ends in punctuation */
+ unsigned int final:1; /* end of sentence */
/* The remaining fields are computed during the optimization. */