pgsql: Add infrastructure for compile-time assertions about variable ty

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add infrastructure for compile-time assertions about variable ty
Date: 2012-09-30 18:38:55
Message-ID: E1TIOPn-0003kO-Ny@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add infrastructure for compile-time assertions about variable types.

Currently, the macros only work with fairly recent gcc versions, but there
is room to expand them to other compilers that have comparable features.

Heavily revised and autoconfiscated version of a patch by Andres Freund.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ea473fb2dee7dfe61f8fbdfac9d9da87d84e564e

Modified Files
--------------
config/c-compiler.m4 | 40 ++++++++++++++
configure | 119 +++++++++++++++++++++++++++++++++++++++++
configure.in | 2 +
src/include/c.h | 41 ++++++++++++++
src/include/pg_config.h.in | 6 ++
src/include/pg_config.h.win32 | 6 ++
6 files changed, 214 insertions(+), 0 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2012-10-01 02:46:41 pgsql: Provide some static-assertion functionality on all compilers.
Previous Message Peter Eisentraut 2012-09-30 00:47:56 pgsql: psql: Mark table headers in \drds output for translation