pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@postgresql.org
Subject: pgsql: Further refactoring of c.h and nearby files.
Date: Thu, 16 Nov 2017 15:36:28 +0000
Message-ID: <E1eFMDM-0004YM-8x@gemulon.postgresql.org> (raw)

Further refactoring of c.h and nearby files.

This continues the work of commit 91aec93e6 by getting rid of a lot of
Windows-specific funny business in "section 0".  Instead of including
pg_config_os.h in different places depending on platform, let's
standardize on putting it before the system headers, and in consequence
reduce win32.h to just what has to appear before the system headers or
the body of c.h (the latter category seems to include only PGDLLIMPORT
and PGDLLEXPORT).  The rest of what was in win32.h is moved to a new
sub-include of port.h, win32_port.h.  Some of what was in port.h seems
to better belong there too.

It's possible that I missed some declaration ordering dependency that
needs to be preserved, but hopefully the buildfarm will find that
out in short order.

Unlike the previous commit, no back-patch, since this is just cleanup
not a prerequisite for a bug fix.

Discussion: https://postgr.es/m/29650.1510761080@sss.pgh.pa.us

Branch
------
master

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

Modified Files
--------------
src/bin/pg_ctl/pg_ctl.c       |   8 -
src/include/c.h               |  30 +--
src/include/port.h            |  59 +-----
src/include/port/win32.h      | 427 ++-----------------------------------
src/include/port/win32_port.h | 483 ++++++++++++++++++++++++++++++++++++++++++
5 files changed, 512 insertions(+), 495 deletions(-)



Message-ID: <E1eFMDM-0004YM-8x@gemulon.postgresql.org>
Permalink:  ../E1eFMDM-0004YM-8x@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1eFMDM-0004YM-8x@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Further refactoring of c.h and nearby files.
  In-Reply-To: <E1eFMDM-0004YM-8x@gemulon.postgresql.org>
  References: <E1eFMDM-0004YM-8x@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox