Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 364F4B5DC01 for ; Tue, 20 Sep 2011 20:43:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 12392-02 for ; Tue, 20 Sep 2011 23:43:31 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id BD689B5DC00 for ; Tue, 20 Sep 2011 20:43:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p8KNhPO4008394; Tue, 20 Sep 2011 19:43:25 -0400 (EDT) To: Craig Ringer cc: Lionel Elie Mamane , pgsql-bugs@postgresql.org Subject: Re: BUG #6216: Calling PQconnectdbParams from C++ with a char** In-reply-to: <4E7921D3.7030209@ringerc.id.au> References: <201109201605.p8KG5tku049175@wwwmaster.postgresql.org> <4E7921D3.7030209@ringerc.id.au> Comments: In-reply-to Craig Ringer message dated "Wed, 21 Sep 2011 07:29:23 +0800" Date: Tue, 20 Sep 2011 19:43:25 -0400 Message-ID: <8393.1316562205@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201109/132 X-Sequence-Number: 31149 Craig Ringer 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