Skip to content

Commit e035863

Browse files
committed
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
1 parent 0f5ade7 commit e035863

File tree

2 files changed

+261
-77
lines changed

2 files changed

+261
-77
lines changed

doc/src/sgml/xfunc.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2165,7 +2165,7 @@ memcpy(destination->data, buffer, 40);
21652165
it's considered good style to use the macro <literal>VARHDRSZ</literal>
21662166
to refer to the size of the overhead for a variable-length type.
21672167
Also, the length field <emphasis>must</emphasis> be set using the
2168-
<literal>SET_VARSIZE</literal> macro, not by simple assignment.
2168+
<literal>SET_VARSIZE</literal> function, not by simple assignment.
21692169
</para>
21702170

21712171
<para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy