This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

inclhack.def patch for hpux10.20



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';
  };





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]