inclhack.def (avoid_bool): Also catch "typedef [unsigned] int bool".
* fixinc/inclhack.def (avoid_bool): Also catch "typedef [unsigned] int bool". * fixinc/inclhack.sh, fixinc/fixincl.x, fixinc/fixincl.sh: Rebuilt. From-SVN: r27418
This commit is contained in:
parent
3f8ac8a23b
commit
fbc35bc121
4 changed files with 36 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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 };
|
||||
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue