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]
Other format: [Raw text]

Re: [patch] Add 'getrnge' fix to regular fixincludes


Bruce Korb wrote:
References: <20030802030232.GA5224@twcny.rr.com>


Nathanael Nerode wrote:


This "Does the Right Thing" on sequent/ptx (corresponding to the existing
weird script), and it doesn't trigger (which is also correct) on i386-linux.
See the comments in the patch for motivation.  :-)


It is pretty weird, all right.


OK for mainline?


With a small tweak.  The backslash before the asterisk has no effect,
so please remove it to avoid confusion.
Aaaaagh.  I was worried that
c_fix_arg= "^static int[ \t]*size;";

would be interpreted as matching a line like:
static int                    size;
whereas I'm trying to match this line:
static int *size;

What is the correct incantation in this case? Why are there so many different varieties of possible backslashing floating around in fixincludes? Why am I so confused? ;-)


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