pgsql: Map pg_attribute_counted_by() to _Field_size_() under MSVC

Started by Peter Eisentrautabout 2 months ago1 messagescommitters
Jump to latest
#1Peter Eisentraut
peter@eisentraut.org

Map pg_attribute_counted_by() to _Field_size_() under MSVC

MSVC has no counted_by attribute, but its source annotation
language (SAL) has _Field_size_(), which states the same property: the
field is a buffer whose writable size in elements is given by the
named expression.

MSVC's static analyzer (/analyze) will make use of the information.

Author: Tristan Partin <tristan@partin.io>
Discussion: /messages/by-id/DKBEBF32QLUA.3L2DJRPUYNKHZ@partin.io

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9dcaea6edc8c3f8a658ff788c94b6a896ae254af

Modified Files
--------------
src/include/c.h | 10 ++++++++++
1 file changed, 10 insertions(+)