pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Convert varatt.h access macros to static inline functions.
Date: Tue, 05 Aug 2025 15:05:45 +0000
Message-ID: <E1ujJEX-000tM0-0C@gemulon.postgresql.org> (raw)

Convert varatt.h access macros to static inline functions.

We've only bothered converting the external interfaces, not the
endian-dependent internal macros (which should not be used by any
callers other than the interface functions in this header, anyway).

The VARTAG_1B_E() changes are required for C++ compatibility.

Author: Peter Eisentraut <peter@eisentraut.org>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/928ea48f-77c6-417b-897c-621ef16685a6@eisentraut.org

Branch
------
master

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

Modified Files
--------------
doc/src/sgml/xfunc.sgml |   2 +-
src/include/varatt.h    | 336 +++++++++++++++++++++++++++++++++++++-----------
2 files changed, 261 insertions(+), 77 deletions(-)



Message-ID: <E1ujJEX-000tM0-0C@gemulon.postgresql.org>
Permalink:  ../E1ujJEX-000tM0-0C@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ujJEX-000tM0-0C@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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Convert varatt.h access macros to static inline functions.
  In-Reply-To: <E1ujJEX-000tM0-0C@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