pgsql: Convert varatt.h access macros to static inline functions.

Started by Peter Eisentraut11 months ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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: /messages/by-id/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(-)