Re: \xDD patch for 7.5devel

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jasongodden(at)optushome(dot)com(dot)au
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: \xDD patch for 7.5devel
Date: 2003-11-05 15:25:23
Message-ID: 2137.1068045923@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jason Godden <jasongodden(at)optushome(dot)com(dot)au> writes:
> This is my first patch for PostgreSQL against the 7.5devel cvs (please
> advise if this is the wrong place to post patches).

pgsql-patches in future, please.

> +#define HEXVALUE(c) (((c)>='a') ? ((c)-87) : (((c)>='A') ? ((c)-55) : ((c)-'0')))

This seems excessively dependent on the assumption that the character
set is ASCII. Why have you hard-coded numeric equivalents into this
macro?

BTW, the patch is incomplete because it is lacking documentation.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas SB SD 2003-11-05 15:47:31 Re: Experimental patch for inter-page delay in VACUUM
Previous Message Christopher Browne 2003-11-05 15:20:44 Re: Open Sourcing pgManage