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

From Tom Lane
Subject pgsql: Add infrastructure for compile-time assertions about variable ty
Date
Msg-id E1TIOPn-0003kO-Ny@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: psql: Mark table headers in \drds output for translation
Next
From: Tom Lane
Date:
Subject: pgsql: Provide some static-assertion functionality on all compilers.