std.cfg: Add offsetof configuration (#1097)

This commit is contained in:
Sebastian 2018-02-23 18:49:52 +01:00 committed by orbitcowboy
parent 346704b2e2
commit 51fce24d95
1 changed files with 9 additions and 0 deletions

View File

@ -6345,6 +6345,15 @@ The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun
<iterator container="2" type="first"/>
</arg>
</function>
<!--#define offsetof(type, member) /*implementation-defined*/-->
<function name="offsetof">
<noreturn>false</noreturn>
<returnValue type="std::size_t"/>
<use-retval/>
<leak-ignore/>
<arg nr="1"/>
<arg nr="2"/>
</function>
<memory>
<alloc init="false">malloc</alloc>
<alloc init="true">calloc</alloc>