This is the mail archive of the gcc@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]

Re: aggressive fixincludes


Joe Buck <jbuck@synopsys.COM> writes:

|> > At the same time, I do not think it crucial that the comments
|> > remain.  After all, they _are_ comments and /usr/include/FlexLexer.h
|> > still remains in /usr/include for visual reference.  Please,
|> > propose a solution.
|> 
|> What's wrong with
|> 
|> sed 's?//\(.*\)?/*\1*/?' file > new_file
|> ?
|> 
|> For those like me who find regular expressions to be write-only,
|> that means change 
|> 	// anything 
|> to 
|> 	/* anything*/

What if `anything' contains `*/'?

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg


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