[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
patch to make textutils 2.1 build on AIX
From: |
Richard Kettlewell |
Subject: |
patch to make textutils 2.1 build on AIX |
Date: |
26 Mar 2003 14:18:58 +0000 |
textutils 2.1 defines 'bool' as an enum and then uses it as the type
for a bit field member, which does not work on (at least) AIX. Patch
below.
ttfn/rjk
--- src/fmt.c.orig Wed Mar 26 13:59:19 2003
+++ src/fmt.c Wed Mar 26 13:59:37 2003
@@ -134,10 +134,10 @@
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 paren:1; /* starts with open paren */
+ unsigned period:1; /* ends in [.?!])* */
+ unsigned punct:1; /* ends in punctuation */
+ unsigned final:1; /* end of sentence */
/* The remaining fields are computed during the optimization. */
- patch to make textutils 2.1 build on AIX,
Richard Kettlewell <=