From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: Extend & revamp pg_bswap.h infrastructure.
Date: Sat, 30 Sep 2017 12:28:51 -0400
Message-ID: <29622.1506788931@sss.pgh.pa.us> (raw)
In-Reply-To: <20170930162040.pt2clbqsrpdddtxd@alap3.anarazel.de>
References: <E1dy5fJ-00081c-3N@gemulon.postgresql.org>
<31674.1506788226@sss.pgh.pa.us>
<20170930162040.pt2clbqsrpdddtxd@alap3.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Andres Freund <andres@anarazel.de> writes:
> On 2017-09-30 12:17:06 -0400, Tom Lane wrote:
>> c.h will already have included <stdlib.h>. There might be some
>> value in this if we anticipated allowing freestanding use of this
>> header, but that won't happen because it depends on configure symbols.
> Well, it's not that obvious where the _byteswap_* functions are coming
> from on msvc. I guess we can just leave the comment
> /* In all supported versions msvc provides _byteswap_* functions in stdlib.h */
> there, but I see no harm in the current form either.
I'm OK with a comment like that, but I think we have a general style
guideline against headers duplicating stuff from c.h/postgres.h.
It just promotes confusion, IMO.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
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-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, andres@anarazel.de
Subject: Re: pgsql: Extend & revamp pg_bswap.h infrastructure.
In-Reply-To: <29622.1506788931@sss.pgh.pa.us>
References: <E1dy5fJ-00081c-3N@gemulon.postgresql.org> <31674.1506788226@sss.pgh.pa.us> <20170930162040.pt2clbqsrpdddtxd@alap3.anarazel.de> <29622.1506788931@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