pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Refactor compile-time assertion checks in c.h
Date: Fri, 13 Mar 2020 06:12:02 +0000
Message-ID: <E1jCdYA-00051Q-HX@gemulon.postgresql.org> (raw)

Refactor compile-time assertion checks in c.h

This commit refactors and simplifies the definitions of StaticAssertStmt,
StaticAssertExpr and StaticAssertDecl.  By unifying the C and C++
fallback implementations, this reduces the number of different
implementations from four to three.

Author: Michael Paquier
Reviewed-by: Georgios Kokolatos, Tom Lane
Discussion: https://postgr.es/m/20200204081503.GF2287@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b7f64c64d3262c309e2c5e8c11fd111b1dbd1a4a

Modified Files
--------------
src/include/c.h | 28 +++++++++++-----------------
1 file changed, 11 insertions(+), 17 deletions(-)



Message-ID: <E1jCdYA-00051Q-HX@gemulon.postgresql.org>
Permalink:  ../E1jCdYA-00051Q-HX@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1jCdYA-00051Q-HX@gemulon.postgresql.org

 · 

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-committers@postgresql.org
  Cc: michael@paquier.xyz
  Subject: Re: pgsql: Refactor compile-time assertion checks in c.h
  In-Reply-To: <E1jCdYA-00051Q-HX@gemulon.postgresql.org>
  References: <E1jCdYA-00051Q-HX@gemulon.postgresql.org>

* 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