mirror of
https://github.com/postgres/postgres.git
synced 2026-01-05 23:38:41 +03:00
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
This commit is contained in:
@@ -2165,7 +2165,7 @@ memcpy(destination->data, buffer, 40);
|
||||
it's considered good style to use the macro <literal>VARHDRSZ</literal>
|
||||
to refer to the size of the overhead for a variable-length type.
|
||||
Also, the length field <emphasis>must</emphasis> be set using the
|
||||
<literal>SET_VARSIZE</literal> macro, not by simple assignment.
|
||||
<literal>SET_VARSIZE</literal> function, not by simple assignment.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
||||
Reference in New Issue
Block a user