This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
inclhack.def patch for hpux10.20
- To: egcs-patches at egcs dot cygnus dot com
- Subject: inclhack.def patch for hpux10.20
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Wed, 12 May 1999 00:02:22 -0600
- Reply-To: law at cygnus dot com
This fixes the last batch of fixinc problems for hpux10.20. Basically
we did not consistently allow whitespace between the "define" and the
name of the macro in the hack to fix quoting of the IO macros. As a
result we did not fix facetterm.h and facetwin.h on hpux10.20.
Next on my list to examine is hpux9 :-)
* fixinc/inclhack.def (io_def_quotes): Consistently allow multiple
whitespace characters between the "define" and the name of the macro.
* fixinc/fixincl.x, fixinc/inclhack.sh: Rebuilt.
Index: inclhack.def
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/fixinc/inclhack.def,v
retrieving revision 1.13
diff -c -3 -p -r1.13 inclhack.def
*** inclhack.def 1999/05/11 00:47:30 1.13
--- inclhack.def 1999/05/12 06:02:31
*************** fix = {
*** 566,573 ****
*/
fix = {
hackname = io_def_quotes;
! select = "[ \t](_|DES)IO[A-Z]*[ \t]*\\( *[^,']";
! sed = "s/\\([ \t](_|DES)IO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/";
sed = "/#[ \t]*define[ \t]*[ \t]_IO/" "s/'\\([cgxtf]\\)'/\\1/g";
sed = "/#[ \t]*define[ \t]*[ \t]DESIOC/" 's/\'\([cdgx]\)\'/\1/g';
};
--- 566,573 ----
*/
fix = {
hackname = io_def_quotes;
! select = "[ \t]*[ \t](_|DES)IO[A-Z]*[ \t]*\\( *[^,']";
! sed = "s/\\([ \t]*[ \t](_|DES)IO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/";
sed = "/#[ \t]*define[ \t]*[ \t]_IO/" "s/'\\([cgxtf]\\)'/\\1/g";
sed = "/#[ \t]*define[ \t]*[ \t]DESIOC/" 's/\'\([cdgx]\)\'/\1/g';
};