pgsql: Clean up overly paranoid checks in mac8.c

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Clean up overly paranoid checks in mac8.c
Date: 2017-03-16 03:24:08
Message-ID: E1coM1I-0004lK-Cf@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Clean up overly paranoid checks in mac8.c

Andres' compiler points out, quite correctly, that there's no need for
some of the overly paranoid checks which were put into mac8.c. Remove
those, as they're useless, add some comments and make a few other minor
improvements- reduce the size of hexlookup by making it a char array
instead of an int array, and pass in the ptr location directly instead
of making hex2_to_uchar re-calculate the location based off the offset
every time.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/7821f7229c6e149046ee0dd8cab57928c4f86a37

Modified Files
--------------
src/backend/utils/adt/mac8.c | 42 +++++++++++++++++++++++++-----------------
1 file changed, 25 insertions(+), 17 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-03-16 03:35:44 Re: pgsql: Clean up overly paranoid checks in mac8.c
Previous Message Michael Paquier 2017-03-16 02:36:45 Re: [COMMITTERS] pgsql: Remove objname/objargs split for referring to objects