pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Noah Misch <noah@leadboat.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: v16 fails to build w/ Visual Studio 2015
Date: Mon, 12 Jun 2023 09:40:52 +0900
Message-ID: <ZIZplH/o7DIWQ8GY@paquier.xyz> (raw)
In-Reply-To: <99515c92-dd99-b728-0195-c38b8fd95d2f@eisentraut.org>
References: <20230607185458.GA1334487@rfd.leadboat.com>
	<428085.1686172597@sss.pgh.pa.us>
	<99515c92-dd99-b728-0195-c38b8fd95d2f@eisentraut.org>

On Wed, Jun 07, 2023 at 11:35:34PM +0200, Peter Eisentraut wrote:
> I kind of like the style where there is only one return at the end, because
> it makes it easier to inject debugging code that inspects the return value.

I kind of disagree here, the previous style is a bit ugly-ish, with
the code generated by gen_node_support.pl being dependent on this
local call because it is necessary to know about return_value:
-   if (false)
-       ;
 #include "readfuncs.switch.c"

So +1 for what's proposed.
--
Michael

Attachments:

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

view thread (8+ messages)  latest in thread

Message-ID: <ZIZplH/o7DIWQ8GY@paquier.xyz>
Permalink:  ../ZIZplH%2Fo7DIWQ8GY@paquier.xyz/
Also on:    postgresql.org/message-id/ZIZplH/o7DIWQ8GY@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, peter@eisentraut.org, tgl@sss.pgh.pa.us, noah@leadboat.com
  Subject: Re: v16 fails to build w/ Visual Studio 2015
  In-Reply-To: <ZIZplH/o7DIWQ8GY@paquier.xyz>
  References: <20230607185458.GA1334487@rfd.leadboat.com> <428085.1686172597@sss.pgh.pa.us> <99515c92-dd99-b728-0195-c38b8fd95d2f@eisentraut.org> <ZIZplH/o7DIWQ8GY@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