]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
[struct Word] (paren, period, punct, final): Change the
authorJim Meyering <jim@meyering.net>
Tue, 18 Mar 2003 08:43:57 +0000 (08:43 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 18 Mar 2003 08:43:57 +0000 (08:43 +0000)
type of each member from bool <MEMBER>:1 to unsigned int <MEMBER>:1.
AIX 5.1's xlc could not compile the former.

src/fmt.c

index 66f0983e05fb511171c47d5a52b3337e803479c3..c6fe5ba40e493ca3e359895849c9bea493a31cab 100644 (file)
--- 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.  */