Re: deprecation lost



On Fri, 2002-11-29 at 22:32, Matthias Clasen wrote:
> 
> I guess we have to do some regex fiddling to match both
> 
> #ifndef DEPRECATION_GUARD
> 
> and
> 
> #if !defined(DEPRECATION_GUARD) || ..
> 

My regex is not much better than my perl, but this seems to
work here:

/^\s*#\s*if(?:ndef|\s+!\s*defined\s*\()\s*(\w+)\W.*/

Matthias





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]