Re: [HACKERS] [PATCH] More Coccinelli cleanups

2010-11-01 Thread Tom Lane
Robert Haas robertmh...@gmail.com writes: On Fri, Oct 29, 2010 at 7:33 PM, Marti Raudsepp ma...@juffo.org 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

Re: [HACKERS] [PATCH] More Coccinelli cleanups

2010-10-31 Thread Robert Haas
On Fri, Oct 29, 2010 at 7:33 PM, Marti Raudsepp ma...@juffo.org 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