pgsql: Rearrange c.h to create a "compiler characteristics" section. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Rearrange c.h to create a "compiler characteristics" section.
Date
Msg-id E1eEk22-0007m2-BG@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Rearrange c.h to create a "compiler characteristics" section.

Generalize section 1 to handle stuff that is principally about the
compiler (not libraries), such as attributes, and collect stuff there
that had been dropped into various other parts of c.h.  Also, push
all the gettext macros into section 8, so that section 0 is really
just inclusions rather than inclusions and random other stuff.

The primary goal here is to get pg_attribute_aligned() defined before
section 3, so that we can use it with int128.  But this seems like good
cleanup anyway.

This patch just moves macro definitions around, and shouldn't result
in any changes in generated code.

Back-patch of commit 91aec93e6.

Discussion: https://postgr.es/m/20171110185747.31519.28038@wrigleys.postgresql.org

Branch
------
REL9_5_STABLE

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

Modified Files
--------------
src/include/c.h | 262 ++++++++++++++++++++++++++++----------------------------
1 file changed, 133 insertions(+), 129 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Prevent int128 from requiring more than MAXALIGN alignment.
Next
From: Robert Haas
Date:
Subject: pgsql: Add parallel_leader_participation GUC.