Re: psql patch (2) - Mailing list pgsql-patches

From Jeroen T. Vermeulen
Subject Re: psql patch (2)
Date
Msg-id 20030320151425.GG28190@xs4all.nl
Whole thread Raw
In response to Re: psql patch (2)  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
On Thu, Mar 20, 2003 at 01:45:31AM -0500, Bruce Momjian wrote:
>
> I also adjusted this:
>
>     + char parse_char(char **buf)
>     + {
>     +   long l;
>     +
>     +   l = strtol(*buf, buf, 0);
>     +   (*buf)--;
>     +   return (char)l;
>     + }
>     +
>
> I added the parens around 'buf' because the compiler was saying
> statement has no effect.  Is this correct?

I don't remember what this function does, but you could also write
'--*buf;' to save on parentheses (and do your bit for the environment).


Jeroen


pgsql-patches by date:

Previous
From: "Jeroen T. Vermeulen"
Date:
Subject: Re: psql patch
Next
From: Bruce Momjian
Date:
Subject: Re: to_char PL/MI fix