From: Tom Lane <tgl@sss.pgh.pa.us>
To: Craig Ringer <ringerc@ringerc.id.au>
Cc: Lionel Elie Mamane <lionel@mamane.lu>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6216: Calling PQconnectdbParams from C++ with a char**
Date: Tue, 20 Sep 2011 19:43:25 -0400
Message-ID: <8393.1316562205@sss.pgh.pa.us> (raw)
In-Reply-To: <4E7921D3.7030209@ringerc.id.au>
References: <201109201605.p8KG5tku049175@wwwmaster.postgresql.org>
<4E7921D3.7030209@ringerc.id.au>
Craig Ringer <ringerc@ringerc.id.au> writes:
> As for wording: my *personal* preference is "const char * const" but I
> don't know what the opinions of those who work with the code day-to-day are.
+1. Isn't the other ordering deprecated by recent C standards?
(Or maybe I'm just thinking of where you're supposed to put "static",
but in any case "char const *" looks pretty weird to me.) Also,
the existing usages in libpq-fe.h look like that, and there's no good
reason for these to be randomly different.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, ringerc@ringerc.id.au, lionel@mamane.lu
Subject: Re: BUG #6216: Calling PQconnectdbParams from C++ with a char**
In-Reply-To: <8393.1316562205@sss.pgh.pa.us>
References: <201109201605.p8KG5tku049175@wwwmaster.postgresql.org> <4E7921D3.7030209@ringerc.id.au> <8393.1316562205@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox