pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Magnus Hagander <magnus@hagander.net>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Move OpenSSL random under USE_OPENSSL_RANDOM
Date: Thu, 19 Nov 2020 20:03:48 +0900
Message-ID: <20201119110348.GG26172@paquier.xyz> (raw)
In-Reply-To: <CABUevEwxaKcy9wXepCtQj2y2DTeC4sA1h4T3+UN6-o9vvOYcPA@mail.gmail.com>
References: <9C83EC17-2D70-4449-A7C0-FE090D38AE5A@yesql.se>
	<CABUevEyi6-cV9bv2Ot=sBXUY_OPKTn0ZOAgrCUQuMX9Cz4_eqg@mail.gmail.com>
	<757056.1605539160@sss.pgh.pa.us>
	<835E868F-66A1-42BC-8A50-D19B57BA67A7@yesql.se>
	<20201118013159.GH19692@paquier.xyz>
	<046888F1-FCBC-4685-9660-A7BCA65A8F44@yesql.se>
	<20201118085436.GM19692@paquier.xyz>
	<168426A3-D05C-4B4A-9E64-1DC7AC4DEC67@yesql.se>
	<20201119033433.GE26172@paquier.xyz>
	<CABUevEwxaKcy9wXepCtQj2y2DTeC4sA1h4T3+UN6-o9vvOYcPA@mail.gmail.com>

On Thu, Nov 19, 2020 at 11:00:40AM +0100, Magnus Hagander wrote:
> I'm thinking the code might get a lot cleaner if we just make a single
> set of ifdefs, even if that means repeating the function header. In
> theory we could put them in different *.c files as well, but that
> seems overkill given how tiny they are.

If you reorganize the code this way, I think that make coverage
(genhtml mainly) would complain because the same function is defined
multiple times.  I have fallen in this trap recently, with 2771fcee.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (38+ messages)  latest in thread

Message-ID: <20201119110348.GG26172@paquier.xyz>
Permalink:  ../20201119110348.GG26172@paquier.xyz/
Also on:    postgresql.org/message-id/20201119110348.GG26172@paquier.xyz

 · 

reply

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-hackers@postgresql.org
  Cc: michael@paquier.xyz, magnus@hagander.net, daniel@yesql.se, tgl@sss.pgh.pa.us
  Subject: Re: Move OpenSSL random under USE_OPENSSL_RANDOM
  In-Reply-To: <20201119110348.GG26172@paquier.xyz>
  References: <9C83EC17-2D70-4449-A7C0-FE090D38AE5A@yesql.se> <CABUevEyi6-cV9bv2Ot=sBXUY_OPKTn0ZOAgrCUQuMX9Cz4_eqg@mail.gmail.com> <757056.1605539160@sss.pgh.pa.us> <835E868F-66A1-42BC-8A50-D19B57BA67A7@yesql.se> <20201118013159.GH19692@paquier.xyz> <046888F1-FCBC-4685-9660-A7BCA65A8F44@yesql.se> <20201118085436.GM19692@paquier.xyz> <168426A3-D05C-4B4A-9E64-1DC7AC4DEC67@yesql.se> <20201119033433.GE26172@paquier.xyz> <CABUevEwxaKcy9wXepCtQj2y2DTeC4sA1h4T3+UN6-o9vvOYcPA@mail.gmail.com> <20201119110348.GG26172@paquier.xyz>

* 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