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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Add infrastructure for compile-time assertions about variable ty
Дата
Msg-id E1TIOPn-0003kO-Ny@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: psql: Mark table headers in \drds output for translation
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Provide some static-assertion functionality on all compilers.