pgsql: Make "pgoff_t" be a typedef not a #define.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make "pgoff_t" be a typedef not a #define.
Date: 2025-12-14 22:03:57
Message-ID: E1vUuC4-000mxW-1V@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make "pgoff_t" be a typedef not a #define.

There doesn't seem to be any great reason why this has been a macro
rather than a typedef. But doing it like that means our buildfarm
typedef tooling doesn't capture the name as a typedef. That would
result in pgindent glitches, except that we've seemingly kept it
in typedefs.list manually. That's obviously error-prone, so let's
convert it to a typedef now.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/66b2282b0c2237bccd933804da2e1dd0321ac151

Modified Files
--------------
src/include/port.h | 2 +-
src/include/port/win32_port.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2025-12-15 00:41:10 pgsql: Allow cumulative statistics to read/write auxiliary data from/to
Previous Message Tom Lane 2025-12-14 19:31:16 pgsql: Looks like we can't test NLS on machines that lack any es_ES loc