pgsql: Map pg_attribute_counted_by() to _Field_size_() under MSVC - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Map pg_attribute_counted_by() to _Field_size_() under MSVC
Date
Msg-id E1xD7Gx-00000000CCk-05Fu@gemulon.postgresql.org
Whole thread
List pgsql-committers
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: https://www.postgresql.org/message-id/flat/DKBEBF32QLUA.3L2DJRPUYNKHZ%40partin.io

Branch
------
master

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

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


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix lcov duplicate directory specification in non-VPATH builds.
Next
From: Richard Guo
Date:
Subject: pgsql: Set hasSubLinks when expanding a whole-row join alias reference