[PATCH] More Coccinelli cleanups

From: Marti Raudsepp <marti(at)juffo(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: [PATCH] More Coccinelli cleanups
Date: 2010-10-29 23:33:18
Message-ID: AANLkTimFfesRaffU8Z8aXjnPmfKy9wMS0z0w=w9okWKE@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 a point where code cleanups defeat their
purpose and become a burden. So this will probably be my last one,
I'll go to doing productive things instead. :)

Regards,
Marti

Attachment Content-Type Size
0001-Cleanup-Simplify-comparisons-a-b-0-to-a-b.patch text/x-patch 3.2 KB
0002-Cleanup-Simplify-comparisons-a-b-0-to-a-b-etc.patch text/x-patch 4.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2010-10-30 08:49:21 Re: [PATCH] V3: Idle in transaction cancellation
Previous Message Greg Smith 2010-10-29 23:31:50 Re: sorted writes for checkpoints