]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make "pgoff_t" be a typedef not a #define.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 14 Dec 2025 21:53:34 +0000 (16:53 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 14 Dec 2025 21:53:34 +0000 (16:53 -0500)
commit66b2282b0c2237bccd933804da2e1dd0321ac151
treec0c1dd58bb85217f237a29cb271e8a39896d77a6
parentfe7ede45f125af271fb3fef3cc5ee507d4c40d87
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
src/include/port.h
src/include/port/win32_port.h