pgsql: Rearrange c.h to create a "compiler characteristics" section.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rearrange c.h to create a "compiler characteristics" section.
Date: 2017-11-14 22:50:14
Message-ID: E1eEk22-0007lt-Ac@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
------
REL_10_STABLE

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

Modified Files
--------------
src/include/c.h | 238 ++++++++++++++++++++++++++++----------------------------
1 file changed, 120 insertions(+), 118 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2017-11-15 13:28:26 pgsql: Add parallel_leader_participation GUC.
Previous Message Tom Lane 2017-11-14 20:04:05 pgsql: Prevent int128 from requiring more than MAXALIGN alignment.