Re: [HACKERS] [PATCH] More Coccinelli cleanups

2010-11-01 Thread Tom Lane
Robert Haas writes: > On Fri, Oct 29, 2010 at 7:33 PM, Marti Raudsepp wrote: >> patch 0001 turns (a - b == 0) into (a == b) and similarly with != >> patch 0002 applies the same to operators >, >=, <, <= >> >> I'm well aware that there's a point where code cleanups defeat their >> purpose and bec

Re: [HACKERS] [PATCH] More Coccinelli cleanups

2010-10-31 Thread Robert Haas
On Fri, Oct 29, 2010 at 7:33 PM, Marti Raudsepp wrote: > Since my previous Coccinelle cleanup patches have gained positive > feedback I decided to try some more. > > This time I wrote my own spatches. > > patch 0001 turns (a - b == 0) into (a == b) and similarly with != > patch 0002 applies the sa

[HACKERS] [PATCH] More Coccinelli cleanups

2010-10-29 Thread Marti Raudsepp
Hi list, Since my previous Coccinelle cleanup patches have gained positive feedback I decided to try some more. This time I wrote my own spatches. patch 0001 turns (a - b == 0) into (a == b) and similarly with != patch 0002 applies the same to operators >, >=, <, <= I'm well aware that there's