improve bypass re for sun_auth_proto
authorBruce Korb <ddsinc09@ix.netcom.com>
Wed, 9 Jun 1999 06:58:09 +0000 (06:58 +0000)
committerBruce Korb <korbb@gcc.gnu.org>
Wed, 9 Jun 1999 06:58:09 +0000 (06:58 +0000)
From-SVN: r27447

gcc/ChangeLog
gcc/fixinc/inclhack.def

index 64b99d685c2268a8ee856a8682b481f0b1886f47..db9124308a374484a4d9d379e44bbd51cfdb5d1c 100644 (file)
@@ -1,3 +1,8 @@
+Wed Jun  9 06:50 1999  Bruce Korb <ddsinc09@ix.netcom.com>
+
+       *fixinc/inclhack.def(sun_auth_proto): bypass the patch if
+       the typed arguments are not part of a comment
+
 Wed Jun  9 22:57:02 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * invoke.texi: Add C4x invocation docs.
index 93f620f82140d8183317846acc4b373f2c849e09..bbdd401b27a4e6efd7e79015d43149e0a88b251c 100644 (file)
@@ -1512,7 +1512,8 @@ fix = {
      *  but there is no point bothering if the fix is not needed.
      */
     select   = '\(\*[a-z][a-z_]*\)\(\)';
-    bypass   = '\(\*[a-z][a-z_]*\)\(' "[ \t]*[a-zA-Z.].*" '\)';
+    bypass   = "^[a-zA-Z0-9_ \t]*" '\(\*[a-z][a-z_]*\)\('
+               "[ \t]*[a-zA-Z.].*" '\)';
     sed      = 's'
                 '/^\(.*(\*[a-z][a-z_]*)(\)'      '\();.*\)'
                 "/\\\n"