inclhack.def (avoid_bool): Also catch "typedef [unsigned] int bool".
authorJeffrey A Law <law@cygnus.com>
Tue, 8 Jun 1999 00:10:51 +0000 (00:10 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 8 Jun 1999 00:10:51 +0000 (18:10 -0600)
        * fixinc/inclhack.def (avoid_bool): Also catch
        "typedef [unsigned] int bool".
        * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.

From-SVN: r27418

gcc/ChangeLog
gcc/fixinc/fixincl.x
gcc/fixinc/inclhack.def
gcc/fixinc/inclhack.sh

index 3dda21a6edd81db315b92dadd5ef3b75e40b646d..a0ff9551c52dddc616f73bc2774d2b78e7a11f0c 100644 (file)
@@ -1,5 +1,9 @@
 Mon Jun  7 22:30:37 1999  Jeffrey A Law  (law@cygnus.com)
 
+       * fixinc/inclhack.def (avoid_bool): Also catch
+       "typedef [unsigned] int bool".
+       * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt.
+
        * m68k/x-hp3bsd44: Delete obsolete and incorrect file.
        * configure.in (m68k-hp-bsd4.4): No longer use x-hp3bsd44.
        * configure: Rebuilt.
index c7eb180dde5cb63dfb627cb6e24c81a0165eedad..9b8ddec0ddf3bb6b02129ba929ddc54c854850d1 100644 (file)
@@ -335,6 +335,14 @@ const char* apzAvoid_BoolPatch[] = { "sed",
     "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/i\\\n\
 #ifndef __cplusplus\n",
     "-e", "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/a\\\n\
+#endif\n",
+    "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/i\\\n\
+#ifndef __cplusplus\n",
+    "-e", "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/a\\\n\
+#endif\n",
+    "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/i\\\n\
+#ifndef __cplusplus\n",
+    "-e", "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/a\\\n\
 #endif\n",
     (char*)NULL };
 
index 9e9cd4fd77fde35f4bd20ff0f467695c9564c245..0695368e23299016db975189c1a4d5ecc4713b75 100644 (file)
@@ -136,6 +136,18 @@ fix = {
 
     sed = "/^[ ]*typedef[ \t][ \t]*unsigned char[ \t][ \t]*bool[ \t]*;/a\\\n"
                 "#endif\n";
+
+    sed = "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/i\\\n"
+                "#ifndef __cplusplus\n";
+
+    sed = "/^typedef[ \t][ \t]*int[ \t][ \t]*bool[ \t]*;/a\\\n"
+                "#endif\n";
+
+    sed = "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/i\\\n"
+                "#ifndef __cplusplus\n";
+
+    sed = "/^[ ]*typedef[ \t][ \t]*unsigned int[ \t][ \t]*bool[ \t]*;/a\\\n"
+                "#endif\n";
 };
 
 
index 13f56a7c81b2bc76dd8fe75780e86d05b5a32c6c..fda21b63820f630c0f5cc099358ebb1e173b7631 100755 (executable)
@@ -562,6 +562,18 @@ struct rusage;
 ' \
         -e '/^[ ]*typedef[     ][      ]*unsigned char[        ][      ]*bool[         ]*;/a\
 #endif
+' \
+        -e '/^typedef[         ][      ]*int[  ][      ]*bool[         ]*;/i\
+#ifndef __cplusplus
+' \
+        -e '/^typedef[         ][      ]*int[  ][      ]*bool[         ]*;/a\
+#endif
+' \
+        -e '/^[ ]*typedef[     ][      ]*unsigned int[         ][      ]*bool[         ]*;/i\
+#ifndef __cplusplus
+' \
+        -e '/^[ ]*typedef[     ][      ]*unsigned int[         ][      ]*bool[         ]*;/a\
+#endif
 ' \
           < $infile > ${DESTDIR}/fixinc.tmp
     rm -f ${DESTFILE}